/* site.css — shared shell for the marketing subpages (/p/*).
   Gold standard: supaste conversion clarity + elva dark cinema.
   Self-contained (subpages don't load the app's tokens). */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0A0A0C; --surface: #121215; --hairline: rgba(255,255,255,.09);
  --text: #F4F4F2; --muted: #9B9B94; --faint: #6E6E68;
  --volt: #C9F542; --volt-ink: #0E1206;
  --font: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(.22,.9,.3,1);
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 19px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 17px; border-radius: 999px;
  padding: 10px 22px; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn.volt { background: var(--volt); color: var(--volt-ink); }
.btn.ghost { border: 1px solid var(--hairline); color: var(--text); }
.btn.big { padding: 14px 30px; font-size: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn.volt:hover { box-shadow: 0 10px 30px rgba(201,245,66,.25); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 30px;
  padding: 14px 36px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.wm { height: 22px; width: auto; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 26px; flex: 1; justify-content: center; font-size: 17px; color: var(--muted); }
.nav-links > a:hover, .nd > a:hover { color: var(--text); }
.nd { position: relative; }
.nd .dd {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(6px);
  top: 100%; padding-top: 14px; opacity: 0; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.nd:hover .dd { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dd { width: 320px; }
.dd > a {
  display: block; background: var(--surface); border: 1px solid var(--hairline);
  padding: 12px 16px; margin-top: -1px;
}
.dd > a:first-child { border-radius: 14px 14px 0 0; }
.dd > a:last-child { border-radius: 0 0 14px 14px; }
.dd b { display: block; font-size: 16.5px; font-weight: 600; color: var(--text); }
.dd span { font-size: 15px; color: var(--faint); }
.dd > a:hover b { color: var(--volt); }

/* hero */
.hero { text-align: center; padding: 96px 24px 40px; max-width: 860px; margin: 0 auto; }
.kicker { font: 600 14px var(--mono); letter-spacing: .22em; color: var(--volt); margin-bottom: 18px; }
.hero h1 { font-size: clamp(45px, 7.1vw, 75.5px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.hero .sub { color: var(--muted); font-size: 21px; max-width: 620px; margin: 22px auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* media frame */
.media { max-width: 1020px; margin: 48px auto; padding: 0 24px; }
.browser {
  border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.chrome { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--hairline); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }

/* benefits, editorial (2026-07-05 redesign): numbered rows, no icon tiles
   — the icon+text card grid read as template filler; big mono numerals
   over hairlines read like a spread and let the copy carry more */
.benefits {
  max-width: 860px; margin: 40px auto; padding: 0 24px;
  counter-reset: bene;
}
.b {
  position: relative; padding: 30px 0 30px 96px;
  border-top: 1px solid var(--hairline);
  counter-increment: bene;
}
.b:last-child { border-bottom: 1px solid var(--hairline); }
.b::before {
  content: counter(bene, decimal-leading-zero);
  position: absolute; left: 0; top: 26px;
  font: 700 40px/1 "JetBrains Mono", monospace;
  color: color-mix(in srgb, var(--volt) 75%, transparent);
  letter-spacing: -.03em;
}
.bi { display: none; }
.b h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -.01em; }
.b p { color: var(--muted); font-size: 17.5px; line-height: 1.65; max-width: 640px; }
@media (max-width: 640px) { .b { padding-left: 64px; } .b::before { font-size: 28px; } }

/* ---- page visualizations: the product itself, not stock illustration */
.viz { max-width: 860px; margin: 30px auto; padding: 0 24px; }
.viz h4 { text-align: center; font: 600 13px "JetBrains Mono", monospace;
  letter-spacing: .14em; text-transform: uppercase; color: var(--volt); margin-bottom: 18px; }
.viz-note { color: var(--faint); font-size: 14px; text-align: center; margin-top: 12px; }

/* live caption ticker (/p/captions) */
.viz-cap {
  background: linear-gradient(180deg, #1E1E24, #141419);
  border: 1px solid var(--hairline); border-radius: 14px;
  padding: 64px 24px; text-align: center; overflow: hidden;
}
.viz-cap .line {
  font: 900 clamp(22px, 4vw, 38px)/1.3 Arial, sans-serif;
  color: #fff; text-shadow: 0 0 4px #000, 0 2px 3px #000;
  text-transform: uppercase;
}
.viz-cap .w { opacity: .35; animation: vizw 3.6s infinite; }
.viz-cap .w:nth-child(2) { animation-delay: .6s; }
.viz-cap .w:nth-child(3) { animation-delay: 1.2s; }
.viz-cap .w:nth-child(4) { animation-delay: 1.8s; }
.viz-cap .w:nth-child(5) { animation-delay: 2.4s; }
@keyframes vizw {
  0%, 12% { opacity: .35; color: #fff; }
  16%, 30% { opacity: 1; color: var(--volt); }
  34%, 100% { opacity: 1; color: #fff; }
}

/* safe-zone phones (/p/autopilot): each platform's UI zones, captions above */
.viz-phone-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.viz-phone {
  position: relative; width: 172px; aspect-ratio: 9/16;
  background: linear-gradient(180deg, #1E1E24, #101014);
  border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden;
}
.viz-phone .zone {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: color-mix(in srgb, #ff5c5c 16%, transparent);
  border-top: 1px dashed color-mix(in srgb, #ff5c5c 55%, transparent);
  display: flex; align-items: center; justify-content: center;
  font: 600 9px "JetBrains Mono", monospace; color: rgba(255,255,255,.55);
}
.viz-phone .rail {
  position: absolute; top: 0; bottom: 0; right: 0;
  background: color-mix(in srgb, #ff5c5c 12%, transparent);
  border-left: 1px dashed color-mix(in srgb, #ff5c5c 45%, transparent);
}
.viz-phone .cap {
  position: absolute; left: 10%; right: 10%; text-align: center;
  font: 800 11px/1.35 Arial, sans-serif; color: #fff; text-transform: uppercase;
  text-shadow: 0 0 3px #000, 0 1px 2px #000;
}
.viz-phone .plat {
  position: absolute; top: 8px; left: 8px;
  font: 700 9.5px "JetBrains Mono", monospace; color: var(--volt);
  background: rgba(8,8,10,.7); border-radius: 999px; padding: 2px 8px;
}

/* agent transcript (/p/api): same language as the landing band */
.viz-log {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 26px 28px; font: 500 14.5px/1.9 "JetBrains Mono", monospace;
  color: var(--muted); overflow-x: auto;
}
.viz-log .ask { color: var(--text); display: block; margin-bottom: 14px; }
.viz-log .ask::before { content: "> "; color: var(--volt); }
.viz-log .tl { display: flex; gap: 14px; white-space: nowrap; }
.viz-log .tl b { color: var(--volt); font-weight: 500; min-width: 16ch; }
.viz-log .tl span { color: var(--faint); }

/* score grid (/p/curation): ranked clips popping in */
.viz-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .viz-scores { grid-template-columns: repeat(2, 1fr); } }
.viz-score {
  aspect-ratio: 9/13; border-radius: 14px; border: 1px solid var(--hairline);
  background: linear-gradient(180deg, #202028, #131318);
  position: relative; overflow: hidden;
  animation: vizpop .5s var(--ease) both;
}
.viz-score:nth-child(2) { animation-delay: .12s; }
.viz-score:nth-child(3) { animation-delay: .24s; }
.viz-score:nth-child(4) { animation-delay: .36s; }
@keyframes vizpop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.viz-score .sc {
  position: absolute; top: 8px; left: 8px;
  font: 700 12px "JetBrains Mono", monospace; color: #0E1206;
  background: var(--volt); border-radius: 999px; padding: 2px 9px;
}
.viz-score .hl {
  position: absolute; left: 10px; right: 10px; bottom: 12px;
  font: 600 12.5px/1.4 Inter, sans-serif; color: #fff;
}
.viz-score .bar {
  position: absolute; left: 10px; right: 10px; bottom: 44px; height: 3px;
  border-radius: 2px; background: rgba(255,255,255,.14);
}
.viz-score .bar i { display: block; height: 100%; border-radius: 2px; background: var(--volt); }

/* final cta */
.final { text-align: center; padding: 96px 24px 110px; }
.final h2 { font-size: clamp(33px, 5.2vw, 52px); letter-spacing: -.02em; margin-bottom: 26px; }

footer {
  border-top: 1px solid var(--hairline); padding: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--faint); font-size: 16px;
}
@media (max-width: 720px) {
  .nav { padding: 12px 16px; gap: 14px; }
  .nav-links { display: none; }
  footer { flex-direction: column; }
}

/* ---------------- shared footer v2 (matches landing) ---------------- */
footer.foot2 { display: block; padding: 56px 36px 28px; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
  max-width: 1080px; margin: 0 auto 34px;
}
.foot-brand-col .wm { height: 24px; }
.foot-brand-col p { margin: 14px 0 18px; font-size: 15px; color: var(--faint); line-height: 1.55; }
.foot-col { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.foot-col b { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 4px; }
.foot-col a { color: var(--faint); transition: color .15s var(--ease); }
.foot-col a:hover { color: var(--volt); }
.foot-x {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text); font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 16px;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.foot-x svg { width: 15px; height: 15px; }
.foot-x:hover { border-color: var(--volt); color: var(--volt); }
.foot-x.sm { border: 0; padding: 0; color: var(--faint); font-weight: 500; }
.foot-x.sm:hover { color: var(--volt); }
.foot-base {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  max-width: 1080px; margin: 0 auto; padding-top: 22px;
  border-top: 1px solid var(--hairline); font-size: 13px; color: var(--faint);
}
.final-x { margin-top: 22px; font-size: 15px; }
.final-x a { color: var(--faint); transition: color .15s var(--ease); }
.final-x a:hover { color: var(--volt); }

/* ---------------- nav synced with the homepage ---------------- */
.nav { height: 68px; padding: 0 36px; gap: 34px; }
.nav-links { justify-content: flex-start; flex: 1; }
.nav-links > a, .nd > a { position: relative; padding: 4px 0; transition: color .15s var(--ease); }
.nav-links > a::after, .nd > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--volt); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .22s var(--ease);
}
.nav-links > a:hover::after, .nd > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nd > a svg { opacity: .6; }

/* ---------------- branded motion: reveal + tile life ---------------- */
.benefits .b, .viz, .media .browser, .final h2 {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s var(--ease) var(--d, 0ms), transform .55s var(--ease) var(--d, 0ms);
}
.benefits .b.in, .viz.in, .media .browser.in, .final h2.in { opacity: 1; transform: none; }
.benefits .b {
  transition: opacity .55s var(--ease) var(--d, 0ms), transform .55s var(--ease) var(--d, 0ms),
    border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.benefits .b:hover {
  border-color: color-mix(in srgb, var(--volt) 45%, var(--hairline));
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  transform: translateY(-4px);
}
.benefits .b .bi { transition: transform .25s var(--ease); }
.benefits .b:hover .bi { transform: scale(1.12) rotate(-4deg); }
.benefits .b .bi svg { filter: drop-shadow(0 0 0 transparent); transition: filter .25s var(--ease); }
.benefits .b:hover .bi svg { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--volt) 55%, transparent)); }
@media (prefers-reduced-motion: reduce) {
  .benefits .b, .viz, .media .browser, .final h2 { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-base { flex-direction: column; text-align: center; }
}

/* ---------------- docs site ---------------- */
.docs-tag {
  font: 600 12px var(--mono, monospace); color: var(--volt);
  border: 1px solid color-mix(in srgb, var(--volt) 40%, transparent);
  border-radius: 999px; padding: 3px 10px; letter-spacing: .06em;
}
.docs-wrap {
  display: grid; grid-template-columns: 250px 1fr; gap: 46px;
  max-width: 1120px; margin: 0 auto; padding: 44px 36px 90px;
}
.docs-side { position: sticky; top: 92px; align-self: flex-start;
  display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.docs-side b { color: var(--faint); font-size: 12px; text-transform: uppercase;
  letter-spacing: .09em; margin: 16px 0 6px; }
.docs-side b:first-child { margin-top: 0; }
.docs-side a { color: var(--muted); padding: 6px 12px; border-radius: 9px;
  border-left: 2px solid transparent; transition: color .15s var(--ease), background .15s var(--ease); }
.docs-side a:hover { color: var(--text); background: var(--surface); }
.docs-side a.on { color: var(--volt); background: var(--surface);
  border-left-color: var(--volt); }
.docs-main { min-width: 0; }
.docs-main h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; margin: 6px 0 10px; }
.docs-desc { color: var(--muted); font-size: 18px; margin-bottom: 30px; }
.docs-article { font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.docs-article h2 { color: var(--text); font-size: 22px; letter-spacing: -.01em;
  margin: 34px 0 10px; padding-top: 10px; }
.docs-article h2:first-child { margin-top: 0; }
.docs-article b { color: var(--text); font-weight: 600; }
.docs-article ul, .docs-article ol { padding-left: 22px; display: flex;
  flex-direction: column; gap: 8px; margin: 12px 0; }
.docs-article li::marker { color: var(--volt); }
.docs-article code { font-family: var(--mono, monospace); font-size: 14px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 1px 7px; color: var(--text); }
.doc-tip { margin-top: 22px; border: 1px solid color-mix(in srgb, var(--volt) 35%, var(--hairline));
  border-radius: 12px; padding: 14px 18px; font-size: 15px;
  background: color-mix(in srgb, var(--volt) 5%, transparent); }
.docs-next { display: flex; justify-content: space-between; gap: 12px;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.docs-next .dn { color: var(--muted); font-size: 15px; font-weight: 600;
  transition: color .15s var(--ease); }
.docs-next .dn:hover { color: var(--volt); }
.docs-next .dn.next { margin-left: auto; }
@media (max-width: 880px) {
  .docs-wrap { grid-template-columns: 1fr; gap: 20px; padding: 24px 18px 70px; }
  .docs-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs-side b { width: 100%; margin: 10px 0 2px; }
}
