:root {
  color-scheme: dark;
  --bg: #0c100d;
  --panel: #151b17;
  --panel-strong: #1b231e;
  --line: #303a33;
  --cream: #f2efe5;
  --muted: #a7afa8;
  --lime: #a9d657;
  --lime-soft: #d5ecaa;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 4%, #1b2719 0, transparent 30rem),
    radial-gradient(circle at 88% 32%, #182118 0, transparent 27rem),
    var(--bg);
  color: var(--cream);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(115deg, transparent 48%, rgb(169 214 87 / 3%) 48%, transparent 70%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 5px;
  background: var(--lime);
  color: #10150f;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

a { color: inherit; }
a:focus-visible {
  outline: 3px solid var(--lime-soft);
  outline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #789943;
  background: #1d281b;
  color: var(--lime);
  font: 800 15px Georgia, serif;
}
.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand strong,
.brand small { display: block; }
.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.beta-pill,
.state {
  border: 1px solid #56683c;
  border-radius: 999px;
  background: rgb(169 214 87 / 7%);
  color: var(--lime-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.beta-pill { padding: 8px 12px; }
.text-link {
  color: var(--cream);
  font-size: 13px;
  font-weight: 750;
  text-decoration-color: var(--lime);
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--lime-soft); }
.muted-link { color: var(--muted); }
.link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .74fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  min-height: 680px;
  padding-block: 76px;
}
.eyebrow {
  margin: 0;
  color: var(--lime);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .19em;
}
h1,
h2 {
  font-family: Georgia, serif;
  letter-spacing: -.045em;
}
h1 {
  margin: 18px 0 24px;
  font-size: clamp(56px, 7vw, 92px);
  line-height: .92;
}
h1 em,
h2 em {
  color: var(--lime);
  font-weight: 400;
}
.hero-intro {
  max-width: 650px;
  margin: 0;
  color: #c1c8c1;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  border-color: var(--lime);
  background: var(--lime);
  color: #10150f;
}
.button.primary:hover { background: #badf73; }
.button.secondary { background: rgb(21 27 23 / 74%); }
.button.secondary:hover { border-color: var(--lime); }
.beta-note {
  max-width: 650px;
  margin: 25px 0 0;
  border-left: 2px solid var(--lime);
  padding-left: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.beta-note strong { color: var(--cream); }
.session-note {
  max-width: 650px;
  margin: 14px 0 0;
  color: #c1c8c1;
  font-size: 13px;
  line-height: 1.6;
}
.session-note a {
  color: var(--lime-soft);
  font-weight: 800;
  text-underline-offset: 4px;
}

.control-preview {
  position: relative;
  border: 1px solid #3a463d;
  background: rgb(19 26 21 / 92%);
  box-shadow: 0 32px 90px rgb(0 0 0 / 45%);
}
.control-preview::before {
  content: "";
  position: absolute;
  inset: -12px 12px 12px -12px;
  z-index: -1;
  border: 1px solid rgb(169 214 87 / 18%);
}
.preview-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.preview-heading small { font-size: 9px; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(169 214 87 / 10%);
}
.world-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 20px;
}
.card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
}
.world-card strong { font: 700 22px Georgia, serif; }
.state { flex: 0 0 auto; padding: 6px 9px; }
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}
.preview-grid div { padding: 20px; }
.preview-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.preview-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.preview-grid dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.preview-grid dd { margin: 0; font-size: 12px; font-weight: 700; }

.capabilities,
.how-it-works {
  border-top: 1px solid var(--line);
  padding-block: 94px;
}
.section-lead {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  column-gap: 80px;
  align-items: end;
}
.section-lead .eyebrow { grid-column: 1 / -1; }
h2 {
  margin: 14px 0 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: .98;
}
.section-lead > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border: 1px solid var(--line);
  background: rgb(21 27 23 / 72%);
}
.capability-grid article {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--line);
}
.capability-grid article:last-child { border-right: 0; }
.feature-number,
.step-number {
  color: var(--lime);
  font: 700 14px Georgia, serif;
}
h3 { margin: 44px 0 12px; font: 700 24px Georgia, serif; }
.capability-grid p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-lead.compact { display: block; max-width: 700px; }
.section-lead.compact > p:last-child { margin-top: 20px; }
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 54px 0 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  min-height: 230px;
  background: var(--panel);
  padding: 30px;
}
.steps h3 { margin: 0 0 12px; }

.beta-callout {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  align-items: center;
  margin-block: 28px 96px;
  border: 1px solid #56683c;
  background: linear-gradient(135deg, rgb(28 40 25 / 96%), rgb(20 27 22 / 96%));
  padding: clamp(30px, 5vw, 58px);
}
.beta-callout h2 { font-size: clamp(36px, 4vw, 52px); }
.beta-callout p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}
.callout-actions {
  display: grid;
  gap: 20px;
  justify-items: stretch;
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 130px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-brand { color: var(--cream); }
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 12px; }
.footer-brand .brand-logo { width: 36px; height: 36px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .control-preview { max-width: 600px; }
  .section-lead { grid-template-columns: 1fr; gap: 24px; }
  .section-lead > p:last-child { margin-top: 20px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-grid article:last-child { border-bottom: 0; }
  .capability-grid h3 { margin-top: 26px; }
  .beta-callout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer { width: min(100% - 32px, 1180px); }
  .site-header { min-height: 82px; }
  .beta-pill { display: none; }
  .hero { gap: 54px; padding-block: 60px; }
  h1 { font-size: clamp(48px, 16vw, 68px); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .control-preview::before { display: none; }
  .world-card { align-items: flex-start; margin: 14px; }
  .world-card strong { font-size: 18px; }
  .state { font-size: 8px; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-grid div:nth-child(odd) { border-right: 0; }
  .preview-grid div { border-bottom: 1px solid var(--line); }
  .preview-grid div:last-child { border-bottom: 0; }
  .capabilities,
  .how-it-works { padding-block: 72px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; padding: 25px 20px; }
  .beta-callout { margin-bottom: 72px; }
  footer { display: grid; gap: 20px; padding-block: 30px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
