/* ==========================================================================
   PRISM — marketing site
   ========================================================================== */

:root {
  --bg: #05070c;
  --bg-2: #080c14;
  --surface: #0b111b;
  --surface-2: #0f1622;
  --line: rgba(148, 163, 184, .1);
  --line-2: rgba(148, 163, 184, .16);
  --line-3: rgba(148, 163, 184, .26);

  --text: #e8edf4;
  --text-2: #a3afc0;
  --text-3: #6b778a;
  --text-4: #465163;

  --emerald: #34d399;
  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --amber: #fbbf24;
  --rose: #fb7185;

  --c-changed: var(--emerald);
  --c-method: var(--cyan);
  --c-test: #a78bfa;
  --c-api: var(--blue);

  --font: "Schibsted Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre, .mono { font-family: var(--mono); }
em { font-style: normal; color: var(--text); }
::selection { background: rgba(34, 211, 238, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 500; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* legend dots */
.lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-method); flex: none; }
.lg--changed { background: var(--c-changed); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.lg--test { background: var(--c-test); border-radius: 2px; }
.lg--api { background: var(--c-api); transform: rotate(45deg); border-radius: 1.5px; width: 7px; height: 7px; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; gap: 9px;
  height: var(--h); padding: 0 18px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -.005em;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--text); color: #070a10; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 24px -12px rgba(34, 211, 238, .55); }
.btn--primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 30px -14px rgba(34, 211, 238, .75); }
.btn--primary:hover svg { animation: nudge .9s var(--ease) infinite; }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(15, 22, 34, .55); color: var(--text); backdrop-filter: blur(8px); }
.btn--sm { --h: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn--lg { --h: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn--ghost:hover { border-color: var(--line-3); background: rgba(22, 31, 46, .75); transform: translateY(-1px); }
@keyframes nudge { 50% { transform: translateY(2px); } }

.link-btn { white-space: nowrap; color: var(--text-3); font: 500 12px/1 var(--mono); padding: 6px 0; transition: color .2s; }
.link-btn:hover { color: var(--text); }

/* segmented control */
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: rgba(5, 7, 12, .6); }
.seg__label { padding: 0 8px 0 6px; font: 500 11px/1 var(--mono); color: var(--text-4); }
.seg__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 10px; border-radius: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--text-3);
  transition: background-color .2s, color .2s;
}
.seg__btn:hover { color: var(--text-2); }
.seg__btn.is-on { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.seg__btn:not(.is-on) .lg { opacity: .35; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(5, 7, 12, .72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 27px; overflow: visible; }
.wordmark { font-family: var(--font); font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #f1f5f9; }
.wordmark__i { background: linear-gradient(180deg, #6ee7b7 0%, #22d3ee 55%, #60a5fa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 4px; margin-left: 28px; }
.nav__links a { position: relative; padding: 7px 12px; border-radius: 8px; color: var(--text-3); font-size: 13.5px; font-weight: 450; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: rgba(148, 163, 184, .06); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.nav__cta-mobile { display: none; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 21px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 48px) 0 96px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 12, .92) 22%, rgba(5, 7, 12, .45) 46%, rgba(5, 7, 12, 0) 66%),
    linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, rgba(5, 7, 12, 0) 18%, rgba(5, 7, 12, 0) 72%, var(--bg) 100%);
}
.hero__light { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero__light::before {
  content: ""; position: absolute; inset: -10% -10% auto auto; width: 70%; height: 90%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .09), transparent 70%);
  filter: blur(10px);
}
.hero__light::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .35;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 0%, transparent 75%);
}
.beam { position: absolute; left: 50%; top: 44%; height: 1px; transform-origin: 0 50%; opacity: 0; animation: beam-in 2.2s var(--ease-out) .5s forwards; }
.beam--in { left: -10%; width: 62%; top: 52%; transform: rotate(-7deg); background: linear-gradient(90deg, transparent, rgba(226, 232, 240, .14) 70%, rgba(226, 232, 240, .28)); height: 1px; }
.beam--a, .beam--b, .beam--c { width: 70%; height: 140px; margin-top: -70px; filter: blur(28px); mix-blend-mode: screen; }
.beam--a { transform: rotate(-16deg); background: linear-gradient(90deg, rgba(52, 211, 153, .0), rgba(52, 211, 153, .07) 30%, transparent); }
.beam--b { transform: rotate(-5deg); background: linear-gradient(90deg, rgba(34, 211, 238, .0), rgba(34, 211, 238, .08) 30%, transparent); }
.beam--c { transform: rotate(7deg); background: linear-gradient(90deg, rgba(96, 165, 250, .0), rgba(96, 165, 250, .07) 30%, transparent); }
@keyframes beam-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 48px; pointer-events: none; }
.hero__inner a, .hero__inner button, .readout { pointer-events: auto; }
.hero__copy { max-width: 660px; }
.hero__title {
  margin: 0 0 22px;
  font-size: clamp(52px, 8vw, 104px); line-height: .96; letter-spacing: -.05em; font-weight: 600;
  background: linear-gradient(180deg, #fff 30%, #c4cedb 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-dim { background: linear-gradient(90deg, #6b788c 0%, #8090a6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 560px; font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.6; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-in { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(120ms + var(--i) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* hero stage 1: brand lockup (stacked above the message without JS / with reduced motion) */
.hero__brand { --lock: clamp(64px, min(13.2vw, 22svh), 172px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: calc(100svh - var(--nav-h) - 144px); padding-bottom: 56px; pointer-events: none; }
.hero__lockup { display: flex; align-items: center; gap: .2em; font-size: var(--lock); line-height: 1; }
.hero__mark { width: 1.02em; height: .9em; flex: none; overflow: visible; margin-top: -.04em; }
.hero__wordmark { display: block; font-weight: 700; letter-spacing: -.045em; line-height: .9; padding-right: .04em; color: #f4f7fb; text-shadow: 0 0 80px rgba(34, 211, 238, .16); animation: lock-rise 1.15s var(--ease-out) .2s both; }
.hero__wordmark .wordmark__i { text-shadow: none; }
.hero__expansion { margin: calc(var(--lock) * .2) 0 0 calc(var(--lock) * 1.24); color: var(--text-3); font-size: clamp(14px, 1.25vw, 17.5px); font-weight: 450; letter-spacing: .01em; animation: lock-rise .9s var(--ease-out) .75s both; }
.hero__expansion b { color: var(--text); font-weight: 600; }
.hm { stroke-dasharray: 1 2; stroke-dashoffset: 0; animation: hm-draw .42s var(--ease) both; }
.hm--prism { animation-duration: .9s; animation-delay: .1s; }
.hm--in { animation-delay: .5s; }
.hm--through { animation-duration: .2s; animation-delay: .86s; }
.hm--out { animation-duration: .5s; animation-delay: 1.02s; }
.hm--out + .hm--out { animation-delay: 1.08s; }
.hm--out + .hm--out + .hm--out { animation-delay: 1.14s; }
@keyframes hm-draw { from { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } }
@keyframes lock-rise { from { opacity: 0; transform: translateY(.18em); filter: blur(10px); } }

/* hero two-stage intro (JS + motion): stages share one viewport; the first scroll swaps them */
.intro .hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.intro .hero > .hero__brand, .intro .hero > .hero__inner { grid-area: 1 / 1; }
.intro .hero__brand { min-height: 0; padding-bottom: 0; }
.intro .hero-in { animation-delay: calc(260ms + var(--i) * 90ms); }
.intro:not(.intro-revealed) .hero-in { animation: none; }
.intro:not(.intro-revealed) .hero__inner a, .intro:not(.intro-revealed) .readout { pointer-events: none; }
.intro-revealed .hero__brand { visibility: hidden; transition: visibility 0s 1s; }
.intro-instant .hero__brand { transition: none; }
.intro-instant .hero-in { animation: none; opacity: 1; transform: none; }
.intro .nav .brand { transition: opacity .25s var(--ease); }
.intro:not(.intro-revealed) .nav .brand:not(:focus-visible) { opacity: 0; }
.intro-revealed .nav .brand { transition-delay: .62s; }
.intro-instant .nav .brand { transition: none; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 34px; margin-left: -11px; border-radius: 12px; border: 1px solid var(--line-3); opacity: .7; transition: opacity .2s; }
.hero__scroll:hover { opacity: 1; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: var(--text-2); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* readout */
.readout {
  position: relative; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 22, 34, .78), rgba(8, 12, 20, .78));
  border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  font-family: var(--mono); font-size: 12px;
}
.readout__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.readout__title { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.readout__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
.readout.is-tracing .readout__pulse { animation: dotpulse 1.2s var(--ease) infinite; }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.readout__src { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; background: rgba(52, 211, 153, .06); border: 1px solid rgba(52, 211, 153, .16); margin-bottom: 12px; min-width: 0; }
.readout__k { color: #6ee7b7; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.readout__src code { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 12px; border-radius: 8px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.readout__grid div { padding: 9px 10px; background: rgba(8, 12, 20, .92); }
.readout__grid dt { color: var(--text-3); font-size: 10.5px; }
.readout__grid dd { margin: 2px 0 0; font-size: 20px; color: var(--text); font-family: var(--font); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.readout__grid dd.bump { color: var(--cyan); }
.readout__legend { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--text-3); font-size: 10.5px; }
.readout__legend span { display: inline-flex; align-items: center; gap: 6px; }
.readout__hint { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-4); font-size: 10.5px; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(88px, 10vw, 128px) 0; }
.section--tinted { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section--tinted::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.section-head { max-width: 640px; }
.section-head--center { max-width: 780px; margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.eyebrow span { color: var(--text-4); }
.section h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; color: var(--text); }
.section h2 .dim { color: var(--text-3); }
.lead { margin-top: 20px; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--text-2); }

/* window chrome */
.window { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(15, 22, 34, .9), rgba(9, 13, 21, .9)); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .015) inset; }
.window::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(600px 200px at 20% 0%, rgba(34, 211, 238, .05), transparent 70%); }
.window__bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, .16); }
.window__title { color: var(--text-3); font: 400 12px/1 var(--mono); }
.window__bar .seg { margin-left: auto; }

/* chips (graph nodes) */
.chip {
  --c: var(--c-method);
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px 0 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface);
  font: 400 12.5px/1 var(--mono); color: var(--text-2); white-space: nowrap;
  transition: border-color .4s var(--ease), background-color .4s, color .4s, opacity .4s, transform .4s var(--ease), box-shadow .4s;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; transition: box-shadow .4s, background-color .4s; }
.chip--test { --c: var(--c-test); }
.chip--test i { border-radius: 2px; }
.chip--api { --c: var(--c-api); }
.chip--api i { transform: rotate(45deg); border-radius: 1.5px; width: 6.5px; height: 6.5px; }
.chip--changed { --c: var(--c-changed); border-color: rgba(52, 211, 153, .45); background: color-mix(in srgb, var(--c-changed) 9%, var(--surface)); color: #d1fae5; }
.chip--changed i { box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.chip.is-lit { border-color: color-mix(in srgb, var(--c) 55%, transparent); color: var(--text); background: color-mix(in srgb, var(--c) 8%, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 7%, transparent); }
.chip.is-lit i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }

/* wires */
.wires { position: relative; }
.wires-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.wire__base { fill: none; stroke: var(--line-3); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .5s, opacity .5s, stroke-dashoffset 1.1s var(--ease); }
.wire__pulse { fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: .07 1.2; stroke-dashoffset: .07; opacity: 0; }
.wire.is-lit .wire__base { stroke: rgba(34, 211, 238, .5); }
.wire.is-lit .wire__pulse { opacity: 1; animation: flow 1.8s linear infinite; }
@keyframes flow { from { stroke-dashoffset: .07; } to { stroke-dashoffset: -1.13; } }
.js [data-reveal] .wire__base { stroke-dashoffset: 1; }
.js [data-reveal].is-in .wire__base { stroke-dashoffset: 0; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- problem ---------- */
.problem { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.checklist { margin-top: 32px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 15px; }
.checklist li::before { content: "!"; position: absolute; left: 0; top: 3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); color: var(--amber); font: 600 11px/1 var(--mono); }

.problem__visual { min-width: 0; }
.problem__body { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.diff { margin: 0; padding: 14px 0; border-radius: 10px; background: rgba(5, 7, 12, .6); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.75; color: var(--text-2); overflow-x: auto; }
.diff code { display: block; min-width: max-content; }
.diff .ln { display: inline-block; width: 34px; padding-right: 12px; text-align: right; color: var(--text-4); user-select: none; }
.diff .del, .diff .add { display: inline-block; width: calc(100% - 34px); min-width: 420px; }
.diff .del { background: rgba(251, 113, 133, .08); color: #fda4af; box-shadow: 2px 0 0 rgba(251, 113, 133, .5) inset; }
.diff .add { background: rgba(52, 211, 153, .08); color: #a7f3d0; box-shadow: 2px 0 0 rgba(52, 211, 153, .55) inset; }
.tk-k { color: #93c5fd; } .tk-f { color: #67e8f9; } .tk-n { color: #fcd34d; }
.diff .del .tk-k, .diff .del .tk-n { color: inherit; }

.deps { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; align-items: center; gap: 18px 24px; padding: 12px 4px 4px; min-height: 210px; }
.deps__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.deps__col:first-of-type { align-self: center; }
.deps .chip { font-size: 11.5px; height: 30px; padding: 0 10px 0 9px; }
.dep { transition-delay: calc(var(--k) * 70ms); }
[data-problem][data-mode="diff"] .dep { opacity: .28; border-style: dashed; background: transparent; color: var(--text-3); filter: saturate(0); }
[data-problem][data-mode="diff"] .wire__base { opacity: .35; stroke-dasharray: 3 4; }
[data-problem][data-mode="diff"] .wire__pulse { opacity: 0 !important; }
.problem__caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.problem__caption b { color: var(--text); font-weight: 600; }
.problem__cap { display: none; }
[data-problem][data-mode="diff"] .problem__cap--diff, [data-problem][data-mode="impact"] .problem__cap--impact { display: inline; animation: fadein .5s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }

/* ---------- pipeline ---------- */
.pipeline { margin-top: 72px; }
.pipeline__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; padding-top: 64px; }
.pipeline__bypass-label { position: absolute; top: -14px; left: 50%; width: 40%; text-align: center; color: var(--text-4); font: 400 11px/1.3 var(--mono); transition: color .5s; }
.pipeline__track.bypass-lit .pipeline__bypass-label { color: #6ee7b7; }
.stage {
  position: relative; z-index: 1;
  display: grid; justify-items: start; gap: 4px; text-align: left;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .4s, background-color .4s, transform .4s var(--ease), box-shadow .4s;
}
.stage:hover { border-color: var(--line-3); transform: translateY(-2px); }
.stage__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-3); margin-bottom: 10px; transition: color .4s, border-color .4s, background-color .4s; }
.stage__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stage__n { font: 500 11px/1 var(--mono); color: var(--text-4); }
.stage__name { font-size: 14.5px; font-weight: 500; color: var(--text-2); line-height: 1.3; transition: color .4s; }
.stage.is-done .stage__icon { color: var(--teal); border-color: rgba(45, 212, 191, .25); }
.stage.is-done .stage__name { color: var(--text); }
.stage.is-active { border-color: rgba(34, 211, 238, .45); background: linear-gradient(180deg, rgba(34, 211, 238, .08), var(--surface) 70%); box-shadow: 0 20px 40px -24px rgba(34, 211, 238, .35); }
.stage.is-active .stage__icon { color: var(--cyan); border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .08); }
.stage.is-active .stage__name { color: var(--text); }
.stage[data-node="s4"].is-active, .stage[data-node="s4"].is-done { --ai: 1; }
.wire--arc .wire__base { stroke-dasharray: 4 5; }
.js [data-reveal] .wire--arc .wire__base { stroke-dashoffset: 0; }
.wire--arc.is-lit .wire__base { stroke: rgba(52, 211, 153, .55); }
.wire--arc .wire__pulse { stroke: var(--emerald); }

.pipeline__panels { margin-top: 28px; min-height: 236px; overflow: hidden; }
.pipeline__progress { position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pipeline__progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, transparent, var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); }
.pipeline.is-playing .pipeline__progress span { animation: progress var(--step, 3600ms) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 36px 40px; animation: panelin .55s var(--ease-out); }
.panel[hidden] { display: none; }
@keyframes panelin { from { opacity: 0; transform: translateY(8px); } }
.panel h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 550; margin-bottom: 10px; }
.panel p { color: var(--text-2); font-size: 15px; }
.panel__viz { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 7, 12, .55); font-size: 12.5px; color: var(--text-2); }
.panel__viz > * { animation: panelin .6s var(--ease-out) both; }
.panel__viz > *:nth-child(2) { animation-delay: .12s; } .panel__viz > *:nth-child(3) { animation-delay: .24s; } .panel__viz > *:nth-child(4) { animation-delay: .36s; } .panel__viz > *:nth-child(5) { animation-delay: .48s; }
.pr-head { display: flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 14px; }
.pr-badge { white-space: nowrap; padding: 3px 8px; border-radius: 6px; background: rgba(52, 211, 153, .12); color: #6ee7b7; font-size: 11px; }
.file-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.file-list li > * { animation: panelin .5s var(--ease-out) both; }
.pos { color: var(--emerald); } .neg { color: var(--rose); }
.steps { display: grid; gap: 8px; counter-reset: s; }
.steps li { display: flex; gap: 10px; animation: panelin .5s var(--ease-out) both; }
.steps li:nth-child(2) { animation-delay: .15s; } .steps li:nth-child(3) { animation-delay: .3s; } .steps li:nth-child(4) { animation-delay: .45s; }
.steps__k { width: 72px; color: var(--cyan); }
.out { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); }
.out b { color: var(--cyan); font-weight: 500; }
.out b.warn, b.warn { color: var(--amber); font-weight: 500; }
.kv { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; padding: 6px 0; }
.meter { height: 6px; border-radius: 4px; background: rgba(148, 163, 184, .1); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--amber)); transform-origin: 0; animation: grow 1s var(--ease-out) .2s both; }
@keyframes grow { from { transform: scaleX(0); } }
.ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ctx__in { padding: 6px 10px; border-radius: 7px; border: 1px solid rgba(45, 212, 191, .25); background: rgba(45, 212, 191, .06); color: #99f6e4; }
.ctx__arrow { color: var(--text-3); padding: 0 4px; }
.ctx__model { padding: 6px 10px; border-radius: 7px; border: 1px solid rgba(96, 165, 250, .3); background: rgba(96, 165, 250, .08); color: #bfdbfe; }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.summary li:first-child { border-top: 0; }
.summary span { color: var(--text-3); }
.summary b { font-weight: 500; color: var(--text); text-align: right; }
.pipeline__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 0 4px; }

/* ---------- bento ---------- */
.bento { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px;
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 22, 34, .7), rgba(8, 12, 20, .7));
  transition: border-color .4s, transform .6s var(--ease-out), opacity .9s var(--ease-out);
}
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .07), transparent 60%); }
.tile:hover { border-color: var(--line-2); }
.tile:hover::before { opacity: 1; }
.tile--row { flex-direction: row; align-items: center; gap: 48px; }
.tile--row .tile__copy { flex: 0 0 30%; }
.tile--full { grid-column: 1 / -1; }
.tile__k { display: inline-flex; gap: 10px; margin-bottom: 14px; color: var(--teal); font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tile__k span { color: var(--text-4); }
.tile h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; font-weight: 550; margin-bottom: 10px; }
.tile__copy p:not(.tile__k) { color: var(--text-2); font-size: 14.5px; }
.tile__copy--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.tile__copy--row > div:first-child { max-width: 560px; }

/* call graph */
.cg { flex: 1; min-width: 0; }
.cg__depths { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; color: var(--text-4); font: 400 10.5px/1 var(--mono); }
.cg__depths span { padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.cg__graph { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: center; gap: 12px 18px; }
.cg__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cg .chip { font-size: 11.5px; height: 30px; padding: 0 10px 0 9px; }
.cg .chip:not(.chip--changed):not(.is-lit) { opacity: .55; }
.cg .chip:hover { opacity: 1; transform: translateY(-1px); }

/* risk */
.risk { display: grid; gap: 9px; font-size: 13px; }
.risk__group { margin-top: 4px; color: var(--text-4); font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.risk__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text-2); }
.segs { display: inline-flex; gap: 3px; }
.segs i { width: 18px; height: 6px; border-radius: 2px; background: rgba(148, 163, 184, .12); transition: background-color .4s; }
[data-risk] .segs i.on { transition: background-color .5s var(--ease); }
[data-risk].is-in .segs i.on { background: var(--teal); }
[data-risk].is-in .segs i.on:nth-child(4) { background: #a3d977; }
[data-risk].is-in .segs i.on:nth-child(5) { background: var(--amber); }
[data-risk].is-in .segs i:nth-child(1) { transition-delay: .3s; } [data-risk].is-in .segs i:nth-child(2) { transition-delay: .4s; }
[data-risk].is-in .segs i:nth-child(3) { transition-delay: .5s; } [data-risk].is-in .segs i:nth-child(4) { transition-delay: .6s; }
[data-risk].is-in .segs i:nth-child(5) { transition-delay: .7s; }
.risk__result { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.risk__scale { position: relative; height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--teal), #a3d977 45%, var(--amber) 70%, var(--rose)); opacity: .85; }
.risk__marker { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); box-shadow: 0 0 0 4px rgba(251, 191, 36, .18); transition: left 1.6s var(--ease-out) .8s; }
[data-risk].is-in .risk__marker { left: 66%; }
.risk__labels { display: flex; justify-content: space-between; margin-top: 10px; color: var(--text-4); font: 400 11px/1 var(--mono); }
.risk__now { color: var(--amber); }

/* behavioral */
.beh { position: relative; display: grid; gap: 12px; }
.beh__src { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; }
.beh__src b { color: #a7f3d0; font-weight: 400; }
.beh__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.beh__list { position: relative; display: grid; gap: 6px; padding-left: 14px; border-left: 1px solid var(--line-2); margin-left: 3px; }
.beh__list li { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(5, 7, 12, .5); font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.beh__list li .mono { overflow: hidden; text-overflow: ellipsis; }
.beh__list li::before { content: ""; position: absolute; left: -15px; top: 50%; width: 14px; height: 1px; background: var(--line-2); }
.js [data-behavior] .beh__list li { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), border-color .4s; transition-delay: calc(.3s + var(--k) * .14s); }
.js [data-behavior].is-in .beh__list li { opacity: 1; transform: none; }
.beh__list li:hover { border-color: var(--line-3); }
.kind { flex: none; padding: 2px 6px; border-radius: 5px; font: 500 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.kind--test { color: #c4b5fd; background: rgba(167, 139, 250, .12); }
.kind--api { color: #bfdbfe; background: rgba(96, 165, 250, .12); }

/* AI finding */
.finding { flex: 1; min-width: 0; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(5, 7, 12, .6); }
.finding__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.finding__file { color: var(--text-2); font-size: 12px; }
.finding__file span { color: var(--text-4); }
.sev { white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .25); color: #fcd34d; font: 500 11px/1.3 var(--mono); }
.finding__text { display: grid; font-size: 15px; line-height: 1.6; color: var(--text); }
.finding__text > span { grid-area: 1 / 1; }
.finding__ghost { visibility: hidden; }
.caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.finding.is-done .caret { opacity: 0; animation: none; }
.finding__evidence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ev-label { color: var(--text-4); font-size: 11px; margin-right: 2px; }
.ev { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); font: 400 11.5px/1.3 var(--mono); color: var(--text-2); opacity: 0; transform: translateY(4px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), border-color .3s; }
.finding.is-done .ev { opacity: 1; transform: none; }
.finding.is-done .ev:nth-child(3) { transition-delay: .12s; } .finding.is-done .ev:nth-child(4) { transition-delay: .24s; }
.ev:hover { border-color: var(--line-3); }
.ev__i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none; }
.ev__i--test { background: var(--c-test); border-radius: 2px; }
.ev__i--risk { background: var(--amber); }

/* explorer */
.xp { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.xp__canvas { position: relative; aspect-ratio: 16 / 8.4; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, .04), transparent 65%), rgba(5, 7, 12, .5); overflow: hidden; }
.xp__canvas::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(148, 163, 184, .14) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); }
.xp__edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.xp__edges path { fill: none; stroke: var(--line-3); stroke-width: 1.2; transition: stroke .35s, opacity .35s, stroke-width .35s; }
.xp__edges path.is-path { stroke: var(--cyan); stroke-width: 1.8; }
.xp__edges path.is-dim { opacity: .25; }
.xp__edges path.is-hidden { opacity: 0; }
.xp-node { position: absolute; transform: translate(-50%, -50%); }
.xp-node .chip { cursor: pointer; font-size: 11.5px; height: 28px; padding: 0 10px 0 9px; }
.xp-node .chip:hover { border-color: var(--line-3); color: var(--text); transform: translateY(-1px); }
.xp-node.is-sel .chip { border-color: color-mix(in srgb, var(--c) 70%, transparent); color: var(--text); background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 10%, transparent); }
.xp-node.is-path .chip { border-color: color-mix(in srgb, var(--c) 45%, transparent); color: var(--text); }
.xp-node.is-dim .chip { opacity: .32; }
.xp-node.is-hidden { opacity: 0; pointer-events: none; }
.xp-node { transition: opacity .35s; }
.xp__side { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 7, 12, .5); display: flex; flex-direction: column; }
.xp__side-k { color: var(--text-4); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.xp__side h4 { font: 500 15px/1.35 var(--mono); color: var(--text); word-break: break-word; }
.xp__side-meta { margin: 6px 0 22px; color: var(--text-3); font-size: 11.5px; }
.xp__path { display: grid; gap: 0; font-size: 11.5px; color: var(--text-2); }
.xp__path li { position: relative; padding: 0 0 12px 18px; word-break: break-word; animation: fadein .4s var(--ease) both; }
.xp__path li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.xp__path li:first-child::before { background: var(--emerald); }
.xp__path li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 14px; bottom: 2px; width: 1px; background: var(--line-3); }
.xp__path li:last-child { color: var(--text); }
.xp__note { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; line-height: 1.5; }
.xp__note:empty { display: none; }
.xp__controls { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.why__copy h2 { text-wrap: balance; }
.why__points { display: grid; gap: 12px; margin-top: 30px; }
.why__points li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.why__points li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; border-radius: 4px; border: 1px solid rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .1); }
.why__points li::after { content: ""; position: absolute; left: 6px; top: 8.5px; width: 3px; height: 5.5px; border: solid var(--teal); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.why__points b { color: var(--text); font-weight: 600; }

.brief { padding: 22px; }
.brief__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brief__title { color: var(--text); font: 400 13px/1.4 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brief__diff { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--text-3); font-size: 12.5px; }
.brief__k { color: var(--text-4); font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.brief__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 10px; color: var(--teal); font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.brief__divider::before, .brief__divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(45, 212, 191, .35)); }
.brief__divider::after { background: linear-gradient(90deg, rgba(45, 212, 191, .35), transparent); }
.brief__rows { display: grid; gap: 8px; }
.brief__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 14px 11px 11px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 7, 12, .55); transition: border-color .3s, background-color .3s, opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: 0s, 0s, calc(.25s + var(--k) * .1s), calc(.25s + var(--k) * .1s); }
.js .brief .brief__row { opacity: 0; transform: translateY(8px); }
.js .brief.is-in .brief__row { opacity: 1; transform: none; }
.brief__row:hover { border-color: var(--line-2); background: rgba(15, 22, 34, .7); }
.brief__icon { --c: var(--cyan); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.brief__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brief__icon--impact { --c: var(--emerald); }
.brief__icon--tests { --c: var(--c-test); }
.brief__icon--risk { --c: var(--amber); }
.brief__icon--ai { --c: var(--blue); }
.brief__icon--graph { --c: var(--cyan); }
.brief__label { color: var(--text); font-size: 15px; font-weight: 500; }
.brief__value { color: var(--text-2); font-size: 12.5px; text-align: right; white-space: nowrap; }
.brief__value--risk { display: inline-flex; align-items: center; gap: 10px; }
.brief__meter { position: relative; width: 70px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), #a3d977 45%, var(--amber) 70%, var(--rose)); opacity: .85; }
.brief__meter i { position: absolute; top: 50%; left: 66%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text); }
.brief__link { color: var(--cyan); transition: color .2s; }
.brief__link:hover { color: #a5f3fc; }

/* ---------- early access ---------- */
.section--cta { padding-top: clamp(56px, 5vw, 72px); padding-bottom: clamp(104px, 11vw, 160px); }
.cta-card { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; padding: clamp(56px, 8vw, 96px) 24px; border-radius: 28px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(15, 22, 34, .8), rgba(5, 7, 12, .9)); }
.cta-card__glow { position: absolute; inset: auto 10% -60% 10%; height: 120%; background: radial-gradient(closest-side, rgba(34, 211, 238, .14), transparent 70%); pointer-events: none; }
.cta-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(110, 231, 183, .6), rgba(34, 211, 238, .6), rgba(96, 165, 250, .6), transparent); }
.cta-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .5; mask-image: radial-gradient(ellipse 50% 60% at 50% 100%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 100%, #000, transparent 75%); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card .eyebrow { margin-bottom: 18px; }
.cta-card .lead { margin: 18px auto 36px; }
.cta-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- people ---------- */
.people-group { margin-top: 56px; }
.people-group + .people-group { margin-top: 48px; }
.people-group__k { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--teal); font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.people-group__k::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.people { display: grid; gap: 16px; }
.people--team { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.people--advisors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.person { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 18px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(15, 22, 34, .7), rgba(8, 12, 20, .7)); transition: border-color .3s, background-color .3s, transform .6s var(--ease-out), opacity .9s var(--ease-out); }
.person:hover { border-color: var(--line-2); }
.person__avatar { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; padding: 2px; background: conic-gradient(from 210deg, rgba(110, 231, 183, .75), rgba(34, 211, 238, .75), rgba(96, 165, 250, .75), rgba(148, 163, 184, .12), rgba(110, 231, 183, .75)); transition: transform .5s var(--ease-out); }
.person:hover .person__avatar { transform: scale(1.03); }
.person__avatar::before { content: attr(data-initials); position: absolute; inset: 2px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #172234, #0a0f18 70%); color: var(--text-2); font: 600 24px/1 var(--font); letter-spacing: .02em; }
.person__avatar img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.person__name { margin-top: 18px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.person__role { margin-top: 6px; color: var(--teal); font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.person__aff { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.person__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: auto; padding-top: 18px; }
.person__link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(5, 7, 12, .5); color: var(--text-2); transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--ease); }
.person__link svg { width: 16px; height: 16px; }
.person__link:hover { color: var(--text); border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08); transform: translateY(-1px); }
.person--advisor { flex-direction: row; align-items: center; gap: 24px; text-align: left; padding: 26px 28px; }
.person--advisor .person__avatar { width: 112px; height: 112px; }
.person__body { display: flex; flex-direction: column; min-width: 0; }
.person--advisor .person__name { margin-top: 0; font-size: 18px; }
.person--advisor .person__links { justify-content: flex-start; margin-top: 0; padding-top: 16px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin-top: 14px; color: var(--text-3); font-size: 14px; max-width: 280px; }
.footer__cols { display: flex; gap: 72px; }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer__k { color: var(--text-4); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.footer__cols a { color: var(--text-2); font-size: 14px; transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-4); font-size: 12.5px; }

/* ---------- early access page ---------- */
.access-page { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(72px, 9vw, 112px); }
.access-page .hero__light { z-index: -1; }
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.access__copy { padding-top: 8px; }
.access__back { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 40px; color: var(--text-3); font: 500 12.5px/1 var(--mono); transition: color .2s; }
.access__back:hover { color: var(--text); }
.access__back svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.access__back:hover svg { transform: translateX(-2px); }
.access__title { font-size: clamp(36px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; color: var(--text); text-wrap: balance; }
.access__title .dim { color: var(--text-3); }
.access__alt { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14.5px; }
.access__alt a { color: var(--cyan); transition: color .2s; }
.access__alt a:hover { color: #a5f3fc; }
.access__card { overflow: hidden; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: 26px 28px 28px; }
.form[hidden], .form-done[hidden], .form__status[hidden] { display: none; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; color: var(--text); font-size: 13.5px; font-weight: 500; }
.field__req { color: var(--cyan); }
.field__opt { margin-left: auto; color: var(--text-4); font: 400 11px/1 var(--mono); }
.field input, .field textarea {
  display: block; width: 100%; height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(5, 7, 12, .6); color: var(--text);
  font: 400 15px/1.4 var(--font); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { height: auto; min-height: 132px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(34, 211, 238, .6); background: rgba(8, 12, 20, .9); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12); }
.field [aria-invalid="true"] { border-color: rgba(251, 113, 133, .6); }
.field [aria-invalid="true"]:focus { border-color: rgba(251, 113, 133, .8); box-shadow: 0 0 0 4px rgba(251, 113, 133, .12); }
.field__err { margin-top: 7px; color: #fda4af; font-size: 12.5px; line-height: 1.4; }
.field__err:empty { display: none; }
.form__trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .07); color: #fecdd3; font-size: 14px; line-height: 1.5; }
.form__status a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 4px; }
.form__hint { color: var(--text-4); font: 400 11.5px/1.4 var(--mono); }
.form__submit:disabled { cursor: progress; opacity: .75; transform: none; }
.form__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.form.is-busy .form__spinner { display: block; }
.form.is-busy .form__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { display: grid; justify-items: start; gap: 14px; padding: 44px 32px 40px; outline: none; animation: panelin .6s var(--ease-out); }
.form-done__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; border: 1px solid rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .1); color: var(--emerald); box-shadow: 0 0 0 6px rgba(52, 211, 153, .06); }
.form-done__icon svg { width: 22px; height: 22px; }
.form-done h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.form-done p { max-width: 440px; color: var(--text-2); font-size: 15.5px; }
.form-done p b { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.form-done .btn { margin-top: 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; }
  .readout { display: none; }
  .tile--row { flex-direction: column; align-items: stretch; gap: 28px; }
  .tile--row .tile__copy { flex: none; max-width: 560px; }
  .xp { grid-template-columns: 1fr; }
  .xp__side { min-height: 312px; }
}

@media (max-width: 960px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; margin: 0; flex-direction: column; gap: 0;
    padding: 12px 24px 24px; background: rgba(5, 7, 12, .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a.is-active::after { display: none; }
  .nav__cta-mobile { display: block; color: var(--cyan) !important; }
  .nav__toggle { display: block; }
  .nav.menu-open { background: rgba(5, 7, 12, .96); }

  .problem, .why, .access { grid-template-columns: minmax(0, 1fr); }
  .pipeline__track { grid-template-columns: 1fr; gap: 14px; padding-top: 0; padding-right: 56px; }
  .pipeline__bypass-label { display: none; }
  .stage { grid-template-columns: 40px auto 1fr; align-items: center; gap: 0 12px; padding: 12px 14px; }
  .stage__icon { margin: 0; grid-row: span 1; }
  .stage__name { font-size: 15px; }
  .panel { grid-template-columns: 1fr; gap: 20px; padding: 26px 22px; }
  .bento { grid-template-columns: 1fr; }
  .tile--full { grid-column: auto; }
  .people--team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people--advisors { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--full, .tile--ai { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .nav__cta { display: none; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 56px) 0 88px; }
  .hero__veil { background: linear-gradient(180deg, rgba(5, 7, 12, .6) 0%, rgba(5, 7, 12, .78) 40%, rgba(5, 7, 12, .88) 75%, var(--bg) 100%); }
  .hero__title { font-size: clamp(46px, 13vw, 64px); }
  .btn { --h: 46px; }
  .hero__scroll { display: none; }
  .intro:not(.intro-revealed) .hero__scroll { display: block; }
  .intro .hero { min-height: max(560px, 100svh); }
  .hero__brand { --lock: clamp(52px, 19vw, 96px); }
  .hero__expansion { margin-left: 0; font-size: 14px; line-height: 1.5; text-wrap: balance; }

  .problem__body { padding: 14px; }
  .window__bar { flex-wrap: wrap; }
  .window__bar .seg { margin-left: 0; width: 100%; }
  .window__bar .seg__btn { flex: 1; justify-content: center; }
  .diff { font-size: 11.5px; }
  .deps { grid-template-columns: 1fr; justify-items: start; gap: 10px; padding: 4px 0 0; min-height: 0; }
  .deps .wires-svg, .cg .wires-svg { display: none; }
  .deps__col, .cg__col { gap: 8px; }
  .deps__col:not(:first-of-type), .cg__col:not(:first-of-type) { position: relative; margin-left: 14px; padding-left: 16px; border-left: 1px solid var(--line-2); }
  .deps__col:nth-of-type(3), .cg__col:nth-of-type(3) { margin-left: 30px; }
  .cg__col:nth-of-type(4) { margin-left: 46px; }
  .deps__col:not(:first-of-type) .chip::before, .cg__col:not(:first-of-type) .chip::before { content: ""; position: absolute; left: -17px; top: 50%; width: 16px; height: 1px; background: var(--line-2); }
  .problem__caption { flex-direction: column; align-items: flex-start; }

  .cg__depths { display: none; }
  .cg__graph { grid-template-columns: 1fr; justify-items: start; gap: 10px; }

  .tile { padding: 22px; }
  .xp__canvas { aspect-ratio: 1 / 1.05; }
  .xp-node .chip span { display: none; }
  .xp-node .chip { padding: 0; width: 26px; height: 26px; justify-content: center; border-radius: 50%; }
  .xp-node.is-sel .chip span { display: inline; }
  .xp-node.is-sel .chip { width: auto; padding: 0 10px 0 9px; border-radius: 8px; }
  .xp-node.is-root .chip { width: 30px; height: 30px; }
  .xp-node.is-sel { z-index: 3; }
  .xp__controls { width: 100%; }
  .xp__side { min-height: 332px; }

  /* two cards per row on a four-track grid, so a lone last card can sit centred at the same size */
  .people--team { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
  .people--team .person { grid-column: span 2; }
  .people--team .person:last-child:nth-child(odd) { grid-column: 2 / span 2; }
  .person { padding: 22px 12px 18px; }
  /* half-width team cards: link buttons scale with the card (up to 34px) so up to four fit on one row */
  .people--team .person { padding-inline: 10px; }
  .people--team .person__links { align-self: stretch; flex-wrap: nowrap; gap: 6px; }
  .people--team .person__link { width: min(34px, calc((100% - 18px) / 4)); height: auto; aspect-ratio: 1; }
  .person__avatar { width: 80px; height: 80px; }
  .person__name { font-size: 15px; }
  .person--advisor { flex-direction: column; text-align: center; padding: 24px 18px; gap: 0; }
  .person--advisor .person__avatar { width: 96px; height: 96px; }
  .person--advisor .person__name { margin-top: 18px; }
  .person--advisor .person__links { justify-content: center; }
  .brief { padding: 16px; }
  .brief__row { grid-template-columns: 34px minmax(0, 1fr); row-gap: 4px; }
  .brief__value { grid-column: 2; text-align: left; white-space: normal; }
  .brief__diff { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn--lg { width: 100%; justify-content: center; }
  .cta-card__actions { width: 100%; }
  .footer__cols { flex-wrap: wrap; gap: 32px 48px; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 22px; }
  .access__back { margin-bottom: 28px; }
  .form-done { padding: 34px 22px 30px; }
  .footer__base { flex-direction: column; }
}

/* ---------- theme toggle ---------- */
.theme-toggle { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--text-2); transition: color .2s, border-color .2s, background-color .2s; }
.theme-toggle:hover { color: var(--text); border-color: var(--line-3); background: rgba(148, 163, 184, .08); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__moon { display: none; }
@media (max-width: 960px) { .theme-toggle { width: 38px; height: 38px; } }

/* ==========================================================================
   Light theme: <html data-theme="light">. The dark theme above is the default and is not changed here;
   this block re-points the tokens and overrides the rules that use literal dark-theme colours.
   ========================================================================== */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-2: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --line: rgba(15, 23, 42, .08);
  --line-2: rgba(15, 23, 42, .13);
  --line-3: rgba(15, 23, 42, .22);

  --text: #0b1324;
  --text-2: #3b4759;
  --text-3: #556275;
  --text-4: #626e80;

  --emerald: #047857;
  --teal: #0f766e;
  --cyan: #0e7490;
  --blue: #2563eb;
  --amber: #b45309;
  --rose: #be123c;
  --c-test: #7c3aed;

  --card-bg: linear-gradient(180deg, #ffffff, #fbfcfe);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -20px rgba(15, 23, 42, .18);
  --inset-bg: #f8fafc;
}
[data-theme="light"] ::selection { background: rgba(8, 145, 178, .18); color: var(--text); }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
[data-theme="light"] .theme-toggle:hover { background: rgba(15, 23, 42, .04); }

/* logo: the incoming light beam becomes ink, the spectrum deepens (overrides the SVG presentation attributes) */
[data-theme="light"] #brand-g stop:nth-child(1) { stop-color: #10b981; }
[data-theme="light"] #brand-g stop:nth-child(2) { stop-color: #06b6d4; }
[data-theme="light"] #brand-g stop:nth-child(3) { stop-color: #3b82f6; }
[data-theme="light"] :is(.brand__mark, .hero__mark) [stroke="#e2e8f0"] { stroke: #1e293b; }
[data-theme="light"] :is(.brand__mark, .hero__mark) [stroke="#6ee7b7"] { stroke: #10b981; }
[data-theme="light"] :is(.brand__mark, .hero__mark) [stroke="#22d3ee"] { stroke: #06b6d4; }
[data-theme="light"] :is(.brand__mark, .hero__mark) [stroke="#60a5fa"] { stroke: #3b82f6; }
[data-theme="light"] .wordmark { color: var(--text); }
[data-theme="light"] .wordmark__i { background-image: linear-gradient(180deg, #10b981 0%, #06b6d4 55%, #3b82f6 100%); }

/* buttons + controls */
[data-theme="light"] .btn--primary { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 8px 24px -12px rgba(8, 145, 178, .55); }
[data-theme="light"] .btn--primary:hover { background: #1e293b; box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 14px 30px -14px rgba(8, 145, 178, .7); }
[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, .7); }
[data-theme="light"] .btn--ghost:hover { background: #fff; }
[data-theme="light"] .seg { background: rgba(241, 244, 249, .9); }
[data-theme="light"] .seg__btn.is-on { background: var(--surface); box-shadow: 0 0 0 1px var(--line-2) inset, 0 1px 2px rgba(15, 23, 42, .06); }
[data-theme="light"] .nav__links a:hover { background: rgba(15, 23, 42, .04); }

/* nav */
[data-theme="light"] .nav.is-scrolled { background: rgba(246, 248, 251, .8); }

/* hero */
[data-theme="light"] .hero__veil {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(246, 248, 251, .92) 22%, rgba(246, 248, 251, .45) 46%, rgba(246, 248, 251, 0) 66%),
    linear-gradient(180deg, rgba(246, 248, 251, .55) 0%, rgba(246, 248, 251, 0) 18%, rgba(246, 248, 251, 0) 72%, var(--bg) 100%);
}
[data-theme="light"] .hero__light::before { background: radial-gradient(closest-side, rgba(6, 182, 212, .1), transparent 70%); }
[data-theme="light"] .beam--in { background: linear-gradient(90deg, transparent, rgba(15, 23, 42, .1) 70%, rgba(15, 23, 42, .2)); }
[data-theme="light"] :is(.beam--a, .beam--b, .beam--c) { mix-blend-mode: multiply; }
[data-theme="light"] .beam--a { background: linear-gradient(90deg, rgba(16, 185, 129, 0), rgba(16, 185, 129, .1) 30%, transparent); }
[data-theme="light"] .beam--b { background: linear-gradient(90deg, rgba(6, 182, 212, 0), rgba(6, 182, 212, .11) 30%, transparent); }
[data-theme="light"] .beam--c { background: linear-gradient(90deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, .1) 30%, transparent); }
[data-theme="light"] .hero__title { background-image: linear-gradient(180deg, #0b1324 30%, #334155 100%); }
[data-theme="light"] .hero__title-dim { background-image: linear-gradient(90deg, #64748b 0%, #7b8aa0 100%); }
[data-theme="light"] .hero__wordmark { color: var(--text); text-shadow: 0 0 80px rgba(6, 182, 212, .12); }
[data-theme="light"] .readout { background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(251, 252, 254, .88)); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .25); }
[data-theme="light"] .readout__k { color: var(--emerald); }
[data-theme="light"] .readout__grid div { background: rgba(255, 255, 255, .96); }

/* windows, chips, diff */
[data-theme="light"] .window { background: var(--card-bg); box-shadow: 0 40px 80px -48px rgba(15, 23, 42, .28), 0 1px 2px rgba(15, 23, 42, .04); }
[data-theme="light"] .window::before { background: radial-gradient(600px 200px at 20% 0%, rgba(6, 182, 212, .05), transparent 70%); }
[data-theme="light"] .chip--changed { border-color: rgba(5, 150, 105, .45); color: #065f46; }
[data-theme="light"] .wire.is-lit .wire__base { stroke: rgba(8, 145, 178, .55); }
[data-theme="light"] .wire--arc.is-lit .wire__base { stroke: rgba(5, 150, 105, .55); }
[data-theme="light"] .diff { background: var(--inset-bg); }
[data-theme="light"] .diff .del { background: rgba(225, 29, 72, .07); color: #be123c; box-shadow: 2px 0 0 rgba(225, 29, 72, .5) inset; }
[data-theme="light"] .diff .add { background: rgba(5, 150, 105, .08); color: #047857; box-shadow: 2px 0 0 rgba(5, 150, 105, .55) inset; }
[data-theme="light"] .tk-k { color: #1d4ed8; }
[data-theme="light"] .tk-f { color: #0e7490; }
[data-theme="light"] .tk-n { color: #b45309; }

/* pipeline */
[data-theme="light"] .pipeline__track.bypass-lit .pipeline__bypass-label { color: var(--emerald); }
[data-theme="light"] .stage { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
[data-theme="light"] .stage.is-active { border-color: rgba(8, 145, 178, .45); background: linear-gradient(180deg, rgba(6, 182, 212, .08), var(--surface) 70%); box-shadow: 0 20px 40px -24px rgba(8, 145, 178, .35); }
[data-theme="light"] .stage.is-active .stage__icon { border-color: rgba(8, 145, 178, .4); }
[data-theme="light"] .panel__viz { background: var(--inset-bg); }
[data-theme="light"] .pr-badge { background: rgba(5, 150, 105, .1); color: #047857; }
[data-theme="light"] .meter { background: rgba(15, 23, 42, .08); }
[data-theme="light"] .ctx__in { border-color: rgba(13, 148, 136, .3); background: rgba(13, 148, 136, .07); color: #0f766e; }
[data-theme="light"] .ctx__model { border-color: rgba(37, 99, 235, .3); background: rgba(37, 99, 235, .07); color: #1d4ed8; }

/* capabilities */
[data-theme="light"] .tile { background: var(--card-bg); box-shadow: var(--card-shadow); }
[data-theme="light"] .tile::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(6, 182, 212, .07), transparent 60%); }
[data-theme="light"] .segs i { background: rgba(15, 23, 42, .09); }
[data-theme="light"] [data-risk].is-in .segs i.on:nth-child(4) { background: #65a30d; }
[data-theme="light"] .risk__scale, [data-theme="light"] .brief__meter { background: linear-gradient(90deg, var(--teal), #65a30d 45%, var(--amber) 70%, var(--rose)); }
[data-theme="light"] .risk__marker, [data-theme="light"] .brief__meter i { background: var(--surface); }
[data-theme="light"] .beh__src b { color: #047857; }
[data-theme="light"] .beh__list li { background: var(--surface); }
[data-theme="light"] .kind--test { color: #6d28d9; background: rgba(124, 58, 237, .1); }
[data-theme="light"] .kind--api { color: #1d4ed8; background: rgba(37, 99, 235, .1); }
[data-theme="light"] .finding { background: var(--surface); }
[data-theme="light"] .sev { background: rgba(217, 119, 6, .1); border-color: rgba(217, 119, 6, .3); color: #b45309; }
[data-theme="light"] .xp__canvas { background: radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, .05), transparent 65%), var(--inset-bg); }
[data-theme="light"] .xp__canvas::before { background-image: radial-gradient(rgba(71, 85, 105, .2) 1px, transparent 1px); }
[data-theme="light"] .xp__side { background: var(--surface); }

/* why */
[data-theme="light"] .why__points li::before { border-color: rgba(13, 148, 136, .45); background: rgba(13, 148, 136, .08); }
[data-theme="light"] .brief__divider::before { background: linear-gradient(90deg, transparent, rgba(13, 148, 136, .35)); }
[data-theme="light"] .brief__divider::after { background: linear-gradient(90deg, rgba(13, 148, 136, .35), transparent); }
[data-theme="light"] .brief__row { background: var(--surface); }
[data-theme="light"] .brief__row:hover { background: var(--inset-bg); }
[data-theme="light"] .brief__link:hover, [data-theme="light"] .access__alt a:hover { color: #155e75; }

/* early access CTA + people */
[data-theme="light"] .cta-card { background: linear-gradient(180deg, #ffffff, #f1f5f9); box-shadow: var(--card-shadow); }
[data-theme="light"] .cta-card__glow { background: radial-gradient(closest-side, rgba(6, 182, 212, .14), transparent 70%); }
[data-theme="light"] .cta-card::before { background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .6), rgba(6, 182, 212, .6), rgba(59, 130, 246, .6), transparent); }
[data-theme="light"] .person { background: var(--card-bg); box-shadow: var(--card-shadow); }
[data-theme="light"] .person__avatar { background: conic-gradient(from 210deg, rgba(16, 185, 129, .8), rgba(6, 182, 212, .8), rgba(59, 130, 246, .8), rgba(100, 116, 139, .18), rgba(16, 185, 129, .8)); }
[data-theme="light"] .person__avatar::before { background: radial-gradient(circle at 30% 25%, #eef2f7, #e2e8f0 70%); }
[data-theme="light"] .person__link { background: var(--surface); }
[data-theme="light"] .person__link:hover { border-color: rgba(8, 145, 178, .45); background: rgba(6, 182, 212, .07); }

/* early access form */
[data-theme="light"] .field input, [data-theme="light"] .field textarea { background: var(--surface); }
[data-theme="light"] .field input:focus, [data-theme="light"] .field textarea:focus { border-color: rgba(8, 145, 178, .7); background: var(--surface); box-shadow: 0 0 0 4px rgba(6, 182, 212, .14); }
[data-theme="light"] .field [aria-invalid="true"] { border-color: rgba(225, 29, 72, .6); }
[data-theme="light"] .field [aria-invalid="true"]:focus { border-color: rgba(225, 29, 72, .8); box-shadow: 0 0 0 4px rgba(225, 29, 72, .12); }
[data-theme="light"] .field__err { color: #be123c; }
[data-theme="light"] .form__status { border-color: rgba(225, 29, 72, .3); background: rgba(225, 29, 72, .06); color: #9f1239; }
[data-theme="light"] .form__status a { color: #881337; }
[data-theme="light"] .form-done__icon { border-color: rgba(5, 150, 105, .45); background: rgba(5, 150, 105, .08); box-shadow: 0 0 0 6px rgba(5, 150, 105, .05); }

@media (max-width: 960px) {
  [data-theme="light"] .nav__links, [data-theme="light"] .nav.menu-open { background: rgba(246, 248, 251, .97); }
}
@media (max-width: 760px) {
  [data-theme="light"] .hero__veil { background: linear-gradient(180deg, rgba(246, 248, 251, .6) 0%, rgba(246, 248, 251, .78) 40%, rgba(246, 248, 251, .88) 75%, var(--bg) 100%); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero-in, .js [data-reveal] { opacity: 1; transform: none; }
  .wire.is-lit .wire__pulse { opacity: 0; }
  .caret { display: none; }
}
