/* =====================================================
   Cryptic Gateway — styles
   Defence-grade, institutional, restrained.
   ===================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --c-navy-900: #070d1b;
  --c-navy-800: #0b1426;
  --c-navy-700: #111c36;
  --c-navy-600: #18264a;
  --c-slate-500: #2a3a5c;
  --c-slate-400: #4a5a7e;
  --c-slate-300: #8a96b0;
  --c-slate-200: #c7cfdf;
  --c-slate-100: #e8ecf4;
  --c-paper: #f4f6fa;
  --c-paper-alt: #fbfcfe;
  --c-white: #ffffff;

  --c-accent: #2e6ff2;
  --c-accent-hover: #1b54ca;
  --c-accent-soft: rgba(46, 111, 242, 0.12);

  --c-success: #3ab87a;
  --c-warning: #e2a63a;
  --c-error: #e25c5c;

  /* Typography */
  --font-display: "Switzer", "Inter", ui-sans-serif, system-ui, -apple-system,
    Segoe UI, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 1.8vw, 3rem);
  --text-hero: clamp(2.5rem, 2rem + 3.2vw, 4.75rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;

  /* Section padding */
  --section-py: clamp(4rem, 2rem + 6vw, 7rem);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Default (dark) theme */
:root,
[data-theme="dark"] {
  --bg: var(--c-navy-800);
  --bg-alt: var(--c-navy-900);
  --bg-elevated: var(--c-navy-700);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf6;
  --text-muted: #9aa4bb;
  --text-faint: #6a7595;
  --accent: var(--c-accent);
  --accent-hover: #4b85ff;
  --accent-soft: rgba(46, 111, 242, 0.14);
  --nav-bg: rgba(7, 13, 27, 0.75);
  --grid-line: rgba(255, 255, 255, 0.045);
  --grid-line-strong: rgba(46, 111, 242, 0.18);
}

[data-theme="light"] {
  --bg: #f3f5fa;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: #dde2ee;
  --border-strong: #c1c9dc;
  --text: #0b1426;
  --text-muted: #4a5a7e;
  --text-faint: #8a96b0;
  --accent: var(--c-accent);
  --accent-hover: #1b54ca;
  --accent-soft: rgba(46, 111, 242, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --grid-line: rgba(11, 20, 38, 0.06);
  --grid-line-strong: rgba(46, 111, 242, 0.2);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--accent);
  color: white;
  z-index: 100;
  border-radius: var(--r-md);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}

/* ---------- Section structure ---------- */
.section-header {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--sp-5);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.section-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.section-kicker--on-dark {
  color: #88a9ff;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--sp-5);
}

.section-lede {
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0;
  font-feature-settings: normal;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition:
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="light"] .hero .btn--outline {
  border-color: var(--c-slate-300);
  color: var(--c-slate-500);
}
[data-theme="light"] .hero .btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.8125rem;
}
.btn--lg {
  padding: 0.95rem 1.5rem;
  font-size: var(--text-md);
}
.btn--block {
  display: flex;
  width: 100%;
}

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  height: 68px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}
.nav__logo {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}
.nav__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.005em;
}
.nav__wordmark-divider {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
}
.nav__wordmark-secondary {
  color: var(--text-muted);
  font-weight: 500;
}

.nav__links {
  display: none;
  gap: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.18s var(--ease-out);
}
.nav__links a:hover {
  color: var(--text);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s var(--ease-out);
}
.nav__links a:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav__cta {
  display: none;
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.theme-toggle__icon {
  width: 16px;
  height: 16px;
}
[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}
[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}
[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}
[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

/* Mobile menu button */
.nav__menu-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.nav__menu-btn span {
  width: 14px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav__links {
    display: inline-flex;
  }
  .nav__cta {
    display: inline-flex;
  }
  .nav__menu-btn {
    display: none;
  }
}

/* Mobile open state */
.nav.is-open .nav__links {
  display: flex;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) 0;
}
.nav.is-open .nav__links a {
  padding: var(--sp-4) clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-top: 1px solid var(--border);
}
.nav.is-open .nav__links a:first-child {
  border-top: 0;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
  padding: clamp(4.5rem, 3rem + 5vw, 8rem) 0 clamp(5rem, 3rem + 5vw, 8rem);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* Background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--c-accent);
}
.hero__grid {
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 30%, transparent 75%);
  animation: heroDrift 24s linear infinite;
}
@keyframes heroDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 64px 64px, 64px 64px;
  }
}
.hero__scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--c-accent) 30%,
    var(--c-accent) 70%,
    transparent 100%
  );
  opacity: 0.4;
  filter: blur(0.5px);
  animation: heroScan 7s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes heroScan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  5% {
    opacity: 0.6;
  }
  95% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(90vh);
    opacity: 0;
  }
}
.hero__circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--c-accent);
  opacity: 0.4;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--c-success);
  box-shadow: 0 0 0 3px rgba(58, 184, 122, 0.2);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-6);
  color: var(--text);
  max-width: 18ch;
}
.hero__title-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.hero__subtitle {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 var(--sp-10);
}

.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-16);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 0;
  max-width: 720px;
}
.hero__stat {
  background: var(--bg-alt);
  padding: var(--sp-5) var(--sp-6);
}
.hero__stat dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}
.hero__stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

@media (min-width: 680px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =====================================================
   SECTORS
   ===================================================== */
.sectors {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-10) 0;
}
.sectors__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 var(--sp-6);
  text-align: center;
}
.sectors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-6);
  align-items: center;
  justify-items: center;
}
.sector {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.18s, color 0.18s;
}
.sector:hover {
  opacity: 1;
  color: var(--text);
}
.sector svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* =====================================================
   FEATURES
   ===================================================== */
.features {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  position: relative;
  background: var(--bg);
  padding: clamp(1.75rem, 1rem + 1.5vw, 2.5rem);
  transition: background 0.2s;
}
.feature:hover {
  background: var(--bg-elevated);
}
[data-theme="light"] .feature:hover {
  background: var(--c-paper-alt);
}

.feature__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}
.feature__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 var(--sp-3);
}
.feature__body {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 var(--sp-6);
}
.feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feature__meta li {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-faint);
  background: var(--surface);
}

/* =====================================================
   ARCHITECTURE
   ===================================================== */
.architecture {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  position: relative;
}
.architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.architecture .container {
  position: relative;
}

/* Diagram */
.diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  padding: var(--sp-8) 0;
  margin-bottom: var(--sp-16);
}

.diagram__node {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
}
.diagram__node::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 1px;
  height: 14px;
  background: var(--border-strong);
  transform: translateX(-50%);
}
.diagram__node:last-child::after {
  display: none;
}
.diagram__node::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  transform: translateX(-50%) translateY(-2px) rotate(45deg);
}
.diagram__node:last-child::before {
  display: none;
}

.diagram__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.diagram__icon svg {
  width: 22px;
  height: 22px;
}
.diagram__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.diagram__step {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.diagram__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text);
  letter-spacing: -0.01em;
}
.diagram__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (min-width: 900px) {
  .diagram {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    align-items: stretch;
  }
  .diagram__node {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 0;
    border-right-width: 0;
    gap: var(--sp-4);
    padding: var(--sp-6);
  }
  .diagram__node:first-child {
    border-top-left-radius: var(--r-lg);
    border-bottom-left-radius: var(--r-lg);
  }
  .diagram__node:last-child {
    border-top-right-radius: var(--r-lg);
    border-bottom-right-radius: var(--r-lg);
    border-right-width: 1px;
  }
  /* Connector arrows horizontal */
  .diagram__node::after {
    left: auto;
    right: -1px;
    bottom: 50%;
    top: 50%;
    width: 20px;
    height: 1px;
    transform: translateY(-50%);
    background: var(--border-strong);
    z-index: 1;
  }
  .diagram__node::before {
    left: auto;
    right: -6px;
    bottom: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
    border-top: 0;
    border-left: 0;
    transform: translateY(-50%) rotate(-45deg);
    z-index: 2;
  }
}

.defence-grid {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-10);
}
.defence-grid__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 var(--sp-8);
}
.defence-grid__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 760px) {
  .defence-grid__items {
    grid-template-columns: repeat(3, 1fr);
  }
}
.defence {
  border-left: 1px solid var(--border-strong);
  padding: 0 var(--sp-5);
}
.defence__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  display: block;
}
.defence__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}
.defence p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* =====================================================
   COMPLIANCE
   ===================================================== */
.compliance {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: var(--sp-8);
}
@media (min-width: 640px) {
  .badges {
    grid-template-columns: repeat(4, 1fr);
  }
}
.badge {
  background: var(--bg);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  transition: background 0.18s;
}
.badge:hover {
  background: var(--bg-elevated);
}
[data-theme="light"] .badge:hover {
  background: var(--c-paper-alt);
}
.badge__tick {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  position: relative;
  flex-shrink: 0;
}
.badge__tick::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9 L8 12 L13 6' fill='none' stroke='%232E6FF2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.compliance__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0;
  font-style: italic;
}

/* =====================================================
   PRICING
   ===================================================== */
.pricing {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.term-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  margin-bottom: var(--sp-10);
}
.term-toggle__btn {
  padding: 0.6rem 1.1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.22s var(--ease-out), color 0.22s var(--ease-out);
}
.term-toggle__btn.is-active {
  background: var(--accent);
  color: #fff;
}
.term-toggle__btn:not(.is-active):hover {
  color: var(--text);
}
.term-toggle__save {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 880px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tier {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1rem + 1.2vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, transform 0.22s var(--ease-out);
}
.tier:hover {
  border-color: var(--border-strong);
}
.tier--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 40%), var(--bg);
}
.tier--featured:hover {
  border-color: var(--accent);
}
.tier--sovereign {
  background: linear-gradient(
    180deg,
    rgba(138, 150, 176, 0.05) 0%,
    transparent 40%
  ),
    var(--bg);
}
.tier--sovereign .btn--outline {
  border-color: var(--c-slate-400);
  color: var(--text-muted);
}
.tier--sovereign .btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tier__ribbon {
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
}

.tier__header {
  margin-bottom: var(--sp-5);
}
.tier__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 0.35rem;
}
.tier__tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: var(--sp-2);
}
.tier__amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.2vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.tier__amount--custom {
  font-style: italic;
  font-weight: 500;
}
.tier__currency {
  font-size: 0.55em;
  color: var(--text-muted);
  margin-right: 0.1em;
  font-weight: 500;
}
.tier__value {
  transition: opacity 0.22s var(--ease-out);
}
.tier__value.is-animating {
  opacity: 0;
}
.tier__per {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.tier__savings {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 var(--sp-6);
  min-height: 1em;
}
.tier--featured .tier__savings {
  color: var(--accent);
}

.tier__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.tier__list li {
  position: relative;
  padding-left: 1.35rem;
}
.tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 6 L5 8 L9 4' fill='none' stroke='%232E6FF2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* =====================================================
   CTA
   ===================================================== */
.cta {
  padding: clamp(3rem, 1.5rem + 4vw, 5rem) 0 var(--section-py);
  background: var(--bg);
}
.cta__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding: clamp(2rem, 1rem + 2vw, 3.5rem);
  background: var(--c-navy-800);
  color: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-navy-600);
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 100% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black, transparent 70%);
  pointer-events: none;
}
.cta__content,
.cta__form {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0 0 var(--sp-4);
}
.cta__body {
  font-size: var(--text-md);
  line-height: 1.6;
  color: #b1bad2;
  margin: 0 0 var(--sp-6);
}
.cta__note {
  font-size: var(--text-sm);
  color: #8390ac;
  margin: 0;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8390ac;
}
.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color 0.18s, background 0.18s;
}
.field input::placeholder {
  color: #5b6782;
}
.field input:focus {
  outline: 0;
  border-color: var(--accent);
  background: rgba(46, 111, 242, 0.08);
}
.cta__form-note {
  font-size: var(--text-sm);
  color: var(--c-success);
  min-height: 1.2em;
  margin: 0;
}

@media (min-width: 880px) {
  .cta__card {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
  }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--sp-12) 0 var(--sp-8);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
}
@media (min-width: 820px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr auto;
    gap: var(--sp-12);
  }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--accent);
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.005em;
}
.footer__tagline {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 2px 0 0;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.footer__links a:hover {
  color: var(--text);
}
.footer__meta {
  text-align: left;
}
@media (min-width: 820px) {
  .footer__meta {
    text-align: right;
  }
}
.footer__mail {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text);
  letter-spacing: -0.005em;
}
.footer__mail:hover {
  color: var(--accent);
}
.footer__copyright {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin: var(--sp-3) 0 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
