:root {
  --bg: #f7f8f3;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #5d6963;
  --line: #dfe5dd;
  --accent: #0f766e;
  --accent-strong: #0b514d;
  --gold: #c28f2c;
  --rose: #b65c6b;
  --shadow: 0 18px 45px rgba(21, 32, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(247, 248, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

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

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

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-link {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.tab-link.active,
.tab-link:hover {
  background: #e8efeb;
  color: var(--accent-strong);
}

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

.tab-panel {
  display: block;
}

.js-enabled .tab-panel {
  display: none;
}

.js-enabled .tab-panel.active,
.js-enabled .tab-panel:target {
  display: block;
}

.js-enabled .hero-panel.active,
.js-enabled .hero-panel:target {
  display: grid;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  align-items: end;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #dce7e4;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 248, 243, 0.96), rgba(247, 248, 243, 0.78) 48%, rgba(247, 248, 243, 0.18));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  padding: clamp(28px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.05rem;
}

.lead {
  max-width: 660px;
  color: #35413b;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.table-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.section-heading {
  margin: 48px 0 20px;
}

.section-heading p,
.note {
  color: var(--muted);
}

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

.info-grid article,
.article-list a,
.steps li,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-grid article {
  padding: 22px;
}

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

.article-list {
  display: grid;
  gap: 10px;
}

.article-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  text-decoration: none;
}

.article-list span {
  color: var(--muted);
}

.reference-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.article-list .reference-card {
  min-height: 132px;
  align-items: flex-start;
  flex-direction: column;
}

.reference-card strong {
  font-size: 1.04rem;
}

a[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
}

.welcome-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.welcome-card {
  display: grid;
  gap: 10px;
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.welcome-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.welcome-card strong {
  color: var(--accent-strong);
  font-size: 1.08rem;
}

.welcome-card span {
  color: var(--muted);
}

.table-tools {
  justify-content: space-between;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

#model-filter {
  min-width: min(360px, calc(100vw - 48px));
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 2240px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef3ef;
  color: #31413a;
  font-size: 0.8rem;
  text-transform: uppercase;
}

thead tr:nth-child(2) th {
  top: 48px;
}

th.group-heading {
  text-align: center;
  background: #ddeae4;
  border-right: 1px solid var(--line);
  letter-spacing: 0;
}

td.numeric {
  font-variant-numeric: tabular-nums;
}

td.metric-rank-1,
td.metric-rank-2,
td.metric-rank-3 {
  color: #072f1d;
}

td.metric-rank-1 {
  background: #7bcf99;
  font-weight: 900;
}

td.metric-rank-2 {
  background: #a9dfb9;
}

td.metric-rank-3 {
  background: #d7f0dd;
}

.model-cell {
  font-weight: 800;
}

.model-link,
.report-link {
  font-weight: 800;
}

.model-link {
  color: var(--ink);
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-underline-offset: 3px;
}

.no-report {
  color: var(--muted);
}

.baseline-row td {
  background: #eaf4ff;
  border-bottom-color: #a9caeb;
}

.baseline-row .model-cell::after {
  content: " baseline";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #b7d7f5;
  color: #173b61;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metadata-example {
  margin: 14px 0;
}

.metadata-table {
  min-width: 1480px;
  font-size: 0.82rem;
}

.metadata-table th,
.metadata-table td {
  white-space: normal;
  vertical-align: top;
}

.metadata-table .sample-transcript {
  min-width: 360px;
  max-width: 460px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.field-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.field-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  background: #dcefeb;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.field-card h3 span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.field-card h3 code {
  color: var(--accent-strong);
  font-weight: 900;
}

.field-card code {
  color: var(--ink);
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}

.field-card p {
  padding: 14px 16px 16px;
  margin-bottom: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f5e9cd;
  color: #6b4c0e;
  font-weight: 900;
}

.code-line {
  color: var(--muted);
}

.js-enabled .contact-layout.active,
.contact-layout:target {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 30px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
  }

  .tab-link {
    flex: 1 1 46%;
    text-align: center;
  }

  .hero-panel {
    min-height: 560px;
  }

  .hero-panel::after {
    background: linear-gradient(180deg, rgba(247, 248, 243, 0.96), rgba(247, 248, 243, 0.8) 62%, rgba(247, 248, 243, 0.24));
  }

  .info-grid,
  .field-grid,
  .welcome-card-grid,
  .js-enabled .contact-layout.active,
  .contact-layout:target {
    grid-template-columns: 1fr;
  }

  .article-list a,
  footer {
    flex-direction: column;
  }
}
