/* =========================================================
   ControlHub — Edge AI Platform
   Dark / neon institutional landing
   ========================================================= */

:root {
  /* Base tones (deep dark blue-black, low chroma) */
  --bg:           oklch(0.13 0.018 250);
  --bg-elev:      oklch(0.17 0.022 250);
  --bg-card:      oklch(0.19 0.024 250);
  --border:       oklch(0.30 0.025 250 / 0.55);
  --border-soft:  oklch(0.25 0.020 250 / 0.40);

  --fg:           oklch(0.97 0.005 250);
  --fg-mid:       oklch(0.78 0.010 250);
  --fg-dim:       oklch(0.58 0.012 250);

  /* Neon accents (shared lightness / chroma, vary hue) */
  --neon-1:       oklch(0.84 0.16 205);  /* cyan */
  --neon-2:       oklch(0.74 0.20 305);  /* violet */
  --neon-3:       oklch(0.86 0.18 150);  /* mint */

  --neon-1-soft:  oklch(0.84 0.16 205 / 0.18);
  --neon-2-soft:  oklch(0.74 0.20 305 / 0.18);
  --neon-3-soft:  oklch(0.86 0.18 150 / 0.18);

  --grid-line:    oklch(0.30 0.020 250 / 0.22);

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

/* Tweakable palettes (toggled by data-palette attr on <html>) */
html[data-palette="aurora"] {
  --neon-1: oklch(0.84 0.16 205);
  --neon-2: oklch(0.74 0.20 305);
  --neon-3: oklch(0.86 0.18 150);
}
html[data-palette="solar"] {
  --neon-1: oklch(0.86 0.18 75);
  --neon-2: oklch(0.78 0.20 25);
  --neon-3: oklch(0.88 0.16 110);
}
html[data-palette="abyss"] {
  --neon-1: oklch(0.80 0.18 245);
  --neon-2: oklch(0.78 0.18 195);
  --neon-3: oklch(0.86 0.14 175);
}
html[data-palette="ember"] {
  --neon-1: oklch(0.78 0.20 15);
  --neon-2: oklch(0.74 0.20 330);
  --neon-3: oklch(0.86 0.16 60);
}

/* Animation intensity */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}
html[data-motion="subtle"] {
  --motion-scale: 0.5;
}
html[data-motion="full"] {
  --motion-scale: 1;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Global subtle grain + gradient veil */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, var(--neon-1-soft), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, var(--neon-2-soft), transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

/* ---------- Layout helpers ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: oklch(0.13 0.018 250 / 0.6);
  border-bottom: 1px solid var(--border-soft);
}
.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background:
    conic-gradient(from 90deg, var(--neon-1), var(--neon-2), var(--neon-3), var(--neon-1));
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 22px var(--neon-1-soft);
}
.brand .mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: var(--bg);
}
.brand .mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 2px;
  background: var(--neon-1);
  box-shadow: 0 0 8px var(--neon-1);
}
.brand .name { color: var(--fg); }
.brand .name b { font-weight: 700; }
.brand .name span { color: var(--fg-dim); margin-left: 4px; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  color: var(--fg-mid);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--fg); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
}
.lang-toggle button {
  padding: 6px 12px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}
.lang-toggle button.active {
  background: var(--fg);
  color: var(--bg);
}

@media (max-width: 720px) {
  .nav-links a:not(.lang-toggle) { display: none; }
  .nav-links > a { display: none; }
}

/* ---------- Generic type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mid);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--neon-1);
  box-shadow: 0 0 8px var(--neon-1);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 92px); }
h2 { font-size: clamp(30px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; }

p { margin: 0; text-wrap: pretty; }
.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-mid);
  max-width: 56ch;
  line-height: 1.55;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* ---------- Section frame ---------- */
section {
  position: relative;
  padding: clamp(80px, 11vw, 160px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .left { display: flex; flex-direction: column; gap: 18px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: min(820px, 95vh);
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(80px, 12vh, 140px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero .inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  width: 100%;
}
@media (max-width: 980px) {
  .hero .inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 {
  margin-top: 22px;
}
.hero h1 .gradient {
  background: linear-gradient(100deg, var(--neon-1), var(--neon-2) 55%, var(--neon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  margin-top: 26px;
  color: var(--fg-mid);
  font-size: clamp(16px, 1.35vw, 19px);
  max-width: 50ch;
  line-height: 1.55;
}
.hero .meta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}
.hero .meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-3);
  box-shadow: 0 0 10px var(--neon-3);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* Mesh canvas container */
.mesh-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
}
.mesh-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mesh-wrap .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed oklch(0.35 0.02 250 / 0.5);
  pointer-events: none;
}
.mesh-wrap .ring.r1 { inset: 4%; }
.mesh-wrap .ring.r2 { inset: 18%; }
.mesh-wrap .ring.r3 { inset: 32%; }

.mesh-wrap .badge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.mesh-wrap .badge.b1 { top: 6%; left: 10%; }
.mesh-wrap .badge.b2 { top: 14%; right: 4%; }
.mesh-wrap .badge.b3 { bottom: 10%; left: 6%; }
.mesh-wrap .badge.b4 { bottom: 4%; right: 12%; }
.mesh-wrap .badge .pill-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-3);
  box-shadow: 0 0 6px var(--neon-3);
  margin-right: 6px;
  vertical-align: middle;
}

/* ===================================================
   "What it is" — three pillars
   =================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-1), transparent);
  opacity: 0.5;
}
.pillar .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid; place-items: center;
  position: relative;
}
.pillar .num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}
.pillar h3 { margin-top: auto; }
.pillar p {
  color: var(--fg-mid);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ===================================================
   How it works — animated pipeline
   =================================================== */
.pipeline {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
}

.pipeline .steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pipeline .step {
  position: relative;
  padding: 18px 20px 18px 56px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 240ms ease;
}
.pipeline .step .step-num {
  position: absolute;
  left: 16px; top: 20px;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mid);
  background: var(--bg);
}
.pipeline .step .step-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pipeline .step .step-desc {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 4px;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 360ms ease, opacity 240ms ease, margin-top 240ms ease;
}
.pipeline .step.active {
  background: oklch(0.22 0.024 250 / 0.6);
}
.pipeline .step.active .step-num {
  border-color: var(--neon-1);
  color: var(--neon-1);
  background: var(--neon-1-soft);
  box-shadow: 0 0 0 4px var(--neon-1-soft);
}
.pipeline .step.active .step-desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 8px;
}

.pipeline .stage-canvas {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, oklch(0.20 0.03 250), transparent 70%),
    var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-height: 380px;
  overflow: hidden;
}

/* ===================================================
   Video demo
   =================================================== */
.video-shell {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px oklch(0.20 0.02 250 / 0.5),
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 80px -30px var(--neon-1-soft);
}
.video-shell .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 60% 80% at 30% 30%, oklch(0.22 0.04 250), transparent 60%),
    linear-gradient(180deg, oklch(0.10 0.02 250), oklch(0.08 0.02 250));
  overflow: hidden;
}
.video-shell .frame canvas,
.video-shell .frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-chrome {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}
.video-chrome .left, .video-chrome .right {
  display: flex; gap: 10px; align-items: center;
}
.chrome-pill {
  background: oklch(0.08 0.01 250 / 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mid);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chrome-pill .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: oklch(0.7 0.22 25);
  box-shadow: 0 0 8px oklch(0.7 0.22 25);
  animation: pulse 1.8s infinite;
}

.video-controls {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: oklch(0.08 0.01 250 / 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 5;
}
.video-controls .play-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--neon-1);
  color: var(--bg);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.video-controls .play-btn:hover { filter: brightness(1.1); }
.video-controls .track {
  flex: 1;
  height: 4px;
  background: oklch(0.25 0.02 250);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.video-controls .track .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  border-radius: 2px;
  width: 0%;
}
.video-controls .time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mid);
  letter-spacing: 0.04em;
  min-width: 84px;
  text-align: right;
}

/* Demo selector */
.video-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.video-tabs button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg-mid);
  transition: all 180ms ease;
}
.video-tabs button.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.video-tabs button:not(.active):hover {
  color: var(--fg);
  border-color: oklch(0.4 0.02 250);
}

/* ===================================================
   Use cases
   =================================================== */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cases { grid-template-columns: 1fr; } }

.case {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: transform 360ms ease, border-color 240ms ease;
}
.case:hover {
  border-color: oklch(0.4 0.03 250);
  transform: translateY(-3px);
}
.case .viz {
  position: relative;
  height: 160px;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, oklch(0.22 0.03 250), oklch(0.13 0.02 250));
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.case .label {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.case .label .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon-1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.case .label h3 {
  font-size: 19px;
  font-weight: 500;
}
.case .label p {
  color: var(--fg-mid);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ===================================================
   Differentials
   =================================================== */
.diffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .diffs { grid-template-columns: 1fr; } }
.diff {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.diff .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--neon-1);
}
.diff h3 {
  font-size: 19px;
  font-weight: 500;
}
.diff p {
  color: var(--fg-mid);
  font-size: 14px;
  line-height: 1.55;
}
.diff .line {
  height: 1px;
  background: linear-gradient(90deg, var(--neon-1-soft), transparent);
  margin-top: 8px;
}

/* Big "what we are" headline */
.statement {
  position: relative;
  text-align: left;
  padding: clamp(80px, 12vw, 160px) 0;
}
.statement h2 {
  font-size: clamp(34px, 5vw, 72px);
  max-width: 22ch;
  font-weight: 400;
  color: var(--fg-mid);
}
.statement h2 .hl {
  color: var(--fg);
  font-weight: 500;
}
.statement h2 .accent {
  background: linear-gradient(95deg, var(--neon-1), var(--neon-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

/* ===================================================
   Footer
   =================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  margin-top: 60px;
}
.footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}

/* ===================================================
   Reveal animations
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d2 { transition-delay: 120ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 360ms; }

/* Marquee for "trusted by" / capability strip */
.strip {
  position: relative;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
  overflow: hidden;
  background: oklch(0.14 0.02 250 / 0.4);
}
.strip .track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.strip .item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.strip .item .sep {
  width: 6px; height: 6px;
  background: var(--neon-1);
  box-shadow: 0 0 8px var(--neon-1);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Misc */
.muted-line { color: var(--fg-dim); }

/* ===================================================
   BENCHMARK SECTION
   =================================================== */
.bench {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.bench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) { .bench-grid { grid-template-columns: 1fr; } }

.bench-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  min-height: 380px;
}
.bench-card.ours::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, var(--neon-1-soft), transparent 60%);
  pointer-events: none;
}
.bench-card.theirs {
  background: linear-gradient(180deg, var(--bg-elev), oklch(0.13 0.02 250));
  opacity: 0.92;
}
.bench-card .chip {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--neon-1);
  padding: 6px 12px;
  border: 1px solid oklch(0.84 0.16 205 / 0.4);
  border-radius: 999px;
  background: var(--neon-1-soft);
}
.bench-card.theirs .chip {
  color: var(--fg-mid);
  background: oklch(0.20 0.02 250 / 0.5);
  border-color: var(--border);
}
.bench-card .big-time {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}
.bench-card .big-time .lt {
  font-size: clamp(48px, 6vw, 80px);
  color: var(--neon-1);
}
.bench-card .big-time .num {
  font-size: clamp(72px, 10vw, 144px);
  background: linear-gradient(180deg, var(--neon-1), var(--neon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bench-card.theirs .big-time .num {
  background: none;
  color: var(--fg-mid);
  -webkit-text-fill-color: var(--fg-mid);
}
.bench-card .big-time .unit {
  font-size: clamp(28px, 3vw, 44px);
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0;
}
.bench-card .hint {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin-top: -10px;
}
.bench-card .stages {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.bench-card .stage {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-mid);
}
.bench-card .stage .sbar {
  height: 8px;
  background: oklch(0.20 0.02 250);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.bench-card .stage .sfill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-3));
  border-radius: 4px;
  animation: barfill 1.4s cubic-bezier(0.2,0.7,0.2,1) forwards;
  animation-delay: 0.2s;
}
.bench-card .stage.s2 .sfill {
  animation-delay: 1.4s;
}
.bench-card .stage .sfill.theirs-fill {
  background: oklch(0.40 0.02 250);
  animation-duration: 4s;
  animation-delay: 0.4s;
}
@keyframes barfill {
  from { width: 0; }
  to   { width: var(--w); }
}
.bench-card .stage .sms {
  text-align: right;
  color: var(--fg);
  font-feature-settings: "tnum";
}
.bench-card.theirs .stage .sms { color: var(--fg-mid); }

.bench-card .plate {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  background: oklch(0.92 0.10 90);
  color: oklch(0.10 0 0);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.12em;
  border-radius: 6px;
  border: 2px solid oklch(0.20 0.02 90);
  margin-top: auto;
  box-shadow: 0 0 0 4px oklch(0.20 0.02 250), 0 0 30px oklch(0.92 0.10 90 / 0.2);
}
.bench-card .trip-note {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px dashed var(--border);
  border-radius: 999px;
}

.bench-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 720px) {
  .bench-metrics { grid-template-columns: repeat(2, 1fr); }
}
.bench-metrics .bm {
  background: var(--bg-elev);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bench-metrics .bm .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
}
.bench-metrics .bm .v {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 38px;
  line-height: 1;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.bench-metrics .bm .v small {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.bench-metrics .bm .v.alt {
  color: var(--neon-3);
  font-size: 24px;
  letter-spacing: 0.04em;
}
