:root {
  --bg: #f5f2ec;
  --card: #ffffff;
  --ink: #171717;
  --muted: #6d675f;
  --line: #ddd6cc;
  --soft: #ebe5da;
  --dark: #111111;
  --accent: #f47c20;
  --accent-soft: #fff0e4;
  --green: #2f7d4f;
  --yellow: #c98422;
  --red: #b33b2f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 124, 32, .12), transparent 32rem),
    var(--bg);
  line-height: 1.5;
}

.hero {
  background: var(--dark);
  color: white;
  padding: 42px 24px;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.07em;
}

.hero p:not(.eyebrow) {
  max-width: 780px;
  color: #ddd;
  font-size: 1.05rem;
}

.page-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.side-nav {
  position: sticky;
  top: 18px;
  align-self: start;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

.side-nav h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.side-nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: .93rem;
}

.side-nav a:hover {
  background: var(--soft);
}

.mobile-guide {
  display: none;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: white;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.guide-section {
  margin-bottom: 52px;
  scroll-margin-top: 88px;
}

.guide-section > h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.06em;
  line-height: .95;
}

.section-intro {
  color: var(--muted);
  max-width: 850px;
  margin: 0 0 20px;
  font-size: 1.02rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.channel-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(0,0,0,.05);
}

.info-card {
  padding: 20px;
}

.info-card h3 {
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.channel-grid {
  display: grid;
  gap: 20px;
}

.channel-card {
  padding: 20px;
  overflow: hidden;
}

.channel-header {
  margin-bottom: 16px;
}

.channel-type {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: #9f460c;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.channel-card h3 {
  margin: 0 0 4px;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  letter-spacing: -.05em;
  line-height: .95;
}

.goal {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.visual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr);
  gap: 16px;
  align-items: stretch;
}

.eq-panel,
.comp-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfaf7;
  padding: 14px;
}

.eq-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.eq-svg {
  min-width: 540px;
  width: 100%;
  height: 230px;
  display: block;
  background:
    linear-gradient(to right, rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.055) 1px, transparent 1px);
  background-size: 54px 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.eq-readouts {
  min-width: 540px;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.eq-readout {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px;
  font-size: .78rem;
}

.eq-readout strong {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .7rem;
  margin-bottom: 4px;
}

.eq-readout span {
  display: block;
  color: var(--muted);
}

.comp-panel h4 {
  margin: 0;
  font-size: 1.15rem;
}

.comp-type {
  margin: 2px 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.knob-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.knob-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  text-align: center;
}

.knob {
  width: 78px;
  height: 78px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--accent) 0deg 220deg, #ddd 220deg 360deg);
  position: relative;
}

.knob::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.knob::before {
  content: "";
  position: absolute;
  z-index: 2;
  width: 4px;
  height: 28px;
  left: 50%;
  top: 10px;
  transform: translateX(-50%) rotate(35deg);
  transform-origin: bottom center;
  background: var(--dark);
  border-radius: 999px;
}

.knob-block strong {
  display: block;
}

.knob-block span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}

.reduction-meter {
  height: 20px;
  margin-top: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(to right, var(--green), var(--yellow), var(--red));
  position: relative;
  overflow: hidden;
}

.target-zone {
  position: absolute;
  left: 32%;
  width: 28%;
  top: 0;
  bottom: 0;
  border: 3px solid #111;
  border-radius: 999px;
}

.small-target .target-zone {
  left: 22%;
  width: 22%;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .75rem;
  margin-top: 6px;
}

.setting-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 7px;
}

.setting-list li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px 10px;
  font-size: .9rem;
}

.simple .setting-list {
  margin-top: 10px;
}

.listen-box {
  margin-top: 14px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #403b35;
}

.group-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.group-settings div {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

@media (max-width: 1050px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    display: none;
  }

  .mobile-guide {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 60;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    background: rgba(245,242,236,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    transform: translateY(-110%);
    transition: transform .25s ease;
  }

  .mobile-guide.is-visible {
    transform: translateY(0);
  }

  .mobile-guide a {
    display: inline-block;
    margin-right: 8px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
    font-size: .84rem;
  }

  .visual-layout {
    grid-template-columns: 1fr;
  }

  .comp-panel {
    max-width: none;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .group-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 34px 18px;
  }

  .page-shell {
    padding: 16px;
  }

  .channel-card {
    padding: 14px;
    border-radius: 22px;
  }

  .visual-layout {
    gap: 12px;
  }

  .eq-panel,
  .comp-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .eq-svg,
  .eq-readouts {
    min-width: 500px;
  }

  .eq-svg {
    height: 210px;
  }

  .eq-readouts {
    grid-template-columns: repeat(5, 98px);
  }

  .knob-row {
    grid-template-columns: 1fr 1fr;
  }

  .knob {
    width: 64px;
    height: 64px;
  }

  .knob::before {
    height: 22px;
  }

  .setting-list li,
  .listen-box {
    font-size: .86rem;
  }

  .group-settings {
    grid-template-columns: 1fr;
  }
}