/* ==========================================================================
   StageRobot.com — site.css
   Dark-first. Evil-eyed. Increasingly unwell toward the bottom — by design.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #08070F;
  --bg-2: #0D0C1A;
  --surface: #131126;
  --surface-2: #1A1832;
  --line: rgba(236, 234, 255, .09);
  --line-2: rgba(236, 234, 255, .16);
  --ink: #EEEDF8;
  --ink-2: #C9C7E0;
  --muted: #9794B6;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --red: #FF1E3C;
  --amber: #FFB020;
  --green: #22E08A;
  --gold: #FFC23D;
  --grad: linear-gradient(95deg, #8B5CF6 0%, #6D7CF8 45%, #22D3EE 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .10));
  --orb-1: rgba(139, 92, 246, .30);
  --orb-2: rgba(34, 211, 238, .16);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --radius: 22px;
  --f-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-pixel: "Silkscreen", "JetBrains Mono", ui-monospace, monospace;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --nav-h: 68px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F6F5FC;
    --bg-2: #EEECF8;
    --surface: #FFFFFF;
    --surface-2: #F2F0FB;
    --line: rgba(20, 16, 50, .10);
    --line-2: rgba(20, 16, 50, .18);
    --ink: #15122B;
    --ink-2: #34304F;
    --muted: #625E80;
    --violet: #6D3AE8;
    --cyan: #0891B2;
    --red: #E0102E;
    --amber: #C77A00;
    --green: #0FA968;
    --gold: #C98A00;
    --orb-1: rgba(139, 92, 246, .22);
    --orb-2: rgba(34, 211, 238, .18);
    --shadow: 0 30px 70px -35px rgba(40, 20, 90, .35);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F5FC;
  --bg-2: #EEECF8;
  --surface: #FFFFFF;
  --surface-2: #F2F0FB;
  --line: rgba(20, 16, 50, .10);
  --line-2: rgba(20, 16, 50, .18);
  --ink: #15122B;
  --ink-2: #34304F;
  --muted: #625E80;
  --violet: #6D3AE8;
  --cyan: #0891B2;
  --red: #E0102E;
  --amber: #C77A00;
  --green: #0FA968;
  --gold: #C98A00;
  --orb-1: rgba(139, 92, 246, .22);
  --orb-2: rgba(34, 211, 238, .18);
  --shadow: 0 30px 70px -35px rgba(40, 20, 90, .35);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 12px/1 var(--f-pixel); letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.fine { font-size: 13px; color: var(--muted); }

.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--b); background: transparent; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  border: 0; color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 40px -10px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { box-shadow: 0 14px 50px -8px rgba(34, 211, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.nav-brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.nav-logo { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links .count { font: 400 10px/1 var(--f-pixel); color: var(--red); vertical-align: 2px; margin-left: 2px; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 900px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 420px) { .nav-logo { height: 26px; } .nav .btn { padding: 0 14px; font-size: 13px; } }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.hero::before { width: 620px; height: 620px; right: -120px; top: -140px; background: radial-gradient(circle, var(--orb-1), transparent 65%); }
.hero::after { width: 520px; height: 520px; right: 180px; top: 220px; background: radial-gradient(circle, var(--orb-2), transparent 65%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7.2vw, 92px); font-weight: 700; letter-spacing: -.04em; margin-block: 22px 26px; }
.hero h1 .line2 { display: block; }
.hero .lead { margin-bottom: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); text-decoration: none;
}
.pill b { font: 400 10.5px/1 var(--f-pixel); letter-spacing: .08em; background: var(--grad); color: #fff; padding: 5px 8px; border-radius: 999px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .fine { margin-top: 22px; }

.stage {
  position: relative; aspect-ratio: 1 / 1.02; max-width: 100%; display: grid; place-items: end center;
  border-radius: 32px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(255, 255, 255, .10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--surface));
  box-shadow: var(--shadow);
}
.stage .beam {
  position: absolute; inset: -10% 18% 18%;
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(255, 244, 220, .16) 172deg, rgba(255, 244, 220, .22) 180deg, rgba(255, 244, 220, .16) 188deg, transparent 200deg);
  filter: blur(4px);
}
.stage .deck { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, #2A1E14, #150F0A); border-top: 1px solid rgba(255, 210, 160, .18); }
.stage .deck::before { content: ""; position: absolute; left: 50%; top: 10%; width: 60%; height: 40%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 240, 210, .25), transparent); }
.stage .spike { position: absolute; bottom: 8%; width: 14px; height: 6px; background: #FF3FA4; }
.stage .spike.a { left: 22%; } .stage .spike.b { right: 22%; background: var(--cyan); }
.hero-robot { position: relative; width: 70%; margin-bottom: 12%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55)); }
.stage figcaption {
  position: absolute; top: 18px; left: 18px; font: 400 11px/1.3 var(--f-pixel); letter-spacing: .1em; color: var(--muted);
  display: flex; gap: 8px; align-items: center;
}
.stage figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }

/* robot eyes — blink, occasionally */
.sr-eyes-wrap { transform-box: fill-box; transform-origin: center; }
.hero-robot .sr-eyes, .footer-robot .sr-eyes, .mark .sr-eyes { animation: blink 6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.sr-glow { animation: throb 3.2s ease-in-out infinite; }
@keyframes throb { 50% { opacity: .45; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { max-width: 440px; width: 100%; margin-inline: auto; }
}

/* ---------------------------------------------------------------- trust */
.trust { padding-block: 40px 24px; border-block: 1px solid var(--line); background: var(--bg-2); }
.trust p.fine { text-align: center; margin-bottom: 22px; letter-spacing: .02em; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { display: flex; gap: 56px; width: max-content; list-style: none; padding: 0; margin: 0; animation: marquee 48s linear infinite; }
.marquee li { font: 600 19px/1 var(--f-display); color: var(--muted); white-space: nowrap; letter-spacing: -.01em; opacity: .85; }
.marquee li i { font-style: normal; font-weight: 400; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.stat { background: var(--bg); padding: 26px 24px; display: grid; gap: 6px; align-content: start; }
.stat strong { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- unicore */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0 0 56px; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.steps li::before { content: "0" counter(step); font: 400 12px/1 var(--f-pixel); color: var(--cyan); letter-spacing: .1em; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.calc {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 72px;
}
.calc-in { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; border-right: 1px solid var(--line); }
.calc-in h3 { font-size: 26px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font: 400 11px/1 var(--f-pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
select, input[type="number"], input[type="email"] {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink); font: 500 16px var(--f-body);
}
.dims { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.dims span { color: var(--muted); }
.calc-out { padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; align-content: start; background: radial-gradient(120% 90% at 100% 0%, rgba(139, 92, 246, .16), transparent 60%); }
.big-num { font: 700 clamp(52px, 7vw, 88px)/.95 var(--f-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.calc-out .unit { font: 400 12px/1 var(--f-pixel); letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-grid div { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.calc-grid b { display: block; font: 600 20px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.calc-grid small { color: var(--muted); font-size: 13px; }
.calc-note { font-size: 15px; color: var(--ink-2); font-style: italic; min-height: 3em; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } .calc-in { border-right: 0; border-bottom: 1px solid var(--line); } }

.products { display: grid; gap: 28px; }
.product {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
}
.product .render { border-radius: 20px; background: radial-gradient(90% 80% at 50% 60%, var(--surface-2), var(--bg-2)); border: 1px solid var(--line); padding: 8px; }
.product .render img { width: 100%; height: auto; }
.product .render figcaption { font: 400 10.5px/1.4 var(--f-pixel); color: var(--muted); letter-spacing: .08em; padding: 4px 12px 10px; }
.product-copy { display: grid; gap: 16px; align-content: start; }
.product-copy h3 { font-size: clamp(28px, 3vw, 38px); }
.product-copy .tag { font-size: 18px; color: var(--ink-2); font-weight: 500; }
.product-copy p { color: var(--ink-2); font-size: 16px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 6px 0 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.specs dt, .specs dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--muted); padding-right: 18px; font: 400 10.5px/2.1 var(--f-pixel); letter-spacing: .08em; text-transform: uppercase; }
.specs dd { font-family: var(--f-mono); font-size: 13.5px; line-height: 1.6; }
.product.flip .render { order: 2; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product.flip .render { order: 0; } }

.flow { margin-top: 72px; display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: stretch; }
.flow-chain { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); align-content: center; }
.chip { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font: 500 14px/1 var(--f-body); white-space: nowrap; }
.chip.proto { background: transparent; border-style: dashed; font: 400 11px/1 var(--f-pixel); letter-spacing: .08em; color: var(--cyan); }
.chip.ours { border-color: transparent; background: var(--grad); color: #fff; font-weight: 600; }
.arrow { color: var(--muted); font-family: var(--f-mono); }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.frame canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; image-rendering: pixelated; display: block; }
.frame figcaption { padding: 10px 14px; font-size: 12.5px; color: #A9A7C4; background: #0B0A14; }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- tern */
.tern-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.tern-demo { border-radius: 28px; border: 1px solid var(--line-2); background: var(--surface); padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; box-shadow: var(--shadow); }
.tern-demo .tern-svg { width: 100%; height: auto; transition: filter .3s; }
.tern-demo[data-led="off"] .tern-glow { opacity: 0; }
.tern-readout { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tern-readout .state { font: 700 22px/1.1 var(--f-display); display: flex; align-items: center; gap: 10px; }
.tern-readout .state i { width: 14px; height: 14px; border-radius: 50%; background: var(--tern-led); box-shadow: 0 0 14px var(--tern-led); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.switch input { width: 42px; height: 24px; appearance: none; -webkit-appearance: none; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.fixtures { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.fixtures li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14.5px; }
.fixtures li span { min-width: 0; }
.fixtures li small { display: block; color: var(--muted); font: 12px var(--f-mono); }
.status-btn {
  flex: none; min-width: 94px; min-height: 36px; border-radius: 99px; border: 1px solid currentColor; background: transparent;
  font: 400 11px/1 var(--f-pixel); letter-spacing: .08em; cursor: pointer; color: var(--green);
}
.status-btn[data-state="warn"] { color: var(--amber); }
.status-btn[data-state="err"] { color: var(--red); }
.log { font: 12.5px/1.6 var(--f-mono); color: var(--ink-2); background: #07060D; border-radius: 12px; padding: 14px 16px; min-height: 92px; border: 1px solid var(--line); overflow-wrap: anywhere; }
:root[data-theme="light"] .log { background: #13111F; color: #D9D7EE; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .log { background: #13111F; color: #D9D7EE; } }
.log .w { color: #FFB020; } .log .e { color: #FF5A70; } .log .g { color: #22E08A; } .log .d { color: #7F7C9E; }
.tern-side { display: grid; gap: 20px; }
.legend { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.legend li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; font-size: 15.5px; color: var(--ink-2); }
.legend li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.legend b { color: var(--ink); }
.birdfact { padding: 18px 20px; border-radius: 18px; background: var(--grad-soft); border: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.birdfact b { font: 400 11px/1 var(--f-pixel); letter-spacing: .1em; color: var(--cyan); display: block; margin-bottom: 8px; }
@media (max-width: 900px) { .tern-grid { grid-template-columns: 1fr; } }

.tern-plus { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tern-plus .render img { width: 100%; }
.phone {
  justify-self: center; width: min(320px, 100%); border-radius: 44px; padding: 14px; background: #050409; border: 1px solid #2B2940; box-shadow: var(--shadow);
}
.phone-screen { border-radius: 32px; padding: 54px 12px 20px; min-height: 250px; background: linear-gradient(160deg, #3A1C71 0%, #0E3A5C 55%, #0B0A18 100%); display: grid; gap: 10px; align-content: start; color: #fff; }
.phone-time { text-align: center; font: 600 54px/1 var(--f-display); letter-spacing: -.03em; margin-bottom: 8px; }
.notif { background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 18px; padding: 12px 14px; font-size: 13px; line-height: 1.4; }
.notif header { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .75; margin-bottom: 4px; }
.notif header b { font-weight: 600; letter-spacing: .02em; }
.notif strong { display: block; font-size: 13.5px; }
.compare-wrap { overflow-x: auto; margin-top: 40px; border-radius: var(--radius); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 16px var(--f-display); background: var(--surface); }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
.compare td { font-family: var(--f-mono); font-size: 13.5px; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .yes { color: var(--green); } .compare .no { color: var(--muted); }
@media (max-width: 860px) { .tern-plus { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- pva — no images, only vibes */
.pvs { background: radial-gradient(80% 60% at 20% 0%, rgba(139, 92, 246, .18), transparent 60%), radial-gradient(60% 50% at 100% 100%, rgba(34, 211, 238, .12), transparent 60%), var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.pvs-tagline { font: 500 clamp(20px, 2.4vw, 26px)/1.3 var(--f-display); color: var(--ink-2); font-style: italic; }
.pvs-todo { font: 13px var(--f-mono); color: var(--muted); margin-bottom: 26px; }
.pvs h2 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.04em; }
.pvs-wall { columns: 2 340px; column-gap: 48px; margin-top: 40px; }
.pvs-wall p { break-inside: avoid; margin-bottom: 22px; color: var(--ink-2); font-size: 17px; }
.pvs-wall p:first-child::first-letter { font: 700 64px/.8 var(--f-display); float: left; padding: 6px 10px 0 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pvs-wall em { color: var(--ink); font-style: normal; font-weight: 600; }
.pvs-kpis { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 30px 56px; }
.pvs-kpis div { flex: 1 1 200px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.pvs-kpis strong { display: block; font: 700 34px/1 var(--f-display); letter-spacing: -.03em; margin-bottom: 6px; }
.pvs-kpis span { font-size: 13.5px; color: var(--muted); }
.integrations h3, .pillars h3 { font-size: 26px; margin-bottom: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 56px; }
.badges li { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: 500 13px/1 var(--f-mono); white-space: nowrap; }
.badges li:nth-child(5n+2) { border-color: rgba(139, 92, 246, .5); }
.badges li:nth-child(7n+3) { border-color: rgba(34, 211, 238, .5); }
.badges li.odd { border-style: dashed; color: var(--muted); }
.pillars ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pillars li { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.pillars li b { font: 600 18px var(--f-display); }
.pillars li span { font-size: 14.5px; color: var(--ink-2); }
.pvs-cta { margin-top: 56px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--grad); color: #fff; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.pvs-cta h3 { font-size: clamp(24px, 3vw, 34px); max-width: 28ch; }
.pvs-cta p { opacity: .9; margin-top: 8px; max-width: 52ch; }
.pvs-cta .btn { background: #fff; color: #1B1340; border: 0; }
.pvs-cta output { display: block; font: 400 12px/1.4 var(--f-pixel); letter-spacing: .08em; margin-top: 10px; min-height: 1.4em; }

/* ---------------------------------------------------------------- team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.person { border-radius: 26px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: grid; }
.person .avatar { aspect-ratio: 1; image-rendering: pixelated; width: 100%; height: auto; background: var(--surface-2); }
.person-body { padding: 24px; display: grid; gap: 12px; align-content: start; }
.person h3 { font-size: 26px; }
.person .role { font: 400 11px/1.4 var(--f-pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.person p { font-size: 15.5px; color: var(--ink-2); }
.person ul { padding-left: 0; margin: 4px 0 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.redact { background: #000; box-shadow: 0 0 0 1px var(--line-2); color: transparent; border-radius: 2px; user-select: none; padding: 0 .1em; }
.redact:hover { background: var(--red); }
.person.pending { border-style: dashed; border-color: rgba(34, 211, 238, .5); background: transparent; }
.person.pending .avatar { background: #101826; }
.person.pending h3, .person.pending p, .person.pending .role { font-family: var(--f-mono); }
.person.pending p { color: var(--cyan); font-size: 13.5px; }
@media (max-width: 960px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- testimonials + faq */
.leak { font: 13px/1.5 var(--f-mono); color: var(--muted); padding: 12px 16px; border-left: 3px solid var(--violet); background: var(--surface); border-radius: 0 10px 10px 0; margin-bottom: 30px; max-width: 70ch; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quotes figure { margin: 0; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; align-content: space-between; }
.quotes blockquote { margin: 0; font: 500 19px/1.45 var(--f-display); letter-spacing: -.01em; }
.quotes figcaption { font-size: 14px; color: var(--muted); }
.quotes .stars { color: var(--gold); letter-spacing: 2px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.faq { margin-top: 88px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.faq h2 { font-size: clamp(34px, 4vw, 50px); }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 18px var(--f-pixel); color: var(--cyan); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer — here be dragons */
.footer { position: relative; padding-block: 88px 48px; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.footer::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -500px; transform: translateX(-50%); background: radial-gradient(circle, var(--orb-1), transparent 60%); filter: blur(40px); pointer-events: none; }
.footer .wrap { position: relative; }
.footer .leak { margin-inline: auto; }
.footer-cta { text-align: center; display: grid; gap: 20px; justify-items: center; margin-bottom: 72px; }
.footer-cta h2 { font-size: clamp(40px, 7vw, 96px); letter-spacing: -.045em; }
.footer-cta .tagline { font: 500 20px var(--f-display); color: var(--ink-2); min-height: 1.5em; }
.regen { font: 500 14px var(--f-body); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 44px; border-block: 1px solid var(--line); }
.footer-grid h4 { font: 400 11px/1 var(--f-pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.news { display: grid; gap: 12px; }
.news p { font-size: 14.5px; color: var(--ink-2); }
.news form { display: flex; gap: 8px; flex-wrap: wrap; }
.news input { flex: 1 1 180px; }
.news output { font-size: 13.5px; color: var(--green); min-height: 1.4em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .news { grid-column: 1 / -1; } }
.legal { padding-top: 32px; display: grid; gap: 14px; font-size: 12.5px; color: var(--muted); max-width: 90ch; }
.legal .spiral { transition: letter-spacing .3s; }
.legal a { color: var(--ink-2); text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.sign-off { margin-top: 64px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer-robot { width: 120px; }
.sign-off p { font: 400 13px/1.5 var(--f-pixel); letter-spacing: .08em; color: var(--muted); }
.helpful { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.helpful button { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); border-radius: 10px; padding: 6px 12px; cursor: pointer; font-size: 15px; }

/* ==========================================================================
   DEGRADATION — data-slop="0…5". The further down, the less well it's going.
   ========================================================================== */
[data-slop="2"] .product:nth-child(2) { transform: translateX(3px); }
[data-slop="3"] .section-head { transform: rotate(-.25deg); }
[data-slop="3"] .fixtures li:nth-child(4) { margin-left: 6px; }
[data-slop="3"] .compare tbody tr:nth-child(odd) th { letter-spacing: .012em; }
[data-slop="4"] h2 { text-shadow: 2px 0 rgba(255, 30, 60, .35), -2px 0 rgba(34, 211, 238, .35); }
[data-slop="4"] .pillars li:nth-child(2) { transform: rotate(.6deg) translateY(4px); }
[data-slop="4"] .pillars li:nth-child(4) { transform: rotate(-.8deg); border-radius: 6px 28px 10px 18px; }
[data-slop="4"] .badges li:nth-child(11n) { transform: rotate(-3deg); }
[data-slop="4"] .person:nth-child(2) { transform: rotate(.4deg) translateY(10px); }
[data-slop="4"] .person:nth-child(3) { transform: rotate(-.7deg) translateY(-6px); }
[data-slop="5"] h2 { text-shadow: 3px 0 rgba(255, 30, 60, .45), -3px 0 rgba(34, 211, 238, .45); }
[data-slop="5"] .quotes figure:nth-child(2) { transform: rotate(1.2deg); }
[data-slop="5"] .quotes figure:nth-child(4) { transform: rotate(-1.5deg) translateX(-8px); opacity: .92; }
[data-slop="5"] .quotes figure:nth-child(5) { border-radius: 4px 40px 4px 40px; }
[data-slop="5"] .faq details:nth-child(odd) { margin-left: 4px; }
[data-slop="5"] .faq details:nth-child(5) { transform: rotate(-.4deg); }
[data-slop="5"] .footer-grid ul li:nth-child(n+5) a { letter-spacing: .06em; opacity: .8; }
[data-slop="5"] .footer-grid ul li:nth-child(n+7) a { letter-spacing: .2em; opacity: .55; }
[data-slop="5"] .footer-grid ul li:nth-child(n+8) a { letter-spacing: .45em; opacity: .3; filter: blur(.4px); }
.glitch-char { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
