:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5e6b78;
  --line: #d8dee6;
  --paper: #f6f2ea;
  --surface: #ffffff;
  --teal: #087e8b;
  --green: #3d8b5f;
  --coral: #c7533f;
  --gold: #b7791f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(8, 126, 139, 0.12), transparent 32%),
    linear-gradient(240deg, rgba(199, 83, 63, 0.1), transparent 36%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(246, 242, 234, 0.88);
  border-bottom: 1px solid rgba(23, 32, 42, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

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

nav a {
  text-decoration: none;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 36px 0 64px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.52);
}

.product-shot {
  border: 1px solid rgba(23, 32, 42, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(23, 32, 42, 0.16);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: var(--green);
  margin-right: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric,
.panel,
.highlight-box,
.architecture-map > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric {
  min-height: 110px;
  padding: 14px;
  border-top: 4px solid var(--teal);
}

.metric.green {
  border-top-color: var(--green);
}

.metric.coral {
  border-top-color: var(--coral);
}

.metric b {
  display: block;
  font-size: 30px;
}

.metric span,
.panel span {
  color: var(--muted);
  font-size: 13px;
}

.job-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border-left: 5px solid var(--teal);
  background: #f8fafc;
}

.job-row.running {
  border-left-color: var(--gold);
}

.job-row.failed {
  border-left-color: var(--coral);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.timeline i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.stats-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip span {
  color: var(--muted);
  margin-top: 3px;
}

.section {
  padding: 96px 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.kicker) {
  color: var(--muted);
  line-height: 1.6;
}

.media-section {
  scroll-margin-top: 72px;
}

.demo-video-frame {
  margin-top: 28px;
  border: 1px solid rgba(23, 32, 42, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 20px 64px rgba(23, 32, 42, 0.18);
}

.demo-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 72 / 49;
  background: #111827;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--line);
}

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

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.panel {
  min-height: 230px;
  padding: 20px;
}

.panel p,
.architecture-map p,
.highlight-box p,
.runbook p {
  color: var(--muted);
  line-height: 1.6;
}

.architecture-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.architecture-map > div {
  padding: 20px;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 32px;
  align-items: start;
}

.steps {
  margin: 20px 0 0;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.highlight-box {
  padding: 24px;
  border-top: 5px solid var(--teal);
}

.runbook {
  padding-bottom: 96px;
}

pre {
  overflow-x: auto;
  margin: 24px 0 18px;
  padding: 20px;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 8px;
  background: #1b1f24;
  color: #f5f7fa;
}

pre code {
  color: inherit;
}

@media (max-width: 960px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .product-shot {
    order: -1;
  }

  .scenario-grid,
  .architecture-map,
  .screenshot-grid,
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  main {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  h1 {
    font-size: 40px;
  }

  .dashboard-grid,
  .scenario-grid,
  .architecture-map,
  .screenshot-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 0;
  }
}
