:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #111317;
  --surface-raised: #171a1f;
  --ink: #f2f4f1;
  --muted: #9ca29d;
  --line: #2a2e32;
  --lime: #c7f000;
  --lime-soft: rgba(199, 240, 0, 0.12);
  --blue: #87a9ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 20; padding: 12px 16px; background: var(--lime); color: #0b0c0d; }
.skip-link:focus { top: 12px; }

.masthead { border-bottom: 1px solid var(--line); background: rgba(10, 11, 13, 0.92); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--lime); color: #0b0c0d; font-weight: 800; font-size: 13px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 64px; padding-block: 80px; }
.eyebrow { margin: 0 0 18px; color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(48px, 7vw, 88px); line-height: 0.96; letter-spacing: -0.06em; font-weight: 650; }
h2 { margin-bottom: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.lead { max-width: 650px; margin-bottom: 34px; color: #c2c6c2; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.button:hover { border-color: var(--muted); background: var(--surface); }
.button-primary { background: var(--lime); border-color: var(--lime); color: #0b0c0d; font-weight: 700; }
.button-primary:hover { background: #d8ff21; border-color: #d8ff21; }

.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { inset: 14%; }
.orbit-two { inset: 2%; border-style: dashed; opacity: 0.65; }
.core { display: grid; place-items: center; width: 178px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); color: #0b0c0d; box-shadow: 0 0 80px rgba(199, 240, 0, 0.17); }
.core-value { font-size: 50px; line-height: 1; font-weight: 750; letter-spacing: -0.05em; }
.core-label { font-size: 13px; font-weight: 700; }
.satellite { position: absolute; padding: 8px 12px; background: var(--surface-raised); border: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.satellite-company { top: 11%; left: 8%; }
.satellite-game { top: 36%; right: -2%; }
.satellite-person { bottom: 12%; left: 12%; }

.stats-band { border-block: 1px solid var(--line); background: var(--surface); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats > div { padding: 34px 28px; border-right: 1px solid var(--line); }
.stats > div:first-child { border-left: 1px solid var(--line); }
.stats strong { display: block; margin-bottom: 7px; font-size: 40px; line-height: 1; letter-spacing: -0.04em; }
.stats span { color: var(--muted); font-size: 13px; }

.catalog-section { padding-block: 110px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 450px); gap: 50px; align-items: end; margin-bottom: 58px; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.65; }
.catalog-controls { display: grid; grid-template-columns: 1fr minmax(260px, 360px) 210px; gap: 14px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 42px; padding: 0 14px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.is-active { border-color: var(--line); background: var(--surface-raised); color: var(--ink); }
.search-field, .select-field { min-height: 44px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); padding-inline: 14px; }
.search-field:focus-within, .select-field:focus-within { border-color: var(--lime); }
.search-field svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-field input, .select-field select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: #737975; }
.select-field select { cursor: pointer; }
.results-meta { display: flex; justify-content: space-between; gap: 20px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.legend { display: flex; align-items: center; gap: 8px; }
.legend span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.record-card { min-height: 320px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); background: var(--surface); transition: transform 150ms ease, border-color 150ms ease; }
.record-card:hover { transform: translateY(-3px); border-color: #4b5151; }
.card-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; }
.confidence { color: var(--lime); }
.record-card h3 { margin-bottom: 11px; font-size: 24px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.card-description { margin-bottom: 18px; color: #b7bbb7; line-height: 1.5; font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; padding: 0; list-style: none; }
.tag-list li { padding: 5px 8px; background: var(--lime-soft); color: #d7f56e; font-size: 11px; }
.relations { margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.card-links a { color: var(--blue); font-size: 12px; text-underline-offset: 3px; }
.load-more { margin: 28px auto 0; }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

.audit-panel { grid-column: 1 / -1; }
.audit-intro { max-width: 720px; margin-bottom: 34px; color: var(--muted); line-height: 1.6; }
.qa-list { display: grid; gap: 10px; }
.qa-row { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qa-label { font-size: 14px; }
.qa-track { height: 5px; background: var(--line); overflow: hidden; }
.qa-fill { height: 100%; background: var(--lime); }
.qa-value { min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; color: #c9cdc9; font-size: 13px; }

.method-section { padding-block: 110px; border-block: 1px solid var(--line); background: var(--surface); }
.method-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; }
.method-steps { margin: 0; padding: 0; list-style: none; }
.method-steps li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.method-steps li:first-child { padding-top: 0; }
.method-steps span { color: var(--lime); font-size: 12px; font-weight: 700; }
.method-steps h3 { margin-bottom: 7px; font-size: 19px; font-weight: 600; }
.method-steps p { margin: 0; color: var(--muted); line-height: 1.5; }

.downloads { padding-block: 110px; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.download-card { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.download-card:hover { border-color: var(--lime); }
.download-card > span { color: var(--lime); font-size: 12px; }
.download-card h3 { margin-bottom: 9px; font-size: 23px; font-weight: 600; }
.download-card p { color: var(--muted); line-height: 1.5; }
.download-card b { font-size: 13px; font-weight: 600; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 0; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .catalog-controls { grid-template-columns: 1fr 1fr; }
  .tabs { grid-column: 1 / -1; }
  .catalog-grid, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-links { display: none; }
  .hero { padding-block: 62px; gap: 36px; }
  .hero-visual { max-width: 360px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stats > div:nth-child(4) { border-top: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .catalog-controls { grid-template-columns: 1fr; }
  .tabs { grid-column: auto; }
  .catalog-grid, .download-grid { grid-template-columns: 1fr; }
  .record-card { min-height: 290px; }
  .qa-row { grid-template-columns: 1fr auto; }
  .qa-track { grid-column: 1 / -1; grid-row: 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
