/* =========================================================================
   KOVA — revenue intelligence. Cool graphite instrument + one acid-lime signal.
   Space Grotesk (display) × Inter (UI) × JetBrains Mono (readout).
   All contrast hand-checked on --bg #0a0c10.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --bg:        #0a0c10;
  --bg-2:      #0c0f15;
  --raise:     #10141c;
  --ink:       #eef1f4;   /* porcelain — ~14.5:1 on bg */
  --ink-2:     #aeb6c1;   /* secondary — ~8.8:1 */
  --mute:      #828b98;   /* meta/labels — ~4.7:1, small-text safe */
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.15);
  --glass:     rgba(255,255,255,.028);
  --glass-2:   rgba(255,255,255,.05);

  --sig:       #c8f250;   /* acid-lime signal — ~14.5:1 on bg */
  --sig-deep:  #a9d838;
  --sig-ink:   #0a0c10;   /* text on lime */
  --amber:     #f0b64a;   /* warn / risk */
  --coral:     #f4785a;   /* down */

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-ui:      'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 1240px;
  --pad:  clamp(20px, 5vw, 80px);
  --r:    16px;
  --r-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--sig); color: var(--sig-ink); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.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 { position: fixed; top: -60px; left: 16px; z-index: 200; background: var(--sig); color: var(--sig-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s var(--ease); }
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; border-radius: 4px; }

/* ---- shared field grid (the instrument background) ---- */
.field {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 70% 10%, #000 0%, transparent 72%);
}
.field--soft { opacity: .3; -webkit-mask-image: radial-gradient(90% 120% at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(90% 120% at 50% 0%, #000, transparent 78%); }
.animfield { animation: drift 24s linear infinite; }
@keyframes drift { to { background-position: 46px 46px, 46px 46px; } }

/* ---- section rhythm ---- */
section { position: relative; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--sig); margin-bottom: 18px;
}
.eyebrow::before { content: "// "; color: var(--mute); }
.h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(28px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.025em;
}
.lede { margin-top: 20px; max-width: 56ch; color: var(--ink-2); font-size: clamp(15px, 1.3vw, 18px); }

/* =====================  NAV  ===================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .35s var(--ease), border-color .35s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(10,12,16,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.nav__mark { color: var(--sig); flex: none; }
.nav__word { font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; font-size: 18px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__links > a:not(.nav__cta):not(.nav__ghost) { color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease); }
.nav__links > a:not(.nav__cta):not(.nav__ghost):hover { color: var(--ink); }
.nav__ghost { color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease); }
.nav__ghost:hover { color: var(--ink); }
.nav__cta {
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 10px;
  background: var(--sig); color: var(--sig-ink);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.nav__cta:hover { background: #d3f96a; box-shadow: 0 0 0 1px var(--sig), 0 8px 24px -8px rgba(200,242,80,.5); }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-right: -8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =====================  BUTTONS / PILLS  ===================== */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 12px; transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.btn--primary { background: var(--sig); color: var(--sig-ink); box-shadow: 0 10px 30px -12px rgba(200,242,80,.5); }
.btn--primary:hover { background: #d3f96a; box-shadow: 0 14px 40px -12px rgba(200,242,80,.65); transform: translateY(-1px); }
.btn--ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--glass-2); border-color: var(--line-2); transform: translateY(-1px); }
.btn__play { color: var(--sig); flex: none; }

.pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink-2); padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 0 rgba(200,242,80,.6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(200,242,80,.5); } 70%,100% { box-shadow: 0 0 0 8px rgba(200,242,80,0); } }

/* =====================  HERO  ===================== */
.hero { padding: clamp(120px, 16vh, 190px) var(--pad) clamp(56px, 8vh, 96px); overflow: hidden; }
.hero__glow { position: absolute; z-index: 0; top: -10%; right: -6%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle at 50% 50%, rgba(200,242,80,.14), transparent 62%); filter: blur(10px); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.06fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 560px; }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6.6vw, 82px); line-height: 0.98; letter-spacing: -.035em; margin: 22px 0 0; color: var(--ink); }
.hero__title em { font-style: normal; color: var(--sig); position: relative; }
.hero__sub { margin-top: 24px; font-size: clamp(15.5px, 1.4vw, 19px); line-height: 1.62; color: var(--ink-2); max-width: 48ch; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { margin-top: 26px; font-size: 13.5px; color: var(--mute); }
.hero__trust strong { color: var(--ink-2); font-family: var(--font-mono); font-weight: 600; }

/* the live readout panel (glass instrument) */
.readout {
  position: relative; border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.readout::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(200,242,80,.35), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7; }
.readout__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.readout__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--mute); text-transform: uppercase; }
.readout__live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--sig); }
.readout__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--sig); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.readout__figure { margin-top: 14px; display: flex; align-items: baseline; font-family: var(--font-mono); font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.readout__cur { font-size: clamp(24px, 3vw, 34px); color: var(--ink-2); margin-right: 2px; }
.readout__num { font-size: clamp(38px, 5.6vw, 60px); font-variant-numeric: tabular-nums; }
.readout__delta { margin-top: 10px; font-size: 13px; color: var(--mute); }
.readout__delta .up { color: var(--sig); font-family: var(--font-mono); font-weight: 600; }
.readout__delta .mono { color: var(--ink-2); }
.readout__chart { position: relative; margin-top: 20px; height: clamp(150px, 20vw, 200px); border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line); overflow: hidden; }
.readout__chart svg { width: 100%; height: 100%; }
.sig__grid line { stroke: var(--line); stroke-width: 1; }
.readout__flag { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em; color: var(--sig-ink); background: var(--sig); padding: 5px 9px; border-radius: 7px; font-weight: 600; opacity: 0; transform: translateY(-4px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.readout__flag.show { opacity: 1; transform: none; }

/* --- chart instrument overlays: value axes + live crosshair readout --- */
.axis { position: absolute; pointer-events: none; z-index: 2; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .02em; color: var(--ink-2); }
.axis span { position: absolute; }
.axis--y { top: 0; bottom: 0; left: 9px; }
.axis--y span { left: 0; transform: translateY(-50%); padding: 1px 5px; border-radius: 4px; background: rgba(8,10,13,.72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.axis--x { left: 0; right: 0; bottom: 8px; display: flex; justify-content: space-between; padding: 0 12px; }
.axis--x span { position: static; padding: 1px 5px; border-radius: 4px; background: rgba(8,10,13,.55); }
.plot { position: relative; cursor: crosshair; margin-top: 10px; }
.plot .areachart { margin-top: 0; }
.cross { position: absolute; top: 0; left: 0; height: 100%; z-index: 3; pointer-events: none; will-change: transform; }
.cross__line { position: absolute; inset: 0 auto 0 0; width: 1px; background: linear-gradient(180deg, rgba(200,242,80,.55), rgba(200,242,80,.06)); }
.cross__dot { position: absolute; left: -4px; margin-top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 3px rgba(200,242,80,.16), 0 0 0 1px var(--bg); }
.cross__tip { position: absolute; left: 9px; margin-top: -11px; white-space: nowrap; font-size: 10.5px; color: var(--ink); background: rgba(8,10,13,.94); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 7px; box-shadow: 0 6px 20px rgba(0,0,0,.42); }
.cross.flip .cross__tip { left: auto; right: 9px; }
.cross__tip b { color: var(--sig); font-weight: 600; }

.readout__mini { margin-top: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mini { padding: 12px 12px; border-radius: 11px; background: var(--glass); border: 1px solid var(--line); }
.mini__k { display: block; font-size: 11px; color: var(--mute); line-height: 1.3; min-height: 2.4em; }
.mini__v { display: block; margin-top: 8px; font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; color: var(--ink); }
.mini__v.up { color: var(--sig); }

/* =====================  REVENUE TICKER  ===================== */
.ticker { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker__track { display: flex; gap: 40px; width: max-content; padding: 15px 0; will-change: transform; }
.ticker__track.run { animation: marquee 46s linear infinite; }
.ticker:hover .ticker__track.run { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13.5px; white-space: nowrap; }
.tk__name { color: var(--ink-2); letter-spacing: .04em; }
.tk__val { color: var(--mute); }
.tk__d { font-weight: 600; }
.tk__d.up { color: var(--sig); }
.tk__d.down { color: var(--coral); }
.ticker__edge { position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.ticker__edge--l { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker__edge--r { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }

/* =====================  CONTROL ROOM (console)  ===================== */
.control { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 12vh, 130px) var(--pad) clamp(40px, 6vh, 70px); }
.control__head { max-width: 760px; }
.control__head .h2 { margin-top: 4px; }

.console {
  margin-top: clamp(34px, 5vh, 56px); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--raise), #0b0e14);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -60px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05);
}
.console__chrome { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.console__chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.console__chrome .dot:first-child { background: #f4785a80; } .console__chrome .dot:nth-child(2){ background:#f0b64a80;} .console__chrome .dot:nth-child(3){ background:#c8f25080;}
.console__url { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--mute); }
.console__sync { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--sig); }
.console__sync i { width: 6px; height: 6px; border-radius: 50%; background: var(--sig); animation: blink 1.6s steps(1) infinite; }

.console__seg { position: relative; display: inline-flex; margin: 20px 20px 0; padding: 4px; gap: 2px; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; }
.seg { position: relative; z-index: 2; font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; padding: 9px 18px; border-radius: 9px; color: var(--ink-2); transition: color .25s var(--ease); }
.seg.is-active { color: var(--sig-ink); }
.seg:hover:not(.is-active) { color: var(--ink); }
.seg__ink { position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px; width: 90px; background: var(--sig); border-radius: 9px; transition: transform .3s var(--ease-out), width .3s var(--ease-out); }

.console__body { padding: clamp(18px, 2.4vw, 26px); position: relative; }
.view { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.view[hidden] { display: none; }
.view.is-active { animation: viewIn .28s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card { grid-column: span 2; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; transition: border-color .25s var(--ease), background .25s var(--ease); }
.card:hover { border-color: var(--line-2); background: var(--glass-2); }
.card--wide { grid-column: span 4; }
.card--stat { grid-column: span 1; display: flex; flex-direction: column; gap: 8px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card__t { font-size: 12.5px; font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.card__tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); padding: 3px 9px; border-radius: 7px; background: var(--glass-2); border: 1px solid var(--line); white-space: nowrap; }
.card__tag.up { color: var(--sig); border-color: rgba(200,242,80,.28); background: rgba(200,242,80,.08); }
.card__figure { font-family: var(--font-mono); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.card__figure--sm { font-size: clamp(22px, 2.4vw, 30px); }
.areachart { width: 100%; height: clamp(140px, 16vw, 190px); margin-top: 8px; }
.ac__grid line { stroke: var(--line); stroke-width: 1; }
.card__xaxis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--mute); }

.log { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.log__row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.log__row:last-child { border-bottom: none; }
.log__ico { font-size: 11px; color: var(--mute); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; background: var(--glass-2); }
.log__row--up .log__ico { color: var(--sig); background: rgba(200,242,80,.1); }
.log__row--warn .log__ico { color: var(--amber); background: rgba(240,182,74,.1); }
.log__row b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); font-family: var(--font-ui); }
.log__row span { font-size: 12.5px; color: var(--mute); }
.log time { font-family: var(--font-mono); font-size: 12px; color: var(--mute); }

.bars { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.bars li { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; }
.bars__k { font-size: 12px; color: var(--ink-2); }
.bars__track { height: 8px; border-radius: 6px; background: var(--glass-2); overflow: hidden; }
.bars__track i { display: block; height: 100%; width: var(--w); background: var(--sig); border-radius: 6px; transform-origin: left; transform: scaleX(0); }
.bars__track.animate i, .view.is-active .bars__track i { transform: scaleX(1); transition: transform .8s var(--ease-out); }
.bars__track--ghost i { background: var(--line-2); }
.bars__v { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); }

/* retention heatmap — labeled cohort matrix */
.card__sub { opacity: .5; margin-left: 4px; font-weight: 400; }
.heatwrap { position: relative; margin-top: 4px; }
.heatmap { display: grid; grid-template-columns: 34px repeat(11, 1fr); gap: 4px; }
.heatmap .hh { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .01em; color: var(--mute); display: flex; align-items: center; justify-content: center; }
.heatmap .hh--corner { justify-content: flex-start; color: var(--ink-2); }
.heatmap .hh--row { justify-content: flex-start; color: var(--ink-2); }
.heatmap .hc { position: relative; aspect-ratio: 1; border-radius: 4px; background: rgba(200,242,80,calc(var(--a))); border: 1px solid rgba(255,255,255,.04); transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out); }
.heatmap .hc:hover { transform: scale(1.14); box-shadow: 0 0 0 1px var(--sig), 0 10px 22px rgba(0,0,0,.45); z-index: 2; }
.heatmap .hc--strong { border-color: rgba(200,242,80,.42); }
.heatmap .hc--na { background: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 3px, transparent 3px 6px); border: 1px dashed var(--line); pointer-events: none; }

.heat-tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; font-size: 11px; color: var(--ink); background: rgba(8,10,13,.95); border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 8px; box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.heat-tip__k { color: var(--mute); font-size: 9.5px; letter-spacing: .03em; margin-right: 6px; }
.heat-tip b { color: var(--sig); font-weight: 600; }

.heat-legend { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; font-family: var(--font-mono); }
.heat-legend > span { font-size: 10.5px; color: var(--mute); }
.heat-legend__k { color: var(--ink-2) !important; text-transform: uppercase; letter-spacing: .05em; }
.heat-legend__bar { flex: 0 0 92px; height: 8px; border-radius: 5px; background: linear-gradient(90deg, rgba(200,242,80,.09), rgba(200,242,80,.9)); border: 1px solid var(--line); }
.heat-legend__na { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.heat-legend__na i { width: 12px; height: 12px; border-radius: 3px; border: 1px dashed var(--line); background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 3px, transparent 3px 6px); }

/* pipeline funnel */
.funnel { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.funnel__row { display: grid; grid-template-columns: 92px 1fr 72px; gap: 14px; align-items: center; }
.funnel__k { font-size: 12.5px; color: var(--ink-2); }
.funnel__bar { position: relative; height: 34px; border-radius: 9px; background: linear-gradient(90deg, rgba(200,242,80,.85), rgba(200,242,80,.4)); width: var(--w); display: flex; align-items: center; padding: 0 12px; transform-origin: left; }
.funnel__bar b { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--sig-ink); }
.funnel__v { font-family: var(--font-mono); font-size: 13px; color: var(--ink); text-align: right; }

/* =====================  CAPABILITIES  ===================== */
.caps { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 12vh, 130px) var(--pad); }
.caps__head { margin-bottom: clamp(34px, 5vh, 54px); }
.caps__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cap { border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--glass), transparent); padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.cap:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cap--a { grid-column: span 3; }
.cap--b { grid-column: span 3; }
.cap--c { grid-column: span 6; flex-direction: row-reverse; align-items: center; gap: clamp(24px, 4vw, 60px); }
.cap--c .cap__copy { flex: 1; }
.cap--c .cap__viz { flex: 1; }
.cap__copy { margin-top: auto; }
.cap__no { display: block; font-size: 12px; color: var(--sig); letter-spacing: .1em; margin-bottom: 12px; }
.cap h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.9vw, 25px); letter-spacing: -.02em; color: var(--ink); }
.cap p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); max-width: 46ch; }

.cap__viz { position: relative; height: 190px; margin-bottom: 22px; border-radius: var(--r); background: rgba(0,0,0,.22); border: 1px solid var(--line); overflow: hidden; }
.cap--c .cap__viz { margin-bottom: 0; height: 210px; }

/* connect viz */
.cap__viz--connect .node { position: absolute; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); padding: 5px 9px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line-2); transform: translate(-50%,-50%); white-space: nowrap; }
.node--core { left: 50%; top: 50%; color: var(--sig-ink); background: var(--sig); border-color: var(--sig); font-weight: 700; z-index: 2; box-shadow: 0 0 24px -4px rgba(200,242,80,.5); }
.cap__viz--connect .n1 { left: 13%; top: 22%; } .cap__viz--connect .n2 { left: 87%; top: 24%; }
.cap__viz--connect .n3 { left: 11%; top: 76%; } .cap__viz--connect .n4 { left: 89%; top: 76%; } .cap__viz--connect .n5 { left: 50%; top: 12%; }
.cap__wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.cap__wires path { stroke-dasharray: 5 6; animation: flowline 1.4s linear infinite; }
@keyframes flowline { to { stroke-dashoffset: -22; } }

/* turn viz */
.cap__viz--turn svg { width: 100%; height: 100%; }
.turn__pt { filter: drop-shadow(0 0 8px rgba(200,242,80,.8)); }
.turn__pulse { transform-origin: 232px 70px; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { r: 5; opacity: .9; } 100% { r: 20; opacity: 0; } }
.turn__tag { position: absolute; right: 12px; top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--sig); border: 1px solid rgba(200,242,80,.3); background: rgba(200,242,80,.08); padding: 4px 9px; border-radius: 7px; }

/* tell viz */
.cap__viz--tell { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px; }
.alertcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: var(--raise); border: 1px solid var(--line-2); }
.alertcard__ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 11px; color: var(--sig); background: rgba(200,242,80,.12); }
.alertcard--muted .alertcard__ico { color: var(--amber); background: rgba(240,182,74,.12); }
.alertcard b { display: block; font-size: 13.5px; color: var(--ink); }
.alertcard span { font-size: 12px; color: var(--mute); font-family: var(--font-mono); }
.route { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.route__lead { font-size: 11px; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; margin-right: 2px; }
.chip { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); white-space: nowrap; }

/* =====================  STORY (signal timeline)  ===================== */
.story { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 12vh, 130px) var(--pad); }
.story__head { max-width: 700px; margin-bottom: clamp(30px, 5vh, 50px); }
.story__stage { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--raise), #0a0d13); padding: clamp(20px, 3vw, 40px); overflow: hidden; }
.story__chart { width: 100%; height: clamp(220px, 32vw, 360px); }
.story__grid line { stroke: var(--line); stroke-width: 1; }
.story__head-dot { filter: drop-shadow(0 0 10px rgba(200,242,80,.9)); }
.story__flags { position: absolute; inset: clamp(20px, 3vw, 40px); pointer-events: none; }
.flag { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-100%); pointer-events: auto; text-align: left; opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.flag.show { opacity: 1; }
.flag__dot { position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sig); transform: translateX(-50%); box-shadow: 0 0 0 4px rgba(200,242,80,.18), 0 0 16px rgba(200,242,80,.7); }
.flag__body { display: block; background: rgba(12,15,21,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 13px; margin-bottom: 16px; min-width: 190px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.9); }
.flag__body b { display: block; font-size: 13.5px; color: var(--sig); font-family: var(--font-display); font-weight: 600; margin-bottom: 3px; }
.flag__body { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); line-height: 1.4; }

/* =====================  METRICS  ===================== */
.metrics { padding: clamp(60px, 10vh, 100px) var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.metrics__grid { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.metric { text-align: left; }
.metric__v { display: block; font-family: var(--font-mono); font-weight: 600; font-size: clamp(34px, 5vw, 60px); letter-spacing: -.03em; color: var(--sig); line-height: 1; }
.metric__k { display: block; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }

/* =====================  PROOF  ===================== */
.proof { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 12vh, 130px) var(--pad); }
.proof__quote { position: relative; overflow: hidden; max-width: 900px; margin: 0 auto; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--glass), transparent); }
.proof__mark { position: absolute; top: 8px; left: clamp(20px,3vw,40px); font-family: var(--font-display); font-size: 120px; line-height: 1; color: var(--sig); opacity: .16; }
.proof__quote blockquote { position: relative; font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2.8vw, 34px); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.proof__quote em { font-style: normal; color: var(--sig); }
.proof__by { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.avatar { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--sig); background: var(--raise); border: 1px solid var(--line-2); }
.proof__who b { display: block; font-size: 15px; color: var(--ink); }
.proof__who span { font-size: 13px; color: var(--mute); }
.proof__stamp { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; letter-spacing: .06em; color: var(--sig); margin-bottom: 22px; }
.proof__stamp i { width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 10px rgba(200,242,80,.8); flex: none; }
.proof__artifact { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(14px, 2vw, 20px); margin-top: 26px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.22); }
.proof__sig { width: 120px; height: 40px; flex: none; }
.proof__caught { font-size: 12px; color: var(--ink-2); line-height: 1.45; letter-spacing: .01em; }

/* =====================  PRICING  ===================== */
.pricing { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 10vh, 110px) var(--pad); }
.pricing__head { max-width: 640px; margin-bottom: clamp(36px, 5vh, 56px); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.tier { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--glass), transparent); padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.tier:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tier--feature { border-color: rgba(200,242,80,.4); background: linear-gradient(180deg, rgba(200,242,80,.06), transparent 60%); box-shadow: 0 40px 90px -50px rgba(200,242,80,.3); }
.tier__badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sig-ink); background: var(--sig); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.tier__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); }
.tier__for { margin-top: 6px; font-size: 13.5px; color: var(--mute); min-height: 2.6em; }
.tier__price { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tier__price span { font-family: var(--font-mono); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); color: var(--ink); letter-spacing: -.02em; }
.tier__price small { font-size: 12.5px; color: var(--mute); }
.tier__cta { justify-content: center; margin: 22px 0; width: 100%; }
.tier__feat { list-style: none; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.tier__feat li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.tier__feat li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 9px; border-left: 2px solid var(--sig); border-bottom: 2px solid var(--sig); transform: rotate(-45deg); border-radius: 1px; }

/* =====================  CTA CLOSER  ===================== */
.start { position: relative; padding: clamp(80px, 14vh, 150px) var(--pad); overflow: hidden; text-align: center; }
.start__glow { position: absolute; z-index: 0; left: 50%; top: 40%; transform: translate(-50%,-50%); width: 90vw; max-width: 900px; height: 500px; background: radial-gradient(ellipse at center, rgba(200,242,80,.16), transparent 65%); filter: blur(20px); pointer-events: none; }
.start__inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.start__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 58px); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); }
.start__sub { margin: 20px auto 0; max-width: 48ch; font-size: clamp(15px, 1.3vw, 18px); color: var(--ink-2); }
.start__form { margin: 32px auto 0; display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; }
.start__form input[type=email] { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); color: var(--ink); font-size: 15px; font-family: var(--font-mono); transition: border-color .2s var(--ease); }
.start__form input[type=email]::placeholder { color: var(--mute); }
.start__form input[type=email]:focus { border-color: var(--sig); }
.start__form input[type=email]:focus:not(:focus-visible) { outline: none; }
.start__form input[type=email]:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }
.start__form input.err { border-color: var(--coral); }
.start__note { margin-top: 16px; font-size: 12.5px; color: var(--mute); font-family: var(--font-mono); }

/* =====================  FOOTER  ===================== */
.foot { border-top: 1px solid var(--line); padding: clamp(52px, 8vh, 80px) var(--pad) 30px; background: var(--bg-2); }
.foot__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.foot__brand .nav__brand { margin-bottom: 16px; }
.foot__line { font-size: 14px; color: var(--mute); max-width: 34ch; }
.foot__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--sig); }
.foot__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 8px rgba(200,242,80,.7); }
.foot__col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.foot__col a { display: block; font-size: 14px; color: var(--mute); padding: 9px 0; transition: color .2s var(--ease); }
.foot__col a:hover { color: var(--ink); }
.foot__base { max-width: var(--maxw); margin: clamp(40px,6vh,64px) auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--mute); }
.foot__weebie strong { color: var(--sig); letter-spacing: .08em; }

/* =====================  REVEAL / MOTION  ===================== */
.reveal, .reveal-panel { will-change: opacity, transform; }
body.gsap-ready .reveal { opacity: 0; transform: translateY(22px); }
body.gsap-ready .reveal-panel { opacity: 0; transform: translateY(30px) scale(.99); }
/* pre-motion: hide reveals from first paint so the hero never flashes in-then-out (JS un-hides if motion never boots) */
html.kova-premotion .reveal { opacity: 0; transform: translateY(22px); }
html.kova-premotion .reveal-panel { opacity: 0; transform: translateY(30px) scale(.99); }

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: 620px; }
  .readout { max-width: 560px; }
  .cap--c { flex-direction: column-reverse; align-items: stretch; }
  .cap--c .cap__viz { width: 100%; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 8px; padding: 80px 32px; background: rgba(10,12,16,.96); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); border-left: 1px solid var(--line); transform: translateX(100%);
    transition: transform .4s var(--ease); visibility: hidden;
  }
  .nav.is-open .nav__links { transform: none; visibility: visible; }
  .nav__links > a { font-size: 18px !important; padding: 10px 0; }
  .nav__cta { margin-top: 14px; padding: 12px 20px; }
  .nav__toggle { display: flex; }

  .view { grid-template-columns: repeat(2, 1fr); }
  .card { grid-column: span 1; }
  .card--stat { grid-column: span 1; }
  .card--wide { grid-column: span 2; }

  .caps__grid { grid-template-columns: 1fr; }
  .cap--a, .cap--b, .cap--c { grid-column: span 1; }

  .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tier--feature { order: -1; }

  /* story flags overlap when the chart is narrow → stack them as a legend under it */
  .story__flags { position: static; inset: auto; display: flex; flex-direction: column; gap: 10px; margin-top: 22px; pointer-events: auto; }
  .flag { position: static; left: auto; top: auto; transform: none; opacity: 1; }
  .flag__dot { display: none; }
  .flag__body { margin-bottom: 0; min-width: 0; border-left: 2px solid rgba(200,242,80,.5); }
}

@media (max-width: 560px) {
  .hero { padding-top: 104px; }
  .readout__mini { grid-template-columns: 1fr; }
  .mini__k { min-height: 0; }
  .view { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .heatmap { grid-template-columns: 24px repeat(11, 1fr); gap: 2px; }
  .heatmap .hh { font-size: 8px; }
  .heat-legend__bar { flex-basis: 64px; }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .console__seg { display: flex; width: calc(100% - 40px); }
  .seg { flex: 1; padding: 12px 8px; text-align: center; }
  .funnel__row { grid-template-columns: 72px 1fr 60px; gap: 8px; }
  .foot__base { flex-direction: column; gap: 8px; }
}

/* =====================  REDUCED MOTION  ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track.run { animation: none; }
  .field.animfield { animation: none; }
  body.gsap-ready .reveal, body.gsap-ready .reveal-panel { opacity: 1 !important; transform: none !important; }
}
