:root {
  color-scheme: dark;
  --ink: #edf5ff;
  --muted: #91a5bc;
  --surface: rgba(12, 26, 43, 0.78);
  --line: rgba(147, 186, 222, 0.15);
  --cyan: #61e6df;
  --lime: #b7f36b;
  --orange: #ffb35c;
  --max: 1480px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111f;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 50% -20%, #17375a 0, #07111f 42rem); }
button, audio { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.ambient { position: fixed; width: 32rem; height: 32rem; border-radius: 50%; filter: blur(110px); opacity: .11; pointer-events: none; z-index: -1; }
.ambient-a { top: 15rem; left: -18rem; background: var(--cyan); }
.ambient-b { top: 52rem; right: -20rem; background: #995cff; }

.hero { padding: 92px 0 54px; }
.eyebrow, .kicker { color: var(--cyan); font-size: .73rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
h1 { margin: 20px 0 22px; max-width: 960px; font-size: clamp(4rem, 9vw, 8.4rem); line-height: .86; letter-spacing: -.075em; font-weight: 790; }
h1 span { color: transparent; background: linear-gradient(95deg, var(--cyan), var(--lime) 62%, var(--orange)); background-clip: text; -webkit-background-clip: text; }
.lede { max-width: 760px; color: #b9c8d8; font-size: clamp(1.05rem, 2vw, 1.38rem); line-height: 1.58; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(8, 20, 34, .7); backdrop-filter: blur(20px); }
.summary div { display: flex; flex-direction: column; gap: 6px; padding: 23px 25px; border-right: 1px solid var(--line); }
.summary div:last-child { border: 0; }
.summary strong { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.04em; }
.summary span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.summary .accent strong { color: var(--lime); }

.guide { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(18, 39, 61, .84), rgba(8, 19, 33, .74)); }
.guide h2 { margin: 10px 0 0; font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -.045em; }
.guide > p { margin: 0; color: #adc0d3; line-height: 1.75; }
.guide b { color: var(--ink); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 52px 0 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter { border: 1px solid var(--line); color: var(--muted); background: #0b1829; border-radius: 999px; padding: 9px 15px; cursor: pointer; transition: .2s ease; }
.filter:hover, .filter.active { color: #07111f; border-color: var(--cyan); background: var(--cyan); }
.visible-count { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.clips { display: grid; gap: 22px; }
.clip { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: 0 20px 55px rgba(0, 0, 0, .16); }
.clip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 27px 20px; }
.clip-title { display: flex; gap: 16px; align-items: center; }
.clip-index { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #07111f; background: var(--cyan); font-weight: 850; }
.clip h3 { margin: 0 0 5px; font-size: 1.12rem; letter-spacing: -.02em; }
.metadata { color: var(--muted); font-size: .8rem; }
.gain { text-align: right; }
.gain strong { display: block; color: var(--lime); font-size: 1.15rem; }
.gain span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.variant { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.variant:last-child { border: 0; }
.variant-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.variant-name { font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.variant:nth-child(1) .variant-name { color: #a9bacb; }
.variant:nth-child(2) .variant-name { color: var(--orange); }
.variant:nth-child(3) .variant-name { color: var(--lime); }
.metric { color: var(--muted); font-size: .73rem; }
.spectrogram { display: block; width: 100%; aspect-ratio: 3.9 / 1; object-fit: cover; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: #08111f; }
audio { display: block; width: 100%; height: 35px; margin-top: 13px; opacity: .91; }
.loading { padding: 70px 0; text-align: center; color: var(--muted); }
.error { color: #ff9d9d; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 70px 0 45px; color: #6e849a; font-size: .78rem; border-top: 1px solid var(--line); margin-top: 62px; }
.home-link { color: var(--cyan); }

@media (max-width: 900px) {
  .hero { padding-top: 62px; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .summary div:nth-child(2) { border-right: 0; }
  .summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .guide { grid-template-columns: 1fr; gap: 22px; padding: 30px; }
  .variants { grid-template-columns: 1fr; }
  .variant { border-right: 0; border-bottom: 1px solid var(--line); }
  .variant:last-child { border-bottom: 0; }
  .spectrogram { aspect-ratio: 4.8 / 1; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  h1 { font-size: 3.6rem; }
  .summary div { padding: 18px; }
  .clip-head { padding: 20px; }
  .gain { display: none; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
