/* AudioMix Guide — dark Soundcraft console aesthetic */
:root {
  --bg: #0d0f0e;
  --bg-soft: #121514;
  --surface: #181c1a;
  --surface-2: #1e2320;
  --text: #ece9e2;
  --muted: #9aa29b;
  --line: #2a302c;
  --amber: #e8a33d;
  --amber-soft: #3a2f1c;
  --green: #7fc48c;
  --green-soft: #1d3322;
  --red: #e0734f;
  --red-soft: #3a241b;
  --cyan: #7fc9c4;
  --cyan-soft: #1c3332;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --maxw: 1200px;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 12px 32px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -999px; top: 12px; background: var(--text); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 12px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,14,.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
}
.brand-word { line-height: 1; }
.brand-dot { color: var(--amber); }
.brand-sub {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line);
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 500;
  position: relative; padding: 4px 0; transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--amber);
}
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: none; cursor: pointer; border-radius: 10px;
}
.nav-toggle-bar {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero-media {
  position: absolute; inset: 0;
  background-image: url("../images/hero.webp");
  background-size: cover; background-position: center;
  opacity: .38;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,15,14,.35) 0%, var(--bg) 92%);
}
.hero-copy { position: relative; z-index: 2; padding: 108px 28px 96px; max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); font-weight: 600; margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 700;
  margin: 0 0 22px; max-width: 15ch;
}
.hero-title em { font-style: italic; color: var(--amber); }
.hero-sub {
  color: var(--muted); font-size: 1.08rem; max-width: 56ch;
  margin: 0 0 30px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: #14100a; font-weight: 700;
  text-decoration: none; padding: 13px 26px; border-radius: 999px;
  font-size: .95rem; transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #f0b159; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--surface-2); }

/* Panel + section headings */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 28px;
  box-shadow: var(--shadow);
}
.section-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.section-sub { color: var(--muted); font-size: .95rem; margin: 0 0 22px; }
.section-head { padding: 72px 0 8px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }

/* Meter strip (hero stat bar) */
.meter-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 34px; max-width: var(--maxw); margin-left: auto; margin-right: auto;
}
.meter-item {
  background: var(--surface); padding: 18px 22px;
}
.meter-item strong { display: block; font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter-item strong .led { color: var(--green); }
.meter-item span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* EQ Reference — the graphic (channel strips) */
.eq-chart { display: grid; gap: 16px; }
.eq-row {
  display: grid;
  grid-template-columns: 190px 1.15fr 1fr 1fr 1fr 1fr minmax(210px, 1.2fr);
  gap: 14px;
  align-items: start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  padding: 14px 16px;
}
.eq-row:nth-child(3n+2) { border-left-color: var(--green); }
.eq-row:nth-child(3n+3) { border-left-color: var(--cyan); }
.eq-src { display: flex; align-items: center; gap: 10px; min-width: 0; }
.eq-src .icon { font-size: 1.2rem; }
.eq-src .name { font-weight: 700; font-size: .96rem; line-height: 1.25; }
.eq-col-label {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px; font-weight: 600;
}
.eq-col .val { font-size: .86rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.eq-col .val .freq { color: var(--amber); font-weight: 600; }
.eq-col.cut .val .freq { color: var(--red); }
.eq-col.boost .val .freq { color: var(--green); }
.eq-col.listen .val { color: var(--muted); font-size: .82rem; }
.eq-legend {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: .82rem; color: var(--muted);
  margin-top: 18px;
}
.eq-legend span { display: inline-flex; align-items: center; gap: 8px; }
.eq-legend .sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sw-amber { background: var(--amber); }
.sw-red { background: var(--red); }
.sw-green { background: var(--green); }
.sw-cyan { background: var(--cyan); }

/* Workflow steps */
.workflow { display: grid; gap: 12px; }
.wf-step {
  display: grid; grid-template-columns: 56px 1fr 1.4fr;
  gap: 16px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px;
}
.wf-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber);
  font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums;
}
.wf-action { font-weight: 700; font-size: 1rem; }
.wf-check { color: var(--muted); font-size: .88rem; }

/* Tips page */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tip-card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.tip-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--amber);
}
.tip-card:nth-child(3n+2)::before { background: var(--green); }
.tip-card:nth-child(3n+3)::before { background: var(--cyan); }
.tip-card h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.01em; }
.tip-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.tip-num { font-size: .7rem; letter-spacing: .16em; color: var(--amber); font-weight: 700; }
.tip-card:nth-child(3n+2) .tip-num { color: var(--green); }
.tip-card:nth-child(3n+3) .tip-num { color: var(--cyan); }

/* Tips hero (uses tips.webp) */
.hero-media.tips { background-image: url("../images/tips.webp"); }

/* Footer */
.footer {
  margin-top: 72px; padding: 36px 0; text-align: center;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem;
}
.footer .footer-brand { font-weight: 700; color: var(--text); font-size: 1rem; margin: 0 0 4px; }
.footer p { margin: 3px 0; }
.footer code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

/* Password gate */
.gate {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.gate-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 36px; text-align: center; box-shadow: var(--shadow);
}
.gate-logo { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.gate-logo .brand-dot { color: var(--amber); }
.gate-sub { color: var(--muted); font-size: .9rem; margin: 0 0 28px; }
.gate form { display: flex; flex-direction: column; gap: 14px; }
.gate input[type="password"] {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 1rem; padding: 13px 16px; font-family: var(--font-display);
}
.gate input[type="password"]:focus { border-color: var(--amber); outline: none; }
.gate .btn { justify-content: center; }
.gate-err { color: var(--red); font-size: .84rem; min-height: 1.2em; margin: 0; }
.gate-foot { margin: 22px 0 0; font-size: .74rem; color: var(--muted); line-height: 1.5; }
.gate-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); border: 1px solid var(--green-soft);
  background: var(--green-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 22px;
}
.gate-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Responsive */
@media (max-width: 980px) {
  .eq-row {
    grid-template-columns: repeat(6, 1fr);
  }
  .eq-src { grid-column: 1 / -1; }
  .eq-col { grid-column: span 2; }
  .eq-col.listen { grid-column: 1 / -1; grid-row: auto; }
  .wf-step { grid-template-columns: 56px 1fr; }
  .wf-check { grid-column: 2; }
  .tips-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { height: 62px; }
  .brand { font-size: 1.1rem; }
  .brand-sub { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,.5);
    padding: 8px 28px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-links a::after { display: none; }
  .meter-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { padding: 72px 24px 64px; }
  .eq-col { grid-column: 1 / -1; }
}
