:root {
  --bg: #11110f;
  --surface: #181815;
  --surface-2: #20201c;
  --text: #f4f1e8;
  --muted: #b8b1a4;
  --line: #373329;
  --accent: #a8ff60;
  --accent-ink: #17210d;
  --warm: #f0c56a;
  --shadow: rgba(0, 0, 0, 0.42);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(168, 255, 96, 0.08) 0%, rgba(17, 17, 15, 0) 280px),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.45;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
}

.container {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 22px;
}

.muted {
  color: var(--muted);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(55, 51, 41, 0.72);
  background: rgba(17, 17, 15, 0.78);
  backdrop-filter: blur(14px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  color: var(--text);
}

.brand-logo {
  width: 24px;
  height: 24px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav svg {
  display: block;
}

.hero {
  min-height: calc(100svh - 62px);
  display: flex;
  align-items: center;
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  font-weight: 880;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 740;
}

.btn:hover {
  border-color: rgba(168, 255, 96, 0.54);
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.hero-visual {
  min-width: 0;
}

.hero-shot,
.mini-shot,
.shot-card {
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 34px 90px var(--shadow);
}

.hero-shot {
  display: block;
}

.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  background: #071016;
}

.visual-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mini-shot {
  margin: 0;
  box-shadow: none;
}

.mini-shot picture,
.shot-card picture {
  display: block;
}

.mini-shot img {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: contain;
  background: #071016;
}

.mini-shot figcaption,
.shot-card figcaption {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-top: 1px solid rgba(244, 241, 232, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.shot-card figcaption strong {
  color: var(--text);
  font-size: 15px;
}

.shot-card figcaption span {
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

.section.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pipeline-step {
  min-height: 250px;
  padding: 22px 18px 24px;
  border-left: 1px solid var(--line);
}

.pipeline-step:first-child {
  border-left: 0;
}

.step-index {
  display: block;
  margin-bottom: 58px;
  color: var(--warm);
  font-family: var(--mono);
  font-size: 13px;
}

.pipeline-step p,
.proof-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 56px;
  align-items: start;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.proof-list > div {
  min-height: 168px;
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--line);
}

.proof-list > div:nth-child(odd) {
  padding-right: 26px;
  border-right: 1px solid var(--line);
}

.proof-list > div:nth-child(even) {
  padding-left: 26px;
}

.artifact-table {
  border-top: 1px solid var(--line);
}

.artifact-table > div {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.artifact-table code {
  color: var(--accent);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.artifact-table span {
  color: var(--muted);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.shot-card {
  margin: 0;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.shot-card.wide {
  grid-column: span 2;
}

.shot-card.small {
  max-width: 420px;
}

.shot-card img {
  width: 100%;
  height: auto;
  max-height: 620px;
  display: block;
  object-fit: contain;
  background: #f7f6f2;
}

.shot-card.wide img {
  background: #071016;
}

.shot-card.small img {
  background: #08080a;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.video-card {
  display: block;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.video-card:hover {
  text-decoration: none;
}

.video-thumb {
  position: relative;
  display: block;
}

.video-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #071016;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

.video-caption {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-top: 1px solid rgba(244, 241, 232, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.video-caption strong {
  color: var(--text);
  font-size: 15px;
}

.example-list {
  display: grid;
  gap: 22px;
}

.example {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 26px 24px 28px;
}

.example-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}

.example-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.example-head h3 {
  margin: 0;
  font-size: 22px;
}

.example-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warm);
  white-space: nowrap;
}

.example p.example-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
}

.example-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.example-videos .video-card {
  max-width: 440px;
  justify-self: center;
}

.example-skill {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.example-skill .pill {
  display: inline-block;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warm);
  margin-right: 8px;
}

.final {
  padding: 72px 0;
}

.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.final-inner .cta-row {
  margin-top: 0;
  justify-content: flex-end;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.sep {
  margin: 0 8px;
  color: rgba(184, 177, 164, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual,
  .pipeline-step,
  .proof-list > div,
  .artifact-table > div {
    animation: enter 650ms ease both;
  }

  .hero-visual {
    animation-delay: 120ms;
  }

  .pipeline-step:nth-child(2) {
    animation-delay: 60ms;
  }

  .pipeline-step:nth-child(3) {
    animation-delay: 120ms;
  }

  .pipeline-step:nth-child(4) {
    animation-delay: 180ms;
  }

  .pipeline-step:nth-child(5) {
    animation-delay: 240ms;
  }

  .hero-shot,
  .mini-shot,
  .shot-card,
  .video-card,
  .btn {
    transition: transform 180ms ease, border-color 180ms ease;
  }

  .hero-shot:hover,
  .mini-shot:hover,
  .shot-card:hover,
  .video-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
    border-color: rgba(168, 255, 96, 0.46);
  }

  .btn:hover {
    transform: translateY(-1px);
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    transform: none;
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-step {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .pipeline-step:first-child {
    border-top: 0;
  }

  .step-index {
    margin-bottom: 18px;
  }

  .proof-list,
  .shot-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .example-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shot-card.wide {
    grid-column: span 1;
  }

  .proof-list > div:nth-child(odd),
  .proof-list > div:nth-child(even) {
    padding: 20px 0;
    border-right: 0;
  }

  .artifact-table > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .final-inner {
    display: block;
  }

  .final-inner .cta-row {
    justify-content: flex-start;
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .header .container {
    min-height: 58px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .nav a[href="#artifacts"] {
    display: none;
  }

  .nav a[href="#screenshots"] {
    display: none;
  }

  .nav a[href="./developer-guide.md"] {
    display: none;
  }

  h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .hero-copy {
    max-width: calc(100vw - 48px);
  }

  h1,
  .lead {
    overflow-wrap: break-word;
  }

  .lead {
    font-size: 16px;
  }

  .hero-shot img {
    min-height: 210px;
  }

  .visual-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }
}
