:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5b6861;
  --subtle: #e4e9e6;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --charcoal: #202a25;
  --green: #2e7d5b;
  --teal: #1f8a8f;
  --gold: #b87917;
  --blue: #3867d6;
  --shadow: 0 24px 60px rgba(20, 30, 25, 0.12);
}

* {
  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;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 32, 27, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.header-action,
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
}

.header-action {
  padding: 0 16px;
  background: var(--charcoal);
  color: white;
}

.button {
  padding: 0 18px;
}

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

.button.secondary {
  border: 1px solid var(--subtle);
  background: white;
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(36px, 7vw, 80px);
  background:
    linear-gradient(120deg, rgba(46, 125, 91, 0.08), transparent 42%),
    linear-gradient(180deg, white, var(--wash));
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-copy p span {
  display: block;
}

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

.hero-visual {
  position: relative;
  min-height: 560px;
}

.document-preview {
  height: min(64vh, 660px);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 27, 0.12);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.document-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.score-plate {
  position: absolute;
  right: -10px;
  bottom: 36px;
  display: grid;
  width: 184px;
  height: 184px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: var(--charcoal);
  color: white;
  box-shadow: 0 20px 45px rgba(23, 32, 27, 0.25);
}

.score-plate span,
.score-plate small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.score-plate strong {
  font-size: 58px;
  line-height: 1;
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--subtle);
  border-top: 1px solid var(--subtle);
  border-bottom: 1px solid var(--subtle);
}

.system-strip div {
  min-height: 170px;
  padding: 30px clamp(20px, 4vw, 54px);
  background: white;
}

.system-strip span,
.section-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.system-strip strong {
  display: block;
  margin-top: 14px;
  font-size: 22px;
}

.system-strip p {
  max-width: 360px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.section-grid,
.score-section,
.packet-section,
.run-section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

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

.section-label {
  display: inline-block;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading > p:not(.section-label),
.run-section > div p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.tier-console {
  border: 1px solid var(--subtle);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.tier-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--subtle);
}

.tier-tab {
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--subtle);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.tier-tab:last-child {
  border-right: 0;
}

.tier-tab.active {
  background: var(--charcoal);
  color: white;
}

.tier-detail {
  min-height: 390px;
  padding: clamp(28px, 5vw, 48px);
}

.tier-detail > p {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.tier-detail h3 {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.tier-detail dl {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
}

.tier-detail div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--subtle);
}

.tier-detail dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.tier-detail dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.score-section {
  background: var(--charcoal);
  color: white;
}

.score-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.score-header h2 {
  max-width: 820px;
}

.score-section .section-label {
  color: #72d0a4;
}

.score-section .button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.score-layout {
  display: grid;
  grid-template-columns: 240px 220px minmax(360px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.score-ring {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, var(--charcoal) 0 54%, transparent 55%),
    conic-gradient(#72d0a4 calc(var(--score) * 1%), rgba(255, 255, 255, 0.15) 0);
}

.score-ring span {
  font-size: 64px;
  font-weight: 850;
  line-height: 1;
}

.score-ring small,
.score-metrics span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.score-metrics {
  display: grid;
  gap: 14px;
}

.score-metrics div {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 70px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.score-metrics strong {
  font-size: 30px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-item {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.35;
}

.check-item::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #72d0a4;
}

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

.packet-grid a {
  min-height: 158px;
  padding: 24px;
  background: white;
  transition: background 160ms ease, transform 160ms ease;
}

.packet-grid a:hover {
  background: var(--wash);
}

.packet-grid span {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.packet-grid strong {
  display: block;
  margin-top: 46px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.run-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  background: var(--wash);
}

pre {
  min-width: 0;
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  background: #111815;
  color: #dff7e9;
  box-shadow: var(--shadow);
}

code {
  display: block;
  padding: clamp(22px, 4vw, 34px);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--subtle);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .hero,
  .section-grid,
  .run-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .score-plate {
    right: 18px;
  }

  .system-strip,
  .score-layout {
    grid-template-columns: 1fr;
  }

  .score-metrics,
  .packet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .header-action {
    padding: 0 12px;
  }

  .hero {
    padding-top: 40px;
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr);
    padding-right: 24px;
    padding-left: 24px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.04;
    max-width: 100%;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy p {
    width: 100%;
    max-width: 100%;
    font-size: 17px;
  }

  .document-preview {
    width: 100%;
    height: 430px;
    min-height: 430px;
  }

  .score-plate {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 128px;
    margin-top: 14px;
    border-radius: 8px;
  }

  .tier-tabs {
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    overflow-x: auto;
  }

  .tier-detail div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .score-header {
    display: grid;
    align-items: start;
  }

  .score-metrics,
  .check-list,
  .packet-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
