:root {
  color-scheme: dark;
  --bg: #0c0c13;
  --panel: #14131e;
  --line: #30293e;
  --text: #f4f0fa;
  --muted: #b6afc3;
  --accent: #d6beff;
  --mono: 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3, figure { margin: 0; }
p { color: var(--muted); line-height: 1.65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: -5rem; left: 1rem; background: var(--accent); color: #181121; padding: .75rem; }
.skip:focus { top: 1rem; }
.site-header { border-bottom: 1px solid #26222f; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: .89rem; font-weight: 750; letter-spacing: .18em; white-space: nowrap; }
nav { display: flex; gap: clamp(16px, 3vw, 36px); }
nav a, .text-link { color: #d1c9df; font-size: .92rem; }
nav a:hover, .text-link:hover { color: var(--accent); }
.credit, .eyebrow, figcaption { font: 500 .73rem/1.6 var(--mono); letter-spacing: .12em; color: var(--muted); }
.credit { white-space: nowrap; }
.hero { padding-top: clamp(50px, 7vw, 94px); }
.hero-copy { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 36px; margin-bottom: 34px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.status-dot, figcaption i { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #c49afc; box-shadow: 0 0 13px #b587ff75; }
h1 { font-size: clamp(5.2rem, 12.1vw, 10.6rem); line-height: .84; letter-spacing: -.095em; font-weight: 750; margin-left: -.06em; }
.hero-dot { color: var(--accent); }
.intro { max-width: 440px; }
.intro h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 590; letter-spacing: -.035em; margin-bottom: 8px; }
.intro p { font-size: .98rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 22px; margin-top: 20px; }
.primary { display: inline-flex; align-items: center; gap: 9px; padding: 12px 15px; background: var(--accent); color: #1b112a; border-radius: 5px; font-size: .91rem; font-weight: 740; }
.primary:hover { background: #e7d8ff; }
.primary span { font-size: .75em; }
.text-link { text-decoration: underline; text-underline-offset: .28em; text-decoration-color: #766788; }
.text-link span { margin-left: 3px; }
.device-frame { display: flex; justify-content: center; padding: clamp(12px, 3vw, 35px); background: radial-gradient(ellipse at 50% 32%, #332449, #171221 60%, #11101b); border: 1px solid #352b43; border-radius: 12px; }
.device { width: min(100%, 820px); height: auto; border: 1px solid #423653; border-radius: 6px; box-shadow: 0 18px 45px #07050ac7; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 14px; margin-top: 11px; }
.hero-figure figcaption span:first-child { display: flex; align-items: center; gap: 10px; }
.hero-figure figcaption b, .eyebrow span { color: var(--accent); }
.section { margin-top: clamp(64px, 9vw, 114px); padding-top: 27px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-head { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 26px; margin-bottom: 27px; }
.section-head h2 { font-size: clamp(2.15rem, 4.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.065em; font-weight: 640; margin-top: 7px; }
.section-head > p { max-width: 440px; }
.player { background: linear-gradient(120deg, #1b1527, #13121e 58%); border: 1px solid #3a2e4c; border-radius: 12px; padding: clamp(16px, 3vw, 32px); }
.player-top, .player-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.player-top h3 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; font-weight: 620; margin-top: 2px; }
.selector { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #100e19; }
.selector button { min-width: 74px; min-height: 40px; padding: 6px 11px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-weight: 650; }
.selector button:hover { color: var(--text); }
.selector button[aria-pressed='true'] { color: var(--accent); background: #332547; border-color: #5b4378; }
.audio-wave { width: 100%; height: clamp(65px, 10vw, 118px); object-fit: fill; margin-block: 18px 13px; }
.player-bottom audio { width: min(100%, 345px); height: 48px; flex-shrink: 0; }
.player-bottom p { font-size: .89rem; }
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.76fr); align-items: start; gap: 20px; }
.view-list { display: grid; gap: 9px; }
.view-list button { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; width: 100%; text-align: left; padding: 16px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.view-list button:hover, .view-list button[aria-pressed='true'] { background: #241b33; border-color: #6e548c; }
.view-index { font: .75rem/1.7 var(--mono); color: var(--accent); }
.view-arrow { color: var(--accent); }
.view-list strong, .view-list small { display: block; }
.view-list strong { font-weight: 650; }
.view-list small { font-size: .84rem; color: var(--muted); line-height: 1.5; margin-top: 5px; }
.explorer-shot { border: 1px solid #352b43; border-radius: 9px; background: #16121f; overflow: hidden; }
.explorer-shot img { width: 100%; height: auto; }
.explorer-shot figcaption { padding: 11px 14px; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.details article { padding: clamp(17px, 2.5vw, 26px); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.details .eyebrow { color: var(--accent); }
.details h3 { margin: 9px 0 7px; font-size: 1.18rem; letter-spacing: -.025em; }
.details article > p:last-child { font-size: .92rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; }
.footer-inner { min-height: 90px; }
.footer-inner p { font-size: .9rem; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .credit { display: none; }
  .hero-copy { grid-template-columns: 1.05fr 1fr; gap: 18px; }
  .player-bottom audio { width: min(52%, 345px); }
}

@media (max-width: 670px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 10px; }
  .brand { font-size: .75rem; gap: 7px; }
  .brand img { width: 23px; height: 23px; }
  nav { gap: 12px; }
  nav a { font-size: .81rem; }
  .hero-copy, .section-head, .explorer, .details { grid-template-columns: 1fr; }
  .hero-copy { gap: 24px; margin-bottom: 24px; }
  .section-head { gap: 12px; }
  .player-top, .player-bottom { flex-wrap: wrap; }
  .player-bottom audio { width: 100%; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; gap: 12px 20px; padding-block: 16px; }
}

@media (max-width: 355px) {
  nav { gap: 8px; }
  nav a { font-size: .74rem; }
  h1 { font-size: 4.5rem; }
  .hero-figure figcaption { font-size: .64rem; }
}

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