/* mixcommand.com: the Rack look (dark anodized faceplates, silkscreen,
   amber readouts, console tape), as the app has it. Dark only: it's gear. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Share Tech Mono"; font-weight: 400; font-display: swap; src: url("fonts/share-tech-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-weight: 400; font-display: swap; src: url("fonts/permanent-marker-400.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0d0e10;
  --plate: #1d1f23;
  --plate-hi: #2a2d32;
  --plate-lo: #141518;
  --edge: #34373d;
  --ink: #e8e6e1;
  --ink-dim: #a3a39d;
  --silk: #d9d6cf;
  --amber: #ffb547;
  --amber-glow: rgba(255, 181, 71, 0.35);
  --led: #38e37a;
  --lit: #ff9a1f;
  --red: #e5484d;
  --blue: #3e8ef7;
  --yellow: #f5d90a;
  --green: #30a46c;
  --purple: #8e4ec6;
  --radius: 10px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #1b1d22 0%, transparent 60%), var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--amber); }
h1, h2, h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--amber); color: #000; padding: 6px 10px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Silkscreen and readouts */
.silk { font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; color: var(--silk); }
.silk-dim { color: var(--ink-dim); }
.readout {
  font-family: "Share Tech Mono", ui-monospace, monospace; color: var(--amber); letter-spacing: 0.08em;
  text-shadow: 0 0 8px var(--amber-glow); background: #0a0a0b; border: 1px solid #000; border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.05); padding: 4px 10px; display: inline-block;
}
.readout-sm { font-size: 0.75rem; padding: 2px 7px; }
.lede { color: var(--ink-dim); font-size: 1.15rem; max-width: 40em; }

/* Faceplates */
.plate {
  position: relative; border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--plate-hi), var(--plate) 40%, var(--plate-lo));
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.45);
}
.screw {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8a8d93, #3b3e44 60%, #1d1f22);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5px; height: 2px; background: #1a1b1e; transform: rotate(35deg); }
.screw.tl { top: 12px; left: 12px; } .screw.tr { top: 12px; right: 12px; }
.screw.bl { bottom: 12px; left: 12px; } .screw.br { bottom: 12px; right: 12px; }

/* Buttons: lit keys */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  font: 600 0.95rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none;
  color: var(--ink); border-radius: 7px; border: 1px solid #000; cursor: pointer;
  background: linear-gradient(180deg, #3a3d43, #25272b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 #000, 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 80ms, box-shadow 80ms, filter 120ms;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 #000; }
.btn-lit { color: #1c1204; background: linear-gradient(180deg, #ffc46b, var(--lit)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 0 #7a4300, 0 0 18px rgba(255, 154, 31, 0.35); }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(13, 14, 16, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid #000; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-size: 1.05rem; color: var(--ink); }
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a:not(.btn) { color: var(--ink-dim); text-decoration: none; font-weight: 600; }
.topnav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .topnav a:not(.btn) { display: none; } .brand .readout { display: none; } }

/* Hero */
.hero { padding-top: 36px; }
.hero-plate { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 56px 48px; overflow: hidden; }
.hero-copy { display: grid; gap: 20px; align-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-readout { justify-self: start; font-size: 0.85rem; }
.hero-faders { display: flex; justify-content: center; align-items: stretch; gap: 14px; min-height: 320px; padding: 20px 16px 16px; background: rgba(0, 0, 0, 0.28); border-radius: 8px; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6); }
.fader { display: grid; grid-template-rows: auto 1fr; grid-template-columns: 1fr auto; gap: 10px 6px; width: 58px; }
.fader .tape { grid-column: 1 / -1; }
.slot { position: relative; width: 8px; margin: 0 auto; border-radius: 4px; background: #050506; box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255, 255, 255, 0.06); }
.slot::before, .slot::after { content: ""; position: absolute; top: 4%; bottom: 4%; width: 7px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 11%); }
.slot::before { right: 12px; } .slot::after { left: 12px; }
.cap {
  position: absolute; left: 50%; top: var(--cap); width: 34px; height: 44px; transform: translateX(-50%); border-radius: 5px;
  background: linear-gradient(180deg, #5a5d63, #36383d 30%, #1a1b1e 50%, #3a3c41 70%, #54575d);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: ride 6s ease-in-out infinite alternate;
}
.fader:nth-child(2) .cap { animation-duration: 7.5s; } .fader:nth-child(3) .cap { animation-duration: 5.2s; }
.fader:nth-child(4) .cap { animation-duration: 8.4s; } .fader:nth-child(5) .cap { animation-duration: 6.6s; }
.cap::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1px; background: #eee; border-radius: 1px; }
@keyframes ride { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 16px); } }
.meter { width: 6px; border-radius: 2px; background: #050506; position: relative; overflow: hidden; }
.meter i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lvl); background: linear-gradient(0deg, var(--led) 0 65%, var(--yellow) 65% 85%, var(--red) 85%); opacity: 0.9; animation: bounce 900ms ease-in-out infinite alternate; }
.fader:nth-child(2) .meter i { animation-duration: 1100ms; } .fader:nth-child(3) .meter i { animation-duration: 700ms; }
.fader:nth-child(4) .meter i { animation-duration: 1300ms; } .fader:nth-child(5) .meter i { animation-duration: 600ms; }
@keyframes bounce { from { transform: translateY(18%); } to { transform: translateY(0); } }

/* Console tape */
.tape {
  display: block; text-align: center; font: 400 0.95rem/1.2 "Permanent Marker", cursive; color: #111; padding: 3px 4px 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tape) 88%, white), var(--tape)); border-radius: 2px;
  transform: rotate(-1.5deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); white-space: nowrap; overflow: hidden;
}
.fader:nth-child(even) .tape { transform: rotate(1.2deg); }
.tape-lg { font-size: 1.4rem; padding: 8px 18px; transform: rotate(-3deg); }

/* Sections */
.section { padding-top: 88px; }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; }

/* The rack: 1U units with ears */
.rack { list-style: none; margin: 0; padding: 14px; display: grid; gap: 6px; border-radius: 12px; background: linear-gradient(90deg, #0a0a0b, #16171a 3%, #16171a 97%, #0a0a0b); box-shadow: inset 0 0 0 1px #000, 0 20px 40px rgba(0, 0, 0, 0.5); }
.unit { display: grid; grid-template-columns: 28px 1fr 28px; min-height: 86px; }
.ear { display: flex; flex-direction: column; justify-content: space-around; align-items: center; background: linear-gradient(180deg, #2b2e33, #1b1c20); border: 1px solid #000; }
.ear:first-child { border-radius: 6px 0 0 6px; } .ear:last-child { border-radius: 0 6px 6px 0; }
.ear i { width: 10px; height: 6px; border-radius: 3px; background: #050506; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
.unit-face {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 14px 22px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px), linear-gradient(180deg, var(--plate-hi), var(--plate) 45%, var(--plate-lo));
  border-top: 1px solid #000; border-bottom: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.unit h3 { font-size: 1.15rem; color: var(--ink); }
.unit p { color: var(--ink-dim); font-size: 0.98rem; margin-top: 2px; }
.unit-no { font-size: 1rem; min-width: 3.2em; text-align: center; }
.unit-soon .unit-face { opacity: 0.72; }
.tag { font: 600 0.7rem/1 "Barlow Condensed", sans-serif; letter-spacing: 0.1em; color: var(--amber); border: 1px solid currentColor; border-radius: 3px; padding: 2px 5px; margin-left: 6px; vertical-align: 3px; }
.led { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a3f, #0f1a13); box-shadow: inset 0 1px 2px #000; }
.led.on { background: radial-gradient(circle at 35% 35%, #eafff1, var(--led) 45%, #137a3c); box-shadow: 0 0 10px rgba(56, 227, 122, 0.7); }
@media (max-width: 640px) {
  .unit { grid-template-columns: 14px 1fr 14px; }
  .ear i { width: 6px; }
  .unit-face { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
  .unit-face .led { display: none; }
  .unit-no { min-width: 0; }
}

/* Backstage pass */
.pass { margin-top: 28px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 36px 40px; }
.pass h3 { font-size: 2rem; margin: 6px 0 10px; }
.pass p:not(.silk) { color: var(--ink-dim); max-width: 42em; }

/* What you need */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.card .readout { justify-self: start; }
.card h3 { font-size: 1.1rem; color: var(--ink); }
.card p:not(.readout) { color: var(--ink-dim); }

/* Beta sign-up */
.beta-plate { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 52px 48px; }
.beta-copy { display: grid; gap: 16px; align-content: start; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-dim); }
.ticks li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px rgba(56, 227, 122, 0.6); }
.beta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-dim); font-family: "Barlow", sans-serif; font-weight: 400; }
.field-wide { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #0b0c0d; border: 1px solid #000; border-radius: 6px; padding: 10px 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.05);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { color: var(--ink-dim); }
.form-status.ok { color: var(--led); }
.form-status.err { color: #ff8a8d; }

/* Footer */
.footer { padding-top: 72px; padding-bottom: 48px; display: grid; gap: 10px; color: var(--ink-dim); font-size: 0.92rem; }
.footer p:first-child { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.fine { font-size: 0.8rem; opacity: 0.8; }

/* Thanks and 404 pages */
.center { min-height: 70vh; display: grid; place-items: center; padding-top: 40px; }
.center .plate { max-width: 560px; padding: 48px 40px; display: grid; gap: 16px; text-align: center; justify-items: center; }

@media (max-width: 860px) {
  .hero-plate, .beta-plate { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero-faders { min-height: 240px; }
  .cards { grid-template-columns: 1fr; }
  .pass { grid-template-columns: 1fr; padding: 32px 24px; }
  .pass .tape-lg { justify-self: start; }
}
@media (max-width: 480px) {
  .beta-form { grid-template-columns: 1fr; }
  .hero-faders { gap: 8px; padding: 16px 8px; }
  .fader { width: 48px; }
  .tape { font-size: 0.8rem; }
}
