@import url("https://fonts.googleapis.com/css2?family=Doto:wght@500;700;800&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #161614;
  --panel: #1d1d1a;
  --panel-strong: #24241f;
  --text: #f4f4f1;
  --muted: #a9a9a3;
  --subtle: #7b7b75;
  --red: #c8271b;
  --line: #383832;
  --line-bright: #ffffff24;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 4%, #48201b33 0, transparent 26rem),
    radial-gradient(circle at 4% 48%, #2d2d2838 0, transparent 32rem),
    var(--bg);
  font-family: "Noto Sans SC", Inter, system-ui, sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: #161614e8;
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--content));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-word {
  font-family: Doto, monospace;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link,
.language-toggle {
  padding: 9px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link.active,
.language-toggle:hover {
  color: var(--text);
  border-color: var(--line-bright);
  background: #ffffff08;
}

.language-toggle {
  cursor: pointer;
  border-color: #c8271b66;
  color: var(--text);
}

.page-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 570px;
  margin-top: 36px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 28px;
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #11110ff2 0%, #11110fce 45%, #11110f4d 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #11110fe8 0%, transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 70px;
}

.eyebrow,
.section-index,
.status,
.metric-label,
.evidence-kicker {
  color: var(--red);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 10px;
  border: 1px solid #c8271b66;
  background: #c8271b14;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-family: Inter, "Noto Sans SC", sans-serif;
  font-size: clamp(46px, 7.2vw, 88px);
  line-height: 0.97;
  letter-spacing: -3.8px;
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  color: #d2d2cc;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-bright);
  background: #ffffff0a;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: 160ms ease;
}

.button:hover {
  border-color: var(--red);
  background: var(--red);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
}

.content-grid {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
}

.section-rail {
  position: sticky;
  top: 110px;
  align-self: start;
}

.section-rail h2 {
  margin: 12px 0;
  font-size: 24px;
  line-height: 1.25;
}

.section-rail p {
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.8;
}

.prose {
  min-width: 0;
}

.prose p {
  margin: 0 0 27px;
  color: #c2c2bc;
  font-size: 18px;
  line-height: 2;
}

.prose p:first-child {
  color: var(--text);
  font-size: 24px;
  line-height: 1.75;
}

.tracks-section,
.evidence-section {
  padding: 12px 0 110px;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -2px;
}

.section-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--subtle);
  line-height: 1.8;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.track-card {
  min-height: 280px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff02;
  transition: 180ms ease;
}

.track-card:hover {
  background: var(--panel);
  transform: translateY(-4px);
}

.track-number {
  color: var(--red);
  font-family: Doto, monospace;
  font-size: 24px;
  font-weight: 800;
}

.track-card h3 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.track-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.track-arrow {
  margin-top: 28px;
  color: var(--red);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
}

.detail-layout {
  padding: 96px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 80px;
}

.detail-copy section + section {
  margin-top: 62px;
  padding-top: 62px;
  border-top: 1px solid var(--line);
}

.detail-copy h2 {
  margin: 12px 0 24px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.6px;
}

.detail-copy p {
  margin: 0;
  color: #c2c2bc;
  font-size: 17px;
  line-height: 2;
}

.detail-copy p + p {
  margin-top: 20px;
}

.detail-aside {
  align-self: start;
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.aside-block {
  padding: 26px;
}

.aside-block + .aside-block {
  border-top: 1px solid var(--line);
}

.aside-block h3 {
  margin: 10px 0 18px;
  font-size: 20px;
}

.flow-list,
.fact-list,
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li,
.fact-list li {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  border-top: 1px solid #ffffff10;
  color: var(--muted);
  line-height: 1.6;
}

.flow-list li:first-child,
.fact-list li:first-child {
  border-top: 0;
}

.flow-list span,
.fact-list span {
  color: var(--red);
  font-family: "IBM Plex Mono", monospace;
}

.next-track {
  margin-bottom: 110px;
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(115deg, #24241f, #191917);
}

.next-track small {
  display: block;
  margin-bottom: 9px;
  color: var(--red);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 1.5px;
}

.next-track strong {
  font-size: 26px;
}

.evidence-summary {
  padding: 70px 0 76px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.metric-value {
  display: block;
  margin-top: 10px;
  font-family: Doto, monospace;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
}

.evidence-list {
  display: grid;
  gap: 18px;
}

.evidence-card {
  border: 1px solid var(--line);
  background: #ffffff02;
}

.evidence-card-head {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.evidence-card h3 {
  margin: 7px 0 0;
  font-size: 25px;
}

.evidence-status {
  color: #8fc89b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.evidence-fields {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evidence-field {
  min-width: 0;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-field:nth-child(2n) {
  border-right: 0;
}

.evidence-field dt {
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 12px;
}

.evidence-field dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #d4d4ce;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
}

.evidence-links {
  padding: 20px 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.evidence-links a,
.link-list a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #c8271b99;
  text-underline-offset: 5px;
}

.public-files {
  margin-top: 46px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.public-files h3 {
  margin: 10px 0 24px;
  font-size: 28px;
}

.link-list li + li {
  margin-top: 16px;
}

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

.footer-wrap {
  width: min(calc(100% - 40px), var(--content));
  min-height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--subtle);
  font-size: 12px;
}

.footer-wrap span:last-child {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: 90px;
    align-items: flex-start;
    padding: 18px 0;
  }

  .nav-links {
    max-width: 420px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 46px;
  }

  .content-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .section-rail,
  .detail-aside {
    position: static;
  }

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

  .evidence-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 0;
  }

  .metric:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    width: min(calc(100% - 28px), var(--content));
    display: block;
  }

  .nav-links {
    margin-top: 14px;
    justify-content: flex-start;
    gap: 4px;
  }

  .nav-link,
  .language-toggle {
    padding: 7px 8px;
    font-size: 9px;
  }

  .page-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .hero {
    min-height: 530px;
    margin-top: 20px;
    border-radius: 18px;
  }

  .hero::before {
    background: linear-gradient(0deg, #11110ff5 0%, #11110f99 70%, #11110f42 100%);
  }

  .hero-content {
    padding: 28px;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: -2.4px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .content-grid,
  .detail-layout {
    padding: 70px 0 82px;
    gap: 42px;
  }

  .prose p,
  .detail-copy p {
    font-size: 16px;
    line-height: 1.9;
  }

  .prose p:first-child {
    font-size: 20px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .track-grid,
  .evidence-fields {
    grid-template-columns: 1fr;
  }

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

  .evidence-field,
  .evidence-field:nth-child(2n) {
    border-right: 0;
  }

  .evidence-summary {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(3) {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metric:first-child {
    border-top: 0;
  }

  .evidence-card-head,
  .next-track,
  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .next-track {
    padding: 30px;
  }

  .footer-wrap {
    padding: 28px 0;
  }
}
