/* ════════════════════════════════════════════════════════════════
   rocketplane.io — landing page
   RETICLE design language: graphite housing, one warm signal color,
   hairlines everywhere, healthy is calm — only anomalies speak.
   ════════════════════════════════════════════════════════════════ */

:root {
  --rp-font-sans: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --rp-font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --rp-base: #0b0b0d;
  --rp-raised: #141417;
  --rp-overlay: #1a1a1e;
  --rp-inset: #08080a;
  --rp-hover: rgba(255, 255, 255, 0.035);
  --rp-ink: #f4f4f5;
  --rp-ink-mid: #a6a6ae;
  --rp-ink-muted: #83838c;
  --rp-ink-faint: #5c5c64;
  --rp-line: #232327;
  --rp-line-strong: #2e2e34;

  --rp-accent: #ff6a3d;
  --rp-accent-hover: #ff7e56;
  --rp-accent-fg: #1a0f09;
  --rp-btn-bg: #f4f4f5;
  --rp-btn-fg: #0b0b0d;

  --rp-red: #f0495b;
  --rp-yellow: #ebb24c;
  --rp-green: #34d399;
  --rp-tone-red-fg: #f47d8a;
  --rp-tone-yellow-fg: #f0c270;
  --rp-tone-green-fg: #5fe0ad;
  /* risk-grade palette — muted, mirrors the app's levelColor() (approval.ts) */
  --rp-node-warn: #8a6a1c;
  --rp-node-crit: #e23d4e;

  --rp-radius: 8px;
  --rp-radius-sm: 6px;
  --rp-radius-chip: 4px;
  --rp-radius-lg: 10px;

  --rp-ease-precise: cubic-bezier(0.2, 0, 0, 1);
  --rp-ease-enter: cubic-bezier(0.25, 1, 0.5, 1);
  --rp-dur-micro: 120ms;
  --rp-dur-standard: 180ms;

  --rp-rim: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --rp-shadow-pop: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

/* ── reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rp-base);
  color: var(--rp-ink);
  font-family: var(--rp-font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--rp-ink); text-decoration: none; }
p a, figcaption a { color: var(--rp-accent); }
p a:hover, figcaption a:hover { color: var(--rp-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
code, .mono, kbd { font-family: var(--rp-font-mono); font-variant-numeric: tabular-nums; }
code { font-size: 0.88em; background: var(--rp-inset); border: 1px solid var(--rp-line); border-radius: var(--rp-radius-chip); padding: 1px 5px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
::selection { background: var(--rp-accent); color: var(--rp-accent-fg); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }

/* ── film grain ── */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  opacity: 0.035; mix-blend-mode: soft-light;
  pointer-events: none; z-index: 9999;
}

/* ── kicker / masthead keyline (the signature) ── */
.kicker, .masthead-kicker {
  font-family: var(--rp-font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--rp-ink-muted);
}
.kicker { margin: 0 0 20px; }
.masthead { position: relative; padding-bottom: 12px; }
.masthead::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--rp-line-strong);
}
.masthead::before {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 24px; height: 2px; background: var(--rp-accent); z-index: 1;
}
.masthead-title { font-size: clamp(24px, 3.4vw, 32px); margin-top: 10px; }
.section-masthead { margin-bottom: 56px; }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--rp-line);
  background: rgba(11, 11, 13, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner { height: 52px; display: flex; align-items: center; gap: 32px; }
.wordmark {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.wordmark-glyph { width: 20px; height: 20px; color: var(--rp-accent); flex: none; }
/* wordmark reads as one word "rocketplaneIO"; IO tight + muted (app-consistent) */
.wordmark-name { display: inline-flex; align-items: baseline; }
.wordmark-io { color: var(--rp-ink-muted); font-weight: 500; margin-left: 0.5px; }
/* alpha chip in the hero kicker — gold (caution) with colorblind glyph, RETICLE tone-yellow */
.alpha-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--rp-font-mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--rp-tone-yellow-fg);
  background: rgba(235, 178, 76, 0.13);
  border: 1px solid rgba(235, 178, 76, 0.35);
  border-radius: var(--rp-radius-chip);
  padding: 2px 7px; margin-left: 6px; vertical-align: 1px; white-space: nowrap;
}
.site-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 4px; }
.site-nav a {
  font-size: 13px; font-weight: 500; color: var(--rp-ink-mid);
  padding: 6px 10px; border-radius: var(--rp-radius-sm);
  transition: color var(--rp-dur-micro) var(--rp-ease-precise), background var(--rp-dur-micro) var(--rp-ease-precise);
}
.site-nav a:hover { color: var(--rp-ink); background: var(--rp-hover); }
.header-actions { display: flex; gap: 8px; }

/* ── buttons: primary is MONOCHROME, orange stays a signal ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: var(--rp-radius-sm);
  font-family: var(--rp-font-sans); font-size: 13px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--rp-dur-micro) var(--rp-ease-precise),
              border-color var(--rp-dur-micro) var(--rp-ease-precise),
              transform var(--rp-dur-micro) var(--rp-ease-precise);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--rp-accent); outline-offset: 2px; }
.btn-primary { background: var(--rp-btn-bg); color: var(--rp-btn-fg); }
.btn-primary:hover { background: #ffffff; }
.btn-secondary { border-color: var(--rp-line-strong); color: var(--rp-ink); background: var(--rp-raised); }
.btn-secondary:hover { background: var(--rp-overlay); }
.btn-ghost { color: var(--rp-ink-mid); }
.btn-ghost:hover { color: var(--rp-ink); background: var(--rp-hover); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; }
.btn-kbd {
  font-family: var(--rp-font-mono); font-size: 11px; font-weight: 400;
  color: var(--rp-ink-faint); background: rgba(11, 11, 13, 0.08);
  border: 1px solid rgba(11, 11, 13, 0.18);
  border-radius: var(--rp-radius-chip); padding: 2px 6px; margin-left: 2px;
}

/* ── hero ── */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero-aurora {
  position: absolute; inset: -20% -10% auto; height: 90%;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(255, 106, 61, 0.10), transparent 70%),
    radial-gradient(70% 50% at 50% 0%, rgba(235, 120, 60, 0.06), transparent 65%);
  filter: blur(64px);
  animation: veil-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes veil-drift { from { transform: translateX(-12px); } to { transform: translateX(12px); } }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--rp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--rp-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 100%);
          mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 100%);
}
.hero-inner { position: relative; text-align: center; max-width: 880px; }
.hero-title { font-size: clamp(32px, 5.4vw, 56px); letter-spacing: -0.015em; line-height: 1.08; }
.hero-title-accent { color: var(--rp-ink-mid); }
.hero-sub {
  max-width: 640px; margin: 24px auto 0;
  font-size: 16px; color: var(--rp-ink-mid);
}
.hero-sub strong { color: var(--rp-ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-badges {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin: 28px 0 0; padding: 0;
}
.hero-badges li {
  font-family: var(--rp-font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--rp-ink-muted);
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius-chip);
  padding: 5px 10px; background: var(--rp-raised);
}

/* ── the instrument panel (demo) ── */
.panel {
  position: relative;
  background: var(--rp-raised);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-rim);
}
.corner { position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 2; }
.corner::before, .corner::after { content: ''; position: absolute; background: var(--rp-accent); }
.corner::before { width: 14px; height: 1px; }
.corner::after { width: 1px; height: 14px; }
.c-tl { top: -1px; left: -1px; }
.c-tr { top: -1px; right: -1px; } .c-tr::before { right: 0; } .c-tr::after { right: 0; }
.c-bl { bottom: -1px; left: -1px; } .c-bl::before { bottom: 0; } .c-bl::after { bottom: 0; }
.c-br { bottom: -1px; right: -1px; } .c-br::before { bottom: 0; right: 0; } .c-br::after { bottom: 0; right: 0; }

.demo-panel {
  margin-top: 72px;
  display: grid; grid-template-columns: 1.55fr 1fr;
  overflow: hidden;
}
.demo-map { border-right: 1px solid var(--rp-line); display: flex; flex-direction: column; }
.demo-map .masthead, .demo-copilot .masthead { padding: 14px 20px 10px; }
.demo-map .masthead::after, .demo-copilot .masthead::after { left: 20px; right: 20px; }
.demo-map .masthead::before, .demo-copilot .masthead::before { left: 20px; }
#map-canvas { width: 100%; height: 468px; display: block; background: #0a0a0c; }
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rp-green); margin-left: 8px; vertical-align: 1px;
  animation: live-breath 2s ease-in-out infinite;
}
@keyframes live-breath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
}
.demo-copilot { display: flex; flex-direction: column; background: var(--rp-inset); }
#inv-id { color: var(--rp-ink-faint); }
.copilot-log {
  flex: 1; padding: 14px 20px 20px;
  font-family: var(--rp-font-mono); font-size: 12px; line-height: 1.75;
  color: var(--rp-ink-mid);
  overflow: hidden;
  height: 468px;
}
.copilot-log .cl-line { display: flex; gap: 8px; opacity: 0; animation: cl-in 180ms var(--rp-ease-enter) forwards; }
@keyframes cl-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.copilot-log .cl-pre { color: var(--rp-ink-faint); flex: none; }
.cl-tool { color: var(--rp-ink-muted); }
.cl-tool .cl-pre { color: var(--rp-ink-faint); }
.cl-finding { color: var(--rp-ink); }
.cl-crit { color: var(--rp-tone-red-fg); }
.cl-warn { color: var(--rp-tone-yellow-fg); }
.cl-ok { color: var(--rp-tone-green-fg); }
.cl-proposal {
  display: block; margin: 6px 0; padding: 8px 10px;
  border: 1px solid var(--rp-line-strong); border-left: 2px solid var(--rp-accent);
  border-radius: var(--rp-radius-chip);
  background: var(--rp-raised); color: var(--rp-ink);
  opacity: 0; animation: cl-in 180ms var(--rp-ease-enter) forwards;
}
.cl-proposal .cl-risk { color: var(--rp-ink-mid); }
.cl-approve {
  display: inline-block; margin-top: 6px; padding: 3px 10px;
  background: var(--rp-btn-bg); color: var(--rp-btn-fg);
  border-radius: var(--rp-radius-chip); font-weight: 600; font-size: 11px;
}
.cl-caret {
  display: inline-block; width: 7px; height: 13px; vertical-align: -2px;
  background: var(--rp-accent);
  animation: caret-blink 1.06s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ── sections ── */
.section { padding: 112px 0; }
.section-alt { background: var(--rp-raised); border-top: 1px solid var(--rp-line); border-bottom: 1px solid var(--rp-line); }

/* ── features ── */
.feature {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px;
  align-items: center; padding: 56px 0;
}
.feature + .feature { border-top: 1px solid var(--rp-line); }
.feature-flip .feature-copy { order: 2; }
.feature-flip .feature-shot { order: 1; }
.feature-index {
  font-family: var(--rp-font-mono); font-size: 12px; font-weight: 500;
  color: var(--rp-ink-muted); margin: 0 0 12px;
}
.feature-index::after { content: ' /'; color: var(--rp-ink-faint); }
.feature h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 16px; }
.feature-copy p { color: var(--rp-ink-mid); margin: 0 0 16px; }
.feature-copy strong { color: var(--rp-ink); }
.feature-law {
  font-size: 13px; color: var(--rp-ink) !important;
  border-left: 2px solid var(--rp-accent);
  padding: 10px 14px; background: var(--rp-raised);
  border-radius: 0 var(--rp-radius-chip) var(--rp-radius-chip) 0;
}
.feature-shot img {
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius);
  box-shadow: var(--rp-rim), var(--rp-shadow-pop);
}
.feature-shot figcaption { font-size: 12px; color: var(--rp-ink-muted); margin-top: 12px; line-height: 1.6; }
.feature-shot figcaption strong { color: var(--rp-ink-mid); }
.feature-shot { margin: 0; }

.pipeline-chain span { font-family: var(--rp-font-mono); font-size: 0.9em; color: var(--rp-ink); }
.pipeline-chain .pc-arrow { color: var(--rp-accent); padding: 0 2px; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding: 6px 0 6px 26px; color: var(--rp-ink-mid);
}
.check-list li::before {
  content: '✓'; position: absolute; left: 3px; top: 6px;
  color: var(--rp-ink-mid); font-size: 11px; font-weight: 600;
}
.check-list strong, .check-list em { color: var(--rp-ink); }

/* ── risk table ── */
.risk-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-size: 12.5px;
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius);
  overflow: hidden;
}
.risk-table th {
  font-family: var(--rp-font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; text-align: left;
  color: var(--rp-ink-muted); padding: 10px 12px;
  border-bottom: 1px solid var(--rp-line); background: var(--rp-raised);
}
.risk-table td {
  padding: 9px 12px; border-bottom: 1px solid var(--rp-line);
  color: var(--rp-ink-mid); vertical-align: top;
}
.risk-table tr:last-child td { border-bottom: none; }
.risk-table td:first-child { font-family: var(--rp-font-mono); white-space: nowrap; color: var(--rp-ink); }
.risk-table td strong { color: var(--rp-tone-red-fg); font-weight: 600; }
.risk-glyph { display: inline-block; width: 18px; }
/* risk grades mirror the app's levelColor(): read/reversible neutral, disruptive gold, destructive crimson */
.g-ok { color: var(--rp-ink-faint); }
.g-rev { color: var(--rp-ink-faint); }
.g-dis { color: var(--rp-node-warn); }
.g-des { color: var(--rp-node-crit); }

/* ── safety grid ── */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rp-line); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); overflow: hidden; }
.safety-card { background: var(--rp-base); padding: 28px 24px; }
.safety-card h3 { font-size: 15px; margin-bottom: 10px; }
.safety-card h3::before { content: '— '; color: var(--rp-ink-faint); }
.safety-card p { margin: 0; font-size: 13px; color: var(--rp-ink-mid); line-height: 1.65; }
.safety-card em { font-style: normal; color: var(--rp-ink); }
.safety-card .mono { font-size: 12px; color: var(--rp-ink); }

/* ── screenshot grid ── */
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot-card { margin: 0; }
.shot-wide { grid-column: 1 / -1; }
.shot-card img {
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius);
  box-shadow: var(--rp-rim);
  transition: border-color var(--rp-dur-standard) var(--rp-ease-precise);
}
.shot-card:hover img { border-color: var(--rp-line-strong); }
.shot-card figcaption { font-size: 12px; color: var(--rp-ink-muted); margin-top: 10px; line-height: 1.6; }
.shot-label {
  display: block;
  font-family: var(--rp-font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--rp-ink); margin-bottom: 2px;
}
.shot-label::before { content: '▸ '; color: var(--rp-ink-faint); }
.box-note { text-align: center; margin-top: 48px; color: var(--rp-ink-muted); font-size: 14px; }
.box-note strong { color: var(--rp-ink); }

/* ── architecture ── */
.arch { border: 1px solid var(--rp-line); border-radius: var(--rp-radius); background: var(--rp-base); padding: 24px; }
.arch-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: stretch; }
.arch-zone {
  font-family: var(--rp-font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--rp-ink-muted);
  padding-top: 16px;
}
.arch-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.arch-cell {
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius-sm);
  background: var(--rp-raised); box-shadow: var(--rp-rim);
  padding: 14px 16px;
}
.arch-cell-wide { grid-column: 1 / -1; }
.arch-cell-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.arch-ico {
  width: 16px; height: 16px; flex: none;
  fill: var(--rp-ink-mid);
  transition: fill var(--rp-dur-standard) var(--rp-ease-precise);
}
.arch-cell:hover .arch-ico { fill: var(--rp-ink); }
.arch-cell strong { font-size: 14px; }
.arch-cell span { font-family: var(--rp-font-mono); font-size: 11.5px; color: var(--rp-ink-muted); line-height: 1.6; }
.arch-stack {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; margin: 20px 0 0;
  font-family: var(--rp-font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--rp-ink-muted);
}
.arch-ico-sm { width: 14px; height: 14px; fill: var(--rp-ink-mid); }
.arch-stack-dot { color: var(--rp-ink-faint); }
.arch-flow {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-left: 166px; padding: 8px 0;
}
.arch-flow span {
  font-family: var(--rp-font-mono); font-size: 11px; color: var(--rp-ink-muted);
  text-align: center; letter-spacing: 0.08em;
}
.arch-note { max-width: 760px; margin: 32px auto 0; text-align: center; color: var(--rp-ink-mid); font-size: 14px; }
.arch-note strong { color: var(--rp-ink); }

/* ── quick start ── */
.qs-step { padding: 32px 0; }
.qs-step + .qs-step { border-top: 1px solid var(--rp-line); }
.qs-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.qs-num {
  font-family: var(--rp-font-mono); font-size: 13px; font-weight: 600;
  color: var(--rp-accent);
  width: 28px; height: 28px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rp-line-strong); border-radius: var(--rp-radius-sm);
  align-self: center;
}
.qs-head h3 { font-size: 18px; }
.qs-req { font-family: var(--rp-font-mono); font-size: 11px; color: var(--rp-ink-muted); letter-spacing: 0.06em; }
.qs-text { color: var(--rp-ink-mid); margin: 0; max-width: 680px; }
.qs-text strong { color: var(--rp-ink); }
.qs-note { font-size: 13px; color: var(--rp-ink-muted); margin: 12px 0 0; }
.qs-note .mono { color: var(--rp-ink-mid); font-size: 12px; }

.codeblock {
  position: relative;
  background: var(--rp-inset);
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius);
  box-shadow: var(--rp-rim);
}
.codeblock pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font-size: 12.5px; line-height: 1.7;
}
.codeblock code { background: none; border: none; padding: 0; color: var(--rp-ink); }
.tok-c { color: var(--rp-ink-faint); }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--rp-font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--rp-ink-muted); background: var(--rp-raised);
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius-chip);
  padding: 4px 10px; cursor: pointer;
  transition: color var(--rp-dur-micro) var(--rp-ease-precise), border-color var(--rp-dur-micro) var(--rp-ease-precise);
}
.copy-btn:hover { color: var(--rp-ink); border-color: var(--rp-line-strong); }
.copy-btn.copied { color: var(--rp-tone-green-fg); border-color: rgba(52, 211, 153, 0.4); }

.qs-alpha {
  margin-top: 48px; padding: 16px 20px;
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius);
  background: var(--rp-raised);
  font-size: 13px; color: var(--rp-ink-mid); line-height: 1.6;
  display: flex; gap: 14px; align-items: baseline;
}
.qs-alpha-badge {
  flex: none;
  font-family: var(--rp-font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--rp-tone-yellow-fg);
  border: 1px solid rgba(235, 178, 76, 0.4); border-radius: var(--rp-radius-chip);
  background: rgba(235, 178, 76, 0.13);
  padding: 3px 8px;
}

/* ── final cta ── */
.final-cta { position: relative; overflow: hidden; border-top: 1px solid var(--rp-line); padding: 128px 0; }
.final-aurora {
  position: absolute; inset: auto -10% -30%; height: 90%;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(255, 106, 61, 0.10), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(235, 120, 60, 0.06), transparent 65%);
  filter: blur(64px);
  pointer-events: none;
}
.final-inner { position: relative; text-align: center; }
.final-inner h2 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 32px; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--rp-line); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.footer-brand .wordmark-glyph { width: 16px; height: 16px; }
.footer-meta { font-family: var(--rp-font-mono); font-size: 11px; color: var(--rp-ink-muted); letter-spacing: 0.04em; margin-right: auto; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 13px; color: var(--rp-ink-muted); transition: color var(--rp-dur-micro) var(--rp-ease-precise); }
.footer-nav a:hover { color: var(--rp-ink); }

/* ── legal pages (Impressum / Datenschutz) ── */
.legal { padding: 72px 0 96px; }
.legal h2 { font-size: 16px; margin: 32px 0 8px; }
.legal .legal-opt { font-family: var(--rp-font-mono); font-size: 11px; font-weight: 400; color: var(--rp-ink-faint); letter-spacing: 0.04em; }
.legal p { color: var(--rp-ink-mid); margin: 0 0 12px; line-height: 1.7; font-size: 14px; }
.legal p strong { color: var(--rp-ink); }
.legal a { color: var(--rp-accent); }
.legal a:hover { color: var(--rp-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.legal-note {
  border: 1px solid var(--rp-line); border-left: 2px solid var(--rp-yellow);
  background: var(--rp-raised); border-radius: 0 var(--rp-radius-chip) var(--rp-radius-chip) 0;
  padding: 12px 16px; font-size: 13px !important;
}
.legal-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rp-line); }

/* ── scroll reveal ── */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 480ms var(--rp-ease-enter), transform 480ms var(--rp-ease-enter); }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 960px) {
  .demo-panel { grid-template-columns: 1fr; }
  .demo-map { border-right: none; border-bottom: 1px solid var(--rp-line); }
  #map-canvas { height: 340px; }
  .copilot-log { height: 300px; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-flip .feature-copy { order: 1; }
  .feature-flip .feature-shot { order: 2; }
  .safety-grid { grid-template-columns: 1fr 1fr; }
  .arch-row { grid-template-columns: 1fr; gap: 8px; }
  .arch-zone { padding-top: 0; }
  .arch-flow { margin-left: 0; }
  .site-nav { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 48px; }
  .safety-grid, .shot-grid, .arch-cells { grid-template-columns: 1fr; }
  .btn-kbd { display: none; }
  .header-actions .btn-ghost { display: none; }
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-aurora, .live-dot, .cl-caret { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .copilot-log .cl-line, .cl-proposal { animation: none; opacity: 1; }
}
