:root {
  --ink: #111213;
  --ink-soft: #2c302e;
  --muted: #626a64;
  --paper: #fbfaf7;
  --paper-2: #f2f3ef;
  --line: #deded9;
  --green: #2c9a50;
  --red: #d05b37;
  --amber: #d48a24;
  --violet: #6267bd;
  --focus: #0f7a7a;
  --shadow: 0 24px 80px rgba(17, 18, 19, 0.18);
}

* {
  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;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.site-footer,
.cta-section {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 12px;
}

.nav-links {
  gap: clamp(16px, 3vw, 32px);
  font-size: 14px;
  font-weight: 700;
}

.header-action,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.header-action {
  padding: 0 18px;
  border: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 132px clamp(18px, 5vw, 72px) 94px;
  color: #fff;
  background: #151716;
}

.hero-visual,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-visual {
  background-image: url("assets/report-preview.svg");
  background-size: max(1180px, 102vw) auto;
  background-repeat: no-repeat;
  background-position: 50% 52%;
  opacity: 0.82;
  transform: scale(1.04);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(17, 18, 19, 0.94) 0%, rgba(17, 18, 19, 0.74) 38%, rgba(17, 18, 19, 0.32) 100%),
    linear-gradient(0deg, rgba(17, 18, 19, 0.58) 0%, rgba(17, 18, 19, 0.08) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #93e0a8;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 13vw, 156px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 28px;
  color: #e6ebe6;
  font-size: clamp(18px, 2.3vw, 24px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  padding: 0 20px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
}

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

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.68);
}

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

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  min-height: 142px;
  padding: 28px clamp(18px, 4vw, 44px);
  background: var(--paper);
}

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

.signal-strip strong {
  margin-bottom: 10px;
  font-size: 18px;
}

.signal-strip span {
  color: var(--muted);
  max-width: 360px;
}

.section {
  padding: clamp(72px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(930px, 100%);
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow),
.report-intro p:not(.eyebrow),
.workflow-copy p:not(.eyebrow),
.cta-section p {
  color: var(--muted);
  font-size: 19px;
  max-width: 780px;
}

.compact {
  margin-bottom: 28px;
}

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

.feature-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 50px;
  color: var(--focus);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-card p,
.diagnostic-row p {
  color: var(--muted);
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: #1d1f20;
}

.workflow-copy code {
  padding: 2px 7px;
  border-radius: 6px;
  color: #dff4e3;
  background: #2b342d;
}

.workflow-copy p:not(.eyebrow) {
  color: #cfd6d0;
}

.code-window {
  overflow: hidden;
  border: 1px solid #3b403d;
  border-radius: 8px;
  background: #101211;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid #2d302e;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #626a64;
}

.window-bar span:nth-child(1) {
  background: var(--red);
}

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

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

pre {
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  color: #eff7ec;
  font-size: 15px;
}

.diagnostics {
  background: var(--paper-2);
}

.diagnostic-list {
  border-top: 1px solid #cfd3cc;
}

.diagnostic-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid #cfd3cc;
}

.diagnostic-row span {
  color: var(--focus);
  font-weight: 900;
}

.report-section {
  padding: clamp(72px, 10vw, 130px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.report-intro {
  width: min(880px, 100%);
  margin-bottom: 34px;
}

.report-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.cta-section {
  justify-content: space-between;
  gap: 32px;
  padding: clamp(54px, 8vw, 88px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f5ee;
}

.cta-section h2 {
  max-width: 780px;
}

.cta-section p {
  margin-bottom: 0;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .signal-strip,
  .feature-grid,
  .workflow-band {
    grid-template-columns: 1fr;
  }

  .workflow-band {
    gap: 34px;
  }

  .diagnostic-row {
    grid-template-columns: 48px 1fr;
  }

  .diagnostic-row p {
    grid-column: 2;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 690px;
    padding: 112px 18px 70px;
  }

  .hero-visual {
    background-size: 1120px auto;
    background-position: 43% 44%;
    opacity: 0.72;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(17, 18, 19, 0.96) 0%, rgba(17, 18, 19, 0.78) 74%, rgba(17, 18, 19, 0.5) 100%),
      linear-gradient(0deg, rgba(17, 18, 19, 0.68) 0%, rgba(17, 18, 19, 0.05) 44%);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .signal-strip div {
    min-height: 118px;
  }

  .feature-card {
    min-height: 220px;
  }

  .feature-kicker {
    margin-bottom: 32px;
  }

  .diagnostic-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .diagnostic-row p {
    grid-column: auto;
  }

  pre {
    padding: 18px;
    font-size: 13px;
  }
}
