:root {
  color-scheme: dark;
  --ink: #f7f4ec;
  --muted: #b7b0a3;
  --soft: rgba(247, 244, 236, 0.68);
  --line: rgba(247, 244, 236, 0.18);
  --bg: #11110f;
  --panel: #1b1a17;
  --accent: #6ee7b7;
  --amber: #f2c16d;
  --blue: #8ab4ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(247, 244, 236, 0.12);
  background: rgba(17, 17, 15, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  box-shadow: 7px 7px 0 rgba(242, 193, 109, 0.8);
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
footer a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  padding: 130px clamp(20px, 5vw, 72px) 86px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

#spec-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.94), rgba(17, 17, 15, 0.55) 48%, rgba(17, 17, 15, 0.2)),
    radial-gradient(circle at 76% 24%, rgba(110, 231, 183, 0.18), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(138, 180, 255, 0.16), transparent 32%);
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.94;
}

h1 {
  max-width: 10ch;
  font-size: clamp(58px, 11vw, 150px);
}

h2 {
  max-width: 12ch;
  font-size: clamp(40px, 7vw, 96px);
}

.lede {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: var(--soft);
  font-size: clamp(18px, 2.2vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.commands button:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 244, 236, 0.42);
}

.primary {
  background: var(--ink);
  color: #13120f;
}

.secondary {
  background: rgba(247, 244, 236, 0.07);
}

.hero-visual {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: 56px;
  width: min(43vw, 620px);
  color: rgba(247, 244, 236, 0.82);
  opacity: 0.92;
}

.artifact-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.artifact-map span {
  border: 1px solid rgba(247, 244, 236, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(27, 26, 23, 0.64);
  color: var(--soft);
  font-size: 13px;
}

pre {
  margin: 0;
  overflow: hidden;
  font: 15px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: rgba(247, 244, 236, 0.78);
  text-shadow: 0 0 26px rgba(110, 231, 183, 0.22);
}

section:not(.hero) {
  padding: clamp(78px, 12vw, 150px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.proof {
  background: #f7f4ec;
  color: #171611;
}

.proof .section-kicker {
  color: #13785d;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: rgba(23, 22, 17, 0.16);
}

.proof-grid article {
  min-height: 220px;
  padding: clamp(24px, 4vw, 42px);
  background: #f7f4ec;
}

.proof-grid strong {
  display: block;
  font-size: clamp(21px, 2.2vw, 30px);
}

.proof-grid p,
.output p,
.install p {
  max-width: 620px;
  color: rgba(23, 22, 17, 0.68);
  font-size: 18px;
}

.output {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
  background: #19201d;
}

.output p,
.install p {
  color: var(--soft);
}

.levels {
  display: grid;
  gap: 12px;
}

.levels div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  min-height: 78px;
  border-top: 1px solid var(--line);
}

.levels span {
  color: var(--accent);
  font-weight: 780;
}

.levels strong {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 760;
}

.agents {
  background: #11110f;
}

.agent-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 56px 0 0;
  list-style: none;
  background: var(--line);
}

.agent-list li {
  min-height: 92px;
  padding: 22px;
  background: var(--bg);
  color: var(--soft);
  transition: color 180ms ease, background 180ms ease;
}

.agent-list li:hover {
  background: #1b1a17;
  color: var(--ink);
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
  background: #eef1e8;
  color: #151511;
}

.install .section-kicker {
  color: #1c725c;
}

.commands {
  display: grid;
  gap: 10px;
}

.commands button {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(21, 21, 17, 0.14);
  border-radius: 8px;
  padding: 0 18px;
  background: #151511;
  color: var(--ink);
  font: 14px/1.2 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.commands button.copied {
  background: #1c725c;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #11110f;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 58px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    order: 2;
    width: 100%;
    margin-top: 32px;
  }

  .artifact-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid,
  .output,
  .install,
  .agent-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(52px, 16vw, 86px);
  }

  h2 {
    font-size: clamp(38px, 12vw, 68px);
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 62px;
  }

  .brand {
    font-size: 14px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .button {
    min-width: 132px;
  }

  .artifact-map span {
    padding: 9px;
    font-size: 12px;
  }

  pre {
    display: none;
  }

  section:not(.hero) {
    padding-left: 18px;
    padding-right: 18px;
  }
}
