:root {
  color-scheme: dark;
  --ink: #edf7f0;
  --muted: #9ab5ac;
  --surface: #0a2422;
  --surface-2: #0d2e2b;
  --line: rgba(201, 255, 223, 0.14);
  --lime: #bdfd7a;
  --mint: #63e6b6;
  --deep: #061918;
  --paper: #eff5ec;
  --paper-ink: #132c28;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% -5%, rgba(99, 230, 182, 0.13), transparent 30rem),
    var(--deep);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--lime);
  color: var(--deep);
  font-weight: 800;
}

.skip-link:focus { top: 1rem; }

.site-header,
main,
footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand em {
  color: var(--muted);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 600;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  font-family: "DM Mono", monospace;
}

nav { display: flex; align-items: center; gap: 1.5rem; }

nav a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible { color: var(--ink); }

.nav-cta {
  padding: 0.62rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding: 5rem 0;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--mint);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

.eyebrow span {
  display: inline-block;
  width: 1.7rem;
  height: 1px;
  margin: 0 0.55rem 0.2rem 0;
  background: currentColor;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 500;
}

h1 strong { color: var(--lime); font-weight: 800; }

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary { background: var(--lime); color: #10281f; border-color: var(--lime); }
.button.secondary:hover { border-color: var(--mint); }

.provenance-note { color: #78978c; font-size: 0.76rem; }
.provenance-note span { color: var(--mint); margin-right: 0.35rem; }

.hero-panel {
  position: relative;
  min-height: 440px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20, 69, 61, 0.9), rgba(5, 25, 24, 0.94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(189, 253, 122, 0.16);
  border-radius: 50%;
}

.hero-panel::before { width: 360px; height: 360px; right: -150px; top: -135px; }
.hero-panel::after { width: 230px; height: 230px; right: -85px; top: -70px; }

.signal {
  height: 130px;
  display: flex;
  align-items: end;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.signal span { width: 1rem; border-radius: 999px; background: var(--lime); opacity: 0.9; }
.signal span:nth-child(1) { height: 32%; }
.signal span:nth-child(2) { height: 62%; }
.signal span:nth-child(3) { height: 45%; }
.signal span:nth-child(4) { height: 92%; }
.signal span:nth-child(5) { height: 70%; }
.signal span:nth-child(6) { height: 100%; }

.metrics { position: relative; z-index: 1; margin: 0; }
.metrics div { display: flex; justify-content: space-between; align-items: baseline; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-size: 0.76rem; }
.metrics dd { margin: 0; font-family: "DM Mono", monospace; font-size: 1rem; font-weight: 500; }

.section { padding: 6rem 0; border-top: 1px solid var(--line); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.3rem;
}

.section-heading h2,
.usage h2,
.responsible h2 { margin-bottom: 0; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.05em; }
.section-heading > p { max-width: 430px; margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.controls { display: grid; grid-template-columns: minmax(260px, 1fr) 240px auto; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.search-field,
.select-field { height: 48px; display: flex; align-items: center; gap: 0.7rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 0.7rem; background: rgba(13, 46, 43, 0.6); }
input,
select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
select option { background: var(--surface); }
.result-count { color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.74rem; text-align: right; }

.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.85rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
th { color: #78978c; font-family: "DM Mono", monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
th,
td { padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(99, 230, 182, 0.035); }
.mono { color: #78978c; font-family: "DM Mono", monospace; font-size: 0.7rem; }
.tag { display: inline-block; padding: 0.28rem 0.5rem; border: 1px solid rgba(189, 253, 122, 0.24); border-radius: 999px; color: var(--lime); font-family: "DM Mono", monospace; font-size: 0.64rem; white-space: nowrap; }
.path { color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.7rem; }
.loading { padding: 2rem; color: var(--muted); text-align: center; }

.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.class-card { min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; border: 1px solid var(--line); border-radius: 0.8rem; background: rgba(10, 36, 34, 0.5); }
.class-card .index { color: var(--mint); font-family: "DM Mono", monospace; font-size: 0.7rem; }
.class-card h3 { margin: 1.5rem 0 0.2rem; font-size: 1rem; }
.class-card p { margin: 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.66rem; }

.usage { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.usage > div > p:last-child { max-width: 380px; color: var(--muted); }
.code-card { overflow: hidden; border: 1px solid var(--line); border-radius: 0.85rem; background: #03100f; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.7rem; }
.code-bar button { border: 0; background: transparent; color: var(--lime); cursor: pointer; font: inherit; }
pre { margin: 0; padding: 1.25rem; overflow-x: auto; color: #c8e8db; font: 0.76rem/1.75 "DM Mono", monospace; }

.responsible { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(2rem, 9vw, 8rem); margin-bottom: 6rem; padding: clamp(2rem, 6vw, 5rem); border: 0; border-radius: 1.25rem; background: var(--paper); color: var(--paper-ink); }
.responsible-copy > p:last-child { max-width: 600px; margin-top: 1.5rem; color: #48645e; }
.eyebrow.light { color: #24765e; }
.responsible-links { display: grid; align-content: center; }
.responsible-links a { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(19, 44, 40, 0.15); text-decoration: none; }
.responsible-links span { color: #638078; font-size: 0.73rem; }
.responsible-links b { font-size: 0.82rem; }

footer { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 2rem; align-items: center; padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
footer p { margin: 0; }
footer > div:last-child { display: flex; gap: 1rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.footer-brand { color: var(--ink); }

.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; }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-panel { min-height: 390px; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .usage,
  .responsible { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer { width: min(calc(100% - 1.2rem), var(--max)); }
  .site-header { min-height: 68px; }
  .brand em { display: none; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.4rem); }
  .hero { min-height: auto; padding: 3.5rem 0; gap: 3rem; }
  .hero-panel { min-height: 360px; padding: 1.3rem; }
  .section { padding: 4rem 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .controls { grid-template-columns: 1fr; }
  .result-count { text-align: left; }
  .class-grid { grid-template-columns: 1fr; }
  .class-card { min-height: 140px; }
  .responsible { margin-bottom: 3rem; padding: 1.5rem; }
  .responsible-links a { grid-template-columns: 80px 1fr; }
  footer > div:last-child { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

