:root {
  --ink: #17211b;
  --muted: #5f6f65;
  --paper: #f7f4ec;
  --wash: #ebe5d8;
  --panel: #fffdf7;
  --moss: #3b684c;
  --mint: #cae7c5;
  --amber: #d7973f;
  --rust: #9b4a34;
  --line: rgba(23, 33, 27, 0.14);
  --shadow: 0 24px 70px rgba(31, 45, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

main {
  overflow: hidden;
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 6rem) 0 3rem;
}

.hero__copy {
  max-width: 700px;
}

.kicker {
  margin: 0 0 0.9rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--moss);
}

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

h1 {
  margin-bottom: 1rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4.8rem, 16vw, 12rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
  line-height: 1.2;
}

.lede {
  max-width: 620px;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.button:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

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

.button--ghost {
  background: transparent;
}

.evidence-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(202, 231, 197, 0.72), rgba(255, 253, 247, 0.92) 46%, rgba(215, 151, 63, 0.22)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.evidence-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(23, 33, 27, 0.06), rgba(23, 33, 27, 0.06) 1px, transparent 1px, transparent 12px);
  mix-blend-mode: multiply;
}

.browser-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

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

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

.browser-bar span:nth-child(3) {
  background: var(--moss);
}

.browser-bar strong {
  margin-left: auto;
  font-weight: 700;
}

.scan-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  padding: clamp(1rem, 4vw, 2rem);
}

.scan-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid rgba(23, 33, 27, 0.12);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.76);
  padding: 1rem;
}

.scan-row span,
.phase-list span,
.score-card small {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.scan-row strong {
  font-size: clamp(0.94rem, 2vw, 1.08rem);
}

.scan-row--good {
  border-left: 5px solid var(--moss);
}

.scan-row--warn {
  border-left: 5px solid var(--amber);
}

.score-card {
  margin-top: 0.8rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.score-card strong {
  display: block;
  margin: 0.2rem 0 0.45rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 0.9;
}

.score-card p {
  margin: 0;
  color: rgba(247, 244, 236, 0.76);
}

.workflow,
.roadmap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.workflow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.workflow article {
  border-top: 5px solid var(--moss);
  background: var(--panel);
  padding: 1.25rem;
  box-shadow: 0 10px 40px rgba(31, 45, 36, 0.08);
}

.tag {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--moss);
}

.workflow p,
.roadmap p {
  color: var(--muted);
}

.roadmap {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.roadmap__intro {
  position: sticky;
  top: 2rem;
}

.phase-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-list li {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 1.35rem 3.8rem;
}

.phase-list li > span {
  position: absolute;
  left: 0;
  top: 1.25rem;
  display: grid;
  width: 3rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
}

.phase-list strong {
  display: block;
  margin: 0.2rem 0;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.1;
}

.phase-list p {
  margin-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

  .hero {
    min-height: auto;
  }

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

  .roadmap__intro {
    position: static;
  }
}

@media (max-width: 520px) {
  .hero,
  .workflow,
  .roadmap,
  footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(4.1rem, 28vw, 6rem);
  }

  .scan-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .evidence-panel {
    animation: settle 700ms ease-out both;
  }

  @keyframes settle {
    from {
      transform: translateY(16px);
    }
    to {
      transform: translateY(0);
    }
  }
}
