/*
 * KlarFort website — unified with the app's design language (iOS canonical).
 * Mobile-first: 320px+ default, tablet >=600px, desktop >=880px.
 * Color tokens mirror shared-data/colors.json; radii/spacing mirror dimensions.json.
 * Typography mirrors the app: SF Pro with the ROUNDED design for titles/numbers/
 * eyebrows (web: ui-rounded resolves to SF Rounded on Apple devices; elsewhere it
 * falls back to the platform sans — exactly the app's own per-platform behavior).
 * CSP is 'self'-only: no font files, no external resources; all art is CSS/SVG.
 */

:root {
  /* Monokai palette, with web text contrast adjusted for elevated surfaces */
  --bg:         #0A0C18;
  --bg-elev-1:  #11142B;
  --bg-elev-2:  #181C36;
  --fg:         #EBF0F8;
  --fg-muted:   #B4BFD0;
  --fg-quiet:   #7A88A8;
  --accent:     #00E0FF;
  --blue:       #3CBAFF;
  --systemblue: #0091FF;
  --purple:     #8B5CF6;
  --pink:       #FF4D8D;
  --success:    #22C55E;
  --warning:    #FBBF24;
  --error:      #EF4444;

  /* Spacing: mirrors UIConstants.Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Corner radius: mirrors UIConstants.CornerRadius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-std: 16px;
  --radius-lg: 20px;
  --radius-card: 28px;

  /* Layout */
  --max-content: 1200px;
  --tap-target: 44px;
  --gutter-x: clamp(var(--space-4), 4vw, var(--space-12));

  /* Safe-area shorthands (collapse to 0 outside iOS) */
  --sa-top:    env(safe-area-inset-top, 0px);
  --sa-right:  env(safe-area-inset-right, 0px);
  --sa-bottom: env(safe-area-inset-bottom, 0px);
  --sa-left:   env(safe-area-inset-left, 0px);

  /* Typography — mirrors the app: SF Pro Text body, SF Pro Rounded display */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Named surfaces / strokes (dedup of the previously-repeated literals) */
  /* Glass: app GlassEffectModifier — black .27 base, white .025 lift, sheen .02→0,
     hairline white walk, shadow black .28 r16 y8 */
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  --glass-base: rgba(0, 0, 0, 0.27);
  --hairline:   rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(235, 240, 248, 0.12);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.28); /* app r16 y8 at the 2x radius->blur convention */
  --shadow-accent-glow: 0 0 60px rgba(0, 224, 255, 0.10);
  --grad-cta: linear-gradient(90deg, var(--accent), var(--blue)); /* app PremiumButton: leading→trailing */
  --grad-headline: linear-gradient(135deg, #FFFFFF 0%, var(--accent) 130%);
  --ease-spring: cubic-bezier(.34, 1.2, .64, 1); /* approximates the app's spring(response .6, damping .7) */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* defensive: prevent horizontal scroll on mobile */
  /* The app's GradientBackground, verbatim: black→background linear base with
     three soft radials — pink top-leading, blue bottom-trailing, purple
     top-trailing — drifting on the app's 8s ease-in-out autoreverse loop. */
  background-image:
    radial-gradient(ellipse 640px 540px at 0% 0%,    rgba(255, 77, 141, 0.20), transparent 70%),
    radial-gradient(ellipse 680px 560px at 100% 100%, rgba(60, 186, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 560px 480px at 100% 0%,  rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(135deg, #000000, var(--bg) 60%);
  /* Radial layers oversized so the % keyframes below actually translate them
     ((area - image) x p is zero for full-size layers) */
  background-size: 130% 130%, 130% 130%, 130% 130%, auto;
  /* Resting state = the 0% keyframe — without this, oversized layers sit at
     0% 0% and the bottom/top-trailing blobs land off-canvas when the drift
     animation doesn't run (prefers-reduced-motion) */
  background-position: 0% 0%, 100% 100%, 100% 0%, 0 0;
  background-attachment: fixed;
}

@media (prefers-reduced-motion: no-preference) {
  body { animation: bg-shift 8s ease-in-out infinite alternate; }
  @keyframes bg-shift {
    0%   { background-position: 0% 0%, 100% 100%, 100% 0%, 0 0; }
    100% { background-position: 6% 4%, 94% 96%, 94% 4%, 0 0; }
  }
}

a { color: var(--accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; }
}
a:focus-visible { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

main#main,
section[id],
.legal [id] {
  scroll-margin-top: calc(80px + var(--sa-top));
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); z-index: 100; }

/* ---------- Header (mobile-first) ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: max(var(--space-3), var(--sa-top));
  padding-right: max(var(--gutter-x), var(--sa-right));
  padding-bottom: var(--space-3);
  padding-left: max(var(--gutter-x), var(--sa-left));
  position: sticky;
  top: 0;
  z-index: 90; /* must sit above .site-nav drawer (z:80) so the close (X) toggle stays tappable */
  background: rgba(10, 12, 24, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--fg); font-weight: 700; font-size: 1rem;
  min-height: var(--tap-target);
  letter-spacing: -0.01em;
  position: relative;
}
.brand img {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm); flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(0, 224, 255, 0.18));
  transition: transform .3s var(--ease-spring), filter .3s ease;
}
.brand .brand-name {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover img { transform: scale(1.06) rotate(-2deg); filter: drop-shadow(0 6px 22px rgba(0, 224, 255, 0.28)); }
}

/* Hamburger toggle button: hidden unless the drawer has been enhanced by JS */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tap-target);
  height: var(--tap-target);
  padding: 0;
  background: rgba(235, 240, 248, 0.06);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .menu-toggle:hover { background: rgba(235, 240, 248, 0.10); border-color: rgba(235, 240, 248, 0.18); }
}
.menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}
.menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 6px; }
.menu-toggle-bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* No-script mobile fallback: a visible, wrapping navigation band. */
.site-nav {
  position: static;
  width: 100%;
  padding-top: var(--space-2);
  padding-right: max(var(--gutter-x), var(--sa-right));
  padding-bottom: var(--space-2);
  padding-left: max(var(--gutter-x), var(--sa-left));
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  background: rgba(10, 12, 24, 0.82);
  border-bottom: 1px solid var(--hairline);
  transform: none;
  visibility: visible;
}
.site-nav a {
  color: var(--fg);
  font-size: .9rem;
  font-weight: 500;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  min-height: var(--tap-target);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.site-nav a + a { margin-top: 0; }
.site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: rgba(0, 224, 255, 0.08);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--accent); background: rgba(0, 224, 255, 0.06); }
}

/* Enhanced mobile drawer. The class is added only after JS installs every
   interaction handler, so the static fallback remains usable if setup fails. */
@media (max-width: 599px) {
  .nav-enhanced .menu-toggle {
    display: inline-flex;
  }
  .nav-enhanced .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 320px);
    padding-top: max(80px, calc(var(--sa-top) + 80px));
    padding-right: max(var(--space-6), var(--sa-right));
    padding-bottom: max(var(--space-6), var(--sa-bottom));
    padding-left: var(--space-6);
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(17, 20, 43, 0.98), rgba(10, 12, 24, 0.98));
    border-bottom: 0;
    border-left: 1px solid var(--hairline);
    box-shadow: -16px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    z-index: 80;
    overscroll-behavior: contain;
    overflow-y: auto;
  }
  .nav-enhanced .site-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .nav-enhanced .site-nav a {
    font-size: 1.05rem;
    padding: var(--space-3) var(--space-4);
  }
  .nav-enhanced .site-nav a + a {
    margin-top: var(--space-1);
  }
}

/* Backdrop overlay behind the drawer */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 12, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 70;
}
.menu-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* Body scroll lock while drawer is open */
html.menu-open,
html.menu-open body {
  overflow: hidden;
  /* iOS Safari: also clamp touch scrolling */
  touch-action: none;
}

/* Desktop: hide hamburger, restore inline nav as glass pills */
@media (min-width: 600px) {
  main#main,
  section[id],
  .legal [id] {
    scroll-margin-top: calc(88px + var(--sa-top));
  }
  .site-header {
    padding-top: max(var(--space-4), var(--sa-top));
    padding-right: max(var(--gutter-x), var(--sa-right));
    padding-bottom: var(--space-4);
    padding-left: max(var(--gutter-x), var(--sa-left));
  }
  .brand { font-size: 1.05rem; gap: var(--space-3); }
  .brand img { width: 36px; height: 36px; }
  .menu-toggle { display: none; }
  .menu-backdrop { display: none; }
  .site-nav {
    /* Rounded-rectangle glass nav matching the app's --radius-std containers.
       The nav lives OUTSIDE the <header> in the DOM (the header's
       backdrop-filter would otherwise become the containing block for the
       mobile fixed drawer), so on desktop it is overlaid INTO the sticky
       header band with viewport-fixed positioning — visually one bar. */
    position: fixed;
    top: max(11px, calc(var(--sa-top) + 11px));
    right: max(var(--gutter-x), var(--sa-right));
    bottom: auto;
    left: auto;
    z-index: 95; /* above the sticky header (z:90) */
    inset-inline-start: auto;
    width: auto;
    padding: 5px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
      rgba(10, 12, 24, 0.40);
    border: 1px solid rgba(235, 240, 248, 0.08);
    border-radius: var(--radius-std);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transform: none;
    visibility: visible;
    transition: none;
    overflow: visible;
  }
  .site-nav a {
    color: var(--fg-muted);
    font-size: .92rem;
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border-radius: 10px; /* nests cleanly inside the 16px container */
    min-height: 36px;
    transition: color .2s ease, background .2s ease, box-shadow .25s var(--ease-spring), transform .25s var(--ease-spring);
  }
  .site-nav a + a { margin-top: 0; }
  .site-nav a:hover { color: var(--fg); background: rgba(235, 240, 248, 0.06); transform: translateY(-1px); }
  .site-nav a:focus-visible { color: var(--accent); }
  .site-nav a[aria-current="page"] {
    color: var(--bg);
    background: var(--grad-cta);
    border-radius: 10px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.20) inset,
      0 6px 18px rgba(0, 224, 255, 0.26);
    font-weight: 600;
  }
  .site-nav a[aria-current="page"]:hover { transform: none; }
}

/* Reduced motion: skip drawer slide */
@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .nav-enhanced .site-nav,
  .menu-backdrop,
  .menu-toggle-bars span { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(var(--space-8), 7vw, var(--space-24));
  padding-left:  max(var(--gutter-x), var(--sa-left));
  padding-right: max(var(--gutter-x), var(--sa-right));
  position: relative;
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-12));
  grid-template-columns: 1fr;
  align-items: center;
  max-width: var(--max-content);
  margin: 0 auto;
}
.hero-grid > * { min-width: 0; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .06em; color: var(--accent);
  font-size: .78rem; font-weight: 600; margin: 0 0 var(--space-4);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 224, 255, 0.06);
  border: 1px solid rgba(0, 224, 255, 0.15);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 224, 255, 0.6);
  animation: eyebrow-pulse 2.4s var(--ease-spring) infinite;
}
@keyframes eyebrow-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0.55); }
  60%  { box-shadow: 0 0 0 8px rgba(0, 224, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0); }
}
@media (min-width: 600px) { .eyebrow { font-size: .82rem; } }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 7.2vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* The app never italicizes — emphasis is weight/color, not slant */
h1 em, h2 em { font-style: normal; }
h2 em { color: var(--accent); }

.lede {
  font-size: clamp(1rem, 1.5vw + .5rem, 1.18rem);
  color: var(--fg-muted);
  margin: var(--space-4) 0 var(--space-6);
  max-width: 56ch;
}

/* ---------- Buttons / CTA row ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-std); /* app CornerRadius.standard (16) */
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  min-height: var(--tap-target);
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  flex: 0 1 auto;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); text-decoration: none; }
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-cta);
  color: var(--bg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 24px rgba(0, 224, 255, 0.40); /* app: accent .4, r12, y6 */
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  /* subtle sheen sweep at the top of the button — app's glass-button feel */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.22) inset,
      0 8px 30px rgba(0, 224, 255, 0.46);
  }
}
.btn-secondary {
  /* App secondary CTA: transparent fill with a stroke-only accent→blue gradient
     ring — the ring is a masked pseudo-element so no gradient bleeds under the
     fill (PremiumButton's Color.clear fill) */
  position: relative;
  background: transparent;
  border: 2px solid transparent;
  color: var(--accent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, rgba(0, 224, 255, 0.5), rgba(60, 186, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
  }
  .btn-secondary:hover::before {
    background: linear-gradient(90deg, rgba(0, 224, 255, 0.85), rgba(60, 186, 255, 0.85));
  }
}
.btn-large { padding: var(--space-4) var(--space-6); font-size: 1rem; min-height: 52px; }
@media (max-width: 420px) {
  .hero-copy .cta-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-copy .btn { width: 100%; }
}
@media (min-width: 600px) {
  .btn { font-size: .98rem; }
  .btn-large { padding: var(--space-4) var(--space-8); font-size: 1.05rem; }
}

.cta-note {
  margin-top: var(--space-4); color: var(--fg-quiet); font-size: .85rem;
}
@media (min-width: 600px) { .cta-note { font-size: .88rem; } }
.trust-line {
  color: var(--fg-muted);
  max-width: 58ch;
}
/* ---------- Hero visual: the FlightDeck phone ---------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: var(--space-6) var(--space-4);
}
@media (min-width: 880px) { .hero-visual { padding: var(--space-8) var(--space-6); } }
.hero-glow {
  position: absolute; inset: 6%; z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 224, 255, 0.26), transparent 58%),
    radial-gradient(circle at 64% 78%, rgba(139, 92, 246, 0.16), transparent 62%),
    radial-gradient(circle at 30% 80%, rgba(255, 77, 141, 0.10), transparent 60%);
  filter: blur(30px);
  animation: hero-glow-drift 16s ease-in-out infinite alternate;
}
@keyframes hero-glow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(1%, -1.5%) scale(1.04); }
}
.hero-ring {
  position: absolute;
  width: min(72vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(from 180deg,
    transparent 0deg,
    rgba(0, 224, 255, 0.18) 80deg,
    rgba(139, 92, 246, 0.14) 160deg,
    transparent 250deg,
    rgba(255, 77, 141, 0.10) 320deg,
    transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: ring-spin 36s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.phone {
  position: relative;
  width: min(78vw, 300px);
  border-radius: 44px;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.05) 70%, rgba(0, 224, 255, 0.10)),
    #060812;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 90px rgba(0, 224, 255, 0.10);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  animation: phone-float 9s ease-in-out infinite alternate;
}
@keyframes phone-float {
  0%   { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) translateY(0); }
  100% { transform: perspective(1400px) rotateY(-6deg) rotateX(1.4deg) translateY(-10px); }
}
.phone-screen {
  border-radius: 36px;
  background:
    radial-gradient(ellipse at 70% -10%, rgba(139, 92, 246, 0.18), transparent 50%),
    radial-gradient(ellipse at 10% 0%, rgba(0, 224, 255, 0.14), transparent 45%),
    #0A0C18;
  padding: 18px 14px 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.phone-screen::after {
  /* glass reflection sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.045) 47%, rgba(255, 255, 255, 0.01) 56%, transparent 60%);
  pointer-events: none;
}
.phone-notch {
  width: 86px; height: 22px;
  border-radius: 999px;
  background: #04060e;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.app-row { display: flex; gap: 8px; }
.app-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
}
.app-label {
  display: block;
  font-family: var(--font-display);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  margin-bottom: 6px;
}
.app-runway {
  /* App FlightDeck hero number: bold rounded; tabular digits so the count-up doesn't jitter */
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  line-height: 1;
  color: var(--fg);
}
.app-runway .unit { font-family: var(--font-sans); font-size: .8rem; font-weight: 500; color: var(--fg-muted); }
.app-delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: .68rem;
  font-weight: 600;
  color: var(--success);
}
.app-delta::before {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid var(--success);
}
.sparkline { display: block; width: 100%; height: auto; }
.sparkline-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sparkline-dot { opacity: 0; }
.is-drawn .sparkline-dot { opacity: 1; transition: opacity .4s ease 1.5s; }
/* Self-drawing line: dash length set generously over path length */
@media (prefers-reduced-motion: no-preference) {
  .sparkline-line { stroke-dasharray: 420; stroke-dashoffset: 420; }
  .is-drawn .sparkline-line { animation: draw-line 1.6s var(--ease-spring) forwards; }
  @keyframes draw-line { to { stroke-dashoffset: 0; } }
  .sparkline-area { opacity: 0; }
  .is-drawn .sparkline-area { animation: fade-area .8s ease .9s forwards; }
  @keyframes fade-area { to { opacity: 1; } }
}
.app-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .66rem;
  font-weight: 600;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 8px 10px;
  margin-bottom: 10px;
  white-space: nowrap;
}
.app-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: eyebrow-pulse 2.8s var(--ease-spring) infinite;
}
.app-chip.agent { color: var(--fg); border-color: rgba(34, 197, 94, 0.25); }
.asset-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.asset-row + .asset-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.asset-name { font-size: .7rem; font-weight: 500; color: var(--fg-muted); white-space: nowrap; }
.asset-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.asset-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: var(--bar, var(--grad-cta));
}
/* CSP is style-src 'self' (no inline style attributes), so bar geometry is class-based */
.asset-bar.bar-a { --w: 72%; --bar: linear-gradient(90deg, #00E0FF, #3CBAFF); }
.asset-bar.bar-b { --w: 54%; --bar: linear-gradient(90deg, #8B5CF6, #3CBAFF); }
.asset-bar.bar-c { --w: 38%; --bar: linear-gradient(90deg, #FF4D8D, #8B5CF6); }
@media (prefers-reduced-motion: no-preference) {
  .asset-bar i { transform: scaleX(0); transform-origin: left; }
  .is-drawn .asset-bar i { animation: grow-bar 1s var(--ease-spring) forwards; }
  /* nth-of-type: the card's first child is the .app-label span, so type-scoped
     counting keeps the cascade top-to-bottom */
  .is-drawn .asset-row:nth-of-type(2) .asset-bar i { animation-delay: .15s; }
  .is-drawn .asset-row:nth-of-type(3) .asset-bar i { animation-delay: .3s; }
  @keyframes grow-bar { to { transform: scaleX(1); } }
}

/* ---------- Core loop strip ---------- */
.loop {
  padding-block: clamp(var(--space-6), 4vw, var(--space-12));
  padding-left:  max(var(--gutter-x), var(--sa-left));
  padding-right: max(var(--gutter-x), var(--sa-right));
  border-block: 1px solid var(--hairline);
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 224, 255, 0.04), transparent 70%);
  overflow-x: clip;
}
.loop-track {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.loop-track::-webkit-scrollbar { display: none; }
.loop-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-sm); }
.loop-step {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.loop-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  color: var(--accent);
  border: 1px solid rgba(0, 224, 255, 0.25);
  border-radius: 999px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  background: rgba(0, 224, 255, 0.06);
}
.loop-step b {
  font-weight: 600;
  font-size: .95rem;
  color: var(--fg);
  white-space: nowrap;
}
.loop-step small { display: block; color: var(--fg-quiet); font-size: .76rem; white-space: nowrap; }
.loop-arrow {
  color: var(--fg-quiet);
  flex-shrink: 0;
  opacity: .7;
}

/* ---------- Section scaffolding ---------- */
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
  padding-left:  max(var(--gutter-x), var(--sa-left));
  padding-right: max(var(--gutter-x), var(--sa-right));
}
.section-inner { max-width: var(--max-content); margin: 0 auto; }
.section h2 {
  font-size: clamp(1.7rem, 2.6vw + 1rem, 2.8rem);
  letter-spacing: -0.01em;
}
.section-lede {
  color: var(--fg-muted);
  max-width: 58ch;
  margin: 0 0 clamp(var(--space-6), 3vw, var(--space-12));
  font-size: clamp(.98rem, 1vw + .5rem, 1.08rem);
}
.kicker {
  /* App RouteSectionHeader eyebrow: 14pt semibold rounded UPPERCASE +0.5 tracking */
  display: block;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

/* ---------- User-controlled portability ---------- */
.portability {
  border-block: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 224, 255, 0.06), transparent 48%),
    rgba(0, 0, 0, 0.08);
}
.portability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 600px) {
  .portability-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .portability-grid { grid-template-columns: repeat(4, 1fr); }
}
.portability-card {
  position: relative;
  min-height: 180px;
  padding: var(--space-5);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--glass-fill), var(--glass-base);
  overflow: hidden;
}
.portability-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -62px;
  top: -68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.11), transparent 70%);
  pointer-events: none;
}
.portability-num {
  display: block;
  margin-bottom: var(--space-5);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.portability-card h3 {
  margin-bottom: var(--space-2);
  color: var(--fg);
  font-size: 1.0625rem;
}
.portability-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: .92rem;
}
.portability-note {
  margin: var(--space-5) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(0, 224, 255, 0.18);
  border-radius: var(--radius-std);
  background: rgba(0, 224, 255, 0.035);
  color: var(--fg-muted);
  font-size: .84rem;
}

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-column: span 2; }
}
@media (min-width: 880px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile-wide { grid-column: span 2; }
}
.tile {
  position: relative;
  background: var(--glass-fill), var(--glass-base);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  isolation: isolate;
  overflow: hidden;
  transition:
    transform .35s var(--ease-spring),
    border-color .25s ease,
    box-shadow .35s var(--ease-spring);
}
.tile::before {
  /* glass sheen at the top edge — mirrors the app's liquidGlassBackground */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sheen);
  pointer-events: none;
  z-index: -1;
}
.tile::after {
  /* per-tile colored aurora corner */
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -70px; top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tile-glow, rgba(0, 224, 255, 0.12)), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    transform: translateY(-3px);
    border-color: var(--tile-edge, rgba(0, 224, 255, 0.30));
    box-shadow: var(--shadow-card), var(--shadow-accent-glow);
  }
  .tile:hover .feature-icon { transform: scale(1.05); }
}
.tile h3 {
  /* App card title: 17pt bold rounded */
  font-family: var(--font-display);
  color: var(--fg);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: var(--space-4) 0 var(--space-2);
}
.tile p { color: var(--fg-muted); margin: 0; font-size: .95rem; max-width: 52ch; }
.tile[data-tone="accent"]  { --tile-glow: rgba(0, 224, 255, 0.14);  --tile-edge: rgba(0, 224, 255, 0.32); }
.tile[data-tone="blue"]    { --tile-glow: rgba(60, 186, 255, 0.13); --tile-edge: rgba(60, 186, 255, 0.30); }
.tile[data-tone="purple"]  { --tile-glow: rgba(139, 92, 246, 0.14); --tile-edge: rgba(139, 92, 246, 0.32); }
.tile[data-tone="success"] { --tile-glow: rgba(34, 197, 94, 0.12);  --tile-edge: rgba(34, 197, 94, 0.30); }
.tile[data-tone="warning"] { --tile-glow: rgba(251, 191, 36, 0.11); --tile-edge: rgba(251, 191, 36, 0.28); }
.tile[data-tone="pink"]    { --tile-glow: rgba(255, 77, 141, 0.12); --tile-edge: rgba(255, 77, 141, 0.30); }

.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--bg);
  flex-shrink: 0;
  transition: transform .35s var(--ease-spring);
  position: relative;
}
.feature-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 60%);
  pointer-events: none;
}
.feature-icon[data-color="accent"]  { background: linear-gradient(135deg, var(--accent), var(--blue));      color: var(--bg);   box-shadow: 0 6px 20px rgba(0, 224, 255, 0.30); }
.feature-icon[data-color="blue"]    { background: linear-gradient(135deg, var(--blue), var(--systemblue));  color: var(--bg);   box-shadow: 0 6px 20px rgba(60, 186, 255, 0.28); }
.feature-icon[data-color="purple"]  { background: linear-gradient(135deg, var(--purple), #5a3ce0);          color: var(--fg);   box-shadow: 0 6px 20px rgba(139, 92, 246, 0.30); }
.feature-icon[data-color="success"] { background: linear-gradient(135deg, var(--success), #16a34a);         color: var(--bg);   box-shadow: 0 6px 20px rgba(34, 197, 94, 0.30); }
.feature-icon[data-color="warning"] { background: linear-gradient(135deg, var(--warning), #d97706);         color: var(--bg);   box-shadow: 0 6px 20px rgba(251, 191, 36, 0.28); }
.feature-icon[data-color="pink"]    { background: linear-gradient(135deg, var(--pink), #c93a73);            color: var(--fg);   box-shadow: 0 6px 20px rgba(255, 77, 141, 0.28); }

/* Wide runway tile: copy left, mini area chart right */
.tile-runway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 600px) { .tile-runway-grid { grid-template-columns: 1.1fr 1fr; } }
.runway-mini { width: 100%; height: auto; display: block; }
.runway-mini .grid-line { stroke: rgba(235, 240, 248, 0.07); stroke-width: 1; }
.runway-mini .axis-label { font: 700 8px var(--font-display); fill: var(--fg-quiet); letter-spacing: .08em; }

/* ---------- Privacy architecture diagram ---------- */
.privacy-arch {
  border-block: 1px solid var(--hairline);
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 224, 255, 0.05), transparent 60%);
}
.arch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-6), 3vw, var(--space-8));
}
@media (min-width: 880px) {
  .arch-grid { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
}
.arch-panel {
  position: relative;
  border-radius: var(--radius-card);
  padding: var(--space-6);
  isolation: isolate;
}
.arch-panel h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.arch-panel .arch-sub { color: var(--fg-quiet); font-size: .82rem; margin: 0 0 var(--space-4); }
.arch-device {
  background:
    linear-gradient(180deg, rgba(0, 224, 255, 0.07), rgba(0, 224, 255, 0.015)),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 224, 255, 0.22);
  box-shadow: 0 0 60px rgba(0, 224, 255, 0.06);
}
.arch-server {
  background: var(--glass-fill), var(--glass-base);
  border: 1px solid var(--hairline-strong);
}
.arch-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.arch-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 7px 13px;
}
.arch-chips li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--chip-dot, var(--accent));
  box-shadow: 0 0 8px var(--chip-dot, var(--accent));
}
.arch-server .arch-chips li::before { --chip-dot: var(--fg-quiet); box-shadow: none; }
.arch-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  color: var(--fg-quiet);
  font-size: .76rem;
  text-align: center;
}
.arch-wire {
  width: 2px;
  flex: 1;
  min-height: 28px;
  background: linear-gradient(180deg, transparent, rgba(0, 224, 255, 0.5), transparent);
  border-radius: 2px;
}
@media (min-width: 880px) {
  .arch-link { max-width: 180px; }
  .arch-wire { width: 100%; height: 2px; min-height: 0; flex: 0 0 2px; background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.5), transparent); }
}
.arch-note {
  border: 1px dashed rgba(0, 224, 255, 0.25);
  border-radius: var(--radius-std);
  background: rgba(0, 224, 255, 0.04);
  color: var(--fg-muted);
  font-size: .82rem;
  padding: var(--space-3) var(--space-4);
}
.privacy-foot { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-top: var(--space-8); }
@media (min-width: 880px) { .privacy-foot { grid-template-columns: 1.2fr 1fr; gap: var(--space-12); } }
.privacy-list { padding-left: 0; margin: 0; list-style: none; }
.privacy-list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) calc(var(--space-5) + 6px);
  margin-bottom: var(--space-1);
  color: var(--fg-muted);
}
.privacy-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.5rem + 6px);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 224, 255, 0.45);
}
.privacy-list strong { color: var(--fg); }
.muted-title {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .045em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.muted-p { color: var(--fg-muted); margin: 0 0 var(--space-3); font-size: .95rem; }
@media (min-width: 600px) { .muted-p { font-size: .98rem; } }

/* ---------- Legal notice ---------- */
.legal-notice {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(var(--space-6), 6vw, var(--space-12)) max(var(--gutter-x), var(--sa-right));
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  border-bottom: 1px solid rgba(251, 191, 36, 0.12);
}
.legal-notice h2 {
  margin: 0 0 var(--space-3);
  color: var(--warning);
  font-size: clamp(1.35rem, 2vw + 1rem, 2rem);
  line-height: 1.15;
}
.legal-notice p {
  max-width: 820px;
  margin: 0;
  color: var(--fg-muted);
}
.legal-notice p + p { margin-top: var(--space-3); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  display: grid;
  gap: var(--space-3);
}
.faq-item {
  background: var(--glass-fill), var(--glass-base);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item[open] { border-color: rgba(0, 224, 255, 0.25); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
  min-height: var(--tap-target);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: inherit; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--fg-quiet);
  border-bottom: 2px solid var(--fg-quiet);
  transform: rotate(45deg);
  transition: transform .25s var(--ease-spring), border-color .2s ease;
  margin-right: 4px;
}
.faq-item[open] summary::after { transform: rotate(225deg); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { color: var(--accent); }
}
.faq-item .faq-body {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--fg-muted);
  font-size: .95rem;
  max-width: 70ch;
}

/* ---------- Download CTA ---------- */
.download {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.download p { color: var(--fg-muted); margin: 0 auto var(--space-6); max-width: 60ch; }
@media (min-width: 600px) { .download p { margin-bottom: var(--space-8); } }
.download .cta-row { justify-content: center; }
.download .cta-note { text-align: center; margin-top: var(--space-6); }
@media (min-width: 600px) { .download .cta-note { margin-top: var(--space-8); } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-8);
  padding-right: max(var(--gutter-x), var(--sa-right));
  padding-bottom: max(var(--space-8), var(--sa-bottom));
  padding-left:  max(var(--gutter-x), var(--sa-left));
  margin-top: var(--space-8);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 224, 255, 0.025), transparent 60%);
}
@media (min-width: 600px) {
  .site-footer {
    padding-top: var(--space-12);
    padding-bottom: max(var(--space-12), var(--sa-bottom));
    margin-top: var(--space-12);
  }
}
.footer-grid {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}
@media (min-width: 600px) {
  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }
}
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-1);
  color: var(--fg);
  font-weight: 600;
}
.footer-brand-row { display: inline-flex; align-items: center; gap: var(--space-3); }
.footer-brand img {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 4px 14px rgba(0, 224, 255, 0.15));
}
.footer-brand-name {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-tagline {
  color: var(--fg-quiet);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .02em;
  margin: 0;
}
.site-footer nav { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
@media (min-width: 600px) { .site-footer nav { gap: var(--space-2); } }
.site-footer nav a {
  color: var(--fg-muted);
  min-height: var(--tap-target);
  display: inline-flex;
  align-items: center;
  font-size: .92rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer nav a:hover { color: var(--fg); background: rgba(235, 240, 248, 0.05); }
}
.site-footer .footer-social {
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 600px) {
  .site-footer .footer-social {
    padding-top: 0;
    border-top: 0;
  }
}
.site-footer .footer-social a {
  color: var(--fg-muted);
}

/* ---------- Static legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding-block: clamp(var(--space-6), 5vw, var(--space-12));
  padding-left:  max(var(--gutter-x), var(--sa-left));
  padding-right: max(var(--gutter-x), var(--sa-right));
}
.legal h1 {
  font-size: clamp(1.7rem, 4vw + .25rem, 2.7rem);
  line-height: 1.08;
  margin-bottom: var(--space-2);
}
.legal p.updated { color: var(--fg-quiet); margin: 0 0 var(--space-6); font-size: .9rem; }
@media (min-width: 600px) { .legal p.updated { margin-bottom: var(--space-8); font-size: .92rem; } }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1vw + 1rem, 1.35rem);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--accent);
  line-height: 1.25;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal p, .legal li { color: var(--fg-muted); }
.legal strong { color: var(--fg); }
.legal ul { padding-left: var(--space-5); }
.legal a { color: var(--accent); }
.privacy-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: 0 0 var(--space-8);
}
@media (min-width: 600px) {
  .privacy-summary { grid-template-columns: repeat(2, 1fr); }
}
.privacy-summary-card {
  padding: var(--space-5);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--glass-fill), var(--glass-base);
}
.privacy-summary-card h3 {
  margin: 0 0 var(--space-2);
  color: var(--fg);
  font-size: 1rem;
}
.privacy-summary-card p {
  margin: 0;
  font-size: .92rem;
}
.legal-callout {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(0, 224, 255, 0.22);
  border-radius: var(--radius-std);
  background: rgba(0, 224, 255, 0.04);
}
.legal-callout p {
  margin: 0;
}
.contact-card {
  position: relative;
  margin-top: var(--space-6); padding: var(--space-5);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(0,224,255,0.10), rgba(60,186,255,0.04));
  border: 1px solid rgba(0, 224, 255, 0.20);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.20),
    0 0 0 1px rgba(0, 224, 255, 0.08) inset,
    0 0 60px rgba(0, 224, 255, 0.06);
  isolation: isolate;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
  z-index: -1;
}
@media (min-width: 600px) { .contact-card { margin-top: var(--space-8); padding: var(--space-6); } }
.contact-card .email-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 1.1rem; font-weight: 600;
  margin-top: var(--space-3);
  word-break: break-all; /* long mailto on 320px doesn't overflow */
  min-height: var(--tap-target);
}
@media (min-width: 600px) { .contact-card .email-link { font-size: 1.2rem; word-break: normal; } }

/* ---------- 404 ---------- */
.notfound {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-block: clamp(var(--space-16), 12vw, 140px);
  padding-left:  max(var(--gutter-x), var(--sa-left));
  padding-right: max(var(--gutter-x), var(--sa-right));
}
.notfound-icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-lg);
  color: var(--accent);
  background: var(--glass-fill), var(--glass-base);
  border: 1px solid rgba(0, 224, 255, 0.25);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0, 224, 255, 0.12);
}
.notfound-code {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  margin: 0 0 var(--space-3);
}
.notfound h1 { margin-bottom: var(--space-3); }
.notfound p { color: var(--fg-muted); max-width: 46ch; margin: 0 auto var(--space-8); }
.notfound .cta-row { justify-content: center; }

/* ---------- Section dividers ---------- */
.section-divider {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.18), transparent);
  opacity: .4;
}

/* ---------- Scroll-reveal (fade-up on enter viewport) ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal-enhanced .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring);
}
.reveal-enhanced .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .hero-ring, .phone { animation: none; }
  .eyebrow::before, .app-chip .dot { animation: none; }
  .sparkline-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .sparkline-area, .sparkline-dot { opacity: 1; }
  .asset-bar i { transform: none; }
  .btn:hover,
  .tile:hover,
  .brand:hover img,
  .site-nav a:hover { transform: none; }
  .tile, .feature-icon, .brand img, .site-nav a, .btn, .faq-item summary::after { transition: none; }
}
