:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5b6872;
  --line: #d8e1e7;
  --paper: #f7f8f6;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --orange: #c2410c;
  --blue: #1d4ed8;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 225, 231, 0.85);
  background: rgba(247, 248, 246, 0.9);
  backdrop-filter: blur(14px);
}

.topbar div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar span,
.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

nav a,
.button {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.button.primary {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: clamp(36px, 7vw, 96px) clamp(18px, 6vw, 84px);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(194, 65, 12, 0.16), transparent 28%),
    var(--paper);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.lede {
  max-width: 760px;
  color: #34434d;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.metric span {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.metric label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.status-pill {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  text-align: center;
}

.section {
  padding: clamp(42px, 7vw, 92px) clamp(18px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.product-strip {
  background: #ffffff;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

figure {
  margin: 0;
}

.result-hero figure,
.gallery figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.result-hero img,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 800;
}

.result-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.result-metrics article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f6;
}

.result-metrics span {
  display: block;
  color: var(--orange);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.result-metrics strong,
.result-metrics small {
  display: block;
  margin-top: 8px;
}

.result-metrics small {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.media-section {
  background: #ffffff;
}

.video-panel {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin-bottom: 18px;
}

video {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #172026;
  box-shadow: var(--shadow);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stage-card,
.scenario-list article,
.architecture article {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stage-card strong {
  display: block;
  margin-bottom: 8px;
}

.stage-card .number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 800;
}

.stage-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 0;
}

.stage-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-card dd {
  margin: 0;
  font-weight: 800;
}

.scenario-list,
.architecture,
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.architecture {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scenario-list p,
.architecture p {
  color: var(--muted);
  line-height: 1.55;
}

.deliverable-grid article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.deliverable-grid span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.code-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  color: #ecfeff;
  background: #172026;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (max-width: 980px) {
  .hero,
  .result-hero,
  .stage-grid,
  .architecture,
  .scenario-list,
  .gallery,
  .screenshot-grid,
  .deliverable-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .result-hero,
  .stage-grid,
  .architecture,
  .scenario-list,
  .gallery,
  .screenshot-grid,
  .deliverable-grid,
  .signal-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }
}
