/* voicehook.ai ∆ — Landing
 * Aesthetic: Broadcast Console × Editorial
 * Typography: Instrument Serif (display) / Geist (body) / Geist Mono (code/ID)
 */

:root {
  --bg-0: #08090d;
  --bg-1: #0e0f15;
  --bg-2: #13151d;
  --bg-3: #1b1e29;
  --line: #252834;
  --line-soft: rgba(255, 255, 255, 0.06);

  --fg-0: #f4f4f7;
  --fg-1: #c8c8d2;
  --fg-2: #8a8a96;
  --fg-3: #55555f;
  --fg-4: #33333c;

  --teal: #6dc9d9;
  --teal-dim: #4a8c98;
  --teal-glow: #a3eaf5;
  --warm: #f2a65a;
  --red: #e76f51;
  --green: #7dd3a8;

  --display: "Instrument Serif", "Playfair Display", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", "SF Mono", Menlo, monospace;

  --gutter: 24px;
  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
  min-height: 100vh;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 900px;
  background: radial-gradient(ellipse 1200px 800px at 50% -200px, rgba(109, 201, 217, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-glow); }

::selection { background: var(--teal); color: var(--bg-0); }

/* ─── Layout primitives ────────────────────────────────────── */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

.rail {
  position: fixed; top: 50%; right: 24px; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 20;
}
.rail a { color: var(--fg-3); }
.rail a:hover { color: var(--teal); }
.rail .dot { display: inline-block; width: 4px; height: 4px; background: var(--fg-4); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.rail a:hover .dot { background: var(--teal); }
@media (max-width: 980px) { .rail { display: none; } }

/* ─── Topbar ───────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0;
  padding: 16px 0;
  background: rgba(8, 9, 13, 0.94);
  border-bottom: 1px solid var(--line-soft);
  z-index: 50;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--fg-0); font-weight: 500;
}
.brand .dlt { color: var(--teal); font-size: 18px; font-weight: 400; line-height: 1; position: relative; top: -1px; }
.brand .tld { color: var(--fg-3); }
.nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.nav a { color: var(--fg-2); }
.nav a:hover { color: var(--fg-0); }
.nav-cta {
  padding: 7px 14px; border: 1px solid var(--teal); color: var(--teal);
  border-radius: 2px; font-family: var(--mono); font-size: 12px;
  transition: all 0.15s ease;
}
.nav-cta:hover { background: var(--teal); color: var(--bg-0); }

.top-actions { display: flex; align-items: center; gap: 14px; }
.nav-llm {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border: 1px dashed var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--fg-2); text-transform: uppercase;
  transition: all 0.15s ease;
}
.nav-llm .llm-mark { color: var(--warm); font-weight: 500; }
.nav-llm:hover { border-color: var(--warm); color: var(--fg-0); }

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-cta { padding: 7px 12px; }
  .nav-llm { display: none; }
}

/* ─── Status strip ─────────────────────────────────────────── */

.status-strip {
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.04em;
}
.status-inner { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.status-left { display: flex; gap: 24px; align-items: center; padding-left: 56px; }
@media (max-width: 720px) { .status-left { padding-left: 16px; } }
.signal { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.signal-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.status-right { color: var(--fg-3); }
@media (max-width: 720px) { .status-right { display: none; } }

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--teal); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 12px; border: 1px solid rgba(109, 201, 217, 0.25);
  border-radius: 2px; background: rgba(109, 201, 217, 0.04);
}
.eyebrow::before { content: "◆"; font-size: 9px; color: var(--teal); }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--fg-0);
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}
.hero h1 .small {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 20px;
  font-style: normal;
}
.hero-lede {
  font-size: 17px; color: var(--fg-1); max-width: 52ch;
  margin-bottom: 36px; line-height: 1.6;
}
.hero-lede code {
  font-family: var(--mono); font-size: 14px;
  padding: 2px 6px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 2px; color: var(--teal);
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--bg-0); font-weight: 500; }
.btn-primary:hover { background: var(--teal-glow); color: var(--bg-0); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg-1); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero visual — the ∆ identity card */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 0.95;
}
.identity-card {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(109, 201, 217, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.identity-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}
.id-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; z-index: 1;
}
.id-top .tag { color: var(--teal); }
.id-center {
  text-align: center; position: relative; z-index: 1;
  margin: auto 0;
}
.id-delta-big {
  font-family: var(--display);
  font-size: clamp(120px, 20vw, 180px);
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
  display: inline-block;
}
.id-handle {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-0);
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.id-handle .user { color: var(--fg-0); }
.id-handle .delta { color: var(--teal); font-family: var(--display); font-size: 22px; padding: 0 4px; }
.id-handle .room { color: var(--warm); }
.id-handle .agent { color: var(--teal-glow); }
.id-roles {
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.2em; text-transform: uppercase; margin-top: 8px;
}
.id-roles .sep-dot { color: var(--fg-4); padding: 0 6px; }
@media (max-width: 860px) {
  .id-handle { font-size: 15px; word-break: break-all; }
}
.id-bottom {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; z-index: 1;
}
.meter-mini {
  display: inline-flex; align-items: center; gap: 5px;
}
.meter-bar-mini {
  display: inline-block; width: 60px; height: 3px; background: var(--bg-3);
  border-radius: 1px; overflow: hidden; position: relative;
}
.meter-bar-mini::after {
  content: ""; position: absolute; top: 0; left: 0; height: 100%;
  width: 42%; background: var(--teal);
}

/* ─── Live Room Status ─────────────────────────────────────── */

.live-status {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-1);
  padding: 14px 0;
}
.live-status-inner { display: flex; flex-direction: column; gap: 10px; }
.ls-header {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-2); letter-spacing: 0.06em; text-transform: uppercase;
}
.ls-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--fg-4);
  transition: background 0.2s ease;
}
.ls-dot.on { background: var(--green); animation: pulse-dot 2s ease-in-out infinite; }
.ls-dot.off { background: var(--fg-4); }
.ls-label { color: var(--fg-3); }
.ls-count { color: var(--fg-0); }
.ls-rooms { display: flex; flex-direction: column; gap: 6px; }
.ls-room {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--fg-1);
  padding: 6px 10px; background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: 2px;
}
.ls-rn { color: var(--warm); }
.ls-pl { color: var(--teal); font-size: 11px; }

/* ─── 3-Step Install Band ──────────────────────────────────── */

.install-band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, transparent, rgba(109,201,217,0.03), transparent);
  padding: 18px 0;
}
.install-band-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.ib-step {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px;
  color: var(--fg-1); letter-spacing: 0.02em;
}
.ib-num {
  color: var(--teal); font-size: 11px; letter-spacing: 0.12em;
}
.ib-text { color: var(--fg-0); }
.ib-arrow {
  color: var(--fg-3); font-family: var(--mono); font-size: 14px;
}
@media (max-width: 560px) {
  .install-band-inner { gap: 12px; }
  .ib-step { font-size: 12px; }
}

/* ─── Section common ───────────────────────────────────────── */

section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* Paint-Budget: render only when near viewport (Phase-1 Lag-Fix) */
section#why,
section#modes,
section#join,
section#narrator,
section#pricing,
section#stack {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.section-head { margin-bottom: 56px; max-width: 760px; }
.section-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--teal); text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-num::before {
  content: ""; display: inline-block; width: 40px; height: 1px; background: var(--teal);
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg-0);
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-lede { font-size: 16px; color: var(--fg-2); max-width: 58ch; }

/* ─── Wozu — Anwendungsfälle ───────────────────────────────── */

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 860px) { .use-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .use-grid { grid-template-columns: 1fr; } }

.use-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 26px 24px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.use-card:hover { border-color: var(--teal-dim); transform: translateY(-2px); }

.use-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--teal); text-transform: uppercase;
  margin-bottom: 16px;
}
.use-tag .delta { color: var(--teal); font-family: var(--display); font-size: 13px; padding: 0 3px; line-height: 1; }
.use-tag .warm { color: var(--warm); }

.use-title {
  font-family: var(--display); font-weight: 400; font-size: 22px;
  color: var(--fg-0); line-height: 1.2; margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.use-desc {
  font-size: 14px; line-height: 1.55; color: var(--fg-2);
  margin: 0;
}

.use-foot {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-3);
  text-align: center;
}
.use-foot a { color: var(--fg-2); text-decoration: none; border-bottom: 1px dotted var(--fg-3); }
.use-foot a:hover { color: var(--teal); border-bottom-color: var(--teal-dim); }
.use-foot code { font-family: var(--mono); color: var(--teal); font-size: 12.5px; }

/* ─── Modes section ────────────────────────────────────────── */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 860px) { .modes-grid { grid-template-columns: 1fr; } }

.mode-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mode-card:hover { border-color: var(--teal-dim); transform: translateY(-2px); }
.mode-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0; transition: opacity 0.2s ease;
}
.mode-card:hover::after { opacity: 1; }

.mode-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--teal); text-transform: uppercase;
  margin-bottom: 20px;
}
.mode-title {
  font-family: var(--display); font-weight: 400; font-size: 26px;
  color: var(--fg-0); line-height: 1.1; margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.mode-desc { font-size: 14px; color: var(--fg-2); margin-bottom: 24px; line-height: 1.55; }

.mode-viz {
  height: 100px; background: var(--bg-0); border: 1px solid var(--line-soft); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px;
  position: relative; overflow: hidden;
}
.mode-viz svg { width: 100%; height: 100%; }

.node {
  fill: var(--bg-2); stroke: var(--teal); stroke-width: 1;
}
.node-label {
  fill: var(--fg-1); font-family: var(--mono); font-size: 9px;
}
.edge {
  stroke: var(--teal); stroke-width: 1; fill: none;
  stroke-dasharray: 3 3;
}
.edge-dim { stroke: var(--teal-dim); opacity: 0.5; }

.mode-example {
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  letter-spacing: 0.02em;
}
.mode-example .delta { color: var(--teal); font-family: var(--display); font-size: 13px; padding: 0 2px; }

/* ─── Join section — terminal block ────────────────────────── */

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; gap: 40px; } }

.join-steps { list-style: none; counter-reset: step; }
.join-steps li {
  counter-increment: step;
  padding: 20px 0 20px 48px;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.join-steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.join-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 22px;
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  letter-spacing: 0.08em;
}
.join-steps h4 {
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  color: var(--fg-0); margin-bottom: 4px;
}
.join-steps p { color: var(--fg-2); font-size: 14px; }
.join-steps code {
  font-family: var(--mono); font-size: 12px;
  padding: 1px 5px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--teal); border-radius: 2px;
}

.terminal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  position: relative;
}
.term-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase;
}
.term-head .dots { display: flex; gap: 6px; margin-right: 8px; }
.term-head .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-4); }
.term-head .dots span:first-child { background: var(--red); opacity: 0.6; }
.term-head .dots span:nth-child(2) { background: var(--warm); opacity: 0.6; }
.term-head .dots span:nth-child(3) { background: var(--green); opacity: 0.6; }
.term-head .title { flex: 1; }
.term-head .badge {
  font-size: 9px; color: var(--teal); border: 1px solid rgba(109, 201, 217, 0.35);
  padding: 2px 6px; border-radius: 2px; letter-spacing: 0.08em;
}

.term-body { padding: 18px 18px 22px; line-height: 1.75; color: var(--fg-1); }
.term-body .prompt { color: var(--teal); }
.term-body .comment { color: var(--fg-3); }
.term-body .kw { color: var(--warm); }
.term-body .str { color: var(--green); }
.term-body .out { color: var(--fg-2); padding-left: 0; }
.term-body .sep { display: block; height: 12px; }

.copy-btn {
  position: absolute; top: 50px; right: 14px;
  padding: 5px 10px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--fg-2); font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; border-radius: 2px; cursor: pointer;
  transition: all 0.15s ease;
}
.copy-btn:hover { border-color: var(--teal); color: var(--teal); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

/* ─── Join form — interactive room creation ───────────────── */

.join-form {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
}
.join-form label {
  display: block;
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.join-form .jf-opt { color: var(--fg-4); letter-spacing: 0.06em; }
.jf-row {
  display: flex; align-items: center;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 14px;
  transition: border-color 0.15s ease;
}
.jf-row:focus-within { border-color: var(--teal); }
.jf-prefix {
  font-family: var(--display); font-size: 22px; color: var(--teal);
  padding-right: 10px; line-height: 1;
}
.jf-row input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  font-family: var(--mono); font-size: 16px;
  color: var(--fg-0);
  padding: 14px 0;
  letter-spacing: 0.02em;
}
.jf-row input::placeholder { color: var(--fg-4); }
.jf-hint {
  font-size: 12px; color: var(--fg-3); margin-top: 8px;
  line-height: 1.5;
}
.jf-submit {
  width: 100%;
  margin-top: 22px;
  justify-content: center;
}
.jf-steps {
  list-style: none;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.jf-steps li { padding: 5px 0; }
.jf-steps strong { color: var(--teal); margin-right: 8px; font-weight: 500; }

/* ─── Result panel (post-submit) ───────────────────────────── */

.join-result {
  background: linear-gradient(180deg, rgba(109,201,217,0.04), transparent);
  border: 1px solid var(--teal);
  border-radius: 4px;
  padding: 24px 26px;
  animation: resultIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes resultIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.jr-header {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.jr-tag { color: var(--green); }
.jr-timer { color: var(--fg-3); }
.jr-timer a { color: var(--warm); text-decoration: underline dotted; }
.jr-identity {
  font-family: var(--mono); font-size: 18px; color: var(--fg-0);
  letter-spacing: 0.02em;
  word-break: break-all; line-height: 1.5;
}
.jr-identity .u { color: var(--fg-0); }
.jr-identity .r { color: var(--warm); }
.jr-identity .a { color: var(--teal-glow); }
.jr-identity .d { color: var(--teal); font-family: var(--display); font-size: 22px; padding: 0 4px; }
.jr-roles {
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-top: 6px;
}
.jr-roles .sep-dot { color: var(--fg-4); padding: 0 6px; }

/* Stage-Liste: room → prompt → agent → ready */
.jr-stages {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em;
}
.jr-stages li {
  display: grid; grid-template-columns: 18px auto 1fr; align-items: center;
  gap: 10px;
  color: var(--fg-3);
  transition: color 0.25s ease;
}
.jr-stages .st-mark {
  display: inline-flex; justify-content: center; align-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--fg-3);
  font-size: 11px; line-height: 1;
}
.jr-stages li.pending .st-mark {
  animation: stagePulse 1.6s ease-in-out infinite;
}
.jr-stages li.active { color: var(--fg-0); }
.jr-stages li.active .st-mark {
  border-color: var(--teal); color: var(--teal);
  animation: stagePulse 1.2s ease-in-out infinite;
}
.jr-stages li.done { color: var(--fg-0); }
.jr-stages li.done .st-mark {
  border-color: var(--green); color: var(--green);
  animation: none;
}
.jr-stages li.fail .st-mark {
  border-color: var(--warm); color: var(--warm);
}
@keyframes stagePulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.jr-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px;
}
.jr-actions .btn[disabled] {
  opacity: 0.5; cursor: not-allowed; filter: saturate(0.3);
}
.jr-status {
  margin-top: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.02em;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}

/* ─── Room PIN (2nd factor) ────────────────────────────────── */
.jr-pin {
  margin: 18px 0 16px;
  padding: 14px 18px;
  background: rgba(109, 201, 217, 0.06);
  border: 1px solid rgba(109, 201, 217, 0.25);
  border-radius: 4px;
}
.jr-pin-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal-dim); margin-bottom: 6px;
}
.jr-pin-code {
  font-family: var(--mono); font-size: 26px; font-weight: 700;
  color: var(--teal); letter-spacing: 0.14em;
}
.jr-pin-hint {
  margin-top: 8px; font-size: 11px; color: var(--fg-3); line-height: 1.45;
}

/* ─── Live status — narrator ───────────────────────────────── */

.narrator {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 860px) { .narrator { grid-template-columns: 1fr; gap: 32px; padding: 28px; } }

.narr-wave {
  display: flex; align-items: flex-end; gap: 3px;
  height: 140px;
  justify-content: center;
}
.narr-wave .bar {
  width: 6px;
  background: linear-gradient(180deg, var(--teal), var(--teal-dim));
  border-radius: 1px;
  animation: wave 1.4s ease-in-out infinite;
}
.narr-wave .bar:nth-child(odd) { animation-duration: 1.8s; }
.narr-wave .bar:nth-child(3n) { animation-duration: 1.1s; }
.narr-wave .bar:nth-child(5n) { animation-duration: 1.5s; }
@keyframes wave {
  0%, 100% { height: 12%; opacity: 0.35; }
  50%      { height: 88%; opacity: 1; }
}

.narr-log {
  font-family: var(--mono); font-size: 12px; color: var(--fg-2);
  line-height: 1.7;
}
.narr-log .t { color: var(--fg-3); }
.narr-log .ev { color: var(--fg-1); }
.narr-log .say {
  color: var(--teal); margin-top: 10px; padding: 10px 12px;
  background: rgba(109, 201, 217, 0.06); border-left: 2px solid var(--teal);
  font-family: var(--sans); font-size: 13px; font-style: italic;
}

/* ─── Pricing ──────────────────────────────────────────────── */

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.price-table thead th {
  text-align: left; padding: 16px 20px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.price-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg-1);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: rgba(109, 201, 217, 0.03); }
.price-table .num { color: var(--fg-0); }
.price-table .accent { color: var(--teal); }
.price-table .warm { color: var(--warm); }
.price-table .dim { color: var(--fg-3); font-size: 11px; }
.price-table .row-highlight td {
  background: rgba(109, 201, 217, 0.05);
  color: var(--fg-0);
}
.price-table .row-highlight td:first-child { position: relative; }
.price-table .row-highlight td:first-child::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--teal);
}

.price-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 720px) { .price-breakdown { grid-template-columns: 1fr; } }

.brk-card {
  background: var(--bg-1); border: 1px solid var(--line);
  padding: 24px; border-radius: 3px;
}
.brk-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--fg-3); text-transform: uppercase;
  margin-bottom: 12px;
}
.brk-value {
  font-family: var(--display); font-size: 40px; color: var(--fg-0);
  line-height: 1; margin-bottom: 6px; letter-spacing: -0.01em;
}
.brk-value .unit { font-family: var(--mono); font-size: 14px; color: var(--fg-3); letter-spacing: 0; }
.brk-sub { font-family: var(--mono); font-size: 11px; color: var(--fg-2); }
.brk-sub .warm { color: var(--warm); }
.brk-sub .dim { color: var(--fg-3); }

.pricing-note {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 2px solid var(--warm);
  border-radius: 2px;
  font-size: 14px; color: var(--fg-1); line-height: 1.6;
}
.pricing-note strong { color: var(--warm); font-weight: 500; }

/* ─── Stack ────────────────────────────────────────────────── */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }

.stack-card {
  background: var(--bg-1); border: 1px solid var(--line);
  padding: 24px 18px; border-radius: 3px;
  text-align: center;
  transition: border-color 0.15s ease;
}
.stack-card:hover { border-color: var(--teal-dim); }
.stack-role {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  color: var(--teal); text-transform: uppercase; margin-bottom: 14px;
}
.stack-name {
  font-family: var(--display); font-size: 22px; font-weight: 400;
  color: var(--fg-0); line-height: 1.1; margin-bottom: 4px;
}
.stack-detail { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }

.compliance {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) { .compliance { grid-template-columns: 1fr; } }
.comp-card {
  padding: 28px; background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 3px;
  display: flex; align-items: flex-start; gap: 18px;
}
.comp-glyph {
  flex-shrink: 0;
  width: 44px; height: 44px; border: 1px solid var(--teal); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 22px; color: var(--teal);
}
.comp-title {
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  color: var(--fg-0); margin-bottom: 4px;
}
.comp-text { font-size: 14px; color: var(--fg-2); line-height: 1.55; }

/* ─── CTA final ────────────────────────────────────────────── */

.final-cta {
  margin: 60px 0 120px;
  padding: 72px 56px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(242, 166, 90, 0.08), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(109, 201, 217, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px; opacity: 0.5;
  pointer-events: none;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 56px);
  color: var(--fg-0); line-height: 1.05; margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.final-cta h2 em { font-style: italic; color: var(--teal); }
.final-cta p { color: var(--fg-1); max-width: 52ch; margin: 0 auto 32px; font-size: 16px; }
.final-cta .cta-row { justify-content: center; }
@media (max-width: 720px) { .final-cta { padding: 48px 24px; margin: 36px 0 80px; } }

/* ─── Footer ───────────────────────────────────────────────── */

footer {
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.foot-col h5 {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2); margin-bottom: 14px; font-weight: 500;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: var(--fg-3); }
.foot-col a:hover { color: var(--teal); }

.foot-brand { max-width: 360px; }
.foot-brand p { color: var(--fg-2); line-height: 1.6; margin-top: 12px; font-size: 12px; }

.foot-bot {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--fg-3); font-size: 10px; letter-spacing: 0.06em;
}
.foot-bot .left span { color: var(--teal); }
@media (max-width: 720px) { .foot-bot { flex-direction: column; gap: 10px; text-align: center; } }

/* ─── Entry animations ─────────────────────────────────────── */

[data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

.hero [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.hero [data-reveal]:nth-child(2) { transition-delay: 0.15s; }
.hero [data-reveal]:nth-child(3) { transition-delay: 0.25s; }
.hero [data-reveal]:nth-child(4) { transition-delay: 0.35s; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-dim); }

/* ─── Motion gating ──────────────────────────────────────────
   Pause all infinite animations when (a) section is off-screen,
   (b) the tab/window is hidden, or (c) user prefers reduced motion.
   Keeps the page from burning paint cycles on 36 dauer-Animationen. */
[data-off="true"] *,
[data-off="true"] {
  animation-play-state: paused !important;
}
html[data-tab-hidden="true"] *,
html[data-tab-hidden="true"] {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}
