:root {
  --ink: #101828;
  --muted: #526071;
  --line: #d9e2ec;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --navy: #172033;
  --blue: #127cc1;
  --sky: #e8f5ff;
  --green: #12805c;
  --green-soft: #e7f7ef;
  --amber: #b7791f;
  --amber-soft: #fff4d6;
  --red: #c24130;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(16, 24, 40, .13);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #eef2f7;
  color: #24364b;
  font-size: .94em;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 226, 236, .9);
  background: rgba(246, 248, 251, .94);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #ffffff;
  font-size: 15px;
}

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

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 44px;
  align-items: center;
}

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

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: .95;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 780;
  background: #ffffff;
}

.button.primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.button.light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--navy);
}

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

.hero-proof {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-proof span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.terminal-card {
  border-radius: 12px;
  background: #0b1220;
  color: #dbeafe;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  height: 42px;
  padding-left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #111827;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
}

.terminal-bar span:nth-child(2) {
  background: #f59e0b;
}

.terminal-bar span:nth-child(3) {
  background: #22c55e;
}

.terminal-card pre {
  padding: 22px;
  font-size: 14px;
  line-height: 1.65;
}

main section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.band {
  width: 100%;
  max-width: none;
  padding: 68px max(16px, calc((100% - 1180px) / 2));
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 28px;
}

.section-heading p,
.section-intro {
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.card {
  min-height: 184px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.mini-label {
  width: 34px;
  height: 28px;
  margin-bottom: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: start;
}

.loop {
  counter-reset: loop;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.loop li {
  list-style: none;
  padding: 16px 16px 16px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  position: relative;
}

.loop li::before {
  counter-increment: loop;
  content: counter(loop);
  position: absolute;
  left: 16px;
  top: 17px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.map-figure {
  margin: 34px 0 0;
}

.map-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud a {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
}

.skill-cloud a:hover {
  color: var(--ink);
  border-color: var(--blue);
}

.proof-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.proof-panel.dark {
  background: var(--navy);
  color: #ffffff;
}

.proof-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.proof-panel li + li {
  margin-top: 8px;
}

.proof-panel.dark code {
  background: rgba(255, 255, 255, .12);
  color: #dbeafe;
}

.scoreboard {
  display: grid;
  gap: 12px;
}

.score-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  gap: 12px;
  align-items: center;
}

.score-row .before {
  color: var(--red);
  font-weight: 850;
}

.score-row .after {
  color: var(--green);
  font-weight: 850;
}

.repo-map {
  border-radius: 12px;
  background: #0b1220;
  color: #dbeafe;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.repo-map pre {
  padding: 24px;
  font-size: 14px;
  line-height: 1.65;
}

.callout {
  padding: 30px;
  border-radius: 12px;
  background: var(--navy);
  color: #ffffff;
}

.callout p {
  color: #d4dfed;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.not-found {
  width: min(580px, 100%);
}

@media (max-width: 1020px) {
  .hero,
  .split,
  .evidence-layout,
  .grid.four,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

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

  .footer-inner,
  .actions {
    flex-direction: column;
  }
}
