/* ============================================================
   GateKeeper — Cyber-Glass design system
   gate-keeper.app  ·  production stylesheet
   ------------------------------------------------------------
   Sections
     1.  Tokens & reset
     2.  Ambient background
     3.  Layout primitives
     4.  Badges
     5.  Glass / buttons / links
     6.  Navigation
     7.  Hero
     8.  App-window frame
     9.  Trust marquee
     10. Problem
     11. Solution stack
     12. Capabilities (pinned horizontal gallery)
     13. Mobile feature row + phone
     14. Architecture
     15. Comparison table
     16. Stats
     17. Download CTA
     18. Footer
     19. Scroll reveal
     20. Light theme
     21. Theme toggle
     22. Responsive
   ============================================================ */

/* ============================================================
   1 · TOKENS & RESET
   ============================================================ */
:root {
  --bg: #09090F;
  --surface: #15151E;
  --surface-2: #1E1E2A;
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);

  --primary: #00FFFF;
  --secondary: #8000FF;
  --text: #FAFAFA;
  --text-dim: #9B9BAE;
  --text-mute: #6B6B7B;

  /* Module accents */
  --appgate: #EF4444;
  --webgate: #00FFFF;
  --netgate: #8000FF;
  --ai: #22C55E;
  --sandbox: #F59E0B;
  --android: #3B82F6;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1200px;
  --nav-h: 68px;
  --focus: #00FFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }

::selection { background: rgba(0, 255, 255, 0.25); color: #fff; }

/* Keyboard focus only — never on mouse click */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

a { color: inherit; text-decoration: none; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: #001014;
  padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 700; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 255, 0.25); }

/* ============================================================
   2 · AMBIENT BACKGROUND
   ============================================================ */
.ambient {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  contain: strict;
}
.ambient::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100px 100px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 35%, transparent 100%);
  opacity: 0.5;
}
.orb { position: absolute; border-radius: 50%; filter: blur(150px); }
.orb-1 {
  top: -15%; left: -10%; width: 55vw; height: 55vw;
  background: rgba(0, 255, 255, 0.08);
  animation: orb-drift 22s ease-in-out infinite;
}
.orb-2 {
  bottom: -20%; right: -12%; width: 50vw; height: 50vw;
  background: rgba(128, 0, 255, 0.06);
  animation: orb-drift 28s ease-in-out infinite reverse;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(40px, -30px); }
  66% { transform: translate(-30px, 20px); }
}

main, nav, footer { position: relative; z-index: 1; }

/* ============================================================
   3 · LAYOUT PRIMITIVES
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; }
.section-sm { padding: 72px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { font-size: 18px; color: var(--text-dim); margin-top: 16px; max-width: 600px; text-wrap: pretty; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.grad-text {
  background: linear-gradient(115deg, #00FFFF 0%, #8000FF 55%, #00FFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   4 · BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim); white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge .bic { width: 13px; height: 13px; flex-shrink: 0; }
.badge-plat img { width: 15px; height: 15px; object-fit: contain; }
.badge-cyan   { color: #00FFFF; background: rgba(0,255,255,0.08);  border-color: rgba(0,255,255,0.25); }
.badge-purple { color: #B07CFF; background: rgba(128,0,255,0.10);  border-color: rgba(128,0,255,0.28); }
.badge-red    { color: #F87171; background: rgba(239,68,68,0.10);  border-color: rgba(239,68,68,0.28); }
.badge-green  { color: #22C55E; background: rgba(34,197,94,0.10);  border-color: rgba(34,197,94,0.28); }
.badge-amber  { color: #F59E0B; background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.28); }
.badge-blue   { color: #60A5FA; background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.28); }

/* ============================================================
   5 · GLASS / BUTTONS / LINKS
   ============================================================ */
.glass {
  background: rgba(0, 0, 0, 0.40);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.glass:hover { border-color: rgba(0, 255, 255, 0.22); background: rgba(255, 255, 255, 0.035); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  border-radius: 10px; padding: 13px 22px; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s ease; position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: rgba(0,255,255,0.10); color: var(--primary); border-color: rgba(0,255,255,0.30); }
.btn-primary:hover { background: rgba(0,255,255,0.18); box-shadow: 0 0 24px rgba(0,255,255,0.22); transform: translateY(-1px); }
.btn-download { background: linear-gradient(135deg, rgba(0,255,255,0.13), rgba(128,0,255,0.13)); border-color: rgba(0,255,255,0.28); color: var(--text); }
.btn-download:hover { background: linear-gradient(135deg, rgba(0,255,255,0.22), rgba(128,0,255,0.22)); box-shadow: 0 0 28px rgba(0,255,255,0.16); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.03); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-primary::after, .btn-download::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-180%) skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after, .btn-download:hover::after { animation: shimmer 0.9s ease; }
@keyframes shimmer { to { transform: translateX(220%) skewX(-18deg); } }

.text-link {
  color: var(--text-dim); font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.25s, gap 0.25s;
}
.text-link:hover { color: var(--primary); gap: 9px; }

/* ============================================================
   6 · NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
nav.scrolled {
  background: rgba(9, 9, 15, 0.82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom-color: var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo .shield { width: 28px; height: 28px; object-fit: contain; animation: shield-pulse 3s ease-in-out infinite; }
.logo .name {
  background: linear-gradient(90deg, #00FFFF, #8000FF);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: -0.01em;
}
@keyframes shield-pulse {
  0%, 100% { opacity: 0.82; filter: drop-shadow(0 0 0px rgba(0,243,255,0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 9px rgba(0,243,255,0.45)); }
}
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-dim); transition: color 0.25s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.icon-link { color: var(--text-dim); display: flex; transition: color 0.25s; }
.icon-link:hover { color: var(--text); }
.icon-link svg { width: 20px; height: 20px; }

.hamburger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }
.hamburger svg { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(9, 9, 15, 0.98);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: clamp(22px, 6vw, 28px); font-weight: 600; color: var(--text); }
.mobile-menu .btn { margin-top: 16px; }

/* ============================================================
   7 · HERO
   ============================================================ */
.hero { padding-top: calc(var(--nav-h) + 70px); padding-bottom: 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badges { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hero-sub { font-size: 18px; color: var(--text-dim); max-width: 490px; margin: 26px 0 14px; line-height: 1.65; text-wrap: pretty; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-tagline { font-size: 15px; color: var(--text-mute); font-family: var(--mono); margin-bottom: 32px; }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-platforms { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-visual { position: relative; }

/* ============================================================
   8 · APP-WINDOW FRAME (real screenshots)
   ============================================================ */
.app-window {
  position: relative; border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05);
  background: var(--surface); overflow: hidden;
}
html[data-theme="light"] .app-window { box-shadow: 0 35px 80px rgba(20,24,50,0.22); }
.app-window img { display: block; width: 100%; height: auto; transition: opacity 0.35s ease; }
.aw-glow {
  position: absolute; inset: -3px; z-index: -1;
  background: linear-gradient(135deg, rgba(0,255,255,0.45), transparent 42%, rgba(128,0,255,0.45));
  border-radius: 18px; filter: blur(26px); opacity: 0.5;
}
html[data-theme="light"] .aw-glow { opacity: 0.32; }
/* Tilt only the hero window on pointer move */
.hero-visual .app-window { transition: transform 0.18s ease-out; will-change: transform; }

/* ============================================================
   9 · TRUST MARQUEE
   ============================================================ */
.trust {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-item {
  display: inline-flex; align-items: center;
  padding: 0 34px; font-size: 13.5px; color: var(--text-dim); font-weight: 500; white-space: nowrap;
}
.marquee-item::after { content: "·"; color: var(--text-mute); margin-left: 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   10 · PROBLEM
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prob-card { padding: 30px; border-top: 2px solid rgba(239,68,68,0.30); }
.prob-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,0.08); color: var(--appgate); margin-bottom: 20px;
}
.prob-icon svg { width: 22px; height: 22px; }
.prob-card h3 { font-size: 18px; margin-bottom: 12px; line-height: 1.35; }
.prob-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; }

.divider-text {
  display: flex; align-items: center; gap: 22px;
  margin: 64px auto 0; max-width: 560px;
  color: var(--primary); font-size: 15px; font-weight: 600;
}
.divider-text::before, .divider-text::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,0.35), transparent);
}

/* ============================================================
   11 · SOLUTION STACK
   ============================================================ */
.stack { display: flex; flex-direction: column; gap: 14px; max-width: 880px; margin: 0 auto; }
.layer {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 26px; align-items: center; padding: 26px 30px;
  border-radius: 14px; position: relative; overflow: hidden;
}
.layer-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  writing-mode: vertical-rl; transform: rotate(180deg); opacity: 0.7;
}
.layer h3 { font-size: 19px; margin-bottom: 7px; }
.layer p { font-size: 14.5px; color: var(--text-dim); }
.layer .num { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.layer-app { border-left: 3px solid var(--appgate); }
.layer-app .layer-tag, .layer-app h3 .accent, .layer-app .num { color: var(--appgate); }
.layer-dns { border-left: 3px solid var(--webgate); }
.layer-dns .layer-tag, .layer-dns h3 .accent, .layer-dns .num { color: var(--webgate); }
.layer-net { border-left: 3px solid var(--netgate); }
.layer-net .layer-tag, .layer-net h3 .accent, .layer-net .num { color: #B07CFF; }
.stack-foot { text-align: center; margin-top: 28px; font-size: 15px; color: var(--text-dim); }
.stack-foot .ai-tie { color: var(--ai); font-weight: 600; }

/* ============================================================
   12 · CAPABILITIES — pinned horizontal gallery
   ============================================================ */
.hpin { position: relative; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.18) 12%, rgba(0,0,0,0.18) 88%, transparent); }
.hpin-sticky { position: static; height: auto; overflow: visible; }
.hpin-rail { display: flex; flex-direction: column; }

.hpanel[data-accent="cyan"]   { --acc: #00FFFF; --accSoft: rgba(0,255,255,0.12); }
.hpanel[data-accent="purple"] { --acc: #B07CFF; --accSoft: rgba(128,0,255,0.14); }
.hpanel[data-accent="red"]    { --acc: #F87171; --accSoft: rgba(239,68,68,0.14); }
.hpanel[data-accent="amber"]  { --acc: #F59E0B; --accSoft: rgba(245,158,11,0.14); }
.hpanel[data-accent="green"]  { --acc: #22C55E; --accSoft: rgba(34,197,94,0.14); }
html[data-theme="light"] .hpanel[data-accent="cyan"]   { --acc: #0B8090; }
html[data-theme="light"] .hpanel[data-accent="purple"] { --acc: #7C3AED; }
html[data-theme="light"] .hpanel[data-accent="red"]    { --acc: #DC2626; }
html[data-theme="light"] .hpanel[data-accent="amber"]  { --acc: #B45309; }
html[data-theme="light"] .hpanel[data-accent="green"]  { --acc: #15924E; }

.hpanel { width: 100%; padding: 56px 0; }
.hpanel-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 52px; align-items: center;
}
.hpanel-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--acc); margin-bottom: 18px;
}
.hpanel-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.hpanel-text h3 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.03em; margin-bottom: 16px; }
.hpanel-text p { font-size: 17px; color: var(--text-dim); line-height: 1.65; margin-bottom: 22px; max-width: 380px; text-wrap: pretty; }
.hpanel-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.hpanel-chips span {
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 100px;
  color: var(--acc); background: var(--accSoft);
  border: 1px solid color-mix(in oklab, var(--acc) 32%, transparent);
}
.hpanel-shot { position: relative; min-width: 0; }
.hpanel-shot .app-window { width: 100%; }
.hpanel-shot .aw-glow { background: linear-gradient(135deg, var(--acc), transparent 50%, var(--acc)); opacity: 0.30; }

.hpin-hud { display: none; }
.hpin-hint { display: none; }

/* Pinned state (desktop / fine pointer, toggled by JS) */
.hpin-on { background: none; }
.hpin-on .hpin-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  overflow: hidden; display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 76px);
  padding-bottom: 64px;
}
.hpin-on .hpin-rail { flex-direction: row; height: 100%; will-change: transform; }
.hpin-on .hpanel { width: 100vw; flex: 0 0 100vw; height: 100%; display: flex; align-items: center; padding: 0; }
.hpin-on .hpanel-inner { width: 100%; max-width: 1320px; grid-template-columns: minmax(300px, 360px) 1fr; gap: 48px; }
/* Keep the screenshot bounded so it never grows up into the HUD on short screens */
.hpin-on .hpanel-shot { display: flex; justify-content: center; }
.hpin-on .hpanel-shot .app-window { width: 100%; max-width: 880px; }

/* Entrance animation per active panel */
.hpin-on .hpanel-text > * { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.hpin-on .hpanel-shot { opacity: 0; transform: translateY(30px) scale(0.965); transition: opacity 0.7s ease, transform 0.7s ease; }
.hpin-on .hpanel.live .hpanel-text > * { opacity: 1; transform: none; }
.hpin-on .hpanel.live .hpanel-text > *:nth-child(2) { transition-delay: 0.06s; }
.hpin-on .hpanel.live .hpanel-text > *:nth-child(3) { transition-delay: 0.12s; }
.hpin-on .hpanel.live .hpanel-text > *:nth-child(4) { transition-delay: 0.18s; }
.hpin-on .hpanel.live .hpanel-shot { opacity: 1; transform: none; transition-delay: 0.08s; }

.hpin-on .hpin-hud {
  display: flex; align-items: center; justify-content: space-between;
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: calc(var(--nav-h) + 18px) 32px 0; pointer-events: none;
}
.hpin-hud-left { display: flex; align-items: baseline; gap: 14px; }
.hpin-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.hpin-mod { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.hpin-hud-right { display: flex; align-items: center; gap: 16px; }
.hpin-count { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.hpin-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.hpin-bar-fill { height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, #00FFFF, #8000FF); transition: width 0.1s linear; }
html[data-theme="light"] .hpin-bar-fill { background: linear-gradient(90deg, #0B8090, #7C3AED); }

.hpin-on .hpin-hint {
  display: flex; align-items: center; gap: 9px;
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-mute); z-index: 5; pointer-events: none; transition: opacity 0.4s ease;
}
.hpin-hint svg { width: 18px; height: 18px; animation: hint-nudge 1.6s ease-in-out infinite; }
@keyframes hint-nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ============================================================
   13 · MOBILE FEATURE ROW + PHONE
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat-badges { display: flex; gap: 9px; margin-bottom: 20px; flex-wrap: wrap; }
.feat-text h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 18px; letter-spacing: -0.025em; }
.feat-text > p { font-size: 16.5px; color: var(--text-dim); line-height: 1.7; margin-bottom: 18px; max-width: 480px; text-wrap: pretty; }
.feat-list { list-style: none; margin: 8px 0 24px; display: flex; flex-direction: column; gap: 13px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; }
.feat-list .ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,0.10); color: var(--android);
}
.feat-list .ic svg { width: 16px; height: 16px; }
.feat-list .lt { font-size: 14.5px; font-weight: 600; color: var(--text); }
.feat-list .ld { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.feat-badges .bic { width: 13px; height: 13px; }
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 280px; max-width: 78vw; border-radius: 36px; padding: 11px;
  background: linear-gradient(160deg, #1c1c26, #0d0d14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07), inset 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #000; border-radius: 14px; z-index: 3;
}
.phone-screen { background: #0A0A11; border-radius: 27px; overflow: hidden; aspect-ratio: 146 / 295; position: relative; }
.phone-screen .real-shot { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   14 · ARCHITECTURE
   ============================================================ */
.plat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plat-card { padding: 30px; }
.plat-card .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.plat-card .pico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); }
.plat-card .pico img { width: 26px; height: 26px; object-fit: contain; }
.plat-card h3 { font-size: 18px; }
.plat-card .api { font-family: var(--mono); font-size: 12px; color: var(--primary); margin-bottom: 14px; display: block; word-break: break-word; }
.plat-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

.privacy-strip {
  margin-top: 40px; padding: 24px 30px;
  background: rgba(0,255,255,0.03);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--primary);
  border-radius: 12px; display: flex; align-items: center; gap: 18px;
}
.privacy-strip .pk { width: 38px; height: 38px; flex-shrink: 0; color: var(--primary); }
.privacy-strip .pk svg { width: 38px; height: 38px; }
.privacy-strip p { font-size: 15.5px; color: var(--text); }
.privacy-strip p .mono { font-family: var(--mono); color: var(--primary); }

/* ============================================================
   15 · COMPARISON TABLE
   ============================================================ */
.compare-wrap { overflow-x: auto; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; background: rgba(0,0,0,0.30); }
.compare th, .compare td { padding: 16px 18px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--border-soft); }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 500; color: var(--text); }
.compare thead th { font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.compare thead th.gk { color: var(--primary); background: rgba(0,255,255,0.06); border-top-left-radius: 12px; border-top-right-radius: 12px; }
.compare td.gk { background: rgba(0,255,255,0.04); }
.compare tbody tr:hover { background: rgba(255,255,255,0.015); }
.compare .yes { color: var(--primary); font-weight: 700; font-size: 16px; }
.compare .no { color: var(--text-mute); font-size: 15px; }
.compare .partial { color: var(--sandbox); font-size: 12px; font-weight: 600; }
.compare tbody tr:last-child td.gk { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.compare-cap { text-align: center; font-size: 12.5px; color: var(--text-mute); margin-top: 18px; }

/* ============================================================
   16 · STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { padding: 32px 26px; text-align: center; }
.stat .v { font-size: clamp(40px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--primary); text-shadow: 0 0 26px rgba(0,255,255,0.30); }
.stat .l { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 14px; }
.stat .s { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.stat:nth-child(2) .v { color: var(--ai); text-shadow: 0 0 26px rgba(34,197,94,0.30); }
.stat:nth-child(3) .v { color: #B07CFF; text-shadow: 0 0 26px rgba(128,0,255,0.30); }
.stat:nth-child(4) .v { color: var(--android); text-shadow: 0 0 26px rgba(59,130,246,0.30); }

/* ============================================================
   17 · DOWNLOAD CTA
   ============================================================ */
.download-cta { position: relative; }
.download-cta .container { text-align: center; }
.download-cta .glow-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(0,255,255,0.4), rgba(128,0,255,0.4), transparent); margin-bottom: 90px; }
.download-cta .glow-line.bottom { margin: 90px 0 0; }
.download-cta h2 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 18px; letter-spacing: -0.03em; }
.download-cta p { font-size: 18px; color: var(--text-dim); max-width: 460px; margin: 0 auto 38px; text-wrap: pretty; }
.download-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.download-sub { font-size: 14.5px; color: var(--text-dim); display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.download-sub a { color: var(--primary); font-weight: 500; }
.download-sub .sep { color: var(--text-mute); }

/* ============================================================
   18 · FOOTER
   ============================================================ */
footer { background: rgba(0,0,0,0.55); border-top: 1px solid var(--border-soft); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand .logo { margin-bottom: 16px; }
.foot-brand p { font-size: 14px; color: var(--text-dim); max-width: 280px; line-height: 1.6; margin-bottom: 18px; }
.foot-plats { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin-bottom: 16px; font-weight: 600; }
.foot-col a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 11px; transition: color 0.25s; }
.foot-col a:hover { color: var(--primary); }
.foot-bottom { border-top: 1px solid var(--border-soft); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-mute); flex-wrap: wrap; gap: 14px; }
.foot-bottom .fb-links { display: flex; gap: 18px; }
.foot-bottom .fb-links a:hover { color: var(--text); }

/* ============================================================
   19 · SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.instant { transition: none !important; opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hpin-on .hpanel-text > *, .hpin-on .hpanel-shot { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   20 · LIGHT THEME
   ============================================================ */
html[data-theme="light"] {
  --bg: #EEF1F6;
  --surface: #FFFFFF;
  --surface-2: #F3F5F9;
  --border: rgba(20, 24, 50, 0.12);
  --border-soft: rgba(20, 24, 50, 0.07);
  --primary: #0892A5;
  --secondary: #7C3AED;
  --text: #161823;
  --text-dim: #4D5066;
  --text-mute: #8589A0;
  --focus: #0892A5;
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] ::selection { background: rgba(8,146,165,0.18); color: #000; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(20,24,50,0.14); border-color: var(--bg); }

html[data-theme="light"] .ambient::before {
  background-image:
    linear-gradient(rgba(20,24,50,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,24,50,0.04) 1px, transparent 1px);
}
html[data-theme="light"] .orb-1 { background: rgba(8,146,165,0.10); }
html[data-theme="light"] .orb-2 { background: rgba(124,58,237,0.08); }

html[data-theme="light"] .glass { background: rgba(255,255,255,0.72); box-shadow: 0 10px 30px rgba(20,24,50,0.08); }
html[data-theme="light"] .glass:hover { background: rgba(255,255,255,0.92); border-color: rgba(8,146,165,0.30); }

html[data-theme="light"] nav.scrolled { background: rgba(238,241,246,0.82); border-bottom-color: var(--border-soft); }
html[data-theme="light"] .logo .name,
html[data-theme="light"] .grad-text {
  background: linear-gradient(115deg, #0892A5 0%, #7C3AED 60%, #0892A5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .eyebrow { color: #0892A5; }
html[data-theme="light"] .eyebrow::before { background: linear-gradient(90deg, #0892A5, transparent); }
html[data-theme="light"] .badge { background: rgba(20,24,50,0.04); color: var(--text-dim); }
html[data-theme="light"] .badge-cyan { color: #0B8090; background: rgba(8,146,165,0.10); border-color: rgba(8,146,165,0.28); }
html[data-theme="light"] .hero-tagline { color: var(--text-mute); }
html[data-theme="light"] .btn-primary { background: rgba(8,146,165,0.10); color: #0B8090; border-color: rgba(8,146,165,0.32); }
html[data-theme="light"] .btn-primary:hover { background: rgba(8,146,165,0.18); box-shadow: 0 0 22px rgba(8,146,165,0.18); }
html[data-theme="light"] .btn-ghost { color: var(--text-dim); }
html[data-theme="light"] .btn-ghost:hover { color: var(--text); border-color: rgba(20,24,50,0.25); background: rgba(20,24,50,0.03); }

html[data-theme="light"] .trust { border-color: var(--border-soft); }
html[data-theme="light"] .text-link:hover { color: #0B8090; }
html[data-theme="light"] .stack-foot { color: var(--text-dim); }
html[data-theme="light"] .divider-text { color: #0B8090; }

html[data-theme="light"] .compare { background: rgba(255,255,255,0.6); }
html[data-theme="light"] .compare thead th.gk { color: #0B8090; background: rgba(8,146,165,0.08); }
html[data-theme="light"] .compare td.gk { background: rgba(8,146,165,0.05); }
html[data-theme="light"] .compare .yes { color: #0B8090; }

html[data-theme="light"] .stat .v { color: #0B8090; text-shadow: none; }
html[data-theme="light"] .stat:nth-child(2) .v { color: #15924E; text-shadow: none; }
html[data-theme="light"] .stat:nth-child(3) .v { color: #7C3AED; text-shadow: none; }
html[data-theme="light"] .stat:nth-child(4) .v { color: #2563EB; text-shadow: none; }

html[data-theme="light"] footer { background: rgba(255,255,255,0.6); }
html[data-theme="light"] .privacy-strip { background: rgba(8,146,165,0.05); }
html[data-theme="light"] .privacy-strip p .mono, html[data-theme="light"] .privacy-strip .pk { color: #0B8090; }
html[data-theme="light"] .plat-card .api { color: #0B8090; }
html[data-theme="light"] .nav-links a.active { color: #0B8090; }

/* ============================================================
   21 · THEME TOGGLE
   ============================================================ */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text-dim); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.25s ease; flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: rgba(0,255,255,0.25); }
html[data-theme="light"] .theme-toggle { background: rgba(20,24,50,0.04); }
html[data-theme="light"] .theme-toggle:hover { border-color: rgba(8,146,165,0.30); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-moon { display: none; }
.theme-toggle .ic-sun { display: block; }
html[data-theme="light"] .theme-toggle .ic-moon { display: block; }
html[data-theme="light"] .theme-toggle .ic-sun { display: none; }

/* Per-theme logo swap */
.logo .shield.shield-light { display: none; }
html[data-theme="light"] .logo .shield.shield-dark { display: none; }
html[data-theme="light"] .logo .shield.shield-light { display: block; }

/* ============================================================
   22 · RESPONSIVE
   ============================================================ */

/* Tablet / large phone landscape */
@media (max-width: 980px) {
  section { padding: 88px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature .feat-visual { order: 2; }
  .cards-3, .plat-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Gallery falls back to a clean vertical stack below the pin breakpoint */
@media (max-width: 900px) {
  .hpanel-inner { grid-template-columns: 1fr; gap: 28px; }
  .hpanel-shot { order: -1; }
  .hpanel { padding: 44px 0; border-bottom: 1px solid var(--border-soft); }
  .hpin-rail .hpanel:last-child { border-bottom: none; }
}

/* Phones */
@media (max-width: 768px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .hamburger { display: block; }
  section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
  .layer-tag { writing-mode: horizontal-tb; transform: none; }
  .layer .num { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
}

/* Small phones */
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .prob-card, .plat-card { padding: 24px; }
  .hpanel-text p { font-size: 16px; }
  .privacy-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Short / landscape viewports — keep pinned panels clear of the HUD and bounded.
   Tiers cover common laptops: 16:9 1366×768 & 1536×864, 16:10 1280×800 & 1680×1050,
   and shorter browser viewports once OS/browser chrome is subtracted. */
@media (min-width: 901px) and (max-height: 900px) {
  .hpin-on .hpin-sticky { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 56px; }
  .hpin-on .hpanel-shot .app-window { max-width: 780px; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .hpin-on .hpin-sticky { padding-top: calc(var(--nav-h) + 50px); padding-bottom: 50px; }
  .hpanel-text h3 { font-size: clamp(23px, 2.8vw, 31px); margin-bottom: 13px; }
  .hpanel-text p { font-size: 15px; margin-bottom: 16px; }
  .hpin-on .hpanel-inner { gap: 44px; grid-template-columns: minmax(270px, 340px) 1fr; }
  .hpin-on .hpanel-shot .app-window { max-width: 700px; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .hpin-on .hpin-sticky { padding-top: calc(var(--nav-h) + 42px); padding-bottom: 44px; }
  .hpanel-text h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
  .hpanel-text p { font-size: 14.5px; margin-bottom: 14px; }
  .hpanel-tag { margin-bottom: 12px; }
  .hpin-on .hpanel-inner { gap: 38px; grid-template-columns: minmax(250px, 320px) 1fr; }
  .hpin-on .hpanel-shot .app-window { max-width: 600px; }
}
@media (min-width: 901px) and (max-height: 620px) {
  .hpin-on .hpin-sticky { padding-top: calc(var(--nav-h) + 34px); padding-bottom: 36px; }
  .hpin-on .hpanel-shot .app-window { max-width: 520px; }
  .hpanel-chips { display: none; }
}

/* Ultra-wide — keep imagery from getting cartoonishly large */
@media (min-width: 1700px) {
  :root { --maxw: 1320px; }
}

/* ============================================================
   23 · V2 WOW LAYER
   ============================================================ */

/* --- Live network canvas (behind everything) --- */
#netCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 768px) { #netCanvas { display: none; } }

/* --- Nav scroll progress --- */
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #00FFFF, #8000FF);
  opacity: 0; transition: opacity 0.3s ease;
}
nav.scrolled .nav-progress { opacity: 0.9; }
html[data-theme="light"] .nav-progress { background: linear-gradient(90deg, #0B8090, #7C3AED); }

/* --- Hero staggered word reveal --- */
.js .hw {
  display: inline-block;
  opacity: 0; transform: translateY(0.55em); filter: blur(10px);
  animation: hw-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.1s);
}
@keyframes hw-in { to { opacity: 1; transform: none; filter: none; } }

/* --- Typed tagline cursor --- */
.type-cursor {
  display: inline-block; width: 8px; height: 1em;
  background: var(--primary); vertical-align: text-bottom;
  margin-left: 3px; animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* --- Pointer-tracked specular highlight on glass cards --- */
.glass { position: relative; }
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,255,255,0.08), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.glass:hover::before { opacity: 1; }
html[data-theme="light"] .glass::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(8,146,165,0.10), transparent 65%);
}

/* --- Solution stack: live packet rail --- */
.stack-zone { position: relative; max-width: 880px; margin: 0 auto; }
.stack-zone .stack { max-width: none; }
.stack-rail {
  position: absolute; left: -58px; top: -20px; bottom: -20px; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(0,255,255,0.30) 10%, rgba(128,0,255,0.30) 90%, transparent);
}
.rail-label {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--text-mute); white-space: nowrap;
}
.packet {
  position: absolute; left: 50%; top: 0; width: 8px; height: 8px;
  margin-left: -4px; border-radius: 50%;
  background: #00FFFF; box-shadow: 0 0 10px rgba(0,255,255,0.8);
  will-change: transform, opacity; pointer-events: none;
}
.packet.burst {
  background: #F87171; box-shadow: 0 0 14px rgba(239,68,68,0.9);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}
.packet.pass {
  background: #22C55E; box-shadow: 0 0 12px rgba(34,197,94,0.9);
  transition: opacity 0.4s ease; opacity: 0;
}
.layer-flash { animation: layer-flash 0.55s ease; }
@keyframes layer-flash {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.45); }
  100% { box-shadow: 0 0 0 16px rgba(239,68,68,0); }
}
@media (max-width: 1040px) { .stack-rail { display: none; } }
html[data-theme="light"] .stack-rail { background: linear-gradient(180deg, transparent, rgba(8,146,165,0.35) 10%, rgba(124,58,237,0.35) 90%, transparent); }

/* --- Gallery: giant watermark number + inner parallax --- */
.hpin-on .hpanel { position: relative; }
.hpanel-num {
  display: none; position: absolute; right: 3vw; bottom: 1vh;
  font-family: var(--mono); font-weight: 800; line-height: 1;
  font-size: clamp(120px, 24vh, 280px); letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in oklab, var(--acc) 26%, transparent);
  opacity: 0.55; pointer-events: none; user-select: none; z-index: 0;
  will-change: transform;
}
.hpin-on .hpanel-num { display: block; }
.hpin-on .hpanel-inner { position: relative; z-index: 1; }
.hpin-on .hpanel-shot .app-window { will-change: transform; }

/* --- Comparison table: tick pop-in --- */
.js .compare .yes, .js .compare .no, .js .compare .partial {
  display: inline-block; opacity: 0; transform: scale(0.3);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--d, 0s);
}
.js .compare.ticks-in .yes, .js .compare.ticks-in .no, .js .compare.ticks-in .partial {
  opacity: 1; transform: none;
}

/* --- Download CTA: rotating conic border card --- */
@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.cta-card {
  position: relative; max-width: 880px; margin: 0 auto;
  padding: 72px 40px; border-radius: 24px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--spin),
    transparent 0%, rgba(0,255,255,0.9) 10%, transparent 24%,
    transparent 50%, rgba(128,0,255,0.9) 62%, transparent 78%);
  -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;
  animation: spin-border 7s linear infinite;
  pointer-events: none;
}
@keyframes spin-border { to { --spin: 360deg; } }
html[data-theme="light"] .cta-card { background: rgba(255,255,255,0.7); }
html[data-theme="light"] .cta-card::before {
  background: conic-gradient(from var(--spin),
    transparent 0%, rgba(8,146,165,0.8) 10%, transparent 24%,
    transparent 50%, rgba(124,58,237,0.8) 62%, transparent 78%);
}
@media (max-width: 600px) { .cta-card { padding: 56px 22px; } }

@media (prefers-reduced-motion: reduce) {
  .js .hw { animation: none; opacity: 1; transform: none; filter: none; }
  .type-cursor { display: none; }
  .cta-card::before { animation: none; }
  .js .compare .yes, .js .compare .no, .js .compare .partial { opacity: 1; transform: none; }
  .packet, .stack-rail { display: none; }
}

/* ============================================================
   24 · V3 — NAV TEXT LINK
   ============================================================ */
.nav-text-link {
  font-size: 14.5px; font-weight: 600; color: var(--text-dim);
  padding: 8px 10px; transition: color 0.25s;
}
.nav-text-link:hover { color: var(--text); }

/* ============================================================
   25 · V3 — PLATFORM BENTO
   ============================================================ */
.bento {
  display: grid; gap: 18px; margin-top: 56px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  grid-template-areas:
    "ai ai app app"
    "ai ai web net"
    "sand sand mob mob";
}
.bento-card {
  position: relative; padding: 26px; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  border-radius: 18px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, background 0.3s;
}
.bento-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--bc) 16%, transparent), transparent 60%);
  opacity: 0.5; transition: opacity 0.4s ease;
}
.bento-card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--bc) 45%, transparent); }
.bento-card:hover::after { opacity: 1; }
.bento-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.bento-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.55; }
.bento-ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--bc);
  background: color-mix(in oklab, var(--bc) 13%, transparent);
  border: 1px solid color-mix(in oklab, var(--bc) 30%, transparent);
}
.bento-ic svg { width: 23px; height: 23px; }
.bento-top { display: flex; align-items: center; justify-content: space-between; }
.bento-kicker {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bc);
  padding: 4px 9px; border-radius: 999px;
  background: color-mix(in oklab, var(--bc) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--bc) 28%, transparent);
}
.b-ai { gap: 16px; }
.b-ai h3 { font-size: 26px; }
.b-ai p { font-size: 16px; max-width: 42ch; }
.bento-demo {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: 12px;
  background: color-mix(in oklab, var(--bc) 7%, var(--surface));
  border: 1px solid var(--border-soft);
}
.bd-prompt { font-family: var(--mono); font-size: 14px; color: var(--text); }
.bd-resp {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13px; font-weight: 600; color: var(--ai);
}
.bd-resp svg { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas:
    "ai ai" "app app" "web net" "sand mob"; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-template-areas:
    "ai" "app" "web" "net" "sand" "mob"; }
}

/* ============================================================
   26 · V3 — AI CONSOLE
   ============================================================ */
#console { position: relative; }
.console-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 26px;
  align-items: start; margin-top: 48px;
}
.console-chips { display: flex; flex-direction: column; gap: 11px; }
.cchip {
  font-family: var(--font); font-size: 14.5px; font-weight: 500; text-align: left;
  color: var(--text-dim); cursor: pointer;
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.25s ease; position: relative;
}
.cchip::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 3px; background: var(--primary);
  transform: scaleY(0); transform-origin: 50% 50%; transition: transform 0.28s ease;
}
.cchip:hover { color: var(--text); border-color: color-mix(in oklab, var(--primary) 40%, transparent); transform: translateX(3px); }
.cchip.active {
  color: var(--text); background: color-mix(in oklab, var(--primary) 9%, var(--surface));
  border-color: color-mix(in oklab, var(--primary) 42%, transparent);
}
.cchip.active::before { transform: scaleY(1); }

.console-win { position: relative; min-height: 420px; border-radius: 16px; overflow: hidden; }
.console-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--text) 4%, var(--surface));
  position: relative; z-index: 1;
}
.cdot { width: 11px; height: 11px; border-radius: 50%; }
.console-brand {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--primary);
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
}
.console-brand svg { width: 16px; height: 16px; }
.console-title {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-dim);
}
.console-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ai);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.console-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ai); box-shadow: 0 0 8px var(--ai); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.console-body {
  position: relative; z-index: 1;
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
  font-size: 15px; min-height: 360px;
}
.cmsg { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(8px); animation: cmsg-in 0.4s ease forwards; }
@keyframes cmsg-in { to { opacity: 1; transform: none; } }
.cmsg-av {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.cmsg-user .cmsg-av { background: color-mix(in oklab, var(--primary) 16%, transparent); color: var(--primary); border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent); }
.cmsg-ai .cmsg-av { background: color-mix(in oklab, var(--ai) 16%, transparent); color: var(--ai); border: 1px solid color-mix(in oklab, var(--ai) 30%, transparent); }
.cmsg-av svg { width: 17px; height: 17px; }
.cmsg-bubble { flex: 1; }
.cmsg-role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 5px; }
.cmsg-user .cmsg-text { font-family: var(--mono); color: var(--text); }
.cmsg-ai .cmsg-text { color: var(--text-dim); line-height: 1.5; }
.ctype::after { content: "▋"; color: var(--primary); animation: cursor-blink 1s step-end infinite; margin-left: 1px; }
.cactions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.caction {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  font-size: 13.5px; color: var(--text);
  opacity: 0; transform: translateX(-6px); animation: caction-in 0.35s ease forwards;
}
@keyframes caction-in { to { opacity: 1; transform: none; } }
.caction .cax {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--ax, var(--ai)); background: color-mix(in oklab, var(--ax, var(--ai)) 15%, transparent);
}
.caction .cax svg { width: 13px; height: 13px; }
.caction .cmod { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ax, var(--ai)); margin-left: auto; }
.caction.deny { }
@media (max-width: 820px) {
  .console-grid { grid-template-columns: 1fr; }
  .console-chips { flex-direction: row; flex-wrap: wrap; }
  .cchip { flex: 1 1 auto; }
  .cchip::before { display: none; }
}

/* ============================================================
   27 · V3 — CONTACT / DEMO
   ============================================================ */
.contact-cta { padding-top: 40px; }
.contact-card { max-width: 1000px; padding: 0; }
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; }
.contact-pitch { padding: 52px 44px; }
.contact-pitch h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 16px; }
.contact-pitch > p { color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 40ch; }
.contact-list { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 13px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); font-weight: 500; }
.contact-list .ci { width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; color: var(--ai); background: color-mix(in oklab, var(--ai) 15%, transparent); }
.contact-list .ci svg { width: 14px; height: 14px; }
.contact-direct { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-mute); margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.contact-direct a { color: var(--primary); font-weight: 600; font-family: var(--mono); font-size: 14px; }
.contact-direct a:hover { text-decoration: underline; }
.contact-form {
  padding: 44px 40px; display: flex; flex-direction: column; gap: 16px;
  background: color-mix(in oklab, var(--text) 3%, var(--surface));
  border-left: 1px solid var(--border);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field input, .select-wrap select {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--text);
  padding: 13px 15px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder { color: var(--text-mute); }
.field input:focus, .select-wrap select:focus {
  outline: none; border-color: color-mix(in oklab, var(--primary) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 16%, transparent);
}
.field input:user-invalid { border-color: color-mix(in oklab, var(--appgate) 55%, transparent); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }
.select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-mute); pointer-events: none; }
.cf-submit { width: 100%; margin-top: 6px; }
.cf-note { font-size: 12.5px; color: var(--text-mute); text-align: center; transition: color 0.3s; }
.cf-note.ok { color: var(--ai); font-weight: 600; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-pitch { padding: 40px 26px 8px; }
  .contact-form { padding: 30px 26px 36px; border-left: none; border-top: 1px solid var(--border); }
}

html[data-theme="light"] .console-head { background: color-mix(in oklab, var(--text) 5%, #fff); }

/* ============================================================
   28 · V3 — PERFORMANCE: skip rendering offscreen heavy sections.
   Applied only to sections BELOW the pinned gallery so the pin's
   scroll geometry is never affected. `auto` intrinsic-size lets the
   browser remember each section's real height (no scroll jumps).
   ============================================================ */
#features, #how, #compare, #stats, #contact, footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
footer { contain-intrinsic-size: auto 420px; }
