:root {
  --bg: #06110a;
  --bg-2: #08180f;
  --panel: #091a12;
  --text: #d8f3de;
  --muted: #8fb898;
  --accent: #7af0a8;
  --accent-dim: #3f8a5c;
  --rule: rgba(122, 240, 168, 0.16);
  --real: #7af0a8;
  --concept: #f0c874;
  --built: #6ab8e8;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); font-family: var(--font); }
body { margin: 0; background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .progress-fill { transition: none; }
}

/* Media optimization:
   - This variation is intentionally media-free.
   - No image/video backgrounds emitted.
   - Stylesheet is preloaded from markup.
*/
img, canvas, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.skip-link {
  position: fixed;
  left: 1rem; top: 1rem;
  background: var(--accent);
  color: #06110a;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  z-index: 50;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem,4vw,3.5rem);
  border-bottom: 1px solid var(--rule);
  background: rgba(6, 17, 10, 0.8);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; min-height: 44px; }
.brand strong { font-size: 0.95rem; }
.brand small { color: var(--muted); font-size: 0.72rem; display: block; margin-top: 0.12rem; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(122,240,168,0.35); border-radius: 14px; background: rgba(122,240,168,0.12); color: var(--accent); font-weight: 900; font-family: var(--mono); font-size: 0.85rem;
}

.nav { display: flex; align-items: center; gap: clamp(0.5rem,2vw,1.1rem); flex-wrap: wrap; justify-content: flex-end; }
.nav a { min-height: 38px; display: inline-flex; align-items: center; padding: 0.5rem 0.8rem; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.86rem; font-weight: 600; background: rgba(122,240,168,0.08); border: 1px solid var(--rule); }
.nav a:hover { background: rgba(122,240,168,0.14); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4.5rem,10vw,7.5rem) clamp(1.25rem,5vw,6rem) clamp(5rem,9vw,7rem);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }

.hero-copy { position: relative; z-index: 2; }
.eyebrow { color: var(--accent); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.9rem; }
h1 { margin-block-start: 0; margin-block-end: 1.2rem; font-size: clamp(3.2rem, 5.2vw, 6.8rem); line-height: 0.92; letter-spacing: -0.045em; max-width: 13ch; }
.lede { max-width: 70ch; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.28rem); line-height: 1.6; margin-block-end: 1.3rem; }

.hero-actions { display: inline-flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.button, .ghost-button {
  min-height: 46px; display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; padding: 0.85rem 1rem; font-weight: 800; text-decoration: none; border: 1px solid transparent; transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.button:hover, .ghost-button:hover { transform: translateY(-2px); }

.button.primary { background: var(--accent); color: #05110a; border-color: var(--accent-dim); box-shadow: 0 0 30px rgba(122,240,168,0.18); }
.button.secondary { background: rgba(122,240,168,0.09); color: var(--text); border-color: var(--rule); }
.button.secondary:hover { background: rgba(122,240,168,0.16); border-color: rgba(122,240,168,0.32); }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.hint { margin-top: 0.8rem; color: var(--muted); font-size: 0.85rem; }

.status-panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: 0 14px 40px rgba(0,0,0,0.32);
}

.panel-bar {
  display: inline-flex; align-items: center; gap: 0.55rem; border: 1px solid var(--rule); border-radius: 999px; padding: 0.45rem 0.7rem; background: rgba(2,6,4,0.7); color: var(--muted); font-family: var(--mono); font-size: 0.72rem;
}
.dot { width: 9px; height: 9px; border-radius: 999px; background: #4b5c4f; }
.dot.active { background: var(--accent); box-shadow: 0 0 0 3px rgba(122,240,168,0.18); }
.panel-bar strong { margin-left: auto; color: #bddcc8; font-weight: 800; }

.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.8rem; margin-top: 1rem; }
.status-cell { background: rgba(0,0,0,0.28); border: 1px solid var(--rule); border-radius: 14px; padding: 0.7rem 0.9rem; }
.status-label { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.4rem; }
.status-value { display: block; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 1rem; }

.progress-wrap { display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 1rem; width: 100%; }
.progress-track { flex: 1 1 auto; height: 10px; background: rgba(0,0,0,0.32); border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); width: 0%; }
.progress-text { font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--mono); color: var(--muted); min-width: 36px; text-align: right; }

.section { padding: clamp(4.2rem,9vw,7rem) clamp(1.1rem,5vw,5.6rem); border-bottom: 1px solid var(--rule); }
.section-kicker { color: #7af0a8; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.8rem; }

.split-heading {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.62fr); gap: clamp(1.5rem,5vw,3.6rem); align-items: end; margin: 0 auto 1.8rem; max-width: 1180px;
}
.split-heading h2 { margin: 0; font-size: clamp(2.3rem, 3.6vw, 4.4rem); line-height: 1.1; letter-spacing: -0.04em; }
.split-heading p { margin: 0; max-width: 68ch; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) {
  .split-heading { grid-template-columns: 1fr; }
}

.pipeline-shell { max-width: 1180px; margin: 0 auto; }

.pipeline-track {
  list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-direction: column; gap: 0.8rem;
}
.pipeline-node {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: 1rem 1.1rem; display: grid; gap: 0.7rem;
}
.pipeline-node.active { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(122,240,168,0.12); }
.pipeline-node.done { border-color: rgba(122,240,168,0.35); }

.node-header { display: inline-flex; align-items: flex-start; gap: 0.9rem; }
.node-id { width: 24px; height: 24px; border-radius: 8px; background: rgba(0,0,0,0.25); border: 1px solid var(--rule); color: var(--muted); font-weight: 700; font-size: 0.8rem; display: grid; place-items: center; font-family: var(--mono); }
.node-header strong { font-weight: 700; display: block; }
.node-header small { color: var(--muted); font-size: 0.82rem; }

.node-status { font-size: 0.82rem; color: var(--muted); font-family: var(--mono); }
.node-trace code {
  display: block; white-space: pre-wrap; word-break: break-word; background: rgba(0,4,2,0.55); border: 1px solid var(--rule); border-radius: 12px; padding: 0.8rem; font-family: var(--mono); font-size: 0.76rem; color: #c4eacf; min-height: 64px;
}

.label {
  width: max-content; display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 999px; padding: 0.38rem 0.72rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid transparent;
}
.label.real { color: var(--real); background: rgba(122,240,168,0.12); border-color: rgba(122,240,168,0.28); }
.label.concept { color: var(--concept); background: rgba(240,200,116,0.10); border-color: rgba(240,200,116,0.28); }
.label.built { color: var(--built); background: rgba(106,184,232,0.10); border-color: rgba(106,184,232,0.30); }

.console-panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.console-body { background: rgba(0,5,2,0.65); border-top: 1px solid var(--rule); padding: 0.9rem; max-height: 360px; overflow: auto; font-family: var(--mono); font-size: 0.76rem; }
.console-line { display: grid; grid-template-columns: 80px 1fr; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(122,240,168,0.08); }
.console-line:last-child { border-bottom: none; }
.console-line.system { color: #7f9f88; }
.console-line.node { color: #aed9b6; }
.console-line.success { color: var(--accent); }
.console-line.warn { color: #e0b66e; }
.ts { color: #6b9074; font-variant-numeric: tabular-nums; }

.card-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.proof-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: 1.15rem; display: grid; gap: 0.7rem; }
.proof-card h3 { margin: 0.4rem 0 0; font-size: 1.08rem; font-weight: 700; }
.proof-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.proof-card a, .proof-card .ghost-button { width: fit-content; }

.concept-panel, .detail-panel {
  position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(2,6,4,0.72); backdrop-filter: blur(8px);
}
.concept-panel.open, .detail-panel.open { display: flex; }
.panel-card {
  width: min(520px, 100%); background: var(--panel); border: 1px solid rgba(122,240,168,0.28); border-radius: 20px; padding: 1.15rem; box-shadow: 0 16px 40px rgba(0,0,0,0.46);
}
.panel-close {
  background: transparent; border: 1px solid var(--rule); color: var(--text); border-radius: 8px; padding: 0.5rem 0.7rem; cursor: pointer; font-size: 1rem;
}
.panel-close:hover { background: rgba(122,240,168,0.08); }
.panel-list { margin-top: 1.1rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.55; }

.footer {
  max-width: 1180px; margin: 0 auto; padding: 1.6rem clamp(1.1rem,5vw,5.6rem); color: var(--muted); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}

.guide-body { background: var(--bg); }
.guide-main { padding: 1.25rem; }
.guide-article { max-width: 980px; margin: 0 auto; }
.guide-article h1 { max-width: 14ch; }
.guide-article section { border-top: 1px solid rgba(122,240,168,0.14); padding-top: 1.4rem; margin-top: 1.4rem; }
.guide-article code { background: rgba(122,240,168,0.10); color: var(--accent); padding: 0.1rem 0.3rem; border-radius: 6px; font-family: var(--mono); }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1rem; }
.pass-list { color: var(--muted); line-height: 1.65; }

@media (max-width: 900px) {
  .split-heading, .closing { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .site-header { align-items: stretch; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero-actions .button { width: 100%; }
}
