:root {
  --bg: #0b0d12;
  --surface: #121620;
  --surface-2: #171c28;
  --line: #2b3342;
  --text: #f3f5f8;
  --muted: #a5afc0;
  --soft: #d2d8e3;
  --accent: #c9ff46;
  --accent-2: #8ed0ff;
  --warning: #ffd36a;
  --danger: #ff8e8e;
  --radius: 18px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 80% -10%, #202d42 0, transparent 35rem), var(--bg); line-height: 1.55; }
a { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--text); font-size: .9rem; letter-spacing: .18em; font-weight: 800; text-decoration: none; }
.brand span { color: var(--accent); }
.eyebrow, .kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 750; }
.breadcrumbs { display: flex; gap: 10px; color: var(--muted); font-size: .82rem; padding-top: 28px; }
.breadcrumbs a { color: var(--soft); }
.hero { padding: 64px 0 42px; max-width: 830px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.35rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.055em; max-width: 820px; margin-bottom: 24px; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 10px; }
h3 { font-size: 1.2rem; line-height: 1.18; margin-bottom: 8px; }
.lede { color: var(--soft); font-size: clamp(1rem, 2vw, 1.25rem); max-width: 690px; }
.privacy-note { display: flex; gap: 14px; align-items: flex-start; color: var(--soft); font-size: .9rem; margin-top: 28px; max-width: 650px; }
.privacy-icon { color: var(--accent); font-size: 1.45rem; line-height: 1; }
.panel, .limits, .integration-note { background: rgba(18,22,32,.88); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { padding: clamp(22px, 4vw, 38px); margin: 18px 0; }
.panel-inset { margin: 0; background: var(--surface-2); }
.section-heading, .results-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.section-heading.compact { align-items: center; }
.section-heading h2, .section-heading h3, .results-heading h2 { margin-bottom: 0; }
.kicker { margin-bottom: 7px; }
.local-badge, .frequency-tag { border: 1px solid rgba(201,255,70,.35); color: var(--accent); border-radius: 999px; padding: 5px 10px; font-size: .72rem; white-space: nowrap; }
.dropzone { min-height: 126px; margin: 27px 0 13px; padding: 25px; border: 1px dashed #59667c; border-radius: 13px; display: flex; align-items: center; gap: 17px; background: rgba(255,255,255,.025); transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone:focus-within, .dropzone.is-dragging { border-color: var(--accent); background: rgba(201,255,70,.06); }
.dropzone strong, .dropzone small { display: block; }
.dropzone small { color: var(--muted); margin-top: 4px; }
.dropzone-mark { width: 40px; height: 40px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-size: 1.5rem; flex: 0 0 auto; }
.file-state, .support-copy, .chart-caption, .playback-status { color: var(--muted); font-size: .82rem; }
.file-state { min-height: 25px; margin-bottom: 17px; }
.support-copy { margin: 13px 0 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button { border: 1px solid transparent; border-radius: 9px; padding: 11px 16px; font-weight: 750; transition: transform .15s, background .15s, border-color .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #11140c; }
.button-secondary { background: transparent; color: var(--text); border-color: #59667c; }
.button-secondary:hover:not(:disabled) { border-color: var(--accent); }
.button-quiet { background: transparent; color: var(--muted); border-color: transparent; }
.status { min-height: 25px; color: var(--accent-2); }
.results { padding: 30px 0 18px; }
.result-meta { color: var(--muted); font-size: .82rem; }
.verdict { display: flex; gap: 16px; align-items: flex-start; margin: 25px 0 18px; padding: 21px; border: 1px solid #3b4a2b; border-radius: 14px; background: rgba(201,255,70,.065); }
.verdict[data-level="review"] { border-color: #6b562c; background: rgba(255,211,106,.08); }
.verdict[data-level="risk"] { border-color: #6b3030; background: rgba(255,142,142,.08); }
.verdict-mark { color: var(--accent); font-size: 1.7rem; line-height: 1; }
.verdict[data-level="review"] .verdict-mark { color: var(--warning); }
.verdict[data-level="risk"] .verdict-mark { color: var(--danger); }
.verdict h3 { margin-bottom: 5px; }
.verdict p:last-child { color: var(--soft); margin-bottom: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.metric-card { min-height: 150px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.metric-label { color: var(--muted); font-size: .78rem; margin-bottom: 10px; }
.metric-value { display: block; font-size: 2rem; letter-spacing: -.04em; margin-bottom: 9px; }
.metric-copy { color: var(--muted); font-size: .78rem; margin-bottom: 0; }
.analysis-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.chart-caption { margin-bottom: 0; }
#spectrum { display: block; width: 100%; height: auto; margin: 14px 0 10px; border-radius: 9px; background: #101521; }
.compare-panel > p:not(.kicker) { color: var(--soft); font-size: .9rem; }
.playback-status { min-height: 42px; margin: 17px 0 0; }
.explanation { padding: 28px 0 17px; }
.explanation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; color: var(--soft); font-size: .88rem; }
.explanation-grid p { margin-bottom: 0; }
.limits, .integration-note { margin: 24px 0; padding: 20px 24px; }
.limits summary { cursor: pointer; color: var(--soft); font-weight: 700; }
.details-copy { color: var(--muted); font-size: .88rem; padding: 18px 0 0; }
.details-copy p:last-child { margin-bottom: 0; }
.integration-note { border-color: rgba(142,208,255,.28); }
.integration-note p:last-child { color: var(--muted); margin-bottom: 0; }
code { color: var(--accent-2); font-size: .9em; }
.site-footer { margin-top: 60px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: .78rem; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 20px; }
.skip-link { position: absolute; left: 10px; top: -50px; padding: 10px; background: var(--accent); color: #11140c; z-index: 2; }
.skip-link:focus { top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1120px); }
  .hero { padding-top: 45px; }
  .metric-grid, .analysis-grid, .explanation-grid { grid-template-columns: 1fr; }
  .metric-card-wide { min-height: 125px; }
  .section-heading, .results-heading { flex-direction: column; gap: 12px; }
  .site-footer .shell { flex-direction: column; gap: 4px; }
}

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