/* ============================================================
   RELIER · 2026 LANDING — DESIGN SYSTEM
   Editorial × technical. Dark by default, one paper interlude.
   Type: Geist (display/body) + JetBrains Mono (code/labels)
   Accent: indigo #6366f1, used sparingly
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
:root {
  /* —— Surfaces (dark) —— */
  --ink:         #08080b;
  --surface:    #0e0e12;
  --surface-2:  #14141a;
  --surface-3:  #1a1a22;
  --line:       rgba(255, 255, 255, 0.06);
  --line-2:     rgba(255, 255, 255, 0.10);
  --line-3:     rgba(255, 255, 255, 0.18);
  /* —— Text (dark) —— */
  --text:       #ededee;
  --text-dim:   #9a9aa3;
  --text-mute:  #5a5a64;
  /* —— Accent —— */
  --accent:     #6366f1;
  --accent-2:   #818cf8;
  --accent-dim: rgba(99, 102, 241, 0.50);
  --accent-bg:  rgba(99, 102, 241, 0.08);
  --accent-line:rgba(99, 102, 241, 0.22);
  /* —— Semantic —— */
  --ok:         #4ade80;
  --warn:       #fbbf24;
  --bad:        #f87171;
  --ok-bg:      rgba(74, 222, 128, 0.10);
  --bad-bg:     rgba(248, 113, 113, 0.10);
  --warn-bg:    rgba(251, 191, 36, 0.10);
  /* —— Paper (inverted section) —— */
  --paper:      #f1efe8;
  --paper-ink:  #14141a;
  --paper-dim:  #6f6e68;
  --paper-line: rgba(20, 20, 26, 0.10);
  /* —— Type —— */
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* —— Layout —— */
  --gutter:     24px;
  --max:        1240px;
  --max-narrow: 980px;
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;
}
/* —— Light mode tweak —— */
:root[data-theme="light"] {
  --ink:        #faf9f5;
  --surface:    #ffffff;
  --surface-2:  #f4f3ee;
  --surface-3:  #ebeae3;
  --line:       rgba(20, 20, 26, 0.08);
  --line-2:     rgba(20, 20, 26, 0.12);
  --line-3:     rgba(20, 20, 26, 0.20);
  --text:       #15151a;
  --text-dim:   #5a5a64;
  --text-mute:  #8a8a92;
  --paper:      #14141a;
  --paper-ink:  #f1efe8;
  --paper-dim:  #8a8a92;
  --paper-line: rgba(255, 255, 255, 0.12);
}
/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  transition: background 200ms ease, color 200ms ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
code, pre, .mono { font-family: var(--mono); font-feature-settings: "ss02", "ss03"; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--accent); color: #fff; }
/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.section.paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: var(--paper-line);
}
.section.paper .mute,
.section.paper .eyebrow,
.section.paper .section__lede { color: var(--paper-dim); }
.section.paper .rule { background: var(--paper-line); }
@media (max-width: 720px) {
  .section { padding: 80px 0; }
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow.no-dot::before { display: none; }
.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}
.section__head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  margin-bottom: 72px;
  align-items: start;
}
@media (max-width: 880px) {
  .section__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}
.section__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 32ch;
  text-wrap: balance;
}
.section__lede {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.55;
  text-wrap: pretty;
}
/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: background 200ms ease, backdrop-filter 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--ink) 80%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav__brand .mark {
  width: 22px; height: 22px;
  position: relative;
  display: grid;
  place-items: center;
}
.nav__brand .mark::before,
.nav__brand .mark::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.nav__brand .mark::before { transform: translateX(-4px); }
.nav__brand .mark::after  { transform: translateX(4px); background: var(--accent); opacity: 0.18; }
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  color: var(--text-dim);
  transition: color 150ms;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  color: var(--text);
  transition: border-color 150ms, background 150ms;
}
.nav__cta:hover {
  border-color: var(--text);
  background: var(--surface-2);
}
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}
/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 160px var(--gutter) 100px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}
.hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-bg), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__meta .dot {
  width: 6px; height: 6px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ok-bg);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--ok-bg); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.hero__meta .sep { color: var(--text-mute); }
.hero__headline {
  font-weight: 400;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  max-width: 18ch;
  text-wrap: balance;
}
.hero__headline em {
  font-style: normal;
  color: var(--text-dim);
  font-weight: 300;
}
.hero__headline .accent {
  color: var(--accent);
  font-weight: 500;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
/* —— Hero code comparison —— */
.hero__code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 48px;
}
.hero__code-grid .code pre {
  font-size: 14px;
  padding: 26px 28px;
}
.hero__code-grid .code {
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.hero__code-grid .code:hover {
  transform: translateY(-3px);
}
@media (max-width: 880px) {
  .hero__code-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
/* —— Buttons —— */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 150ms, border-color 150ms, color 150ms, transform 80ms;
  min-height: 42px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--text);
  color: var(--ink);
  border-color: var(--text);
}
.btn--primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--ghost {
  border-color: var(--line-3);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: var(--surface-2);
}
.btn--mono {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--text);
  padding-left: 16px;
  padding-right: 12px;
}
.btn--mono::before {
  content: '$';
  color: var(--accent);
  margin-right: 6px;
}
.btn--mono .icon {
  width: 14px; height: 14px;
  opacity: 0.5;
  margin-left: 4px;
  transition: opacity 150ms;
}
.btn--mono:hover { border-color: var(--accent-line); background: var(--surface-3); }
.btn--mono:hover .icon { opacity: 1; }
.btn--mono.copied { border-color: var(--ok); }
.btn--mono.copied::before { content: '✓'; color: var(--ok); }
/* —— Hero trust strip —— */
.hero__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 24px;
}
.hero__strip .cell {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}
.hero__strip .cell:last-child { border-right: none; }
.hero__strip .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.hero__strip .value {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero__strip .value .unit {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 4px;
  font-weight: 400;
}
@media (max-width: 720px) {
  .hero__strip { grid-template-columns: repeat(2, 1fr); }
  .hero__strip .cell { border-right: none; }
  .hero__strip .cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .hero__strip .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
/* ============================================================
   WORKER MONITOR (hero centerpiece)
   ============================================================ */
.monitor {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -30px rgba(0,0,0,0.5),
    0 0 80px -20px var(--accent-bg);
}
.monitor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.monitor__head .title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.monitor__head .live-dot {
  width: 6px; height: 6px;
  background: var(--ok);
  border-radius: 50%;
  animation: pulseDot 1.6s ease-in-out infinite;
}
.monitor__head .stats {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}
.monitor__head .stats span b {
  color: var(--text);
  font-weight: 500;
}
.monitor__cols {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 80px 0.8fr 120px;
  gap: 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.monitor__rows {
  font-family: var(--mono);
  font-size: 13px;
}
.monitor__row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 80px 0.8fr 120px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  transition: background 200ms ease, color 200ms ease;
}
.monitor__row:last-child { border-bottom: none; }
.monitor__row .worker {
  color: var(--text);
  font-weight: 500;
}
.monitor__row .task { color: var(--text-dim); }
.monitor__row .duration {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}
.monitor__row .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.monitor__row .status .indicator {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-bg);
}
.monitor__row .status.idle .indicator { background: var(--text-mute); box-shadow: none; }
.monitor__row .status.idle { color: var(--text-mute); }
.monitor__row .status.live { color: var(--ok); }
.monitor__row .status.died .indicator { background: var(--bad); animation: none; box-shadow: 0 0 0 3px var(--bad-bg); }
.monitor__row .status.died { color: var(--bad); }
.monitor__row .status.requeue .indicator { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.monitor__row .status.requeue { color: var(--warn); }
.monitor__row .status.resurrected .indicator { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.monitor__row .status.resurrected { color: var(--accent-2); }
.monitor__row.flash-die {
  background: var(--bad-bg);
}
.monitor__row.flash-resurrect {
  background: var(--accent-bg);
}
.monitor__row .queue {
  font-size: 11px;
  color: var(--text-mute);
  text-align: right;
  letter-spacing: 0.04em;
}
.monitor__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.monitor__foot .event {
  color: var(--text-dim);
  transition: color 200ms;
}
.monitor__foot .event.success { color: var(--ok); }
.monitor__foot .event.warn { color: var(--warn); }
.monitor__foot .event.accent { color: var(--accent-2); }
@media (max-width: 720px) {
  .monitor__cols { display: none; }
  .monitor__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "worker status"
      "task duration"
      "queue queue";
    gap: 4px 12px;
  }
  .monitor__row .worker { grid-area: worker; }
  .monitor__row .task { grid-area: task; font-size: 11px; }
  .monitor__row .duration { grid-area: duration; font-size: 11px; }
  .monitor__row .status { grid-area: status; justify-self: end; }
  .monitor__row .queue { grid-area: queue; text-align: left; }
}
/* ============================================================
   PAIN POINTS (F01–F08)
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 1040px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pain-grid { grid-template-columns: 1fr; } }
.pain {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 250ms;
}
.pain:hover { background: var(--surface-2); }
.pain__num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pain__num .crash {
  width: 22px; height: 1px;
  background: var(--bad);
  position: relative;
  transition: width 250ms;
}
.pain:hover .pain__num .crash { width: 38px; }
.pain__title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text);
}
.pain__desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  text-wrap: pretty;
}
/* ============================================================
   FEATURES TABS
   ============================================================ */
.tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 48px;
  width: fit-content;
  background: var(--surface-2);
  flex-wrap: wrap;
  gap: 2px;
}
.tab {
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color 150ms, background 150ms;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--text);
  color: var(--ink);
}
.feature {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.feature.active { display: grid; animation: featIn 320ms ease-out; }
@keyframes featIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 880px) {
  .feature.active { grid-template-columns: 1fr; gap: 32px; }
}
.feature__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
}
.feature__desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.feature__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.feature__bullets li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  position: relative;
  padding: 12px 0 12px 36px;
  font-size: 14px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  align-items: baseline;
  line-height: 1.5;
}
.feature__bullets li:last-child { border-bottom: 1px solid var(--line); }
.feature__bullets li::before {
  content: attr(data-key);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  line-height: 1.5;
}
/* —— Code block —— */
.code {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
}
.code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.code__head .file {
  display: flex; align-items: center; gap: 8px;
}
.code__head .file::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.code__head .lang {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.code pre {
  padding: 22px 24px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  overflow-x: auto;
  font-variant-numeric: tabular-nums;
}
.code .k { color: var(--accent-2); }       /* keyword */
.code .f { color: #5eead4; }                /* function */
.code .s { color: #fde68a; }                /* string */
.code .c { color: var(--text-mute); font-style: italic; } /* comment */
.code .d { color: #fbbf24; }                /* decorator */
.code .v { color: var(--text); }            /* variable */
.code .n { color: #f0abfc; }                /* number */
.code .p { color: var(--text-mute); }       /* punctuation */
/* ============================================================
   TERMINAL
   ============================================================ */
.terminal {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.terminal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.terminal__head .dots { display: flex; gap: 6px; }
.terminal__head .dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-3);
}
.terminal__head .title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.terminal__head .keys {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.terminal__body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  min-height: 360px;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre;
  color: var(--text-dim);
}
.terminal__body::-webkit-scrollbar { width: 8px; }
.terminal__body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.t-prompt { color: var(--accent-2); }
.t-cmd { color: var(--text); }
.t-out { color: var(--text-dim); }
.t-ok { color: var(--ok); }
.t-warn { color: var(--warn); }
.t-bad { color: var(--bad); }
.t-dim { color: var(--text-mute); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
/* ============================================================
   BENCHMARKS (paper section)
   ============================================================ */
.bench {
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.bench__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--paper-line);
  align-items: center;
}
.bench__row:last-child { border-bottom: none; }
.bench__row.head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 14px 0;
}
.bench__metric {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.bench__val {
  font-family: var(--mono);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.bench__val.win {
  color: var(--paper-ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bench__val.win::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.bench__val.lose {
  color: var(--paper-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,0.15);
}
.bench__note {
  font-size: 11px;
  color: var(--paper-dim);
  margin-top: 4px;
  font-family: var(--mono);
}
@media (max-width: 720px) {
  .bench__row, .bench__row.head { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .bench__row.head { display: none; }
  .bench__val::before { display: none !important; }
  .bench__val { font-size: 15px; }
  .bench__val.win::after { content: ' · relier'; color: var(--accent); font-size: 11px; }
  .bench__val.lose::after { content: ' · celery'; color: var(--paper-dim); font-size: 11px; }
}
/* ============================================================
   QUICKSTART
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 28px;
}
.step__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step__desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}
.step__code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  overflow-x: auto;
}
/* ============================================================
   BENTO (monoline glyphs, no emoji)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.bento__cell {
  grid-column: span 2;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 250ms;
  display: flex;
  flex-direction: column;
}
.bento__cell:hover { background: var(--surface-2); }
.bento__cell.wide { grid-column: span 3; }
.bento__cell.tall { grid-row: span 2; }
@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__cell, .bento__cell.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell, .bento__cell.wide { grid-column: span 2; }
}
.bento__glyph {
  width: 36px; height: 36px;
  margin-bottom: 20px;
  color: var(--accent);
  opacity: 0.9;
}
.bento__glyph svg { width: 100%; height: 100%; }
.bento__cell .pre {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.bento__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}
.bento__desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: auto;
}
/* ============================================================
   FOOTER CTA
   ============================================================ */
.cta {
  position: relative;
  text-align: center;
  padding: 140px 24px;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center, var(--accent-bg), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  position: relative;
}
.cta__headline {
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  text-wrap: balance;
  position: relative;
}
.cta__headline em {
  font-style: normal;
  color: var(--text-dim);
  font-weight: 300;
}
.cta__sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0 auto 40px;
  position: relative;
}
.cta__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 40px;
}
.cta__badges {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 60px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.cta__badge {
  flex: 1 1 auto;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-right: 1px solid var(--line);
  text-align: center;
  min-width: 140px;
}
.cta__badge:last-child { border-right: none; }
.cta__badge b {
  color: var(--text);
  font-weight: 500;
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-family: var(--sans);
}
/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.footer a { color: var(--text-dim); margin-left: 18px; transition: color 150ms; }
.footer a:hover { color: var(--text); }
/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 200ms ease; }
}
/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-dim);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  margin-right: 4px;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-dim);
  background: var(--surface-3);
  transform: scale(1.06);
}
.theme-toggle:active {
  transform: scale(0.94);
}
.theme-toggle__icon {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle:hover .theme-toggle__icon {
  transform: rotate(15deg);
}
:root[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun  { display: block; }
:root[data-theme="light"] .theme-toggle__icon--sun  { display: none; }
:root[data-theme="light"] .theme-toggle__icon--moon { display: block; }
/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: none;
}
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  padding: 18px;
  z-index: 60;
  font-family: var(--mono);
  display: none;
}
.tweaks.open { display: block; }
.tweaks__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tweaks__close {
  font-size: 14px;
  color: var(--text-mute);
  cursor: pointer;
  line-height: 1;
}
.tweaks__close:hover { color: var(--text); }
.tweaks__group { margin-bottom: 16px; }
.tweaks__group:last-child { margin-bottom: 0; }
.tweaks__label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.tweaks__swatches {
  display: flex;
  gap: 8px;
}
.tweaks__swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 120ms;
}
.tweaks__swatch:hover { transform: scale(1.1); }
.tweaks__swatch.active { border-color: var(--text); }
.tweaks__swatch::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.tweaks__seg {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
}
.tweaks__seg button {
  flex: 1;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-right: 1px solid var(--line-2);
}
.tweaks__seg button:last-child { border-right: none; }
.tweaks__seg button.active { background: var(--text); color: var(--ink); }
