@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #090a0a;
  --panel: #111313;
  --panel-2: #171919;
  --line: #2b2e2e;
  --muted: #858b87;
  --paper: #f1f0e8;
  --acid: #c9ff36;
  --orange: #ff9f31;
  --red: #ff5149;
  --cyan: #52d8ff;
  --violet: #bd85ff;
  --green: #76ef9a;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--ink);
  background-size: 44px 44px;
  font-family: var(--sans);
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select, input[type="range"] { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
::selection { background: var(--acid); color: var(--ink); }

.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 64px);
  background: rgba(9,10,10,.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: max-content; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--ink); background: var(--acid); border-radius: 6px;
  font-size: 23px; line-height: 1; font-weight: 900; letter-spacing: -2px;
  transform: skew(-5deg);
}
.brand-type { font-size: 17px; font-weight: 900; letter-spacing: -.04em; }
.brand-type span { color: var(--acid); margin: 0 2px; }
.engine-readout { display: flex; align-items: center; gap: 10px; font-family: var(--mono); }
.engine-readout > div:not(.readout-divider) { display: grid; gap: 2px; min-width: 94px; }
.eyebrow { color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.engine-readout strong { font-size: 10px; letter-spacing: .05em; font-weight: 500; }
.status-light { width: 7px; height: 7px; border-radius: 50%; background: #454948; box-shadow: 0 0 0 4px rgba(255,255,255,.03); }
.status-light.live { background: var(--acid); box-shadow: 0 0 8px var(--acid), 0 0 0 4px rgba(201,255,54,.08); }
.readout-divider { width: 1px; height: 25px; margin: 0 7px; background: var(--line); }
.power-button {
  justify-self: end;
  border: 1px solid var(--acid); background: transparent; height: 40px; padding: 0 16px;
  color: var(--acid); display: flex; align-items: center; gap: 10px;
  font: 500 10px var(--mono); letter-spacing: .08em;
  transition: .2s ease;
}
.power-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.power-button:hover, .power-button.live { color: var(--ink); background: var(--acid); }

main { width: min(1600px, 100%); margin: 0 auto; }
.intro {
  min-height: 385px;
  padding: 76px clamp(18px, 4vw, 64px) 56px;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 8vw; align-items: end;
}
.kicker { margin: 0 0 24px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a1a6a2; }
.kicker span { color: var(--acid); margin-right: 10px; }
h1, .how-to h2, .setup-dialog h2 { margin: 0; font-weight: 900; letter-spacing: -.075em; line-height: .84; }
h1 { font-size: clamp(56px, 7.4vw, 118px); }
h1 em, .setup-dialog h2 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px #666b68; }
.intro-copy { padding-bottom: 5px; }
.intro-copy > p { color: #aaaFAB; line-height: 1.7; font-size: 14px; max-width: 500px; margin: 0 0 28px; }
.spec-list { display: flex; flex-wrap: wrap; gap: 12px 20px; font: 500 9px var(--mono); letter-spacing: .08em; }
.spec-list span { display: flex; align-items: center; gap: 7px; }
.spec-list i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px rgba(201,255,54,.65); }

.rack { margin: 0 clamp(10px, 2.4vw, 38px); border: 1px solid #383c3b; background: #0d0f0f; box-shadow: 0 26px 80px rgba(0,0,0,.38); }
.rack-topbar {
  min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 12px 20px; border-bottom: 1px solid var(--line); background: #151717;
}
.preset-group { display: flex; align-items: center; gap: 14px; }
.preset-group > label, .quality-select span { font: 500 8px var(--mono); color: var(--muted); letter-spacing: .13em; }
.select-wrap { position: relative; min-width: 180px; }
.select-wrap select {
  width: 100%; height: 36px; appearance: none; border: 1px solid #383b3a; color: var(--paper); background: #0d0f0f;
  padding: 0 36px 0 12px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .05em;
}
.select-wrap svg { position: absolute; right: 11px; top: 10px; width: 16px; fill: none; stroke: #9da29f; stroke-width: 1.5; pointer-events: none; }
.signal-chain { display: flex; align-items: center; }
.chain-node {
  width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #3a3d3c;
  background: #0c0e0e; color: #666c69; font: 500 8px var(--mono); border-radius: 50%;
}
button.chain-node { transition: .18s ease; }
button.chain-node:hover { border-color: #838986; color: var(--paper); }
.chain-node.active { background: var(--acid); border-color: var(--acid); color: var(--ink); box-shadow: 0 0 12px rgba(201,255,54,.16); }
.chain-node.chain-io { color: #c2c5c1; border-style: dashed; }
.signal-chain > i { width: clamp(7px, 1.5vw, 24px); height: 1px; background: #363a38; }
.utility-actions { justify-self: end; display: flex; gap: 8px; }
.icon-button {
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 1px solid #373a39; background: transparent; transition: .18s ease;
}
.icon-button:hover { border-color: #8c918e; background: #202322; }
.icon-button svg { width: 15px; fill: none; stroke: #bdc1bd; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

.io-strip { display: grid; grid-template-columns: 270px 1fr 270px; min-height: 160px; border-bottom: 1px solid var(--line); }
.input-panel, .output-panel { padding: 18px 20px; background: #121414; }
.input-panel { border-right: 1px solid var(--line); }
.output-panel { border-left: 1px solid var(--line); }
.section-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.section-label span { font: 700 11px var(--mono); letter-spacing: .1em; }
.section-label b { font: 400 8px var(--mono); color: #686e6a; }
.device-row { display: flex; align-items: center; gap: 10px; height: 34px; }
.jack-icon { width: 30px; height: 30px; border: 1px solid #3a3d3c; border-radius: 50%; display: grid; place-items: center; }
.jack-icon i { width: 7px; height: 7px; background: #050606; border: 1px solid #696e6b; border-radius: 50%; }
.device-info { display: grid; gap: 3px; min-width: 0; flex: 1; }
.device-info span { font: 400 7px var(--mono); color: #6d726f; }
.device-info strong { font: 500 9px var(--mono); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.text-button { padding: 5px 0; border: 0; border-bottom: 1px solid #606562; background: none; font: 500 8px var(--mono); color: #adb2ae; }
.text-button:hover { color: var(--acid); border-color: var(--acid); }
.mini-slider { display: grid; grid-template-columns: 40px 1fr 54px; align-items: center; gap: 8px; margin-top: 18px; }
.mini-slider > span { font: 500 8px var(--mono); color: #777d79; }
.mini-slider output { font: 400 8px var(--mono); text-align: right; color: #bdc1be; }
.mini-slider input { width: 100%; height: 18px; appearance: none; background: transparent; }
.mini-slider input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #717773 50%, #333735 50%); }
.mini-slider input::-webkit-slider-thumb { appearance: none; width: 8px; height: 14px; margin-top: -6px; border: 1px solid #b2b6b3; background: #171a19; }
.mini-slider input::-moz-range-track { height: 2px; background: #4a4e4c; }
.mini-slider input::-moz-range-thumb { width: 8px; height: 14px; border-radius: 0; border: 1px solid #b2b6b3; background: #171a19; }
.scope-panel { padding: 16px 22px 12px; position: relative; min-width: 0; background: #0a0c0c; overflow: hidden; }
.scope-panel::before { content: ''; position: absolute; inset: 43px 22px 22px; background: repeating-linear-gradient(90deg, transparent 0 49px, rgba(255,255,255,.035) 50px), repeating-linear-gradient(0deg, transparent 0 24px, rgba(255,255,255,.035) 25px); }
.scope-header { display: flex; justify-content: space-between; position: relative; z-index: 1; font: 400 8px var(--mono); color: #686e6a; letter-spacing: .1em; }
.scope-header > div { display: flex; align-items: center; gap: 6px; }
.scope-header i { width: 5px; height: 5px; border-radius: 50%; background: #4b504d; }
.scope-header i.live { background: var(--acid); box-shadow: 0 0 7px var(--acid); }
.scope-header b { font-weight: 500; color: #8e9490; }
#scope { display: block; width: 100%; height: 98px; position: relative; z-index: 1; }
.scope-scale { position: absolute; top: 47px; bottom: 25px; right: 7px; display: flex; flex-direction: column; justify-content: space-between; font: 400 6px var(--mono); color: #4e5350; }
.meter-block { margin-top: 5px; }
.meter-labels { display: flex; justify-content: space-between; margin-bottom: 6px; font: 400 6px var(--mono); color: #646966; }
.meter-track { height: 9px; position: relative; background: repeating-linear-gradient(90deg, #292d2b 0 4px, transparent 4px 6px); overflow: hidden; }
.meter-track span { display: block; width: 0%; height: 100%; transition: width .06s linear; background: repeating-linear-gradient(90deg, var(--acid) 0 4px, transparent 4px 6px); filter: drop-shadow(0 0 3px rgba(201,255,54,.5)); }
.meter-track i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: white; transition: left .25s ease-out; }

.pedalboard { padding: clamp(14px, 2vw, 28px); display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.5vw, 22px); background: #0a0c0c; }
.pedal {
  --accent: var(--acid); --pedal-bg: #232522;
  grid-column: span 2; min-width: 0; min-height: 505px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  padding: 22px 20px 18px; color: #111311; background-color: var(--pedal-bg);
  border-radius: 7px; border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px rgba(255,255,255,.18), inset 0 -1px rgba(0,0,0,.5), 0 12px 24px rgba(0,0,0,.28);
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.pedal::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.pedal::after { content: ''; position: absolute; left: 11px; right: 11px; top: 10px; height: 1px; background: rgba(255,255,255,.16); }
.pedal:not(.enabled) { filter: saturate(.45) brightness(.77); }
.pedal:not(.enabled):hover { filter: saturate(.65) brightness(.86); }
.pedal:nth-child(4), .pedal:nth-child(5) { grid-column: span 3; }
.pedal-overdrive { --accent: #ffb23f; --pedal-bg: #d7831f; }
.pedal-distortion { --accent: #ff6c61; --pedal-bg: #cd3f39; }
.pedal-delay { --accent: #67ddff; --pedal-bg: #40b8d5; }
.pedal-reverb { --accent: #c294ff; --pedal-bg: #9766cc; }
.pedal-flanger { --accent: #79eda0; --pedal-bg: #48b76d; }
.pedal-head { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.pedal-index, .pedal-model { display: block; font: 500 8px var(--mono); letter-spacing: .1em; }
.pedal-index { margin-bottom: 6px; opacity: .65; }
.pedal-model { border: 1px solid currentColor; height: 22px; padding: 5px 6px; opacity: .65; }
.pedal h2 { margin: 0; font-size: clamp(23px, 2.1vw, 36px); line-height: .95; letter-spacing: -.06em; font-weight: 900; }

.knob-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; position: relative; z-index: 3; margin: 28px -5px 0; }
.pedal-overdrive .knob-grid, .pedal-distortion .knob-grid { margin-top: 112px; }
.knob-control { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.knob-control input {
  appearance: none; position: absolute; z-index: 5; top: 0; left: 10%; width: 80%; height: 76px; opacity: 0;
}
.knob {
  --angle: -4deg;
  width: clamp(50px, 5vw, 66px); aspect-ratio: 1; display: block; position: relative; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #3c403e 0 6%, #202321 28%, #0e100f 70%);
  border: 2px solid #111311;
  box-shadow: 0 4px 6px rgba(0,0,0,.42), inset 0 0 0 3px #2b2f2d, inset -4px -5px 8px #080909;
  transform: rotate(var(--angle));
}
.knob i { position: absolute; top: 5px; left: calc(50% - 1px); width: 2px; height: 17px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 5px var(--accent); }
.knob b { position: absolute; inset: -6px; border-radius: 50%; border: 1px dotted rgba(10,11,10,.4); }
.knob-ticks {
  position: absolute; width: clamp(64px, 6vw, 80px); aspect-ratio: 1; top: -7px; border-radius: 50%; opacity: .48;
  background: repeating-conic-gradient(from 224deg, currentColor 0 1deg, transparent 1deg 15deg);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 72% 70%, 28% 70%, 0 86%);
}
.knob-control:hover .knob { box-shadow: 0 4px 8px rgba(0,0,0,.5), inset 0 0 0 3px #343a36, 0 0 0 1px rgba(255,255,255,.14); }
.knob-label { margin-top: 12px; font: 600 7px var(--mono); letter-spacing: .08em; }
.knob-control output { margin-top: 4px; min-height: 11px; font: 500 8px var(--mono); opacity: .62; }

.pedal-foot { display: grid; grid-template-columns: 1fr 74px 1fr; align-items: end; gap: 8px; margin-top: auto; padding-top: 25px; position: relative; z-index: 2; }
.pedal-foot::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: rgba(16,17,16,.22); }
.footswitch {
  width: 58px; height: 58px; place-self: center; border-radius: 50%; padding: 0; position: relative;
  border: 2px solid #0c0d0c; background: linear-gradient(145deg, #bfc2bd, #515652 45%, #171a18 48%, #949993 70%, #353936);
  box-shadow: 0 4px 7px rgba(0,0,0,.42), inset 0 2px 2px rgba(255,255,255,.55);
}
.footswitch span { position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #e0e2df, #858a85 35%, #343734 72%); border: 1px solid #1f221f; transition: transform .12s; }
.footswitch:hover span { transform: translateY(1px); }
.footswitch:active span { transform: translateY(3px); }
.pedal-led { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 6px var(--mono); letter-spacing: .08em; }
.pedal-led i { width: 9px; height: 9px; border-radius: 50%; background: #3b3d3a; border: 1px solid #171817; box-shadow: inset 0 1px 2px #171817; }
.pedal.enabled .pedal-led i { background: var(--accent); box-shadow: 0 0 5px var(--accent), 0 0 14px var(--accent), inset 0 1px rgba(255,255,255,.8); }
.bypass-label { font: 500 6px var(--mono); letter-spacing: .08em; opacity: .55; align-self: center; text-align: right; }
.tap-button { justify-self: center; align-self: center; width: 46px; height: 26px; border: 1px solid #132022; background: rgba(10,20,22,.14); font: 600 7px var(--mono); letter-spacing: .08em; }
.tap-button:active, .tap-button.pulse { color: #eefcff; background: rgba(255,255,255,.2); }

.delay-screen { height: 78px; margin-top: 22px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: #0b1f24; border: 1px solid #19414a; color: var(--cyan); box-shadow: inset 0 0 20px rgba(0,0,0,.5); font-family: var(--mono); }
.delay-screen > div:first-child { display: grid; }
.delay-screen span { font-size: 6px; letter-spacing: .1em; }
.delay-screen strong { font-size: 22px; font-weight: 500; line-height: 1.1; text-shadow: 0 0 8px rgba(82,216,255,.5); }
.delay-screen strong small { font-size: 7px; margin-left: 2px; }
.delay-pulses { height: 30px; display: flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden; }
.delay-pulses i { width: 2px; height: 7px; background: currentColor; opacity: .32; animation: echoPulse 1.6s ease-out infinite; }
.delay-pulses i:nth-child(2) { height: 14px; animation-delay: .14s; }
.delay-pulses i:nth-child(3) { height: 27px; animation-delay: .28s; opacity: 1; }
.delay-pulses i:nth-child(4) { height: 14px; animation-delay: .42s; }
.delay-pulses i:nth-child(5) { height: 7px; animation-delay: .56s; }
@keyframes echoPulse { 0%, 40%, 100% { transform: scaleY(.35); opacity: .2; } 12% { transform: scaleY(1); opacity: 1; } }
.reverb-graphic { height: 78px; position: relative; margin-top: 22px; overflow: hidden; display: grid; place-items: center; border-top: 1px solid rgba(20,10,30,.18); border-bottom: 1px solid rgba(20,10,30,.18); }
.reverb-graphic span { position: absolute; border: 1px solid rgba(26,10,38,.38); border-radius: 50%; animation: roomRing 4s linear infinite; }
.reverb-graphic span:nth-child(1) { width: 35px; height: 35px; }
.reverb-graphic span:nth-child(2) { width: 75px; height: 75px; animation-delay: -.8s; }
.reverb-graphic span:nth-child(3) { width: 125px; height: 125px; animation-delay: -1.6s; }
.reverb-graphic span:nth-child(4) { width: 190px; height: 190px; animation-delay: -2.4s; }
.reverb-graphic i { font: 500 7px var(--mono); font-style: normal; letter-spacing: .14em; z-index: 2; }
@keyframes roomRing { 50% { transform: scale(1.1); opacity: .25; } }
.flanger-graphic { height: 78px; margin-top: 22px; display: flex; align-items: center; overflow: hidden; border-top: 1px solid rgba(7,33,16,.2); border-bottom: 1px solid rgba(7,33,16,.2); }
.flanger-graphic svg { width: 100%; height: 100%; overflow: visible; }
.flanger-graphic path { fill: none; stroke: #163c22; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flanger-graphic path + path { opacity: .35; animation: phaseWave 3s ease-in-out infinite alternate; }
@keyframes phaseWave { to { transform: translateX(-25px); } }

.rack-footer { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 12px 22px; border-top: 1px solid var(--line); background: #151717; }
.rack-footer > div:first-child { display: flex; align-items: center; gap: 10px; }
.footer-number { color: var(--acid); font: 500 30px var(--mono); }
.rack-footer p { margin: 0; color: #777d79; font: 400 7px/1.5 var(--mono); letter-spacing: .08em; }
.privacy-note { display: flex; align-items: center; gap: 8px; }
.privacy-note svg { width: 16px; fill: none; stroke: var(--acid); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.quality-select { justify-self: end; display: grid; gap: 4px; text-align: right; }
.quality-select strong { font: 500 9px var(--mono); }
.quality-select b { color: var(--acid); font-weight: 500; }

.how-to { margin: 130px clamp(18px, 4vw, 64px) 120px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; }
.how-to h2 { font-size: clamp(54px, 6vw, 90px); }
.how-to ol { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.how-to li { display: grid; grid-template-columns: 54px 120px 1fr; gap: 20px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 25px 0; }
.how-to li > b { color: var(--acid); font: 500 10px var(--mono); }
.how-to li strong { font: 700 11px var(--mono); letter-spacing: .08em; }
.how-to li p { grid-column: 3; margin: 0; color: #898f8b; font-size: 12px; line-height: 1.6; }
.how-to li div { display: contents; }
.site-footer { height: 96px; padding: 0 clamp(18px, 4vw, 64px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #727774; font: 500 8px var(--mono); letter-spacing: .08em; }
.site-footer > span { color: var(--paper); font: 900 15px var(--sans); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--acid); }
.footer-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.site-footer .powered-link { color: #555a57; font-size: 7px; text-transform: none; letter-spacing: .04em; }
.site-footer .powered-link:hover { color: #858b87; }

.setup-dialog { width: min(560px, calc(100% - 24px)); padding: 0; color: var(--paper); background: #121414; border: 1px solid #444846; box-shadow: 0 30px 100px #000; }
.setup-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.setup-dialog form { padding: 36px; position: relative; }
.dialog-close { position: absolute; right: 16px; top: 14px; border: 0; background: none; color: #888e8a; font-size: 25px; font-weight: 300; }
.setup-dialog h2 { font-size: clamp(47px, 10vw, 70px); margin-bottom: 28px; }
.warning-card { display: flex; gap: 15px; padding: 15px; background: #1b1e1d; border: 1px solid #323635; }
.warning-card svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--acid); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.warning-card strong { font: 600 9px var(--mono); letter-spacing: .08em; }
.warning-card p { margin: 6px 0 0; color: #979d99; font-size: 11px; line-height: 1.55; }
.dialog-device { display: grid; gap: 8px; margin-top: 20px; }
.dialog-device > span { font: 500 8px var(--mono); color: #838985; letter-spacing: .1em; }
.dialog-device select { width: 100%; height: 45px; padding: 0 12px; border: 1px solid #3b3f3d; border-radius: 0; color: var(--paper); background: #0b0d0c; font: 500 10px var(--mono); }
.agreement { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #b7bbb8; font-size: 11px; cursor: pointer; }
.agreement input { position: absolute; opacity: 0; }
.agreement span { width: 17px; height: 17px; border: 1px solid #555a57; display: grid; place-items: center; flex: 0 0 auto; }
.agreement input:checked + span { border-color: var(--acid); background: var(--acid); }
.agreement input:checked + span::after { content: '✓'; color: var(--ink); font: 800 12px var(--sans); }
.dialog-start { width: 100%; height: 52px; padding: 0 17px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--acid); background: var(--acid); color: var(--ink); font: 700 10px var(--mono); letter-spacing: .1em; }
.dialog-start:disabled { background: #252826; color: #666b68; border-color: #353937; cursor: not-allowed; }
.dialog-start svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.permission-note { margin: 14px 25px 0; text-align: center; color: #686e6a; font: 400 8px/1.5 var(--mono); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 25px); display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px #000; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast span { width: 6px; height: 6px; border-radius: 50%; background: #499800; }
.toast p { margin: 0; font: 600 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 1120px) {
  .rack-topbar { grid-template-columns: 1fr auto; }
  .signal-chain { grid-row: 2; grid-column: 1 / -1; justify-self: center; padding: 6px 0 3px; }
  .signal-chain > i { width: 26px; }
  .io-strip { grid-template-columns: 220px 1fr 220px; }
  .pedal { grid-column: span 3; }
  .pedal:nth-child(5) { grid-column: 2 / span 4; }
  .pedal h2 { font-size: clamp(28px, 4vw, 38px); }
  .knob { width: clamp(56px, 7vw, 70px); }
  .knob-ticks { width: clamp(70px, 8vw, 84px); }
}

@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; height: 68px; }
  .engine-readout { display: none; }
  .power-button { height: 36px; padding: 0 12px; }
  .intro { grid-template-columns: 1fr; gap: 35px; padding-top: 60px; padding-bottom: 50px; }
  .intro h1 { font-size: clamp(51px, 14vw, 82px); }
  .intro-copy { max-width: 550px; }
  .rack { margin: 0 8px; }
  .io-strip { grid-template-columns: 1fr 1fr; }
  .scope-panel { grid-column: 1 / -1; grid-row: 2; height: 150px; border-top: 1px solid var(--line); }
  .input-panel { border-right: 1px solid var(--line); }
  .output-panel { border-left: 0; }
  .pedalboard { grid-template-columns: 1fr 1fr; }
  .pedal, .pedal:nth-child(4), .pedal:nth-child(5) { grid-column: auto; min-height: 485px; }
  .knob { width: clamp(47px, 8vw, 62px); }
  .knob-ticks { width: clamp(61px, 9.5vw, 75px); }
  .rack-footer { grid-template-columns: 1fr 1fr; }
  .privacy-note { display: none; }
  .how-to { grid-template-columns: 1fr; gap: 60px; margin-top: 100px; }
}

@media (max-width: 620px) {
  .brand-type { font-size: 15px; }
  .power-button span { font-size: 0; }
  .power-button span::after { content: 'START'; font-size: 10px; }
  .rack-topbar { display: flex; flex-wrap: wrap; padding: 13px 12px; gap: 10px; }
  .preset-group { flex: 1; }
  .preset-group > label { display: none; }
  .select-wrap { min-width: 150px; }
  .utility-actions { margin-left: auto; }
  .signal-chain { width: 100%; order: 3; }
  .signal-chain > i { flex: 1; width: auto; min-width: 4px; }
  .chain-node { width: 28px; height: 28px; flex: 0 0 auto; }
  .io-strip { grid-template-columns: 1fr; }
  .input-panel { border: 0; border-bottom: 1px solid var(--line); }
  .output-panel { border-bottom: 1px solid var(--line); }
  .scope-panel { grid-column: auto; grid-row: auto; }
  .pedalboard { grid-template-columns: 1fr; padding: 12px; gap: 14px; }
  .pedal, .pedal:nth-child(4), .pedal:nth-child(5) { grid-column: auto; min-height: 480px; }
  .pedal h2 { font-size: 34px; }
  .knob { width: clamp(57px, 17vw, 72px); }
  .knob-ticks { width: clamp(70px, 20vw, 86px); }
  .knob-control input { height: 86px; }
  .rack-footer { grid-template-columns: 1fr; padding: 18px; }
  .quality-select { justify-self: start; text-align: left; }
  .how-to { margin: 90px 22px; }
  .how-to li { grid-template-columns: 34px 1fr; gap: 12px; }
  .how-to li div { display: block; }
  .how-to li p { margin-top: 8px; }
  .site-footer { height: 120px; align-items: flex-start; flex-direction: column; padding-top: 26px; padding-bottom: 26px; }
  .site-footer p { display: none; }
  .footer-links { width: 100%; justify-content: space-between; }
  .setup-dialog form { padding: 30px 20px 24px; }
}

@media (max-width: 380px) {
  .site-header { padding: 0 12px; }
  .intro { padding-left: 15px; padding-right: 15px; }
  .pedal { padding-left: 14px; padding-right: 14px; }
  .knob { width: 55px; }
  .knob-ticks { width: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
