/* =========================================================
   Batreway — landing page
   Color psychology:
   - Ink navy (#05070D)  → depth, seriousness, trust (enterprise/finance)
   - Electric cyan       → intelligence, clarity, technology
   - Volt lime           → energy, charge, "alive" signal (not generic recycling green)
   - Violet              → prediction / AI (distinct from measured data)
   - Amber / Rose        → warning / critical, used sparingly
   ========================================================= */
:root {
  --ink: #05070d;
  --ink-2: #0a0f1c;
  --surface: #0e1424;
  --surface-2: #131a2e;
  --line: rgba(148, 170, 210, 0.12);
  --line-2: rgba(148, 170, 210, 0.22);
  --text: #e8ecf5;
  --muted: #8b96ad;
  --cyan: #22d3ee;
  --cyan-2: #0ea5c6;
  --volt: #c6f432;
  --violet: #a78bfa;
  --amber: #f5a524;
  --rose: #fb7185;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 16px/1.6 var(--font-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- ambient layers ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan), var(--volt)); }
.cursor-glow { position: fixed; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: 0; left: 0; top: 0; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(34, 211, 238, 0.09), transparent 60%); transition: opacity .4s; opacity: 0; }
body.has-pointer .cursor-glow { opacity: 1; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .footer { position: relative; z-index: 2; }

/* ---------- buttons ---------- */
.btn { --bg: transparent; position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; overflow: hidden; isolation: isolate; will-change: transform; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--volt); color: #0a0f00; box-shadow: 0 0 0 0 rgba(198, 244, 50, .5), 0 10px 30px -10px rgba(198, 244, 50, .55); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 0 0 6px rgba(198, 244, 50, .12), 0 16px 40px -10px rgba(198, 244, 50, .7); }
.btn--primary:active { transform: scale(.97); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.02); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .06); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.5); animation: ripple .6s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(5, 7, 13, .72); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.logo__mark { width: 30px; height: 30px; color: var(--text); transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.08); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 14px; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color .25s, background .25s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); background: rgba(255,255,255,.05); }
.nav__burger { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 15px; } .nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.nav__mobile { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 24px; background: rgba(5,7,13,.96); border-bottom: 1px solid var(--line); }
.nav__mobile a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 12px; justify-content: center; border: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); opacity: .5; }
.hero::after { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; background: radial-gradient(circle, rgba(34,211,238,.16), transparent 60%); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.02); backdrop-filter: blur(6px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 0 rgba(198,244,50,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198,244,50,0); } 100% { box-shadow: 0 0 0 0 rgba(198,244,50,0); } }
.hero__title { margin: 24px 0 22px; font-size: clamp(44px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.0; }
.scramble { display: inline-block; background: linear-gradient(100deg, var(--cyan) 10%, var(--volt) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; min-height: 1em; }
.hero__sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 560px; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__chips { display: flex; gap: 10px; list-style: none; padding: 0; margin: 36px 0 0; flex-wrap: wrap; }
.hero__chips li { font: 12px var(--font-mono); color: var(--muted); padding: 6px 12px; border: 1px dashed var(--line-2); border-radius: 8px; }
.hero__chips li::before { content: "◆ "; color: var(--cyan); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; border-radius: 3px; background: var(--cyan); transform: translateX(-50%); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- dashboard card ---------- */
.dash { position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(19, 26, 46, .86), rgba(10, 15, 28, .92)); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(34, 211, 238, .35), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(16px); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.dash::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--cyan) 80%, var(--volt) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; pointer-events: none; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.dash__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dots { display: flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.dash__title { color: var(--muted); } .dash__title b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.badge { margin-left: auto; font: 11px var(--font-mono); padding: 4px 8px; border-radius: 6px; }
.badge--sim { color: var(--amber); background: rgba(245,165,36,.1); border: 1px solid rgba(245,165,36,.25); }
.dash__body { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px; }
.dash__ring { position: relative; display: grid; place-items: center; }
.ring { width: 160px; height: 160px; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 9; }
.ring__fill { fill: none; stroke: url(#ringGrad); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 2s var(--ease); filter: drop-shadow(0 0 6px rgba(34,211,238,.5)); }
.ring__label { position: absolute; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; width: 120px; }
.ring__label .big { font-size: 36px; font-weight: 500; }
.ring__label .pct { color: var(--muted); }
.ring__label small { width: 100%; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.dash__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; transition: border-color .3s, transform .3s var(--ease); }
.metric:hover { border-color: var(--line-2); transform: translateY(-2px); }
.metric small { font-size: 11px; color: var(--muted); }
.metric .mono { font-size: 18px; }
.tag { align-self: flex-start; font: 10px/1 var(--font-mono); padding: 4px 6px; border-radius: 5px; letter-spacing: .02em; white-space: nowrap; }
.tag--meas { color: var(--cyan); background: rgba(34,211,238,.1); }
.tag--est { color: var(--amber); background: rgba(245,165,36,.1); }
.tag--pred { color: var(--violet); background: rgba(167,139,250,.12); }
.tag--val { color: var(--volt); background: rgba(198,244,50,.1); }
.dash__chart, .dash__cells { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.chart__head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.chart__head small { font-size: 11px; color: var(--muted); }
.spark { width: 100%; height: 70px; }
#sparkLine, #sparkPred { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.is-drawn #sparkLine { animation: draw 2s var(--ease) forwards; }
.is-drawn #sparkPred { animation: draw 1.2s var(--ease) 1.6s forwards; }
#sparkPred { stroke-dasharray: 4 4; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cells { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; height: 38px; align-items: end; }
.cells i { display: block; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--cyan-2)); height: var(--h, 50%); transition: height .8s var(--ease), background .4s; cursor: pointer; }
.cells i.is-hot { background: linear-gradient(180deg, var(--amber), #d9821a); }
.cells i:hover { filter: brightness(1.3); }
.dash__alert { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(245,165,36,.06); border: 1px solid rgba(245,165,36,.2); font-size: 13px; }
.alert-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--amber); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- marquee ---------- */
.marquee-wrap { padding: 36px 0 30px; border-block: 1px solid var(--line); background: var(--ink-2); position: relative; z-index: 2; }
.marquee__label { text-align: center; font: 12px var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font: 500 22px var(--font-head); color: #5f6a82; white-space: nowrap; transition: color .3s; }
.marquee__track span:hover { color: var(--text); }
.marquee__track span::before { content: "⌁ "; color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-top: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .lead { margin-inline: auto; }
.kicker { font: 500 13px var(--font-mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; display: inline-flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.04em; }
.grad { background: linear-gradient(100deg, var(--cyan), var(--volt)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 620px; }

/* ---------- problems ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, background .4s; }
.problem:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.4); background: var(--surface-2); }
.problem__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--cyan); background: rgba(34,211,238,.08); margin-bottom: 26px; transition: transform .5s var(--ease), color .3s; }
.problem__icon svg { width: 28px; height: 28px; }
.problem:hover .problem__icon { transform: rotate(-6deg) scale(1.1); color: var(--volt); }
.problem h3 { font-size: 22px; margin-bottom: 10px; }
.problem p { color: var(--muted); }

/* ---------- pipeline ---------- */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.pipeline__line { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.pipeline__flow { position: absolute; inset: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--cyan), var(--volt), transparent); animation: flow 2.6s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(400%); } }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: all .4s var(--ease); }
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step__num { font: 12px var(--font-mono); color: var(--muted); }
.step__name { font: 600 20px var(--font-head); }
.step.is-active { border-color: var(--cyan); background: linear-gradient(180deg, rgba(34,211,238,.12), var(--surface)); box-shadow: 0 0 40px -10px rgba(34,211,238,.5); }
.step.is-active .step__num { color: var(--cyan); }
.step-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); min-height: 320px; }
.step-panel__text h3 { font-size: 28px; margin-bottom: 14px; }
.step-panel__text p { color: var(--muted); }
.step-panel__text > * { animation: fadeUp .6s var(--ease) both; }
.step-panel__text > *:nth-child(2) { animation-delay: .06s; } .step-panel__text > *:nth-child(3) { animation-delay: .12s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 5px; background: rgba(198,244,50,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c6f432' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.step-panel__viz { border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); padding: 20px; font: 13px/1.7 var(--font-mono); overflow: hidden; position: relative; }
.viz-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; animation: fadeUp .5s var(--ease) both; }
.viz-row:nth-child(odd) { background: rgba(255,255,255,.02); }
.viz-row .k { color: var(--muted); } .viz-row .v { color: var(--cyan); }
.viz-raw { color: #5f6a82; word-break: break-all; }
.viz-arrow { text-align: center; color: var(--volt); margin: 8px 0; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.tile { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), border-color .4s; display: flex; flex-direction: column; gap: 10px; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(34,211,238,.13), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.tile:hover::before { opacity: 1; }
.tile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile h3 { font-size: 22px; } .tile--lg h3 { font-size: 30px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile__status { align-self: flex-start; font: 11px var(--font-mono); padding: 4px 9px; border-radius: 999px; color: var(--cyan); border: 1px solid rgba(34,211,238,.3); margin-bottom: 8px; }
.tile__status--r { color: var(--violet); border-color: rgba(167,139,250,.3); }
.tile__status--f { color: var(--amber); border-color: rgba(245,165,36,.3); }
.mini-bars { margin-top: auto; display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 20px; }
.mini-bars i { flex: 1; height: 0; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cyan), rgba(34,211,238,.1)); transition: height 1.2s var(--ease); }
.mini-bars i:last-child { background: linear-gradient(180deg, var(--violet), rgba(167,139,250,.1)); }
.is-visible .mini-bars i { height: var(--h); }
.mini-bars i:nth-child(2) { transition-delay: .05s } .mini-bars i:nth-child(3) { transition-delay: .1s } .mini-bars i:nth-child(4) { transition-delay: .15s } .mini-bars i:nth-child(5) { transition-delay: .2s } .mini-bars i:nth-child(6) { transition-delay: .25s } .mini-bars i:nth-child(7) { transition-delay: .3s } .mini-bars i:nth-child(8) { transition-delay: .35s } .mini-bars i:nth-child(9) { transition-delay: .4s }
.tile:hover .mini-bars i { filter: brightness(1.2); }
.id-chip { margin-top: auto; padding: 12px 14px; border-radius: 10px; font-size: 13px; background: var(--ink-2); border: 1px dashed var(--line-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.id-chip span { color: var(--ink); background: var(--volt); padding: 2px 6px; border-radius: 4px; margin-right: 8px; font-weight: 500; }
.id-chip em { color: var(--muted); font-style: normal; }
.snippet { margin-top: auto; padding: 10px 12px; border-radius: 8px; background: var(--ink-2); color: var(--volt); font-size: 12px; border: 1px solid var(--line); }

/* ---------- tabs / persona ---------- */
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 30px; flex-wrap: wrap; }
.tab { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.tab.is-active { color: var(--ink); }
.tab__ink { position: absolute; z-index: 0; top: 5px; height: calc(100% - 10px); border-radius: 999px; background: var(--volt); transition: left .5s var(--ease), width .5s var(--ease), top .5s var(--ease); }
.persona { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.persona > * { animation: fadeUp .6s var(--ease) both; }
.persona__card { padding: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.persona__card h3 { font-size: 30px; margin-bottom: 12px; }
.persona__card > p { color: var(--muted); }
.qlist { display: grid; gap: 12px; margin-top: 26px; }
.q { display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.02); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.q:hover { border-color: rgba(198,244,50,.4); transform: translateX(4px); }
.q b { font: 500 13px var(--font-mono); color: var(--volt); }
.persona__viz { padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(34,211,238,.1), var(--surface) 50%); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.persona__viz h4 { font-size: 13px; font-family: var(--font-mono); font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.pv-row { display: grid; grid-template-columns: 110px 1fr 60px; gap: 12px; align-items: center; font-size: 13px; }
.pv-row .bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; }
.pv-row .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c, var(--cyan)); animation: grow 1.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes grow { to { width: var(--w); } }
.pv-row .mono { text-align: right; color: var(--muted); }
.pv-out { margin-top: auto; padding: 16px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); font-size: 14px; }
.pv-out b { color: var(--volt); }

/* ---------- pack explorer ---------- */
.explorer { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-top: 30px; }
.seg__btn { padding: 9px 16px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: all .3s var(--ease); }
.seg__btn.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.fineprint { margin-top: 22px; font-size: 13px; color: var(--muted); max-width: 440px; }
.pack { position: relative; padding: 40px 30px 30px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(0,0,0,.8); }
.pack__terminal { position: absolute; top: -14px; width: 44px; height: 24px; border-radius: 6px 6px 0 0; display: grid; place-items: center; font: 600 16px var(--font-mono); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom: 0; }
.pack__terminal--p { left: 40px; color: var(--rose); } .pack__terminal--n { right: 40px; color: var(--cyan); }
.pack__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.cell { position: relative; aspect-ratio: 1 / 1.7; border-radius: 10px; background: var(--c, var(--cyan)); border: 1px solid rgba(255,255,255,.08); transition: transform .35s var(--ease), box-shadow .35s, background .6s; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font: 500 10px var(--font-mono); color: rgba(5,7,13,.75); overflow: hidden; }
.cell::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); transform: translateX(-50%); }
.cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); transform: translateX(-100%); transition: transform .7s var(--ease); }
.cell:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 14px 30px -10px var(--c); z-index: 2; }
.cell:hover::after { transform: translateX(100%); }
.cell.is-selected { outline: 2px solid var(--text); outline-offset: 3px; transform: translateY(-6px) scale(1.06); }
.pack__legend { display: flex; align-items: center; gap: 12px; margin-top: 22px; font: 12px var(--font-mono); color: var(--muted); }
.legend-bar { flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #1e3a8a, var(--cyan), var(--volt)); }
.cell-card { position: absolute; right: -20px; bottom: -30px; width: 270px; padding: 18px; border-radius: 16px; background: rgba(14,20,36,.94); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); animation: pop .45s var(--ease); z-index: 5; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.cell-card__close { position: absolute; top: 8px; right: 12px; font-size: 20px; color: var(--muted); }
.cell-card__close:hover { color: var(--text); }
.cc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cc-row span:first-child { color: var(--muted); }
.cc-note { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- legend cards ---------- */
.legend-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lc { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: transform .45s var(--ease), border-color .3s; }
.lc:hover { transform: translateY(-6px); border-color: var(--line-2); }
.lc h4 { font-size: 20px; margin-top: 6px; }
.lc p { color: var(--muted); font-size: 14px; flex: 1; }
.lc__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.lc__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--volt)); transition: width 1.4s var(--ease) .2s; }
.lc.is-visible .lc__bar i { width: var(--w); }
.lc small { color: var(--muted); font-size: 11px; }

/* ---------- CTA ---------- */
.cta-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: linear-gradient(140deg, #0f1a33, #0a0f1c 60%); border: 1px solid var(--line-2); overflow: hidden; }
.cta-card__glow { position: absolute; width: 600px; height: 600px; left: -200px; bottom: -300px; background: radial-gradient(circle, rgba(198,244,50,.18), transparent 60%); pointer-events: none; animation: drift 10s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(200px, -80px); } }
.cta-card__copy { position: relative; }
.cta-card h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 18px; }
.cta-card__copy > p:not(.kicker) { color: var(--muted); }
.form { position: relative; display: grid; gap: 14px; align-content: start; }
.field { position: relative; }
.field input { width: 100%; padding: 22px 16px 10px; border-radius: 12px; background: rgba(5,7,13,.6); border: 1px solid var(--line-2); color: var(--text); font: inherit; outline: none; transition: border-color .3s, box-shadow .3s; }
.field label { position: absolute; left: 16px; top: 16px; color: var(--muted); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 7px; font-size: 11px; color: var(--cyan); }
.field.is-error input { border-color: var(--rose); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 6px; }
.chips-select__label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.chips-select span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; cursor: pointer; transition: all .25s var(--ease); }
.chips-select span:hover { border-color: var(--cyan); }
.chips-select input:checked + span { background: rgba(34,211,238,.14); border-color: var(--cyan); color: var(--cyan); }
.chips-select input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form__msg { font-size: 14px; min-height: 22px; color: var(--volt); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; overflow: hidden; }
.qa[open] { border-color: var(--line-2); background: var(--surface-2); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; cursor: pointer; font: 500 18px var(--font-head); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--ease), background .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.qa[open] summary i { transform: rotate(180deg); background: var(--volt); border-color: var(--volt); }
.qa[open] summary i::before { background: var(--ink); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0); background: var(--ink); }
.qa > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa > div > p { overflow: hidden; padding: 0 24px; color: var(--muted); }
.qa.is-open > div { grid-template-rows: 1fr; }
.qa.is-open > div > p { padding-bottom: 22px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--ink); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__inner > div:first-child p { margin-top: 14px; font-size: 14px; }
.footer__cols { display: flex; gap: 72px; }
.footer__cols h5 { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer__cols a { display: block; padding: 4px 0; font-size: 14px; transition: color .25s, transform .25s var(--ease); }
.footer__cols a:hover { color: var(--volt); transform: translateX(3px); }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.dash.reveal.is-visible { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner, .explorer, .persona, .cta-card, .faq, .step-panel { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .legend-cards { grid-template-columns: repeat(2, 1fr); }
  .nav__links, .nav__inner > .btn { display: none; }
  .nav__burger { display: block; }
  .cell-card { right: 10px; bottom: 10px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1200px); }
  .problems, .bento, .legend-cards { grid-template-columns: 1fr; }
  .tile--lg, .tile--wide { grid-column: auto; grid-row: auto; }
  .dash__body { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline__line { display: none; }
  .pack__grid { grid-template-columns: repeat(4, 1fr); }
  .tabs { border-radius: 18px; }
  .footer__cols { gap: 40px; }
  .pv-row { grid-template-columns: 90px 1fr 50px; }
  .cell-card { position: fixed; left: 16px; right: 16px; bottom: 16px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
.dash.reveal.is-visible { transition: transform .5s var(--ease), opacity 1s var(--ease), filter 1s var(--ease); }
.nav__mobile[hidden] { display: none; }
@media (min-width: 1021px) { .nav__mobile { display: none !important; } }
