/* ==========================================================================
   ViewSense — Design System
   Brand: extracted from "ViewSense Logo Final.pdf"
   Type:  Exo 2 (display), Inter (body/UI), Space Grotesk (eyebrows/data)
   ========================================================================== */

/* ---------- Self-hosted fonts (latin) ----------------------------------- */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/exo2-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/exo2-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/spacegrotesk-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/spacegrotesk-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Brand tokens (theme-independent) ---------------------------- */
:root {
  /* Primary brand — official ViewSense palette (from the brand colour sheet) */
  --vs-blue: #0075DC;          /* light-bg blue  (View)  */
  --vs-blue-bright: #08A5FC;   /* dark-bg  blue  (View)  */
  --vs-green: #02C18D;         /* light-bg green (Sense) */
  --vs-green-bright: #28EAAE;  /* dark-bg  green (Sense) */
  --vs-cyan: #03CCF6;          /* gradient midpoint      */
  --vs-navy: #000321;          /* brand ink              */
  --vs-navy-2: #060B23;
  --vs-navy-3: #0B1437;

  /* Signature gradients — official 3-stop brand gradients from the brand sheet */
  --grad-brand: linear-gradient(100deg, #0578FD 0%, #03CCF6 50%, #28EAAF 100%);
  --grad-brand-soft: linear-gradient(100deg, #006BDE 0%, #00B1DB 50%, #01C293 100%);
  --grad-aurora: linear-gradient(120deg, #0578FD 0%, #03CCF6 48%, #28EAAF 100%);

  /* Type families */
  --font-display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, "SF Mono", monospace;

  /* Type scale (fluid) */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --fs-lead: clamp(1.12rem, 1.04rem + 0.4vw, 1.32rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-h2: clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.85rem + 3.3vw, 4.6rem);
  --fs-display: clamp(3rem, 2rem + 5vw, 6rem);

  /* Spacing & radius */
  --maxw: 1200px;
  --maxw-wide: 1340px;
  --gap: clamp(1rem, 0.7rem + 1.4vw, 1.75rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 72px;
}

/* ---------- Dark theme (default) ---------------------------------------- */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000321;
  --bg-2: #04081F;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #0B1030;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #EAF0FF;
  --text-2: #AEB8D8;
  --text-3: #7E89AE;
  --heading: #FFFFFF;
  --shadow-color: 0deg 0% 0%;
  --shadow-1: 0 1px 2px hsl(var(--shadow-color) / 0.4);
  --shadow-2: 0 10px 30px -10px hsl(var(--shadow-color) / 0.6);
  --shadow-3: 0 30px 70px -20px hsl(var(--shadow-color) / 0.7);
  --glow: 0 0 0 1px rgba(40, 234, 174, 0.0), 0 18px 60px -18px rgba(8, 165, 252, 0.45);
  --header-bg: rgba(6, 9, 28, 0.72);
  --hero-grid: rgba(255, 255, 255, 0.045);
  --code-bg: rgba(10, 16, 44, 0.7);
  --logo-text-shadow: 0 1px 14px rgba(8, 165, 252, 0.25);
}

/* ---------- Light theme ------------------------------------------------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-2: #F7FAFC;
  --surface: #FFFFFF;
  --surface-2: #F5F8FF;
  --surface-solid: #FFFFFF;
  --border: rgba(11, 20, 55, 0.10);
  --border-strong: rgba(11, 20, 55, 0.18);
  --text: #1B2440;
  --text-2: #515C7E;
  --text-3: #7A85A3;
  --heading: #0A1130;
  --shadow-color: 222deg 60% 30%;
  --shadow-1: 0 1px 2px hsl(var(--shadow-color) / 0.10);
  --shadow-2: 0 14px 36px -16px hsl(var(--shadow-color) / 0.22);
  --shadow-3: 0 32px 64px -28px hsl(var(--shadow-color) / 0.28);
  --glow: 0 18px 50px -22px rgba(8, 117, 220, 0.35);
  --header-bg: rgba(255, 255, 255, 0.78);
  --hero-grid: rgba(11, 20, 55, 0.05);
  --code-bg: #0B1030;
  --logo-text-shadow: none;
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so body stays a non-scroll container and #hash / scroll work */
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--vs-green-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(40, 234, 174, 0.28); color: var(--heading); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

/* ---------- Layout primitives ------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 0.5rem + 2vw, 2rem); }
.container--wide { max-width: var(--maxw-wide); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Text helpers ----------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vs-green);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--vs-green), transparent);
}
.eyebrow--center::before { display: none; }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* fallback */
  -webkit-text-fill-color: transparent;
}
.text-balance { text-wrap: balance; }
.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 0.7rem; }
.section-head p { margin-top: 1rem; }

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.005em;
  padding: 0.82em 1.5em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  color: #00121A;
  background: var(--grad-brand);
  background-size: 160% 160%;
  box-shadow: 0 10px 28px -12px rgba(8, 165, 252, 0.7), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(40, 234, 174, 0.6); background-position: 100% 0; }

.btn-ghost {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--vs-green); color: var(--heading); }

.btn-outline { color: var(--text); border-color: var(--border-strong); background: transparent; }
.btn-outline:hover { border-color: var(--vs-green); color: var(--vs-green); }

.btn-lg { padding: 1em 1.9em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-text { color: var(--vs-green); font-weight: 600; display: inline-flex; align-items: center; gap: 0.4em; }
.btn-text:hover { color: var(--vs-green-bright); }
.btn-text .btn-arrow { transition: transform 0.3s var(--ease); }
.btn-text:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Pills / chips / badges ------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.4em 0.9em;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vs-green-bright); box-shadow: 0 0 0 0 rgba(40,234,174,0.6); animation: pulse-dot 2.4s infinite; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3em 0.7em; border-radius: 6px;
  background: rgba(40, 234, 174, 0.12); color: var(--vs-green);
  border: 1px solid rgba(40, 234, 174, 0.25);
}
.badge--blue { background: rgba(8,165,252,0.12); color: var(--vs-blue); border-color: rgba(8,165,252,0.25); }
[data-theme="dark"] .badge--blue { color: var(--vs-blue-bright); }
.badge--green { background: rgba(40,234,174,0.13); color: var(--vs-green); border-color: rgba(40,234,174,0.28); }
[data-theme="dark"] .badge--green { color: var(--vs-green-bright); }

/* ---------- Cards ------------------------------------------------------ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
}
[data-theme="light"] .card {
  border-color: rgba(11, 20, 55, 0.10);
  box-shadow: 0 1px 2px rgba(16, 24, 64, 0.05), 0 6px 16px -6px rgba(16, 24, 64, 0.12), 0 20px 40px -16px rgba(16, 24, 64, 0.14);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-2); }
[data-theme="light"] .card:hover {
  border-color: rgba(11, 20, 55, 0.14);
  box-shadow: 0 2px 4px rgba(16, 24, 64, 0.06), 0 10px 24px -6px rgba(16, 24, 64, 0.14), 0 30px 56px -18px rgba(16, 24, 64, 0.20);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--vs-green-bright);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.card p { color: var(--text-2); font-size: 0.97rem; }

/* Feature card with gradient hairline on hover */
.card--glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card--glow:hover::before { opacity: 0.9; }

/* Spotlight follows cursor (set via JS --mx/--my) */
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(40,234,174,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.spotlight:hover::after { opacity: 1; }

/* ---------- Header / Nav ----------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-1);
}
.nav { display: flex; align-items: center; gap: 1.5rem; width: 100%; }
.nav-links { display: flex; align-items: center; gap: 0.3rem; margin-inline: auto; }
.nav-link {
  position: relative; padding: 0.5em 0.85em; border-radius: 8px;
  font-size: 0.93rem; font-weight: 500; color: var(--text-2);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link:hover { color: var(--heading); background: var(--surface-2); }
.nav-link.active { color: var(--heading); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0.85em; right: 0.85em; bottom: 2px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta { display: none; }

/* Logo */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo .logo-img { display: block; width: auto; height: 30px; }
.site-footer .logo .logo-img { height: 27px; }
/* Theme-aware lockup: white knockout on dark (default), full colour on light */
.logo .logo-light { display: none; }
[data-theme="light"] .logo .logo-light { display: block; }
[data-theme="light"] .logo .logo-dark { display: none; }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); transition: all 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--vs-green); color: var(--vs-green); transform: rotate(15deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.nav-actions .theme-toggle { order: 9; }  /* keep the toggle as the right-most action */
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile menu button */
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px auto; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--header-bg); backdrop-filter: blur(20px);
    padding: 1rem 1.2rem 1.6rem; margin: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  body.menu-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 0.85em 0.85em; font-size: 1.05rem; border-radius: 10px; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--surface-2); }
  .nav .btn-ghost.hide-mobile { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-cta { display: inline-flex; justify-content: center; margin-top: 0.7rem; }
}
@media (max-width: 560px) {
  /* top-bar demo button moves into the menu to avoid crowding */
  .nav-actions .btn-primary { display: none; }
}
@media (max-width: 420px) {
  .logo .logo-img { height: 26px; }
}

/* ---------- Hero ------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 6rem)); padding-bottom: clamp(3rem, 2rem + 5vw, 7rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero canvas#bidstream { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  z-index: -2; animation: float 16s ease-in-out infinite;
}
[data-theme="light"] .blob { opacity: 0.32; }
.blob-1 { width: 540px; height: 540px; background: radial-gradient(circle, rgba(8,165,252,0.55), transparent 70%); top: -180px; left: -120px; }
.blob-2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(40,234,174,0.42), transparent 70%); top: -120px; right: -160px; animation-delay: -5s; }
.blob-3 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(128,95,249,0.34), transparent 70%); bottom: -220px; left: 30%; animation-delay: -9s; }

.hero-inner { position: relative; text-align: center; max-width: 960px; margin-inline: auto; }
.hero h1 { margin: 1.2rem 0 0; }
.hero .lead { margin: 1.5rem auto 0; max-width: 660px; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-trust { margin-top: 2.4rem; color: var(--text-3); font-size: 0.85rem; }
.hero--compact { padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.hero--compact .hero-inner { max-width: 880px; }
.hero--compact h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem); }
.eyebrow-static { font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--vs-green); }

/* ---------- Stats ------------------------------------------------------ */
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { margin-top: 0.5rem; color: var(--text-2); font-size: 0.92rem; }
.stat-sub { color: var(--text-3); font-size: 0.8rem; margin-top: 0.15rem; }

/* ---------- Marquee ---------------------------------------------------- */
.marquee { 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-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text-2); font-family: var(--font-mono); font-weight: 500; font-size: 1.02rem; white-space: nowrap; opacity: 0.85; }
.marquee-item svg { width: 22px; height: 22px; color: var(--text-3); }

/* ---------- Split / feature rows --------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }
.feature-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--text-2); }
.feature-list .check { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(40,234,174,0.14); color: var(--vs-green-bright); margin-top: 1px; }
.feature-list .check svg { width: 14px; height: 14px; }
.feature-list strong { color: var(--text); font-weight: 600; }

/* ---------- Visual panel (glass) --------------------------------------- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.panel-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.panel-dots { display: flex; gap: 0.4rem; }
.panel-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.panel-title { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); margin-left: auto; letter-spacing: 0.04em; }
.panel-body { padding: 1.3rem; }

/* Capability list — numberless product visual inside panels/cards */
.panel-list { display: grid; gap: 0.6rem; }
.panel-list .pl-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.72rem 0.85rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.panel-list .pl-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(40, 234, 174, 0.14); color: var(--vs-green-bright); }
.panel-list .pl-ico svg { width: 15px; height: 15px; }
.panel-list .pl-label { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.panel-list .pl-tag { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); letter-spacing: 0.02em; white-space: nowrap; }

/* ---------- Dashboard mock --------------------------------------------- */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 0.9rem 1rem; }
.kpi .k-label { font-size: 0.72rem; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.kpi .k-val { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--heading); margin-top: 0.2rem; }
.kpi .k-delta { font-size: 0.76rem; font-weight: 600; margin-top: 0.15rem; }
.k-delta.up { color: var(--vs-green); } .k-delta.down { color: #FF6B6B; }
.chart { margin-top: 1rem; height: 120px; width: 100%; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.chart-bars .bar { flex: 1; border-radius: 5px 5px 0 0; background: var(--grad-brand); opacity: 0.85; transform-origin: bottom; }

/* ---------- Code block ------------------------------------------------- */
.code {
  font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.7;
  background: var(--code-bg); color: #C8D3F5; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.2rem 1.3rem; overflow-x: auto;
}
.code .c-key { color: #28EAAE; } .code .c-str { color: #8FD0FF; } .code .c-num { color: #C0A9FA; } .code .c-com { color: #5C6896; } .code .c-fn { color: #FFD580; }

/* ---------- Steps / process -------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step-num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--vs-green-bright);
}
.step-num::before { content: counter(step, decimal-leading-zero); }

/* ---------- Comparison table ------------------------------------------- */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); }
.cmp th, .cmp td { padding: 1rem 1.15rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.94rem; vertical-align: middle; }
.cmp thead th { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); position: sticky; top: 0; }
.cmp tbody th { font-weight: 600; color: var(--text); width: 30%; }
.cmp .col-vs { background: linear-gradient(180deg, rgba(40,234,174,0.07), rgba(8,165,252,0.04)); }
.cmp thead .col-vs { background: rgba(40,234,174,0.12); color: var(--vs-green); }
.cmp td.center, .cmp th.center { text-align: center; }
.cmp .yes { color: var(--vs-green); font-weight: 600; }
.cmp .no { color: var(--text-3); }
.cmp .partial { color: var(--vs-blue-bright); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background-color: var(--surface-2); }
.cmp .col-vs:hover { }

/* ---------- Pricing ---------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: transparent; background: var(--surface-2); }
.price-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad-aurora); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.price-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--heading); }
.price-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem,1.6rem+2vw,3rem); color: var(--heading); margin-top: 0.6rem; line-height: 1; }
.price-amount small { font-size: 0.95rem; color: var(--text-3); font-weight: 500; font-family: var(--font-body); }
.price-desc { color: var(--text-2); margin: 0.7rem 0 1.3rem; font-size: 0.94rem; }
.price-features { display: grid; gap: 0.75rem; margin: 1.3rem 0; }
.price-features li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--text-2); }
.price-features .check { color: var(--vs-green-bright); flex: none; margin-top: 2px; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ / accordion -------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.3rem 0; background: none; border: none; color: var(--heading); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.faq-q .faq-ico { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; transition: transform 0.3s var(--ease), background 0.3s; position: relative; }
.faq-q .faq-ico::before, .faq-q .faq-ico::after { content: ""; position: absolute; background: var(--vs-green); border-radius: 2px; }
.faq-q .faq-ico::before { width: 12px; height: 2px; } .faq-q .faq-ico::after { width: 2px; height: 12px; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-ico::after { transform: rotate(90deg) scaleX(0); }
.faq-item.open .faq-ico { background: rgba(40,234,174,0.12); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding-bottom: 1.3rem; color: var(--text-2); max-width: 760px; }

/* ---------- CTA band --------------------------------------------------- */
.cta-band { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: clamp(2.5rem, 1.5rem + 4vw, 5rem); text-align: center; background: var(--surface-2); border: 1px solid var(--border); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--grad-aurora); opacity: 0.12; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 640px; margin-inline: auto; }
.cta-band .lead { max-width: 560px; margin: 1rem auto 0; }
.cta-band .hero-cta { margin-top: 2rem; }

/* ---------- Footer ----------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; } .footer-brand-col { grid-column: 1 / -1; } }
.footer-brand-col p { color: var(--text-2); font-size: 0.92rem; margin-top: 1rem; max-width: 300px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; font-weight: 600; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { color: var(--text-2); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--vs-green); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.85rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); transition: all 0.25s var(--ease); }
.footer-social a:hover { color: var(--vs-green); border-color: var(--vs-green); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Forms ------------------------------------------------------ */
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.8em 1em; transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--vs-green); box-shadow: 0 0 0 3px rgba(40,234,174,0.16); }
.form-note { font-size: 0.82rem; color: var(--text-3); }

/* ---------- Misc dividers / decoration --------------------------------- */
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); border: 0; }
.glow-line { height: 1px; background: var(--grad-brand); opacity: 0.6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.kbd { font-family: var(--font-mono); font-size: 0.8rem; padding: 0.15em 0.5em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }

/* ---------- Architecture diagram --------------------------------------- */
.arch { display: grid; gap: 0.8rem; }
.arch-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; }
.arch-node { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 0.9rem 1rem; text-align: center; font-size: 0.88rem; font-weight: 500; color: var(--text); position: relative; }
.arch-node .a-sub { display: block; font-size: 0.74rem; color: var(--text-3); font-family: var(--font-mono); margin-top: 0.2rem; }
.arch-node.accent { border-color: rgba(40,234,174,0.4); background: linear-gradient(180deg, rgba(40,234,174,0.1), rgba(8,165,252,0.05)); }
.arch-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); text-align: center; }
/* System-map: tint the panel body so the (white) tiles get real separation in light theme */
[data-theme="light"] .panel--map .panel-body { background: var(--bg-2); }
[data-theme="light"] .panel--map .arch-node {
  background: #FFFFFF;
  border-color: rgba(11, 20, 55, 0.10);
  box-shadow: 0 1px 2px rgba(15, 23, 64, 0.05), 0 10px 22px -12px rgba(15, 23, 64, 0.13);
}
[data-theme="light"] .panel--map .arch-node.accent {
  background: linear-gradient(180deg, rgba(40, 234, 174, 0.18), rgba(8, 165, 252, 0.08));
  border-color: rgba(2, 193, 141, 0.5);
}

/* ---------- Scroll reveal animations ----------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); will-change: transform, opacity; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].in { transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--grad-brand); z-index: 200; }

/* Back-to-top button (injected by main.js) */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.2vw, 2rem);
  bottom: clamp(1rem, 2.2vw, 2rem);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #00121A;
  background: var(--grad-brand);
  border: none;
  box-shadow: 0 10px 28px -10px rgba(8, 165, 252, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 38px -10px rgba(40, 234, 174, 0.6); }
.to-top:active { transform: translateY(0) scale(0.95); }
.to-top svg { width: 22px; height: 22px; }
body.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 480px) { .to-top { width: 44px; height: 44px; } }

/* ---------- Keyframes -------------------------------------------------- */
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-30px) translateX(18px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(40,234,174,0.5); } 70% { box-shadow: 0 0 0 8px rgba(40,234,174,0); } 100% { box-shadow: 0 0 0 0 rgba(40,234,174,0); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes draw-dash { to { stroke-dashoffset: 0; } }
@keyframes shimmer { 100% { background-position: 200% 0; } }
@keyframes rise-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.float-soft { animation: float 9s ease-in-out infinite; }
.shimmer { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* ---------- Reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .blob, .marquee-track { animation: none !important; }
}

/* ---------- Prose (legal / long-form) ---------------------------------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose > p:first-of-type { font-size: var(--fs-lead); color: var(--text-2); }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.6rem; margin-bottom: 0.7rem; }
.prose h3 { font-size: 1.08rem; margin-top: 1.5rem; margin-bottom: 0.4rem; color: var(--text); }
.prose p { color: var(--text-2); margin-bottom: 1rem; }
.prose ul.bullets { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; color: var(--text-2); }
.prose ul.bullets li { margin-bottom: 0.5rem; }
.prose a { color: var(--vs-green); font-weight: 600; }
.prose strong { color: var(--text); }
.prose .toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.5rem 0 2.5rem; }
.prose .toc ol { padding-left: 1.2rem; margin: 0.4rem 0 0; color: var(--text-2); }
.prose .toc li { margin-bottom: 0.35rem; }
.prose .toc a { color: var(--text-2); font-weight: 500; }
.prose .toc a:hover { color: var(--vs-green); }

/* ---------- Utilities -------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .wrap { flex-wrap: wrap; }
.full-bleed-bg { background: var(--bg-2); }
.relative { position: relative; }
.hide-sm { } @media (max-width: 680px) { .hide-sm { display: none !important; } }
.max-60 { max-width: 60ch; }
