/* ===== SELF-HOSTED FONTS =====
   Poppins, DM Sans and DM Mono, served from assets/fonts/ instead of Google's
   CDN. This removes a third-party DNS lookup and TLS handshake from the
   critical rendering path — which matters most on the mobile connections a
   lot of our market actually uses — and takes Google Fonts off the list of
   third parties named in our privacy policy.

   All three families are licensed under the SIL Open Font License 1.1, which
   permits self-hosting and redistribution.

   These rules are byte-identical in coverage to what Google was serving, with
   one exception: the Devanagari subsets were dropped, since this site is
   English-only. DM Sans is a variable font, so a single file per subset
   covers weights 300-500.

   To update a font later, re-download from Google Fonts and replace the file;
   the unicode-range values below should not need touching. */

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dmmono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dmmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dmmono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dmmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/dmsans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/dmsans-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:        #04080F;
  --navy:       #0A1628;
  --deep:       #0D1F3C;
  --panel:      #112240;
  --card:       #162d4a;
  --border:     rgba(0,194,255,0.15);
  --accent:     #00C2FF;
  --accent2:    #0091c2;
  --accent-hover: #33CFFF;
  --gold:       #F6AD2B;
  --green:      #22C55E;
  --red:        #EF4444;
  --white:      #FFFFFF;
  --muted:      #94A3B8;
  --light:      #CBD5E1;
  --surface:        rgba(255,255,255,0.05);
  --surface-2:      rgba(255,255,255,0.02);
  --surface-3:      rgba(255,255,255,0.03);
  --surface-border: rgba(255,255,255,0.12);
  --surface-border-2: rgba(255,255,255,0.2);
  --glass:        rgba(4,8,15,0.75);
  --glass-strong: rgba(4,8,15,0.95);
  --glass-menu:   rgba(4,8,15,0.98);
  --glass-panel:  rgba(17,34,64,0.97);
  --glass-card:   rgba(17,34,64,0.55);
  --modal-backdrop: rgba(4,8,15,0.72);
  --shadow-color: rgba(0,8,20,0.4);
  --focus-ring: rgba(0,194,255,0.55);
  --heading:    'Poppins', 'Segoe UI', Arial, sans-serif;
  --body:       'DM Sans', sans-serif;
  --mono:       'DM Mono', monospace;
  --r:          12px;

  --fs-2xs: clamp(0.7rem, 0.66rem + 0.2vw, 0.8rem);
  --fs-xs:  clamp(0.78rem, 0.72rem + 0.3vw, 0.92rem);
  --fs-sm:  clamp(0.88rem, 0.8rem + 0.35vw, 1.02rem);
  --fs-base:clamp(1rem, 0.92rem + 0.4vw, 1.15rem);
  --fs-md:  clamp(1.1rem, 0.98rem + 0.6vw, 1.32rem);
  --fs-lg:  clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem);
  --fs-xl:  clamp(1.55rem, 1.25rem + 1.5vw, 2.15rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem);
  --fs-3xl: clamp(2.3rem, 1.5rem + 3.8vw, 4.1rem);
  --fs-4xl: clamp(2.7rem, 1.5rem + 5.8vw, 5.6rem);

  /* Fluid spacing */
  --sp-section: clamp(56px, 6vw + 24px, 112px);
  --sp-gutter:  clamp(20px, 4vw + 8px, 48px);
}

:root[data-theme="light"] {
  --ink:        #F4F8FB;
  --navy:       #E9F0F6;
  --deep:       #DCE9F4;
  --panel:      #FFFFFF;
  --card:       #F1F7FB;
  --border:     rgba(0,110,160,0.18);
  /* #0089BD (the original light-mode accent) only hit 3.70:1 against this
     background -- passes for large text but fails AA (4.5:1) for the small
     text --accent is actually used for everywhere (eyebrows, nav states,
     links). Darkened to the value already proven out as the hover shade. */
  --accent:     #006D99;
  --accent2:    #006D99;
  --accent-hover: #005271;
  /* #C9810A only reached 2.97:1 on the light backgrounds -- fails AA (4.5:1)
     for the small text --gold is used for: .phase-years, .model-card-price,
     .raise-tag, .progress-badge, .compare-table .partial, form errors.
     Darkened to 5.31:1. Dark mode keeps #F6AD2B, which was already 10.44:1.
     This also darkens the decorative accent/gold gradients in light mode,
     which reads better against pale backgrounds than the old pale gold did. */
  --gold:       #8F5C07;
  --green:      #15803D;
  --red:        #DC2626;
  --white:      #0A1628;
  --muted:      #5B6B82;
  --light:      #334155;
  --surface:        rgba(10,22,40,0.035);
  --surface-2:      rgba(10,22,40,0.02);
  --surface-3:      rgba(10,22,40,0.025);
  --surface-border: rgba(10,22,40,0.14);
  --surface-border-2: rgba(10,22,40,0.18);
  --glass:        rgba(244,248,251,0.78);
  --glass-strong: rgba(244,248,251,0.95);
  --glass-menu:   rgba(244,248,251,0.98);
  --glass-panel:  rgba(255,255,255,0.97);
  --glass-card:   rgba(255,255,255,0.62);
  --modal-backdrop: rgba(10,22,40,0.55);
  --shadow-color: rgba(10,30,55,0.14);
  --focus-ring: rgba(0,109,153,0.45);
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 1.2s;
  animation-timing-function: ease-in-out;
}
::view-transition-old(root) { animation-name: theme-fade-out; }
::view-transition-new(root) { animation-name: theme-fade-in; }
@keyframes theme-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes theme-fade-in  { from { opacity: 0; } to { opacity: 1; } }

@keyframes themeIconFlip {
  0%   { transform: rotate(0deg) scale(1); opacity: 1; }
  45%  { transform: rotate(180deg) scale(0.3); opacity: 0; }
  55%  { transform: rotate(180deg) scale(0.3); opacity: 0; }
  100% { transform: rotate(360deg) scale(1); opacity: 1; }
}
.theme-toggle span, .theme-toggle-mobile span:first-child { display: inline-block; }
.theme-icon-flip { animation: themeIconFlip 0.6s ease; }

[data-theme="light"] .cursor { mix-blend-mode: difference; }
[data-theme="light"] .cursor-ring { mix-blend-mode: difference; border-color: rgba(10,22,40,0.4); }
[data-theme="light"] .hero-headline .accent {
  background-image: linear-gradient(100deg, var(--accent) 0%, #00A8D6 35%, var(--gold) 65%, var(--accent) 100%);
}
[data-theme="light"] .hero-aurora { opacity: 0.6; }
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(0,137,189,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201,129,10,0.05) 0%, transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--navy) 50%, var(--deep) 100%);
}
[data-theme="light"] .stat-number {
  background: linear-gradient(135deg, var(--white), var(--accent-hover));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }

/* Keyboard-only focus ring, consistent across every interactive element.
   :focus-visible (not :focus) so mouse/touch clicks don't get an unwanted
   ring -- only keyboard/programmatic focus does. cursor:none removes the
   native pointer site-wide, so this is the only visible way a keyboard user
   can tell what's focused; it has to be reliable everywhere, not just on
   the form fields that happened to get their own focus styling. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link: hidden until focused, so the first Tab press on any page lets
   keyboard/screen-reader users jump straight past the nav to the content. */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 12000;
  background: var(--accent); color: var(--ink);
  font-family: var(--body); font-weight: 700; font-size: var(--fs-sm);
  padding: 10px 18px; border-radius: 8px; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

body {
  font-family: var(--body);
  font-size: var(--fs-base);
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  overflow-wrap: break-word;
  word-break: break-word;
}
@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; }
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 2px; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 12px 1px rgba(0,194,255,0.6);
  z-index: 11500; transition: width 0.1s linear;
}

/* The cursor represents the pointer itself, so it must out-rank every other
   layer on the page or it visually disappears under whatever overlay is on
   top -- while cursor:none hides the native pointer too, leaving no cursor
   visible at all. (It was sitting below .scroll-progress at 11500.) */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 20000;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 19999;
  transform: translate(-50%,-50%);
  opacity: 0.5;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}
@media (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-gutter); height: 72px;
  padding-left: max(var(--sp-gutter), env(safe-area-inset-left));
  padding-right: max(var(--sp-gutter), env(safe-area-inset-right));
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: height 0.3s ease, background 0.3s ease;
}
nav.scrolled { height: 60px; background: var(--glass-strong); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: none; }
.nav-logo-mark { width: 36px; height: 36px; }
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-name { font-family: var(--heading); font-size: var(--fs-lg); font-weight: 800; color: var(--white); letter-spacing: -0.02em; white-space: nowrap; }
.nav-logo-name span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; flex-wrap: nowrap; }
.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-links a {
  position: relative;
  font-family: var(--body); font-size: var(--fs-sm); font-weight: 500;
  color: var(--muted); text-decoration: none;
  padding: 8px 10px; border-radius: 6px; white-space: nowrap;
  transition: color 0.2s, background 0.2s; cursor: none;
}
.nav-links a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { background: rgba(0,194,255,0.1); color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--accent) !important; color: var(--ink) !important;
  font-weight: 700 !important; border-radius: 6px !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--glass-menu); backdrop-filter: blur(20px);
  padding: 32px; gap: 8px; z-index: 999;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--heading); font-size: var(--fs-xl); font-weight: 700;
  color: var(--light); text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--border); cursor: none;
  opacity: 0; transform: translateX(24px);
}
.mobile-menu.open a { animation: slideInRight 0.45s ease forwards; }
.mobile-menu.open a:nth-child(1) { animation-delay: 0.04s; }
.mobile-menu.open a:nth-child(2) { animation-delay: 0.08s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.12s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.16s; }
.mobile-menu.open a:nth-child(5) { animation-delay: 0.20s; }
.mobile-menu.open a:nth-child(6) { animation-delay: 0.24s; }
.mobile-menu a.mobile-cta { border-bottom: none; color: var(--accent); }

@media (max-width: 1080px) {
  nav { padding: 0 24px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

main { display: block; min-height: 100vh; min-height: 100dvh; padding-top: 72px; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink  { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes auroraDrift {
  0%   { transform: translate(-4%, -2%) scale(1); }
  50%  { transform: translate(4%, 3%) scale(1.12); }
  100% { transform: translate(-4%, -2%) scale(1); }
}
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pageFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageFadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }
@keyframes shineSweep { from { transform: translateX(-130%) skewX(-20deg); } to { transform: translateX(230%) skewX(-20deg); } }
@keyframes popIn { 0% { transform: scale(0.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes borderSpin { to { --angle: 360deg; } }
@keyframes arrowPulse { 0%,100% { transform: translateX(0); opacity: 0.7; } 50% { transform: translateX(6px); opacity: 1; } }
@keyframes arrowPulseV { 0%,100% { transform: rotate(90deg) translateY(0); opacity: 0.7; } 50% { transform: rotate(90deg) translateY(6px); opacity: 1; } }
@keyframes barGrow { from { width: 0; } }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmerSweep { from { transform: translateX(-40%) skewX(-20deg); } to { transform: translateX(430%) skewX(-20deg); } }

main.page-enter { animation: pageFade 0.6s ease both; }
main.page-leave { animation: pageFadeOut 0.28s ease forwards; }

/* Cards: spotlight follow + animated gradient-border sweep on hover */
.tilt-card {
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.35s, box-shadow 0.35s;
}
.tilt-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,194,255,0.14), transparent 55%);
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.tilt-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle,0deg), transparent 0%, var(--accent) 15%, transparent 32%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
  animation: borderSpin 3.5s linear infinite;
  animation-play-state: paused;
}
.tilt-card > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .tilt-card:hover::before { opacity: 1; }
  .tilt-card:hover::after { opacity: 1; animation-play-state: running; }
  .tilt-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,8,20,0.4); }
}

/* Scroll reveal — fades, rises, un-blurs and settles into place; stagger delay
   is assigned per-element by main.js so grids cascade automatically. */
.reveal {
  opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(6px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1), filter 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

.section-wrap { padding: var(--sp-section) var(--sp-gutter); max-width: 1100px; margin: 0 auto; }
.section-wrap-wide { padding: var(--sp-section) var(--sp-gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--accent); }
.section-title {
  font-family: var(--heading); font-size: var(--fs-3xl);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.section-sub { font-size: var(--fs-md); font-weight: 300; line-height: 1.7; color: var(--light); max-width: 560px; margin-bottom: 48px; }
.section-sub.wide { max-width: 720px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--ink);
  font-family: var(--body); font-size: var(--fs-base); font-weight: 700;
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none; border: none; cursor: none;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: -50%; left: -130%; width: 50%; height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  pointer-events: none;
}
.btn-primary:hover::before { animation: shineSweep 0.9s ease; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,194,255,0.3); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-family: var(--body); font-size: var(--fs-base); font-weight: 500;
  padding: 13px 28px; border-radius: 8px;
  text-decoration: none; border: 1px solid var(--surface-border-2); cursor: none;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* COOKIES */
.cookie-banner {
  position: fixed; z-index: 10010;
  left: max(24px, env(safe-area-inset-left));
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  background: var(--glass-panel);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
  animation: slideUpFade 0.6s ease both;
}
.cookie-banner p { flex: 1 1 260px; font-size: var(--fs-sm); line-height: 1.6; color: var(--white); margin: 0; }
.cookie-banner button {
  background: var(--accent); color: var(--ink); border: none; border-radius: 10px;
  padding: 12px 20px; font-family: var(--body); font-weight: 700; cursor: none;
  transition: background 0.2s, transform 0.2s;
}
.cookie-banner button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Accept and Decline carry equal visual weight. */
.cookie-banner button.cookie-decline { background: var(--accent); color: var(--ink); }

/* THEME SELECTOR */
.theme-modal {
  position: fixed; inset: 0; z-index: 10100;
  display: none; align-items: center; justify-content: center;
  background: var(--modal-backdrop);
  backdrop-filter: blur(14px);
  padding: 24px; overflow-y: auto;
}
.theme-modal.visible { display: flex; animation: fadeIn 0.4s ease; }
.theme-modal.hiding { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.theme-modal-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px 40px; max-width: 460px; width: 100%;
  text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  animation: popIn 0.5s ease;
  margin: auto;
}
.theme-modal-icon { font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-family: var(--mono); margin-bottom: 16px; }
.theme-modal-card h2 { font-family: var(--heading); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--white); }
.theme-modal-card p { font-size: var(--fs-base); color: var(--muted); line-height: 1.6; margin-bottom: 32px; }
.theme-modal-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.theme-option {
  background: var(--navy); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 16px; cursor: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s, box-shadow 0.25s;
  color: var(--white); font-family: var(--body);
}
.theme-option:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,0.2); }
.theme-option-icon { font-size: var(--fs-3xl); line-height: 1; }
.theme-option-label { font-family: var(--heading); font-weight: 700; font-size: var(--fs-base); margin-top: 4px; }
.theme-option-desc { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 420px) {
  .theme-modal-card { padding: 32px 20px; border-radius: 16px; }
  .theme-option { padding: 20px 10px; }
}

.theme-toggle {
  background: var(--surface); border: 1px solid var(--surface-border);
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-base); cursor: none;
  transition: border-color 0.25s, transform 0.4s ease, background 0.25s;
  color: var(--white);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle-mobile {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  margin-top: 12px; padding: 14px 0;
  font-family: var(--heading); font-size: var(--fs-lg); font-weight: 700;
  color: var(--accent); cursor: none; background: none; border: none;
  opacity: 0; transform: translateX(24px);
}
.mobile-menu.open .theme-toggle-mobile { animation: slideInRight 0.45s ease forwards; animation-delay: 0.28s; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--surface-border);
  height: 38px; padding: 0 12px; border-radius: 19px; flex-shrink: 0;
  font-family: var(--body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
  color: var(--white); cursor: none;
  transition: border-color 0.25s, background 0.25s;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-menu {
  display: none; flex-direction: column;
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; min-width: 150px; z-index: 1001;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.lang-menu.open { display: flex; }
.lang-option {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; border: none; background: none;
  font-family: var(--body); font-size: var(--fs-sm); color: var(--muted);
  cursor: none; transition: background 0.15s, color 0.15s;
}
.lang-option:hover { background: var(--surface); color: var(--white); }
.lang-option.active { color: var(--accent); font-weight: 600; }

.lang-switch-mobile { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.lang-switch-mobile-label {
  display: block; font-family: var(--body); font-size: var(--fs-xs); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.lang-options-mobile { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-options-mobile .lang-option {
  width: auto; padding: 8px 14px; border: 1px solid var(--surface-border); border-radius: 8px;
}
.lang-options-mobile .lang-option.active { border-color: var(--accent); }

footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 60px var(--sp-gutter) 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand-name { font-family: var(--heading); font-size: var(--fs-xl); font-weight: 800; margin-bottom: 0px; }
.footer-brand-name span { color: var(--accent); }
.footer-tagline { font-size: var(--fs-sm); color: var(--accent); line-height: 1.6; max-width: 280px; margin-bottom: 20px; }
.footer-links-title { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: var(--fs-sm); color: var(--light); text-decoration: none; cursor: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-email { font-size: var(--fs-sm); color: var(--light); text-decoration: none; cursor: none; transition: color 0.2s; overflow-wrap: anywhere; }
.footer-email:hover { color: var(--accent); }
.footer-copy {
  background: var(--navy); border-top: 1px solid var(--border);
  padding: 20px var(--sp-gutter);
  text-align: center; font-size: var(--fs-xs); color: var(--muted);
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}

@media (max-width: 1000px) {
  footer { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  footer { grid-template-columns: repeat(2, 1fr); padding: 48px 24px 32px; gap: 32px; }
  .footer-copy { padding: 16px 24px; gap: 8px; flex-direction: column; }
}
@media (max-width: 420px) {
  footer { grid-template-columns: 1fr; }
}

/* ===== HOME PAGE ===== */
.hero {
  min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px);
  display: flex; align-items: center;
  padding: clamp(48px, 8vw, 80px) var(--sp-gutter); position: relative; overflow: hidden; isolation: isolate;
}
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(24px, 5vw, 64px); width: 100%; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(0,194,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(246,173,43,0.04) 0%, transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--navy) 50%, var(--deep) 100%);
}
.hero-aurora {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 25% 30%, rgba(0,194,255,0.16), transparent 42%),
    radial-gradient(circle at 78% 65%, rgba(246,173,43,0.10), transparent 45%);
  filter: blur(60px);
  animation: auroraDrift 16s ease-in-out infinite;
  will-change: transform;
}
@media (max-width: 900px) { .hero-aurora { filter: blur(32px); } }
/* .hero-grid itself carries the JS scroll-parallax translateY (see
   initParallax in main.js) and nothing else — the actual pattern + drift
   live on ::before instead. Splitting them across two elements means each
   has exactly one thing driving its `transform`, and the drift animates
   `transform` (GPU-composited) rather than `background-position`. */
.hero-grid { position: absolute; inset: -20%; z-index: 0; }
.hero-grid::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(30deg, rgba(0,194,255,0.14) 1px, transparent 1px),
    linear-gradient(150deg, rgba(0,194,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,255,0.08) 1px, transparent 1px);
  background-size: 52px 90px, 52px 90px, 52px 90px;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 30%, transparent 82%);
  animation: bgGridDrift 40s linear infinite;
}
.hero .glow-particles, .product-hero .glow-particles { z-index: 1; }
.hero-scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.25; z-index: 1;
  animation: scan 10s linear infinite;
}
.hero-content { max-width: 660px; flex: 1 1 460px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(0,194,255,0.08); border: 1px solid rgba(0,194,255,0.2);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 1.5s infinite; }
.hero-headline {
  font-family: var(--heading); font-size: var(--fs-4xl);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 20px; animation: fadeUp 0.8s 0.15s ease both;
}
.hero-headline .accent {
  background: linear-gradient(100deg, var(--accent) 0%, #7CE9FF 35%, var(--gold) 65%, var(--accent) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientShift 7s ease infinite;
}
.hero-headline .gold { color: var(--gold); }
.hero-sub { font-size: var(--fs-lg); font-weight: 300; line-height: 1.6; color: var(--light); max-width: 540px; margin-bottom: 40px; animation: fadeUp 0.8s 0.3s ease both; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.8s 0.45s ease both; }
.hero-trust { margin-top: 48px; animation: fadeIn 1s 0.7s ease both; }
.hero-trust-label { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 12px; display: block; }
.ticker { overflow: hidden; max-width: 480px; -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.ticker-track { display: flex; gap: 10px; width: max-content; animation: tickerScroll 16s linear infinite; }
.trust-badge {
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--light);
  background: var(--surface); border: 1px solid var(--surface-border);
  padding: 5px 12px; border-radius: 100px; letter-spacing: 0.05em; white-space: nowrap;
}

/* Home hero status panel (replaces the empty right column) */
.status-panel {
  flex: 0 0 auto; width: clamp(240px, 24vw, 300px);
  background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 18px; padding: 24px;
  animation: fadeUp 0.9s 0.5s ease both, float 7s 1.4s ease-in-out infinite;
  box-shadow: 0 30px 70px rgba(0,8,20,0.35);
}
.status-panel-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px 2px rgba(34,197,94,0.6); animation: blink 1.8s infinite; }
.status-row { margin-bottom: 16px; }
.status-row span { display: block; font-size: var(--fs-xs); color: var(--light); margin-bottom: 6px; }
.status-bar { height: 6px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.status-bar i { display: block; height: 100%; border-radius: 100px; width: var(--w, 0%); background: linear-gradient(90deg, var(--accent), var(--gold)); animation: barGrow 1.6s 0.6s cubic-bezier(.16,.84,.44,1) both; }
.status-readout { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: baseline; justify-content: space-between; }
.status-readout span { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.status-readout strong { font-family: var(--heading); font-size: var(--fs-lg); color: var(--accent); }
.status-readout strong small { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; align-items: stretch; }
  .status-panel { width: 100%; max-width: 340px; align-self: center; }
}

/* Stats Strip */
.stats-strip { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); animation: fadeIn 1s 0.65s ease both; }
.stat-item { padding: clamp(28px,4vw,36px) var(--sp-gutter); border-right: 1px solid var(--border); position: relative; overflow: hidden; }
.stat-item:last-child { border-right: none; }
.stat-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; }
.stat-item:hover::before { opacity: 1; }
.stat-number { font-family: var(--heading); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.01em; background: linear-gradient(135deg, var(--white), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* Who It's For */
.audience-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 56px; }
.audience-card {
  background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden;
}
.audience-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; }
.audience-card:hover { border-color: rgba(0,194,255,0.4); transform: translateY(-3px); }
.audience-card:hover::after { opacity: 1; }
.audience-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.audience-index { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.1em; }
.audience-icon { font-size: var(--fs-2xl); display: block; }
.audience-title { font-family: var(--heading); font-size: var(--fs-lg); font-weight: 700; margin-bottom: 10px; }
.audience-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.audience-bullets { display: flex; flex-direction: column; gap: 8px; }
.audience-bullet { font-size: var(--fs-sm); color: var(--light); padding-left: 16px; position: relative; line-height: 1.5; }
.audience-bullet::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* How It Works (brief) */
.hiw-bg { background: var(--navy); }
.hiw-flow { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; margin-top: 56px; }
.hiw-card { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--r); padding: 32px 28px; }
.hiw-step { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.1em; margin-bottom: 14px; display: block; }
.hiw-title { font-family: var(--heading); font-size: var(--fs-md); font-weight: 700; margin-bottom: 10px; }
.hiw-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.hiw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: var(--fs-xs); padding: 3px 10px; background: rgba(0,194,255,0.08); border: 1px solid rgba(0,194,255,0.18); border-radius: 100px; color: var(--light); }
.hiw-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: var(--fs-xl); animation: arrowPulse 1.8s ease-in-out infinite; }

/* Early Access Strip */
.early-strip { background: linear-gradient(135deg, rgba(0,194,255,0.08), rgba(246,173,43,0.05)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(40px,6vw,56px) var(--sp-gutter); text-align: center; position: relative; overflow: hidden; }
.early-strip h2 { font-family: var(--heading); font-size: var(--fs-2xl); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; }
.early-strip p { font-size: var(--fs-base); color: var(--light); max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }
.early-perks { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.early-perk { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--light); }
.early-perk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* quote strip */
.quote-strip { background: var(--deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(48px,7vw,72px) var(--sp-gutter); text-align: center; position: relative; overflow: hidden; }
.quote-text { font-family: var(--heading); font-size: var(--fs-xl); font-weight: 700; line-height: 1.32; letter-spacing: -0.01em; max-width: 760px; margin: 0 auto 20px; color: var(--white); }
.quote-text span { color: var(--accent); }
.quote-attr { font-size: var(--fs-sm); color: var(--muted); }

/* Reusable ambient glow layer for section backgrounds beyond the hero */
.section-glow {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 20% 25%, rgba(0,194,255,0.11), transparent 45%), radial-gradient(circle at 80% 75%, rgba(246,173,43,0.08), transparent 45%);
  filter: blur(70px); animation: auroraDrift 18s ease-in-out infinite;
}
@media (max-width: 900px) { .section-glow { filter: blur(38px); } }

/* Every band of the page — not just the hero — carries the same futuristic
   ambient system: a drifting hex lattice, a slow tinted gradient, rising
   glow particles and a scanning sweep line, so the background stays alive
   everywhere instead of sitting on flat, static colour. */
/* isolation:isolate is load-bearing: without it, .glow-host's negative-z-index
   children have no stacking context of their own to paint within, so they
   escape to the document root and end up rendered behind *other* sections'
   opaque backgrounds instead of their own — reading as a blank background
   until you scroll to a gap where they happen to show through. */
.glow-host { position: relative; overflow: hidden; isolation: isolate; }
.glow-host::before {
  content: '';
  position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(30deg, rgba(0,194,255,0.14) 1px, transparent 1px),
    linear-gradient(150deg, rgba(0,194,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,255,0.09) 1px, transparent 1px);
  background-size: 52px 90px, 52px 90px, 52px 90px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, black 35%, transparent 90%);
  animation: bgGridDrift 40s linear infinite;
}
/* Static gradient, no animation: these bands are large (full-width section
   backgrounds, repeated on every page), so an animated background-position
   here would be a non-composited repaint of a big area on every frame.
   glow-host's own grid-drift and aurora-glow layers (both transform-based)
   already carry the ambient motion for these sections. */
.bg-ink  { background: linear-gradient(120deg, var(--ink) 0%, var(--navy) 45%, var(--deep) 75%, var(--ink) 100%); }
.bg-navy { background: linear-gradient(120deg, var(--navy) 0%, var(--deep) 45%, var(--card) 75%, var(--navy) 100%); }
@keyframes bgGridDrift { from { transform: translate(0,0); } to { transform: translate(52px, 90px); } }

/* Sweeping scan line, one full pass every loop */
.glow-scan {
  position: absolute; left: 0; right: 0; top: 0%; height: 2px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,194,255,0.6), rgba(246,173,43,0.35), transparent);
  animation: glowScanMove 8s ease-in-out infinite;
}

/* Rising glow particles — a sparse field of embers drifting upward */
.glow-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow-particles span {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px 2px rgba(0,194,255,0.7);
  opacity: 0; animation: particleDrift linear infinite;
}
.glow-particles span:nth-child(1) { left: 6%;  animation-duration: 9s;  animation-delay: 0s; }
.glow-particles span:nth-child(2) { left: 18%; animation-duration: 11s; animation-delay: 1.4s; }
.glow-particles span:nth-child(3) { left: 30%; animation-duration: 8.5s; animation-delay: 2.6s; background: var(--gold); box-shadow: 0 0 8px 2px rgba(246,173,43,0.6); }
.glow-particles span:nth-child(4) { left: 44%; animation-duration: 12s; animation-delay: 0.6s; }
.glow-particles span:nth-child(5) { left: 58%; animation-duration: 9.5s; animation-delay: 3.2s; }
.glow-particles span:nth-child(6) { left: 70%; animation-duration: 10.5s; animation-delay: 1.8s; background: var(--gold); box-shadow: 0 0 8px 2px rgba(246,173,43,0.6); }
.glow-particles span:nth-child(7) { left: 83%; animation-duration: 8.8s; animation-delay: 2.2s; }
.glow-particles span:nth-child(8) { left: 93%; animation-duration: 11.5s; animation-delay: 4s; }
@keyframes particleDrift {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-260px) scale(1); opacity: 0; }
}
@keyframes glowScanMove { 0% { top: 0%; opacity: 0; } 10% { opacity: 0.9; } 90% { opacity: 0.5; } 100% { top: 100%; opacity: 0; } }

/* Fixed viewfinder-style corner frame, persistent across the whole site */
.hud-frame { position: fixed; inset: 14px; z-index: 500; pointer-events: none; }
.hud-frame span {
  position: absolute; width: 22px; height: 22px; border-color: rgba(0,194,255,0.4);
  animation: hudFramePulse 4.5s ease-in-out infinite;
}
.hud-frame-tl { top: 0; left: 0; border-top: 1.5px solid; border-left: 1.5px solid; }
.hud-frame-tr { top: 0; right: 0; border-top: 1.5px solid; border-right: 1.5px solid; animation-delay: 1.1s; }
.hud-frame-bl { bottom: 0; left: 0; border-bottom: 1.5px solid; border-left: 1.5px solid; animation-delay: 2.2s; }
.hud-frame-br { bottom: 0; right: 0; border-bottom: 1.5px solid; border-right: 1.5px solid; animation-delay: 3.3s; }
@keyframes hudFramePulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.85; } }
@media (max-width: 700px) { .hud-frame { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .glow-host::before, .bg-ink, .bg-navy, .section-glow, .glow-scan, .glow-particles span, .hud-frame span { animation: none; }
}

/* ===== Intersection scene (how-it-works hero) =====
   Top-down view: our car approaches an intersection while a second car runs
   the red light on the cross street. A collision reads as inevitable, then
   our car swerves around it at the last moment and continues on, on loop.
   Both vehicles move via native SVG motion-path animation (constant speed
   along arc length), timed on a shared duration so their paths cross near
   the same moment — that's what sells the near-miss. */
.product-hero { padding: clamp(48px,8vw,80px) var(--sp-gutter) clamp(40px,6vw,64px); background: linear-gradient(135deg, var(--ink) 0%, var(--deep) 60%, var(--navy) 100%); position: relative; overflow: hidden; }
.product-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(32px,6vw,64px); flex-wrap: wrap; }
.product-hero-content { max-width: 700px; flex: 1 1 440px; }
@media (max-width: 900px) { .product-hero-inner { flex-direction: column-reverse; gap: 40px; } }

.scene { position: relative; width: clamp(240px, 25vw, 340px); aspect-ratio: 1; flex-shrink: 0; }
.scene-svg { width: 100%; height: 100%; overflow: visible; }
.scene-road { fill: var(--surface-3); }
.scene-lane { stroke: rgba(148,163,184,0.4); stroke-width: 2.5; stroke-dasharray: 9 11; fill: none; animation: evadeLaneDash 1s linear infinite; }
.scene-path-hidden { fill: none; stroke: none; }
.scene-signal { }
.scene-signal-red { fill: var(--red); filter: drop-shadow(0 0 4px rgba(239,68,68,0.8)); animation: blink 1.3s infinite; }
.scene-signal-green { fill: var(--green); filter: drop-shadow(0 0 3px rgba(34,197,94,0.6)); }
.scene-impact {
  fill: rgba(239,68,68,0.32); opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: sceneImpact 6s ease-in-out infinite;
}
.scene-car { }
.scene-car-main { fill: var(--accent); filter: drop-shadow(0 0 9px rgba(0,194,255,0.75)); }
.scene-car-threat { fill: var(--red); filter: drop-shadow(0 0 7px rgba(239,68,68,0.6)); }
.evade-tag {
  position: absolute;
  font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: 0.06em;
  background: var(--glass-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.evade-tag-threat { color: var(--red); }
.evade-tag-safe { color: var(--green); }
.scene-flash { animation: sceneFlash 6s ease-in-out infinite; }
.scene-safe  { animation: sceneSafe 6s ease-in-out infinite; }
@keyframes evadeLaneDash { to { stroke-dashoffset: -20; } }
@keyframes sceneImpact { 0%,40%,58%,100% { opacity: 0; transform: scale(0.6); } 49%,52% { opacity: 1; transform: scale(1.2); } }
@keyframes sceneFlash { 0%,36%,60%,100% { opacity: 0; } 44%,54% { opacity: 1; } }
@keyframes sceneSafe { 0%,62% { opacity: 0; } 70%,94% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 900px) { .scene { width: clamp(220px, 60vw, 300px); margin: 0 auto; } }

.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px; }
.feat-card {
  background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px; transition: border-color 0.3s, transform 0.3s;
}
.feat-card.span-2 { grid-column: span 2; }
.feat-card:hover { border-color: rgba(0,194,255,0.4); transform: translateY(-3px); }
.feat-icon { font-size: var(--fs-xl); margin-bottom: 16px; display: block; }
.feat-title { font-family: var(--heading); font-size: var(--fs-md); font-weight: 700; margin-bottom: 8px; }
.feat-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.65; }
@media (max-width: 900px) { .feat-card.span-2 { grid-column: span 1; } }

.arch-diagram { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 16px; padding: 40px; max-width: 900px; margin: 0 auto; }
.arch-title { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 32px; text-align: center; }
.arch-flow { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr; align-items: center; }
.arch-layer { background: var(--surface-3); border: 1px solid var(--border); border-radius: 10px; padding: 24px 20px; }
.arch-layer-label { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.arch-layer-title { font-family: var(--heading); font-size: var(--fs-base); font-weight: 700; margin-bottom: 14px; }
.arch-items { display: flex; flex-direction: column; gap: 6px; }
.arch-item { font-size: var(--fs-xs); color: var(--muted); padding-left: 12px; position: relative; }
.arch-item::before { content: ''; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.arch-arrow-v { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: var(--fs-xl); animation: arrowPulse 1.8s ease-in-out infinite; }

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 48px; border-radius: var(--r); }
.table-scroll .compare-table { margin-top: 0; }
.compare-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.compare-table th { background: var(--panel); padding: 16px 20px; font-family: var(--heading); font-size: var(--fs-sm); font-weight: 700; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th.highlight { color: var(--accent); }
.compare-table td { padding: 14px 20px; font-size: var(--fs-sm); border-bottom: 1px solid var(--border); color: var(--light); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--surface-2); }
.compare-table .yes { color: var(--green); font-weight: 600; }
.compare-table .no { color: var(--red); }
.compare-table .partial { color: var(--gold); }

/* ===== USE CASES PAGE ===== */
.cases-hero { padding: clamp(56px,8vw,80px) var(--sp-gutter) clamp(40px,6vw,64px); background: linear-gradient(160deg, var(--deep) 0%, var(--navy) 100%); position: relative; overflow: hidden; }
.cases-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; margin-top: 56px; }
.case-card { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.case-card:hover { border-color: rgba(0,194,255,0.4); transform: translateY(-3px); }
.case-card-header {
  padding: 28px 28px 22px; border-bottom: 1px solid var(--border);
  background: linear-gradient(120deg, var(--deep) 0%, var(--card) 50%, var(--deep) 100%);
  display: flex; align-items: flex-start; gap: 16px;
  position: relative; overflow: hidden;
}
/* A sweeping highlight band (transform, GPU-composited) standing in for the
   old background-position shimmer, which repainted every frame. */
.case-card-header::before {
  content: ''; position: absolute; top: -50%; left: -20%; width: 30%; height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmerSweep 7s ease-in-out infinite; pointer-events: none;
}
.case-icon { font-size: var(--fs-2xl); flex-shrink: 0; }
.case-title { font-family: var(--heading); font-size: var(--fs-lg); font-weight: 700; margin-bottom: 6px; }
.case-subtitle { font-size: var(--fs-sm); color: var(--muted); }
.case-body { padding: 24px 28px; }
.case-problem { font-size: var(--fs-sm); color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.case-gains { display: flex; flex-direction: column; gap: 12px; }
.case-gain { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: rgba(0,194,255,0.04); border: 1px solid rgba(0,194,255,0.1); border-radius: 8px; }
.case-gain-icon { font-size: var(--fs-base); flex-shrink: 0; }
.case-gain-text { font-size: var(--fs-sm); color: var(--light); line-height: 1.5; }
.case-gain-text strong { display: block; font-size: var(--fs-xs); margin-bottom: 2px; font-family: var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }

.cost-breakdown { background: var(--navy); padding: var(--sp-section) var(--sp-gutter); position: relative; overflow: hidden; }
.cost-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-top: 56px; }
.cost-item { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 32px 24px; text-align: center; }
.cost-num { font-family: var(--heading); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.01em; background: linear-gradient(135deg, var(--gold), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cost-label { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ===== ABOUT PAGE ===== */
.about-hero { padding: clamp(56px,8vw,80px) var(--sp-gutter) clamp(40px,6vw,64px); background: linear-gradient(135deg, var(--deep) 0%, var(--navy) 100%); position: relative; overflow: hidden; }
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 56px; }
/* Centers gracefully with a single card; reverts to the 2-up grid on its own
   the moment a second card is added back. */
.team-grid:has(.team-card:only-child) { grid-template-columns: minmax(0, 380px); justify-content: center; }
.team-card { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.team-card:hover { border-color: rgba(0,194,255,0.4); transform: translateY(-4px); }
.team-avatar-wrap { display: flex; justify-content: center; padding: 32px 26px 0; }
.team-avatar {
  width: 136px; height: 136px; border-radius: 50%; overflow: hidden;
  background: var(--panel); border: 3px solid rgba(0,194,255,0.35);
  box-shadow: 0 0 0 8px rgba(0,194,255,0.06), 0 12px 28px rgba(0,8,20,0.4);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card-body { padding: 20px 26px 26px; text-align: center; }
.team-name { font-family: var(--heading); font-size: var(--fs-lg); font-weight: 700; margin-bottom: 4px; }
.team-role { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.08em; margin-bottom: 14px; }
.team-bio { font-size: var(--fs-sm); color: var(--muted); line-height: 1.65; }
.team-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.skill-tag { font-size: var(--fs-xs); padding: 3px 10px; background: rgba(0,194,255,0.07); border: 1px solid rgba(0,194,255,0.15); border-radius: 100px; color: var(--light); }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px; }
.val-card { padding: 30px; background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--r); text-align: center; transition: border-color 0.3s, transform 0.3s; }
.val-card:hover { border-color: rgba(0,194,255,0.4); transform: translateY(-3px); }
.val-icon { font-size: var(--fs-2xl); margin-bottom: 14px; display: block; transition: transform 0.4s ease; }
.val-card:hover .val-icon { transform: rotate(-8deg) scale(1.1); }
.val-name { font-family: var(--heading); font-size: var(--fs-base); font-weight: 700; margin-bottom: 8px; }
.val-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

/* ===== INVESTORS PAGE ===== */
.inv-hero { padding: clamp(56px,8vw,80px) var(--sp-gutter) clamp(40px,6vw,64px); background: linear-gradient(160deg, var(--ink) 0%, var(--deep) 60%, var(--navy) 100%); position: relative; overflow: hidden; }
.inv-hero::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

.inv-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 56px; }
.inv-metric { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--r); padding: 26px 20px; text-align: center; }
.inv-metric-num { font-family: var(--heading); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.01em; color: var(--accent); }
.inv-metric-label { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; line-height: 1.5; }
.inv-metric-src { font-size: var(--fs-2xs); color: var(--muted); margin-top: 4px; opacity: 0.75; }

.roadmap { position: relative; margin-top: 56px; }
.roadmap-line { position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.roadmap-line-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--gold)); animation: barGrow 2s 0.3s cubic-bezier(.16,.84,.44,1) both; }
.roadmap-phases { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.phase-card { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 22px; }
.phase-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--navy), 0 0 12px 2px rgba(0,194,255,0.6); margin-bottom: 14px; }
.phase-num { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.phase-years { font-family: var(--heading); font-size: var(--fs-base); font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.phase-title { font-family: var(--heading); font-size: var(--fs-base); font-weight: 700; margin-bottom: 12px; }
.phase-points { display: flex; flex-direction: column; gap: 8px; }
.phase-point { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; padding-left: 14px; position: relative; }
.phase-point::before { content: ''; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.raise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; align-items: start; }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.model-card { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--r); padding: 30px; }
.model-card-title { font-family: var(--heading); font-size: var(--fs-md); font-weight: 700; margin-bottom: 6px; }
.model-card-price { font-family: var(--mono); font-size: var(--fs-sm); color: var(--gold); margin-bottom: 10px; }
.model-card-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

.gap-box { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(0,194,255,0.25); border-radius: 16px; padding: 44px; margin-top: 60px; text-align: center; position: relative; overflow: hidden; }
.gap-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,194,255,0.04), transparent 70%); }
.gap-box h3 { font-family: var(--heading); font-size: var(--fs-xl); font-weight: 800; margin-bottom: 12px; position: relative; }
.gap-box p { font-size: var(--fs-base); color: var(--light); line-height: 1.7; max-width: 600px; margin: 0 auto 28px; position: relative; }

.deck-gate { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(0,194,255,0.25); border-radius: 16px; padding: 52px var(--sp-gutter); text-align: center; margin-top: 80px; position: relative; overflow: hidden; }
.deck-gate::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,194,255,0.04), transparent 70%); }
.deck-gate-title { font-family: var(--heading); font-size: var(--fs-2xl); font-weight: 800; margin-bottom: 12px; position: relative; }
.deck-gate-sub { font-size: var(--fs-base); color: var(--light); margin-bottom: 36px; position: relative; }

/* ===== CONTACT / WAITLIST PAGE ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; padding: var(--sp-section) var(--sp-gutter); min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); }
.contact-info-title { font-family: var(--heading); font-size: var(--fs-3xl); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 16px; }
.contact-info-sub { font-size: var(--fs-base); color: var(--light); line-height: 1.7; margin-bottom: 36px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-icon { width: 40px; height: 40px; background: rgba(0,194,255,0.1); border: 1px solid rgba(0,194,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: var(--fs-lg); flex-shrink: 0; }
.contact-item-label { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.contact-item-value { font-size: var(--fs-base); color: var(--light); }
.contact-item-value a { color: var(--light); text-decoration: none; cursor: none; }
.contact-item-value a:hover { color: var(--accent); }

.waitlist-perks { display: flex; flex-direction: column; gap: 12px; }
.waitlist-perk { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15); border-radius: 10px; }
.waitlist-perk-check { color: var(--green); font-size: var(--fs-base); flex-shrink: 0; }
.waitlist-perk-text { font-size: var(--fs-sm); color: var(--light); line-height: 1.5; }

.form-card { background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 16px; padding: 40px; height: fit-content; }
.form-title { font-family: var(--heading); font-size: var(--fs-xl); font-weight: 800; margin-bottom: 6px; }
.form-subtitle { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--light); margin-bottom: 8px; letter-spacing: 0.03em; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--surface);
  border: 1px solid var(--surface-border); border-radius: 8px;
  color: var(--white); font-family: var(--body); font-size: var(--fs-base);
  padding: 12px 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.form-select { appearance: none; cursor: none; }
.form-select option { background: var(--navy); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; background: var(--accent); color: var(--ink);
  font-family: var(--body); font-size: var(--fs-base); font-weight: 700;
  padding: 15px; border: none; border-radius: 8px; cursor: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
.form-submit:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,194,255,0.3); }
/* Investor hero raise pill — puts the actual ask in the first screen instead
   of only in the section near the bottom of the page. */
.raise-tag {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--gold);
  border: 1px solid rgba(246,173,43,0.4); background: rgba(246,173,43,0.07);
  border-radius: 999px; padding: 12px 20px; cursor: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.raise-tag:hover { background: rgba(246,173,43,0.14); border-color: rgba(246,173,43,0.65); }

/* Inline validation notice — unlike .form-success it sits inside the form
   rather than replacing it, so nobody loses what they've already typed. */
.form-validation {
  display: none; margin-bottom: 16px; padding: 12px 16px; border-radius: 10px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.35);
  color: var(--red); font-size: var(--fs-sm); line-height: 1.55;
}
.form-success { display: none; text-align: center; padding: 48px 32px; font-size: var(--fs-base); color: var(--green); font-weight: 600; line-height: 1.6; }
.form-success.form-error { color: var(--gold); font-weight: 500; font-size: var(--fs-sm); }
.form-success.form-error a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* RESPONSIVE — layout/grid changes only; typography is fluid and needs no
   breakpoint overrides. */
@media (max-width: 900px) {
  .hero { padding: 48px 24px; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 24px; }
  .stat-item:last-child { border-bottom: none; }
  .hiw-flow { grid-template-columns: 1fr; }
  .hiw-arrow { transform: rotate(90deg); animation: arrowPulseV 1.8s ease-in-out infinite; }
  .audience-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .arch-flow { grid-template-columns: 1fr; }
  .arch-arrow-v { transform: rotate(90deg); animation: arrowPulseV 1.8s ease-in-out infinite; }
  .cases-grid { grid-template-columns: 1fr; }
  /* 3 items in 2 columns would leave an empty bordered cell — let the last span. */
  .cost-grid { grid-template-columns: repeat(2,1fr); }
  .cost-grid .cost-item:last-child { grid-column: span 2; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .inv-metrics { grid-template-columns: repeat(2,1fr); }
  .roadmap-phases { grid-template-columns: 1fr 1fr; }
  .roadmap-line { display: none; }
  .model-grid { grid-template-columns: 1fr; }
  .raise-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; padding: 48px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .early-perks { flex-direction: column; align-items: center; }
  .hero-trust { align-items: flex-start; }
  .compare-table { min-width: 620px; }
}

@media (max-width: 480px) {
  .cost-grid { grid-template-columns: 1fr; }
  .roadmap-phases { grid-template-columns: 1fr; }
  .inv-metrics { grid-template-columns: 1fr; }
  .hero-tag { border-radius: 12px; text-align: center; line-height: 1.5; }
  .theme-modal-options { grid-template-columns: 1fr; }
}

/* ===== LEGAL / PRIVACY PAGE ===== */
.legal-hero { padding: clamp(56px,8vw,80px) var(--sp-gutter) clamp(32px,5vw,48px); background: linear-gradient(135deg, var(--deep) 0%, var(--navy) 100%); position: relative; overflow: hidden; }
.legal-meta { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.legal { max-width: 760px; margin: 0 auto; padding: 0 var(--sp-gutter) var(--sp-section); }
.legal h2 { font-family: var(--heading); font-size: var(--fs-xl); font-weight: 800; margin: 44px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: var(--fs-base); line-height: 1.75; color: var(--light); margin-bottom: 16px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.legal li { font-size: var(--fs-base); line-height: 1.7; color: var(--light); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Inline citation links next to stats — same treatment as .legal a, plus
   cursor:none since every other interactive element on the site overrides
   the browser's default link cursor for the custom cursor to work. */
.src-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: none; }
.src-link:hover { color: var(--accent-hover); }
.legal strong { color: var(--white); }

/* ===== PORTAL GUIDE: quick walkthrough steps ===== */
.guide-steps { display: flex; flex-direction: column; gap: 36px; margin: 20px 0 36px; }
.guide-step { display: flex; align-items: flex-start; gap: 18px; }
.guide-step-num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font-family: var(--heading); font-weight: 800; font-size: var(--fs-sm);
  display: flex; align-items: center; justify-content: center;
}
.guide-step-body { flex: 1 1 auto; min-width: 0; }
.guide-step-body h3 { font-family: var(--heading); font-size: var(--fs-md); font-weight: 700; color: var(--white); margin: 2px 0 8px; }
.guide-step-body p { font-size: var(--fs-base); line-height: 1.75; color: var(--light); margin-bottom: 14px; }
.guide-shot {
  display: block; width: 100%; max-width: 640px; height: auto;
  border-radius: var(--r); border: 1px solid var(--border);
  box-shadow: 0 12px 30px var(--shadow-color);
}
@media (max-width: 640px) {
  .guide-step { flex-direction: column; }
  .guide-step-num { margin-bottom: 2px; }
}

/* ===== FAQ PAGE ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r); padding: 0 26px; transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(0,194,255,0.35); }
.faq-item summary {
  list-style: none; cursor: none; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--heading); font-size: var(--fs-md); font-weight: 700; color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { font-family: var(--mono); font-size: var(--fs-lg); color: var(--accent); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0 24px; }
.faq-answer p { font-size: var(--fs-sm); line-height: 1.75; color: var(--muted); margin: 0; }
.faq-answer p + p { margin-top: 12px; }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ===== PROGRESS LOG PAGE ===== */
.progress-list { position: relative; max-width: 700px; margin: 0 auto; padding-left: 28px; border-left: 2px solid var(--border); }
.progress-line-fill {
  position: absolute; left: -2px; top: 0; width: 2px; height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--gold)); transition: height 0.15s linear; z-index: 1;
}
.progress-item {
  position: relative; padding-bottom: 40px;
  transition: transform 0.3s ease;
}
.progress-item:last-child { padding-bottom: 0; }
.progress-item:hover { transform: translateX(6px); }
.progress-item::before {
  content: ''; position: absolute; left: -35px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); z-index: 2;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.progress-item.is-latest::before { animation: progressPulse 2.4s ease-out infinite; }
.progress-badge {
  display: inline-block; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--gold);
  border: 1px solid rgba(255,193,7,0.35); border-radius: 999px; padding: 2px 10px; margin-left: 10px; vertical-align: middle;
}
.progress-date { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); margin-bottom: 6px; letter-spacing: 0.02em; }
.progress-text { font-size: var(--fs-base); color: var(--light); line-height: 1.65; }
.progress-note { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin: 44px auto 0; max-width: 500px; }

@keyframes progressPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,194,255,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(0,194,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,194,255,0); }
}

/* ===== 404 PAGE ===== */
.error-page {
  min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: clamp(48px, 8vw, 80px) var(--sp-gutter); position: relative; overflow: hidden; isolation: isolate;
}
.error-code {
  font-family: var(--heading); font-weight: 800; letter-spacing: -0.02em;
  font-size: var(--fs-4xl);
  background: linear-gradient(100deg, var(--accent) 0%, #7CE9FF 35%, var(--gold) 65%, var(--accent) 100%);
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientShift 7s ease infinite;
}
.error-title { font-family: var(--heading); font-size: var(--fs-2xl); font-weight: 800; margin: 12px 0 16px; }
.error-sub { font-size: var(--fs-base); color: var(--light); max-width: 480px; margin: 0 auto 36px; line-height: 1.7; }
.error-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Normalize large heading rendering for browsers */
h1,h2,h3,h4,h5,h6,
.hero-headline, .section-title, .stat-number, .cost-num, .quote-text,
.early-strip h2, .theme-modal-card h2, .contact-info-title, .inv-metric-num {
  font-stretch: normal !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ===== STRUCTURED INFO PAGES (engine, mobile, portal guide, support, delete data) ===== */
.legal.legal-wide { max-width: 1000px; }
.legal-wide .doc-lead { max-width: 760px; margin-bottom: 8px; }
.legal-wide .doc-lead p:first-child { font-size: var(--fs-md); color: var(--white); }
.legal-wide .doc-section {
  background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: clamp(22px, 3vw, 34px); margin-top: 20px;
}
.legal-wide .doc-section > h2 { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.legal-wide .doc-section > :last-child { margin-bottom: 0; }
.legal-wide .doc-section--plain { background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.legal-wide .doc-section--plain > h2 { border-bottom: 0; padding-bottom: 0; }
.legal-wide .doc-section--plain > h2 + p,
.legal-wide .doc-section--plain > h2 + .legal-meta { max-width: 760px; }

/* Short facts as tiles. */
.legal-wide ul.glance-list, .legal-wide ul.cards-list {
  list-style: none; padding: 0; margin-bottom: 0;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 14px;
}
.legal-wide ul.glance-list li, .legal-wide ul.cards-list li {
  background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-top: 2px solid var(--accent); border-radius: var(--r);
  padding: 18px 20px; font-size: var(--fs-sm); line-height: 1.65;
  flex: 1 1 230px; min-width: 0;
}
.legal-wide .doc-section ul.cards-list li { background: rgba(255,255,255,0.03); }
.legal-wide ul.cards-list li { flex-basis: 280px; }

/* Numbered steps as cards. */
.legal-wide ol.steps-list {
  list-style: none; padding: 0; margin: 0 0 16px; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px;
}
.legal-wide ol.steps-list > li {
  counter-increment: step; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--r);
  background: rgba(255,255,255,0.03);
  padding: 20px; font-size: var(--fs-sm); line-height: 1.65;
}
.legal-wide ol.steps-list > li::before {
  content: counter(step); margin-bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font-family: var(--heading); font-weight: 800; font-size: var(--fs-sm);
  display: flex; align-items: center; justify-content: center;
}
.legal-wide .doc-section ol.steps-list:last-child { margin-bottom: 0; }

/* Portal guide walkthrough: two cards per row. */
.legal-wide .guide-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0 0; }
.legal-wide .guide-step {
  flex-direction: column; gap: 12px;
  background: var(--glass-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r); padding: 22px;
}
.legal-wide .guide-shot { max-width: 100%; }
.guide-shot + .guide-shot { margin-top: 14px; }

/* Screenshots inside step cards and sections (engine, mobile and delete-data pages). */
.legal-wide ol.steps-list--shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legal-wide .doc-section > .step-fig { margin: 14px 0 0; max-width: 640px; }
.step-fig .phone-shot { width: min(100%, 270px); border-radius: 30px; border: 7px solid #17243b; background: #04080F; overflow: hidden; line-height: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.step-fig .phone-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .legal-wide ol.steps-list--shots { grid-template-columns: 1fr; }
}

/* Support pictures sit in a row inside their card. */
.legal-wide .steps-list .step-fig { margin: 14px 0 0; }
.legal-wide .cards-list .step-fig { margin: 14px 0 0; }

@media (max-width: 760px) {
  .legal-wide .guide-steps { grid-template-columns: 1fr; }
}
