:root {
  color-scheme: light;
  --ink: #10182b;
  --ink-soft: #273147;
  --muted: #697083;
  --paper: #f5f3ee;
  --paper-deep: #ece9e1;
  --white: #fffefd;
  --line: #d8d5ce;
  --accent: #d7ff62;
  --accent-strong: #b9e539;
  --violet: #5a53d6;
  --coral: #ff826d;
  --cyan: #72d7e7;
  --gold: #f2c85b;
  --shadow: 0 24px 70px rgba(23, 28, 50, 0.12);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(16, 24, 43, 0.075) 0.65px, transparent 0.65px);
  background-size: 8px 8px;
  content: "";
  pointer-events: none;
  opacity: 0.38;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 86px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand svg {
  color: var(--ink);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--violet);
}

nav .nav-cta {
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}

nav .nav-cta:hover {
  background: var(--ink);
  color: var(--white);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 650px;
  margin: 0 auto;
  padding: 6.5rem 0 5.25rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(4rem, 9vw, 8rem);
  align-items: center;
}

.eyebrow {
  display: flex;
  margin: 0 0 1.7rem;
  align-items: center;
  gap: 0.7rem;
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.section h2,
.method-section h2,
.submit-section h2 {
  margin: 0;
  font-size: clamp(3.2rem, 6.2vw, 6rem);
  font-weight: 760;
  letter-spacing: -0.072em;
  line-height: 0.96;
}

.hero h1 em {
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 700px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  margin-top: 2.25rem;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

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

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

.button-primary:hover {
  background: var(--violet);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.hero-facts {
  display: flex;
  margin: 2rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  gap: 1.6rem;
  list-style: none;
}

.hero-facts li::before {
  margin-right: 0.5rem;
  color: var(--violet);
  content: "✓";
}

.score-preview {
  position: relative;
  padding: 1.6rem;
  border: 1px solid rgba(16, 24, 43, 0.85);
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--white);
  transform: rotate(1.2deg);
}

.score-preview::before {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(16, 24, 43, 0.38);
  border-radius: 50%;
  content: "";
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aeb4c3;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(215, 255, 98, 0.1);
  content: "";
}

.preview-score {
  display: flex;
  margin-top: 2.3rem;
  align-items: baseline;
}

.score-number {
  font-size: clamp(4.8rem, 9vw, 7.4rem);
  font-weight: 760;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.score-total {
  margin-left: 0.5rem;
  color: #9097a8;
  font-size: 0.85rem;
}

.preview-grade {
  margin-left: auto;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-style: italic;
}

.score-rule {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 1.5rem;
  border: 0;
  border-radius: 999px;
  background: #353c50;
  overflow: hidden;
  appearance: none;
}

.score-rule::-webkit-progress-bar {
  border-radius: inherit;
  background: #353c50;
}

.score-rule::-webkit-progress-value,
.score-rule::-moz-progress-bar {
  border-radius: inherit;
  background: var(--accent);
}

.preview-name {
  min-height: 3.1rem;
  margin: 0.9rem 0 1.7rem;
  color: #d6d9e0;
  font-size: 0.88rem;
}

.preview-metrics {
  display: grid;
  padding: 1rem 0;
  border-top: 1px solid #333b50;
  border-bottom: 1px solid #333b50;
  grid-template-columns: 0.7fr 0.7fr 1.4fr;
}

.preview-metrics div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.preview-metrics span {
  color: #81899b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-metrics strong {
  font-size: 0.82rem;
  font-weight: 650;
}

.preview-note {
  margin: 1rem 0 0;
  color: #9aa1b0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.problem-strip {
  display: grid;
  padding: 2rem max(24px, calc((100% - var(--max-width)) / 2));
  background: var(--accent);
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.problem-strip p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 720;
  letter-spacing: -0.025em;
}

.problem-strip p:last-child {
  text-align: right;
}

.problem-strip > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-style: italic;
}

.section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 8rem 0;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 8rem;
  align-items: end;
}

.section h2,
.method-section h2,
.submit-section h2 {
  font-size: clamp(3rem, 5vw, 5.1rem);
}

.section-intro > p {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.category-grid {
  display: grid;
  margin-top: 5rem;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  position: relative;
  min-height: 360px;
  padding: 1.5rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.category-card::before {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--card-color);
  content: "";
  opacity: 0.32;
}

.safety-card { --card-color: var(--coral); }
.legibility-card { --card-color: var(--violet); }
.economics-card { --card-color: var(--gold); }
.discoverability-card { --card-color: var(--cyan); }

.category-heading {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-index {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.category-card h3 {
  margin: 3.8rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.category-signal {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.category-signal span {
  width: 7px;
  height: 7px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--card-color);
  flex: 0 0 auto;
}

.method-section {
  display: grid;
  padding: 7rem max(24px, calc((100% - var(--max-width)) / 2));
  background: var(--ink);
  color: var(--white);
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(5rem, 10vw, 10rem);
}

.eyebrow.light {
  color: var(--accent);
}

.method-copy > p:last-child {
  max-width: 510px;
  margin-top: 2rem;
  color: #aeb4c2;
}

.method-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #394157;
  list-style: none;
}

.method-list li {
  display: grid;
  padding: 1.45rem 0;
  border-bottom: 1px solid #394157;
  grid-template-columns: 60px 1fr;
  align-items: start;
}

.method-list li > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.method-list strong {
  font-size: 1.02rem;
}

.method-list p {
  margin: 0.3rem 0 0;
  color: #929aab;
  font-size: 0.84rem;
}

.leaderboard-section {
  padding-bottom: 9rem;
}

.leaderboard-intro {
  align-items: end;
}

.data-note {
  display: flex;
  padding-bottom: 0.5rem;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted);
  font-size: 0.78rem;
}

.data-note strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.table-frame {
  margin-top: 4rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow-x: auto;
}

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

table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: rgba(90, 83, 214, 0.055);
}

.rank-cell {
  width: 52px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.server-cell {
  width: 31%;
  min-width: 280px;
}

.server-cell strong,
.server-cell span {
  display: block;
}

.server-cell strong {
  font-size: 0.84rem;
  font-weight: 720;
}

.server-cell span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.score-cell strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.score-cell span,
.category-cell span {
  margin-left: 0.15rem;
  color: var(--muted);
  font-size: 0.58rem;
}

.grade {
  display: inline-grid;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 700;
}

.grade-a, .grade-b { color: #27713d; }
.grade-c { color: #8a6700; }
.grade-d { color: #b04d34; }
.grade-f { color: #bc3f47; }

.category-cell {
  font-variant-numeric: tabular-nums;
}

.category-cell strong {
  font-size: 0.76rem;
}

.date-cell {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.short-label {
  display: none;
}

.leaderboard-footnote {
  max-width: 800px;
  margin: 1rem 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.submit-section {
  display: grid;
  padding: 7.5rem max(24px, calc((100% - var(--max-width)) / 2));
  background: var(--violet);
  color: var(--white);
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(4rem, 10vw, 10rem);
  align-items: start;
}

.submit-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: #d7d5f3;
}

.submit-copy > p:nth-of-type(2) {
  margin-top: 2rem;
}

.submit-promise {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-size: 0.86rem;
}

.form-card {
  min-height: 500px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 25px 70px rgba(26, 20, 91, 0.28);
  color: var(--ink);
}

.field + .field {
  margin-top: 1.6rem;
}

.field label {
  display: flex;
  margin-bottom: 0.55rem;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 750;
}

.field label span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 56px;
  padding: 0 1rem;
  border: 1px solid #c9cad1;
  border-radius: 4px;
  background: #fafafa;
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(90, 83, 214, 0.12);
}

.field input[aria-invalid="true"] {
  border-color: #bb3541;
}

.field small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.form-button {
  width: 100%;
  margin-top: 2rem;
  justify-content: space-between;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.form-button:hover {
  background: var(--violet);
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-arrow {
  color: var(--accent);
  font-size: 1.1rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: #a22d3b;
  font-size: 0.72rem;
}

.form-success {
  padding-top: 1rem;
}

.success-mark {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 1.3rem;
  font-weight: 800;
  place-items: center;
}

.success-kicker {
  margin: 2.4rem 0 0.5rem;
  color: var(--violet);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-success h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.form-success > p:not(.success-kicker):not(.reference) {
  color: var(--muted);
}

.reference {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
}

.text-button {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--violet);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer {
  display: grid;
  padding: 3rem max(24px, calc((100% - var(--max-width)) / 2));
  background: #0b1120;
  color: #8f97a8;
  font-size: 0.75rem;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .score-preview {
    width: min(100%, 560px);
    transform: none;
  }

  .section-intro,
  .method-section,
  .submit-section {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

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

  .category-card {
    min-height: 310px;
  }

  .section-intro > p {
    max-width: 650px;
  }

  .data-note {
    align-items: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .site-footer p {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(calc(100% - 32px), var(--max-width));
    min-height: 72px;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  nav .nav-cta {
    padding: 0.48rem 0.8rem;
    font-size: 0.76rem;
  }

  .hero,
  .section {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.6rem);
  }

  .hero-facts {
    flex-direction: column;
    gap: 0.45rem;
  }

  .score-preview::before {
    display: none;
  }

  .preview-metrics {
    grid-template-columns: 0.7fr 0.7fr 1.4fr;
  }

  .problem-strip {
    padding: 1.5rem 16px;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .problem-strip p:last-child {
    text-align: left;
  }

  .problem-strip > span {
    display: none;
  }

  .section {
    padding: 5.5rem 0;
  }

  .section h2,
  .method-section h2,
  .submit-section h2 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

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

  .category-card {
    min-height: 290px;
  }

  .method-section,
  .submit-section {
    padding: 5.5rem 16px;
  }

  .leaderboard-footnote {
    text-align: left;
  }

  .site-footer {
    padding: 2.3rem 16px;
    grid-template-columns: 1fr;
  }

  .site-footer > div {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #eff1f7;
    --ink-soft: #c9cedb;
    --muted: #9ba3b6;
    --paper: #111725;
    --paper-deep: #171e2d;
    --white: #151c2b;
    --line: #343c4d;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }

  body::before {
    background-image: radial-gradient(rgba(255, 255, 255, 0.11) 0.65px, transparent 0.65px);
  }

  .brand svg,
  .button-primary,
  .score-preview {
    color: #10182b;
  }

  .button-primary,
  .score-preview {
    background: #eff1f7;
  }

  .button-primary:hover {
    color: #fff;
  }

  .preview-topline,
  .preview-name,
  .preview-note,
  .preview-metrics span {
    color: #596277;
  }

  .score-rule,
  .preview-metrics {
    border-color: #c5cad5;
  }

  .score-rule {
    background: #c5cad5;
  }

  .score-rule::-webkit-progress-bar {
    background: #c5cad5;
  }

  .category-card,
  .button-secondary {
    background: rgba(255, 255, 255, 0.035);
  }

  .problem-strip,
  .submit-section {
    color: #10182b;
  }

  .submit-section {
    background: #7770ef;
  }

  .submit-copy > p:not(.eyebrow) {
    color: #1d2340;
  }

  .submit-section .eyebrow.light {
    color: #16203b;
  }

  .form-card {
    background: #f7f7f9;
    color: #10182b;
  }

  .field input {
    background: #fff;
    color: #10182b;
  }

  .form-button {
    background: #10182b;
    color: #fff;
  }
}
