:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --surface: #10151d;
  --surface-2: #151c26;
  --line: #263140;
  --text: #eef4f8;
  --muted: #9aa9b9;
  --green: #8df7c5;
  --blue: #7aa2ff;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 72% 10%, rgba(122, 162, 255, .12), transparent 32rem), radial-gradient(circle at 12% 35%, rgba(141, 247, 197, .07), transparent 28rem); }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: var(--green); color: #07110c; }
.skip-link:focus { top: 1rem; }
.site-header { width: calc(100% - 2rem); max-width: var(--max); margin: 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-size: .75rem; font-weight: 750; letter-spacing: .14em; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; border: 1px solid var(--green); color: var(--green); border-radius: .55rem; letter-spacing: 0; }
nav, .footer-links { display: flex; gap: 1.5rem; }
nav a, .footer-links a { color: var(--muted); text-decoration: none; font-size: .88rem; }
nav a:hover, .footer-links a:hover { color: var(--green); }
main, footer { width: calc(100% - 2rem); max-width: var(--max); margin-inline: auto; }
.hero { min-height: 650px; padding: 7rem 0 5.5rem; display: grid; grid-template-columns: 1.45fr .75fr; gap: 5rem; align-items: center; }
.hero > *, .catalog-heading > * { min-width: 0; }
.eyebrow { margin: 0 0 1rem; color: var(--green); font-size: .73rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 750; }
.status-dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 .25rem rgba(141, 247, 197, .1); }
h1 { margin: 0; max-width: 800px; font-size: clamp(3.1rem, 7vw, 6.7rem); line-height: .96; letter-spacing: -.065em; }
h1 span { color: var(--muted); }
.hero-text { max-width: 700px; margin: 2rem 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .7rem 1.15rem; border: 1px solid var(--line); border-radius: .55rem; text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; }
.button.primary { background: var(--green); border-color: var(--green); color: #08120d; font-weight: 700; }
.button.secondary { background: transparent; color: var(--text); }
.button:hover { transform: translateY(-1px); }
.system-card { width: 100%; max-width: 100%; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(160deg, rgba(21, 28, 38, .95), rgba(13, 17, 24, .92)); box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.system-card-header { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; letter-spacing: .12em; }
.live-label { color: var(--green); }
.metrics { margin: 1.5rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.metrics div { padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: rgba(255,255,255,.015); }
.metrics dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.metrics dd { margin: .2rem 0 0; font-size: 1.75rem; font-weight: 720; letter-spacing: -.04em; }
.system-card > p { margin: 0; color: var(--muted); font-size: .78rem; }
.focus-section, .catalog-section { padding: 6rem 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.04em; }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.focus-card { min-height: 290px; display: flex; flex-direction: column; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.focus-card:hover { border-color: var(--green); transform: translateY(-3px); }
.focus-card .index { color: var(--green); font-size: .75rem; }
.focus-card h3 { margin: auto 0 .65rem; font-size: 1.4rem; }
.focus-card p { margin: 0 0 1.2rem; color: var(--muted); font-size: .92rem; }
.card-link { font-size: .82rem; color: var(--green); }
.catalog-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.search input { width: min(340px, 72vw); padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); color: var(--text); font: inherit; }
.search input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.filter { padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.filter.active, .filter:hover { border-color: var(--green); color: var(--green); }
.result-count { color: var(--muted); font-size: .82rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.artifact { min-width: 0; padding: 1.15rem; border: 1px solid var(--line); background: var(--surface); border-radius: .75rem; text-decoration: none; transition: background .2s ease; }
.artifact:hover { background: var(--surface-2); }
.artifact-top { display: flex; justify-content: space-between; gap: 1rem; }
.artifact-kind, .artifact-owner { font-size: .67rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.artifact-owner { color: var(--muted); }
.artifact h3 { margin: .8rem 0 .35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.artifact p { margin: 0; color: var(--muted); font-size: .8rem; }
.artifact-meta { display: flex; gap: 1rem; margin-top: 1rem; font-size: .75rem; color: var(--muted); }
.load-more { margin: 1.5rem auto 0; }
footer { min-height: 190px; padding: 3.5rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; }
footer p { margin: .3rem 0; color: var(--muted); }
noscript { display: block; padding: 1rem; text-align: center; background: #372713; color: #ffe0a6; }
.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; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 5rem; }
  .system-card { max-width: 560px; }
  .focus-grid, .catalog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav a { display: none; }
  nav a:last-child { display: block; }
  nav { gap: 1rem; }
  .hero { min-height: auto; padding: 4rem 0; }
  h1 { font-size: clamp(2.8rem, 14vw, 3.8rem); }
  .focus-grid, .catalog-grid { grid-template-columns: 1fr; }
  .catalog-heading, footer { display: block; }
  .search { display: block; margin-top: 1.5rem; }
  .search input { width: 100%; }
  .footer-links { margin-top: 1.5rem; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
