/* Alpha Sound Labs - static site
   ---------------------------------------------------------------------------
   One stylesheet, no framework, no build step: Cloudflare Pages serves these
   files as they are. The palette is the application's own, so the site and the
   program look like the same thing made by the same people.
*/

:root {
  --bg:            #0a0c11;
  --bg-alt:        #0d1017;
  --surface:       #12161f;
  --surface-2:     #171c27;
  --sunken:        #090b0f;
  --border:        #232a37;
  --border-strong: #303947;

  --text:          #e6eaf2;
  --text-muted:    #98a3b5;
  --text-faint:    #6b7688;

  --accent:        #4a9eff;
  --accent-dim:    #1e3a5c;
  --warn:          #f5a623;
  --good:          #3ecf8e;
  --bad:           #ff6b6b;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;

  --wrap: 1140px;
  --r: 14px;
  --r-sm: 8px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #04070d;
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- top bar ------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 17, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 700; letter-spacing: -.01em; color: var(--text); font-size: 16px; }
.brand-name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #04070d !important;
  padding: 8px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.nav-cta:hover { background: #63adff; }

@media (max-width: 900px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---- hero --------------------------------------------------------------- */
.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 13px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 700;
}
.lede { margin: 0 0 30px; font-size: 17.5px; color: var(--text-muted); max-width: 56ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04070d; }
.btn-primary:hover { background: #63adff; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-big { padding: 16px 34px; font-size: 16px; }

.hero-note { margin: 0; font-size: 13.5px; color: var(--text-faint); line-height: 1.7; }

.hero-art {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.plot { width: 100%; height: auto; display: block; }
.plot .grid line { stroke: #1b212c; stroke-width: 1; }
.plot path { fill: none; stroke-linecap: round; }
.trace-faint { stroke: #48566b; stroke-width: 1.6; stroke-dasharray: 4 4; }
.trace-main  { stroke: var(--accent); stroke-width: 3; }
.trace-sub   { stroke: #ff8a4a; stroke-width: 2; stroke-dasharray: 6 4; }
.trace-hi    { stroke: #3ecf8e; stroke-width: 2; stroke-dasharray: 6 4; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-family: var(--mono); font-size: 12px;
  background: var(--sunken); border: 1px solid var(--border);
  color: var(--text-muted); padding: 5px 10px; border-radius: 6px;
}
.chip-warn { border-color: #5c4415; color: var(--warn); }

/* ---- sections ----------------------------------------------------------- */
.section { padding: 84px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }

.kicker {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18; letter-spacing: -.02em; font-weight: 700;
}
h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.section-lede { margin: 0 0 18px; color: var(--text-muted); font-size: 16.5px; max-width: 68ch; }
.section-lede.small { font-size: 14.5px; color: var(--text-faint); }
.section-lede.centered { max-width: none; text-align: center; margin-top: 28px; }
.section-lede em { color: var(--text); font-style: italic; }

/* ---- the eight stages --------------------------------------------------- */
.stages {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden;
}
@media (max-width: 980px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }

.stages li { background: var(--surface); padding: 22px 20px; }
.stages span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.stages b { display: block; margin-bottom: 6px; font-size: 15px; }
.stages p { margin: 0; font-size: 13.5px; color: var(--text-faint); line-height: 1.6; }

/* ---- split layouts ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-wide { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 980px) { .split, .split-wide { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: var(--text-muted); font-size: 15px;
}
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 10px; border: solid var(--good);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ticks em { color: var(--text); font-style: italic; }

/* ---- the sheet ---------------------------------------------------------- */
.paper {
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  overflow-x: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.paper pre {
  margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.65;
  color: var(--text-muted); white-space: pre;
}
.paper b { color: var(--accent); font-weight: 500; }

/* ---- limiter cards ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 38px 0 32px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px;
}
.card-accent { border-color: var(--accent-dim); background: linear-gradient(160deg, #121a28, var(--surface)); }
.card-label { margin: 0 0 14px; font-size: 13px; color: var(--text-faint); }
.card-figure {
  margin: 0 0 12px; font-family: var(--mono);
  font-size: 34px; font-weight: 500; letter-spacing: -.02em; color: var(--text);
}
.card-figure span { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--text-faint); font-weight: 500; letter-spacing: 0; margin-top: 4px; }
.card-accent .card-figure { color: var(--accent); }
.card-note { margin: 0; font-size: 13px; color: var(--text-muted); font-family: var(--mono); line-height: 1.7; }
.card-accent .card-note { font-family: var(--sans); }

.notebox {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: 26px 28px;
}
.notebox p { margin: 0 0 18px; color: var(--text-muted); font-size: 15px; max-width: 74ch; }
.notebox p:last-child { margin-bottom: 0; }
.notebox h3 { color: var(--text); }
.notebox h3 + p { margin-top: 0; }
.notebox em { color: var(--text); font-style: italic; }

/* ---- data table --------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 34px 0 20px; }
.data {
  width: 100%; border-collapse: collapse; min-width: 640px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden;
}
.data caption {
  caption-side: top; text-align: left; padding: 0 0 12px;
  font-size: 13px; color: var(--text-faint);
}
.data th, .data td { padding: 14px 18px; text-align: left; font-size: 14.5px; }
.data thead th {
  background: var(--surface-2); color: var(--text-faint);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.data tbody tr + tr td { border-top: 1px solid var(--border); }
.data td:first-child, .data td:nth-child(3), .data td:nth-child(4) { font-family: var(--mono); }
.data td { color: var(--text-muted); }
.data .ok { color: var(--good); font-weight: 600; }
.data .no { color: var(--bad); font-weight: 600; }

/* ---- tiers -------------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 38px; }
@media (max-width: 800px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 30px;
}
.tier-featured { border-color: var(--accent-dim); background: linear-gradient(170deg, #111a27, var(--surface)); }
.tier-badge {
  position: absolute; top: -11px; left: 30px;
  background: var(--accent); color: #04070d;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin: 0;
}
.tier h3 { font-size: 22px; margin-bottom: 4px; }
.tier-for { margin: 0 0 20px; font-size: 14px; color: var(--text-faint); }
.tier ul { list-style: none; margin: 0; padding: 0; }
.tier li {
  position: relative; padding-left: 24px; margin-bottom: 11px;
  font-size: 14.5px; color: var(--text-muted);
}
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 10px; border: solid var(--accent);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---- the honest box ----------------------------------------------------- */
.honest {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r); padding: 28px;
}
.honest h3 { color: var(--text); margin-bottom: 14px; }
.honest p { margin: 0 0 15px; font-size: 14.5px; color: var(--text-muted); }
.honest em { color: var(--text); font-style: italic; }
.ask {
  margin: 0 !important; padding-top: 16px; border-top: 1px solid var(--border);
  color: var(--text) !important;
}
.ask b { color: var(--accent); }

/* ---- footer ------------------------------------------------------------- */
.footer { padding: 56px 0 32px; background: var(--sunken); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.footer-note { margin: 14px 0 0; font-size: 14px; color: var(--text-faint); max-width: 40ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  padding-top: 22px;
}
.footer-legal p { margin: 0; font-size: 12.5px; color: var(--text-faint); }
