:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5b6576;
  --soft: #f7f5ef;
  --line: #e7dfd2;
  --green: #4f9a4d;
  --blue: #3d84c5;
  --orange: #db8b2b;
  --purple: #8662b5;
  --teal: #2f9a9a;
  --red: #c7594b;
  --paper: #fffaf0;
  --shadow: 0 24px 80px rgba(40, 35, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(231, 223, 210, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(61, 132, 197, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 4px;
}

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

.resource-actions,
.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.resource-actions a,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(27, 31, 42, 0.06);
  cursor: pointer;
}

.resource-actions a:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(27, 31, 42, 0.1);
}

.resource-actions a[aria-disabled="true"],
.button[aria-disabled="true"] {
  color: #9a9287;
  cursor: default;
}

.resource-actions a[aria-disabled="true"]:hover,
.button[aria-disabled="true"]:hover {
  transform: none;
}

.button.primary {
  border-color: #21242b;
  background: #21242b;
  color: #fff;
}

.button.muted {
  background: var(--soft);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 14px;
  color: var(--ink);
  font-weight: 800;
}

.section-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  min-height: calc(100vh - 74px);
  padding: 64px 0 58px;
  overflow: hidden;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 980px);
}

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 1180px;
  font-size: 82px;
  line-height: 1;
  font-weight: 950;
}

.tagline {
  max-width: 980px;
  margin: 24px 0 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 850;
}

.hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.hero-figure {
  position: relative;
  margin: 0;
  width: min(1160px, 100%);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-figure img {
  border-radius: 8px;
}

.hero-purple {
  position: absolute;
  top: 62px;
  right: -8px;
  z-index: 1;
  width: 152px;
  height: 152px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(70, 42, 112, 0.14);
  transform: rotate(4deg);
  pointer-events: none;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h2,
.community-panel h2,
.citation-block h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
}

.section-heading p:not(.eyebrow),
.community-panel p {
  margin: 14px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.overview,
.genome,
.benchmark,
.results,
.community,
.citation {
  padding: 88px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.stat-card,
.concept-card,
.track-card {
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(39, 38, 31, 0.07);
}

.stat-card span {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.stat-card p,
.concept-card p,
.track-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.accent-green { border-top: 5px solid var(--green); }
.accent-blue { border-top: 5px solid var(--blue); }
.accent-orange { border-top: 5px solid var(--orange); }
.accent-purple { border-top: 5px solid var(--purple); }
.accent-teal { border-top: 5px solid var(--teal); }
.accent-red { border-top: 5px solid var(--red); }

.genome {
  overflow: hidden;
}

.genome::before,
.benchmark::before,
.community::before {
  content: "";
  position: absolute;
  inset: 28px 0;
  z-index: -1;
  border-radius: 38px;
  background:
    linear-gradient(90deg, rgba(79, 154, 77, 0.08), rgba(219, 139, 43, 0.08)),
    var(--paper);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.concept-card {
  min-height: 190px;
}

.concept-icon {
  display: inline-block;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  margin-bottom: 18px;
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.28);
}

.icon-green { background: var(--green); }
.icon-orange { background: var(--orange); }
.icon-blue { background: var(--blue); }

.concept-card h3,
.track-card h3 {
  margin: 0;
  font-size: 24px;
}

.dynamics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.dynamics-grid span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.wide-figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wide-figure img {
  border-radius: 8px;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.track-card {
  min-height: 138px;
}

.result-takeaways {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}

.result-takeaways span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 31, 42, 0.06);
  font-size: 14px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 14px;
}

caption {
  padding: 18px 20px 8px;
  color: var(--muted);
  font-weight: 750;
  text-align: left;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #eee7dc;
  text-align: right;
  white-space: nowrap;
}

thead th {
  background: #faf4e8;
  color: #2b2a25;
  font-size: 13px;
  text-align: center;
}

tbody th {
  text-align: left;
  font-weight: 850;
}

tbody tr:hover td,
tbody tr:hover th {
  background: #fffaf1;
}

.group-row th {
  background: #eef6ef;
  color: #315f32;
  font-size: 13px;
  text-align: left;
  text-transform: uppercase;
}

.community-panel {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.citation {
  padding-top: 16px;
}

.citation-block {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.citation-block h2 {
  font-size: 28px;
}

pre {
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f0;
  color: #2d2d2d;
  font-size: 13px;
  line-height: 1.55;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 31, 0.54);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-card h2 {
  margin: 0;
  font-size: 26px;
}

.modal-card p {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-card img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

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

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .resource-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .resource-actions {
    display: flex;
  }

  h1 {
    font-size: 72px;
  }

  .stats-grid,
  .dynamics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .brand {
    font-size: 16px;
  }

  .section-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    gap: 24px;
    padding-top: 36px;
  }

  h1 {
    font-size: 48px;
    line-height: 1;
  }

  .tagline {
    margin-top: 18px;
    font-size: 22px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-figure {
    padding: 8px;
  }

  .hero-purple {
    display: none;
  }

  .section-heading h2,
  .community-panel h2,
  .citation-block h2 {
    font-size: 32px;
  }

  .overview,
  .genome,
  .benchmark,
  .results,
  .community,
  .citation {
    padding: 58px 0;
  }

  .stats-grid,
  .concept-grid,
  .track-grid,
  .dynamics-grid {
    grid-template-columns: 1fr;
  }

  .community-panel {
    display: block;
    padding: 24px;
  }

  .community-actions {
    margin-top: 18px;
  }
}
