:root {
  --bg: #071018;
  --surface: #0d1922;
  --surface-raised: #11232d;
  --line: #233944;
  --text: #edf5f3;
  --muted: #91a5a8;
  --dim: #64787d;
  --teal: #5eead4;
  --lime: #b8e986;
  --amber: #f4c95d;
  --red: #fb7185;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(rgba(145, 165, 168, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(145, 165, 168, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 16, 24, .1) 0%, var(--bg) 84%);
  pointer-events: none;
}

a { color: inherit; }

.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.wordmark, .topbar-meta, .system-chip, .hero-actions, .local-note, .workflow-footer, .footer, .futures-rules { display: flex; align-items: center; }

.wordmark { gap: 10px; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .02em; }

.wordmark-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(94, 234, 212, .55);
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: -.08em;
}

.topbar-meta { gap: 8px; }

.system-chip, .state-pill, .step-state {
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.system-chip-muted, .state-pill-muted { color: var(--dim); }

.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(94, 234, 212, .12); }
.status-dot-amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(244, 201, 93, .12); }
.status-dot-red { background: var(--red); box-shadow: 0 0 0 3px rgba(251, 113, 133, .12); }

main { padding: 80px 0 46px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 76px; align-items: center; }

.eyebrow { margin: 0 0 15px; color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

h1, h2, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(2.9rem, 7vw, 6.2rem); font-weight: 650; letter-spacing: -.065em; line-height: .95; }
h2 { margin-bottom: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 620; letter-spacing: -.045em; line-height: 1.08; }

.hero-lede { max-width: 670px; margin-bottom: 30px; color: var(--muted); font-size: 16px; line-height: 1.75; }

.hero-actions { flex-wrap: wrap; gap: 10px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; border: 1px solid var(--line); padding: 0 15px; font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--teal); color: var(--bg); background: var(--teal); }
.button-primary:hover { background: #87f2e1; }
.button-secondary { color: var(--text); background: rgba(13, 25, 34, .7); }
.button-secondary:hover { border-color: var(--teal); }

.local-note { gap: 9px; margin: 23px 0 0; color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.55; }

.workflow-card, .info-panel, .futures-strip { border: 1px solid var(--line); background: rgba(13, 25, 34, .93); }
.workflow-card { position: relative; overflow: hidden; }
.workflow-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; background: linear-gradient(var(--teal), transparent 82%); }

.workflow-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 24px 21px; border-bottom: 1px solid var(--line); }
.workflow-header .eyebrow { margin-bottom: 9px; }
.workflow-header h2 { font-size: 1.45rem; }

.workflow-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 17px 24px; border-bottom: 1px solid rgba(35, 57, 68, .75); }
.workflow-list li:last-child { border-bottom: 0; }
.step-number { color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.workflow-list strong, .workflow-list small { display: block; }
.workflow-list strong { margin-bottom: 4px; font-size: 13px; }
.workflow-list small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.step-state { border: 0; padding: 0; color: var(--dim); font-size: 9px; }
.workflow-footer { gap: 9px; padding: 17px 24px; border-top: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.5; }

.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 72px; }
.info-panel { position: relative; overflow: hidden; padding: 25px 28px 28px; }
.info-panel::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; }
.panel-teal::before { background: var(--teal); }
.panel-amber::before { background: var(--amber); }
.info-panel .eyebrow { color: var(--dim); }
.info-panel h2 { max-width: 390px; margin-bottom: 20px; }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.55; }
.check-list li { display: grid; grid-template-columns: 16px 1fr; gap: 9px; }
.check-list li::before { content: "↳"; color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.panel-amber .check-list li::before { color: var(--amber); }
code { color: var(--amber); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

.futures-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 18px; padding: 23px 28px; }
.futures-strip .eyebrow { margin-bottom: 8px; color: var(--amber); }
.futures-rules { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.futures-rules span { border: 1px solid rgba(244, 201, 93, .28); padding: 8px 10px; color: var(--amber); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }

.footer { justify-content: space-between; gap: 18px; min-height: 70px; border-top: 1px solid var(--line); color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.footer a { color: var(--muted); text-underline-offset: 4px; }

@media (max-width: 900px) {
  main { padding-top: 54px; }
  .hero { grid-template-columns: 1fr; gap: 42px; }
  h1 { max-width: 650px; }
  .section-grid { margin-top: 54px; }
  .futures-strip { align-items: flex-start; flex-direction: column; }
  .futures-rules { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1240px); }
  .topbar { min-height: 66px; }
  .system-chip-muted { display: none; }
  main { padding-top: 40px; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.4rem); }
  .hero-lede { font-size: 14px; }
  .button { width: 100%; }
  .workflow-header { align-items: flex-start; flex-direction: column; padding: 20px; }
  .workflow-list li { grid-template-columns: 26px minmax(0, 1fr); padding: 15px 20px; }
  .step-state { grid-column: 2; }
  .workflow-footer { align-items: flex-start; padding: 15px 20px; }
  .section-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .info-panel { padding: 22px 22px 24px; }
  .futures-strip { padding: 21px 22px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding: 20px 0; }
}

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