:root {
  color-scheme: dark;
  --ink: #f7f7f2;
  --muted: #b9b8ad;
  --surface: #171a1f;
  --surface-2: #20252b;
  --line: #343b44;
  --lime: #d8ff63;
  --cyan: #8cecff;
  --orange: #ffad66;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgb(140 236 255 / 10%), transparent 28rem),
    radial-gradient(circle at 8% 18%, rgb(216 255 99 / 8%), transparent 24rem),
    #0d0f12;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--cyan); text-underline-offset: 0.22em; }
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 10; background: var(--lime); color: #0d0f12; padding: 0.7rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header, main, footer { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { min-height: 5.2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); font-size: 1.05rem; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border-radius: 0.55rem; background: var(--lime); color: #0d0f12; font-size: 0.72rem; letter-spacing: 0.04em; }
nav { display: flex; gap: clamp(0.8rem, 3vw, 2rem); }
nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }

.hero { min-height: 42rem; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); padding: 5rem 0; }
.eyebrow { margin: 0 0 0.8rem; color: var(--lime); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.05; letter-spacing: -0.045em; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.3rem, 8vw, 6.7rem); max-width: 10ch; }
h2 { margin-bottom: 1.1rem; font-size: clamp(2.1rem, 4.5vw, 4rem); }
h3 { margin-bottom: 0.7rem; font-size: 1.35rem; }
.lede { max-width: 62ch; color: #d8d8d0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.boundary, .disclosure, .metric-boundary { border-left: 3px solid var(--orange); padding-left: 1rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: 0.7rem 1.1rem; border: 1px solid var(--line); border-radius: 0.7rem; font-weight: 800; text-decoration: none; }
.button-primary { background: var(--lime); border-color: var(--lime); color: #0d0f12; }
.button-primary:hover { background: var(--cyan); border-color: var(--cyan); color: #0d0f12; }
.button-secondary { color: var(--ink); background: rgb(255 255 255 / 3%); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 8% -8% -8% 8%; border: 1px solid var(--line); border-radius: 1.5rem; z-index: -1; }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: 1.25rem; box-shadow: 0 2rem 5rem rgb(0 0 0 / 40%); }

.section { padding: 6rem 0; border-top: 1px solid var(--line); }
.workflow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; margin-top: 2.5rem; }
.workflow-grid article { min-height: 15rem; padding: 1.4rem; background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 1rem; }
.workflow-grid article span { display: inline-block; margin-bottom: 3.2rem; color: var(--cyan); font: 700 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow-grid p { color: var(--muted); font-size: 0.92rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.demo-section video { display: block; width: 100%; margin-top: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: #060708; box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 35%); }
.alpha-section { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 8vw, 7rem); }
.alpha-section > div > p:not(.eyebrow) { max-width: 64ch; color: var(--muted); }
.alpha-actions { display: grid; align-content: start; gap: 0.9rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.alpha-actions p { margin: 0.5rem 0 0; font-size: 0.88rem; }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 4rem; border-top: 1px solid var(--line); color: var(--muted); }
footer div { display: flex; flex-wrap: wrap; gap: 1.5rem; }

@media (max-width: 900px) {
  .hero, .alpha-section { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .hero-visual { max-width: 38rem; }
  .hero-visual::before { inset: 6% 0 -6% 6%; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header { align-items: flex-start; padding: 1rem 0; }
  nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem 0.8rem; }
  nav a { font-size: 0.78rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); overflow-wrap: anywhere; }
  h2, h3, p, a { overflow-wrap: anywhere; }
  img, video { max-width: 100%; }
  .hero { min-height: auto; padding: 3.5rem 0; }
  .section { padding: 4rem 0; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: auto; }
  .workflow-grid article span { margin-bottom: 1.5rem; }
  .section-heading, footer { align-items: flex-start; flex-direction: column; }
  .actions, .alpha-actions { min-width: 0; }
  .button { width: 100%; max-width: 100%; white-space: normal; }
}

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