/* ============================================================
   VRS — site theme (v3) · dark-first, light toggle
   Semantic tokens flip on [data-theme]; brand green is constant.
   Geist · Geist Mono · Barlow Condensed (aligned with product design system)
   ============================================================ */

:root, [data-theme="dark"] {
  --bg:        #080F09;
  --bg-grad:   #0B140D;
  --surface:   #0F1A11;
  --surface-2: #15241A;
  --surface-3: #1C3122;
  --text:      #EDF6EF;
  --text-2:    rgba(203,228,210,0.64);
  --text-3:    rgba(203,228,210,0.40);
  --hairline:  rgba(176,214,186,0.12);
  --line:      rgba(176,214,186,0.18);
  --glass:     rgba(18,30,20,0.66);
  --glass-brd: rgba(176,214,186,0.14);

  --accent-text: #18B24B;          /* green text on dark = brand green — same green as CTAs/nav (console --primary) */
  --shadow-card: 0 30px 60px -30px rgba(0,0,0,0.7), 0 2px 10px rgba(0,0,0,0.4);
  --shadow-pop:  0 50px 100px -36px rgba(0,0,0,0.8), 0 10px 30px -16px rgba(0,0,0,0.55);
  --glow:        rgba(24,178,75,0.30);
  --nav-bg:      rgba(8,15,9,0.72);
  --grid-line:   rgba(176,214,186,0.05);
  --pill-amber-bg:#3A2A12; --pill-amber-tx:#F5BC5C;
  --pill-blue-bg:#15263A;   --pill-blue-tx:#79B8FF;
  --warn-bg:#2A1E0C; --warn-tx:#F2C381; --warn-brd:rgba(245,188,92,0.22);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg:        #FBFBF9;
  --bg-grad:   #F3F7F2;
  --surface:   #FFFFFF;
  --surface-2: #F4F6F2;
  --surface-3: #EAF0EA;
  --text:      #15221A;
  --text-2:    #51604F;
  --text-3:    #8A968E;
  --hairline:  rgba(20,33,26,0.08);
  --line:      rgba(20,33,26,0.12);
  --glass:     rgba(255,255,255,0.72);
  --glass-brd: rgba(20,33,26,0.08);

  --accent-text: #12893A;         /* product --green-dark */
  --shadow-card: 0 24px 50px -28px rgba(13,40,22,0.28), 0 2px 8px rgba(20,33,26,0.05);
  --shadow-pop:  0 44px 90px -34px rgba(13,40,22,0.30), 0 10px 28px -16px rgba(20,33,26,0.14);
  --glow:        rgba(24,178,75,0.16);
  --nav-bg:      rgba(251,251,249,0.78);
  --grid-line:   rgba(20,33,26,0.04);
  --pill-amber-bg:#FBEFDD; --pill-amber-tx:#B45309;
  --pill-blue-bg:#E4F0FB;   --pill-blue-tx:#0078D4;
  --warn-bg:#FBEFDD; --warn-tx:#8A4A0C; --warn-brd:rgba(180,83,9,0.2);
  color-scheme: light;
}

:root {
  --on-green: #04220f;         /* accessible ink on any brand green */
  /* Canonical brand ramp = product design-system (vrs-tokens.css) — aligned 2026-07-29.
     One green everywhere: #18B24B / text-on-light #12893A / light #4DCC75. */
  --green:   #18B24B;
  --green-l: #4DCC75;
  --green-d: #12893A;
  --green-wash: color-mix(in oklab, var(--green) 14%, var(--surface));
  --font: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --disp: 'Barlow Condensed', var(--font);
  --maxw: 1240px;
  --r-sm: 9px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x:clip (not hidden): body{overflow-x:hidden} below does NOT stop iOS
   Safari's horizontal pan gesture when content is intrinsically wider than the
   viewport — clip on html does, and unlike hidden it creates no scroll container,
   so position:sticky (the nav) keeps working. Unsupporting engines ignore it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* hidden = legacy fallback; clip wins in modern engines. Must be clip once html
     is clip: with html no longer overflow:visible, body's value stops propagating
     to the viewport and applies to body itself — `hidden` would then make body a
     scroll container and break the sticky nav; `clip` never creates one. */
  font-feature-settings: "ss01","cv11"; overflow-x: hidden; overflow-x: clip;
  transition: background .5s ease, color .4s ease;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -10%, var(--glow), transparent 60%),
    radial-gradient(900px 600px at 6% 0%, color-mix(in oklab, var(--green) 8%, transparent), transparent 64%),
    linear-gradient(var(--bg), var(--bg-grad));
  transition: background .5s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: var(--on-green); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }

/* type */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--green); transform: rotate(45deg); flex: none; box-shadow: 0 0 10px var(--glow); }
h1,h2,h3,h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; color: var(--text); }
.display { font-size: clamp(40px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -0.03em; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.lede { font-size: clamp(17px, 1.45vw, 20px); color: var(--text-2); line-height: 1.5; }
.grad-text { color: var(--accent-text); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--green); color: var(--on-green); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -8px var(--glow); }
.btn-primary:hover { background: color-mix(in oklab, var(--green) 88%, #fff); color: var(--on-green); transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--glow); }
.btn-ghost { background: color-mix(in oklab, var(--text) 4%, transparent); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-ghost svg { color: var(--accent-text); }
.btn.sm { padding: 9px 16px; font-size: 13.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--accent-text); font-size: 15px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px); border-bottom-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; flex: none; background: #fff; padding: 3px; box-shadow: 0 0 0 1px var(--hairline), 0 6px 16px -6px var(--glow); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .15s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content:""; position:absolute; left:0; right:0; bottom:-22px; height:2px; background: var(--green); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .signin { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }

/* theme toggle */
.theme-toggle { width: 58px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); position: relative; cursor: pointer; flex: none; transition: background .3s; }
.theme-toggle .knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: var(--on-green); transition: transform .3s ease-out; box-shadow: 0 4px 10px -3px var(--glow); }
.theme-toggle .knob svg { width: 13px; height: 13px; }
.theme-toggle .knob .sun { display: none; }
[data-theme="light"] .theme-toggle .knob { transform: translateX(28px); }
[data-theme="light"] .theme-toggle .knob .moon { display: none; }
[data-theme="light"] .theme-toggle .knob .sun { display: block; }

/* sections */
section { position: relative; }
.pad { padding: 110px 0; }
.pad-sm { padding: 76px 0; }
.shead { max-width: 760px; }
.shead.center { margin: 0 auto; text-align: center; }
.shead h2 { margin: 18px 0 0; }
.shead .lede { margin-top: 18px; max-width: 60ch; }
.shead.center .lede { margin-left: auto; margin-right: auto; }

.surface-band { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* footer */
.footer { border-top: 1px solid var(--hairline); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 36px; }
.footer .brand { margin-bottom: 14px; }
.footer .fdesc { font-size: 14px; color: var(--text-2); max-width: 30ch; }
.footer .partner { margin-top: 16px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; color: var(--text-3); border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; }
.footer .partner .ms { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 14px; height: 14px; }
.footer .partner .ms i { display: block; border-radius: 1px; }
.footer .fh { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--text-2); transition: color .15s; }
.footer ul a:hover { color: var(--text); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 12px; }
.footer-bot .mono { font-family: var(--mono); }
.footer-bot .legal-links a { color: var(--text-3); transition: color .15s; }
.footer-bot .legal-links a:hover { color: var(--text); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{transition-delay:.08s}.reveal[data-d="2"]{transition-delay:.16s}.reveal[data-d="3"]{transition-delay:.24s}.reveal[data-d="4"]{transition-delay:.32s}
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none} html{scroll-behavior:auto} .no-rm{animation:none!important} }

/* responsive */
@media (max-width: 900px){
  .nav-links{display:none}
  .pad{padding:76px 0}
  .footer-grid{grid-template-columns:1fr 1fr;gap:26px}
  .footer-grid>.fbrand{grid-column:1/-1}
}
@media (max-width: 600px){ .wrap{padding:0 20px} .nav-cta .signin{display:none} }

/* screen-reader-only text (a11y) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
