:root {
  color-scheme: dark;
  --ink: #0c1018;
  --panel: #141a24;
  --panel-2: #1a2230;
  --line: #333d4d;
  --paper: #e7e0d4;
  --muted: #a8b0bc;
  --blue: #2b69bb;
  --red: #bd321f;
  --green: #42bd82;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: .88rem; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--paper); }

main, footer { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  padding: 92px 0 110px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #89aee0;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.5rem, 8.2vw, 7.6rem);
  line-height: .88;
  letter-spacing: -.065em;
}

.lede { max-width: 680px; margin: 36px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--line); font-size: .9rem; font-weight: 750; text-decoration: none; }
.button-primary { background: var(--red); border-color: var(--red); color: #fff; }
.button-quiet { background: transparent; }
.button:hover, .button:focus-visible { translate: 0 -2px; }

.signal-card { align-self: end; margin-bottom: 12px; border: 1px solid var(--line); background: var(--panel); padding: 26px; }
.signal-label { margin: 0 0 16px; color: var(--muted); font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.signal-state { margin: 0 0 24px; font-size: 1.35rem; font-weight: 750; }
.signal-state span { display: inline-block; width: 10px; height: 10px; margin-right: 9px; background: var(--green); border-radius: 50%; }
.signal-card dl { margin: 0; }
.signal-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--line); }
.signal-card dt { color: var(--muted); }
.signal-card dd { margin: 0; text-align: right; }
.signal-note { margin: 20px 0 0; color: var(--muted); font-size: .78rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.section-heading .eyebrow { flex: 0 0 auto; margin-bottom: 7px; }
.section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.section-heading.compact { display: block; }
.section-heading.compact h2 { max-width: 690px; }

.stage { padding: 96px 0 80px; border-top: 1px solid var(--line); }
.stage figure { margin: 0; border: 1px solid var(--line); background: #080b11; }
.stage figure img { width: 100%; }
.stage figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 15px 18px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 36px 0 120px; }
.feature-grid article { min-height: 330px; padding: 30px; background: var(--panel); border-right: 1px solid var(--line); }
.feature-grid article:last-child { border-right: 0; }
.feature-grid .feature-accent { background: var(--blue); }
.feature-grid .index { margin: 0 0 72px; color: var(--muted); font-family: ui-monospace, "Cascadia Code", monospace; }
.feature-grid .feature-accent .index { color: #ffffff; }
.feature-grid h2 { margin: 0 0 16px; font-size: 1.55rem; line-height: 1.1; }
.feature-grid article > p:last-child { margin: 0; color: var(--muted); }
.feature-grid .feature-accent > p:last-child { color: #e7edf6; }

.workflow { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 110px 0; border-top: 1px solid var(--line); }
.workflow ol { margin: 0; padding: 0; list-style: none; }
.workflow li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.workflow li > span { color: var(--red); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 1.1rem; }
.workflow h3 { margin: 0 0 7px; font-size: 1.2rem; }
.workflow li p { margin: 0; color: var(--muted); }

.gallery { padding: 110px 0; border-top: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); }
.gallery figcaption { padding: 14px 16px; color: var(--muted); font-size: .85rem; }

.release-note { margin: 20px 0 120px; padding: clamp(30px, 6vw, 72px); background: var(--paper); color: var(--ink); }
.release-note .eyebrow { color: #24528b; }
.release-note h2 { max-width: 880px; margin: 0; font-size: clamp(2.2rem, 5.4vw, 5.1rem); line-height: .96; letter-spacing: -.05em; }
.release-note > p:not(.eyebrow) { max-width: 760px; margin: 28px 0; color: #38404a; font-size: 1.05rem; }
.release-note a { font-weight: 800; }

footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 860px) {
  .site-header { min-height: 72px; }
  nav a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 48px; padding: 72px 0 88px; }
  .signal-card { align-self: auto; margin: 0; }
  .section-heading { display: block; }
  .section-heading .eyebrow { margin-bottom: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid article:last-child { border-bottom: 0; }
  .feature-grid .index { margin-bottom: 44px; }
  .workflow { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: min(calc(100% - 24px), var(--max)); }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .stage figcaption { align-items: flex-start; flex-direction: column; }
  .release-note { margin-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover, .button:focus-visible { translate: none; }
}
