/* ==========================================================================
   SkyLinx Retro Cassette & Boombox Design System
   80s Portable Stereo Deck • Matte ABS • Amber LCD • Tactile Mechanics
   ========================================================================== */

:root {
  --bg-deep: #0b0c0f;
  --chassis-dark: #16181d;
  --chassis-mid: #1e2128;
  --chassis-light: #2a2e38;
  --chassis-bevel: #383d4a;
  --metal-trim: #8e96a6;
  --chrome-highlight: #d8dee9;
  --amber-lcd: #ff8c1a;
  --amber-glow: rgba(255, 140, 26, 0.45);
  --amber-dim: #4d2905;
  --led-green: #2ee67a;
  --led-red: #ff3b30;
  --tape-shell: #22201e;
  --tape-label: #f4ebd9;
  --marker-ink: #17233b;
  --accent-orange: #ff6a00;
  --accent-teal: #2dd4bf;
  --text-main: #edf0f5;
  --text-muted: #9aa3b2;
  --text-dim: #667082;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font-display: "Chakra Petch", "Orbitron", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Share Tech Mono", "Cascadia Code", monospace;
  --font-hand: "Caveat", "ZCOOL XiaoWei", "KaiTi", cursive, serif;
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --radius-chassis: 18px;
  --radius-panel: 12px;
  --shadow-chassis: 0 28px 70px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #1d1a16 0%, #0d0e12 52%, #07080a 100%);
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Dynamic High-End Background Canvas & Analog Overlay */
#boombox-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.analog-grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.14) 0px,
      rgba(0, 0, 0, 0.14) 1px,
      transparent 1px,
      transparent 3px
    );
  background-size: 24px 24px, 100% 3px;
  opacity: 0.45;
}

.page-wrapper {
  position: relative;
  z-index: 2;
}

.container {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

/* Top Promotional Slogan Ticker */
.top-promo-bar {
  background: linear-gradient(90deg, #16110a 0%, #2a1806 50%, #16110a 100%);
  border-bottom: 1px solid rgba(255, 140, 26, 0.35);
  padding: 9px 16px;
  font-size: 0.85rem;
  color: #ffd8ad;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.promo-badge {
  background: var(--amber-lcd);
  color: #140b00;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--amber-glow);
}

.promo-cta-link {
  color: var(--amber-lcd);
  font-weight: 700;
  border-bottom: 1px dashed var(--amber-lcd);
  transition: opacity 0.2s;
}
.promo-cta-link:hover {
  opacity: 0.82;
}

/* Sticky Hardware Navigation Bar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 25, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
}

.brand-reel-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff8c1a 0 22%, #181a20 24% 62%, #3a3f4b 64% 100%);
  border: 2px solid #596070;
  position: relative;
  display: grid;
  place-items: center;
  animation: spinSlow 10s linear infinite;
}

.brand-reel-icon::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--amber-lcd);
  letter-spacing: 0.14em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber-lcd);
  background: rgba(255, 140, 26, 0.09);
  border-color: rgba(255, 140, 26, 0.28);
}

.nav-kb-pill {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3) !important;
  color: var(--accent-teal) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sound-toggle {
  background: #23262f;
  border: 1px solid #3c4252;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.btn-sound-toggle.is-on {
  color: var(--led-green);
  border-color: rgba(46, 230, 122, 0.45);
  box-shadow: 0 0 12px rgba(46, 230, 122, 0.18);
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff9924 0%, #e06100 100%);
  color: #160a00;
  font-weight: 800;
  font-size: 0.9rem;
  border: 1px solid #ffb866;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 106, 0, 0.5);
}

.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2b2f3a 0%, #1c1f27 100%);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #454b5c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: 0.2s;
}
.btn-secondary-cta:hover {
  border-color: var(--amber-lcd);
  color: var(--amber-lcd);
}

.mobile-menu-btn {
  display: none;
  background: #23262f;
  border: 1px solid #3c4252;
  color: var(--text-main);
  padding: 7px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
}

/* ==========================================================================
   HERO: 80s Dual-Deck Boombox & Rotating Cassette
   ========================================================================== */
.hero-section {
  padding: 36px 0 56px;
}

.hero-headline-strip {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 30px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 140, 26, 0.12);
  border: 1px solid rgba(255, 140, 26, 0.35);
  color: var(--amber-lcd);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.2vw, 3.35rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #d4dae6 65%, #ffaf5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-master-quote {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #f3dcc2;
  font-weight: 600;
  margin: 0 auto 12px;
  padding: 10px 18px;
  display: inline-block;
  background: rgba(255, 140, 26, 0.07);
  border-left: 3px solid var(--amber-lcd);
  border-right: 3px solid var(--amber-lcd);
  border-radius: 6px;
}

.hero-subcopy {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Boombox Physical Chassis */
.boombox-unit {
  position: relative;
  background: linear-gradient(180deg, #2b2f39 0%, #1a1d24 14%, #14161b 88%, #101216 100%);
  border: 2px solid #3f4554;
  border-radius: 24px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-chassis);
  overflow: hidden;
}

/* Carrying Handle & Chrome Screws */
.boombox-top-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid #0d0e12;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.model-stamp {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--chrome-highlight);
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-stamp span.badge-stereo {
  border: 1px solid var(--amber-lcd);
  color: var(--amber-lcd);
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 3px;
}

.chassis-specs-plate {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.led-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-green);
  box-shadow: 0 0 10px var(--led-green);
  margin-right: 5px;
}

.led-dot.amber {
  background: var(--amber-lcd);
  box-shadow: 0 0 10px var(--amber-lcd);
}

.led-dot.red {
  background: var(--led-red);
  box-shadow: 0 0 10px var(--led-red);
}

.boombox-grid {
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  gap: 22px;
  align-items: stretch;
}

/* Left & Right Woofer Speaker Grilles */
.speaker-grille {
  background:
    radial-gradient(circle at center, #0c0d10 0 46%, #181b22 48% 58%, #292e39 60% 63%, #12141a 65% 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 6px);
  border: 2px solid #353a47;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.85);
  position: relative;
}

.speaker-cone {
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #333742 0 18%, #101216 20% 42%, #1d2028 45% 78%, #0b0c10 80% 100%);
  border: 4px solid #4a5162;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.95), 0 0 0 3px #14161c;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.12s ease;
}

.boombox-unit.is-playing .speaker-cone {
  animation: speakerPulse 0.48s ease-in-out infinite alternate;
}

.speaker-dustcap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #555c6e, #15171d 70%);
  border: 1px solid #6b7387;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--amber-lcd);
  letter-spacing: 0.08em;
}

.speaker-mesh-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Center Cassette Bay & Amber LCD */
.center-deck {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Amber LCD Telemetry Display */
.lcd-console {
  background: #0d0803;
  border: 3px solid #323642;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: relative;
}

.lcd-counter-box {
  background: rgba(255, 140, 26, 0.08);
  border: 1px solid rgba(255, 140, 26, 0.25);
  border-radius: 6px;
  padding: 6px 12px;
  min-width: 118px;
}

.lcd-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255, 140, 26, 0.72);
  letter-spacing: 0.12em;
  display: block;
}

.lcd-digits {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--amber-lcd);
  text-shadow: 0 0 12px var(--amber-glow);
  letter-spacing: 0.1em;
  line-height: 1.1;
}

.vu-meter-strip {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vu-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber-lcd);
}

.vu-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
  flex: 1;
}

.vu-seg {
  height: 9px;
  border-radius: 2px;
  background: #2b1a07;
  transition: background 0.12s, box-shadow 0.12s;
}

.vu-seg.lit {
  background: var(--amber-lcd);
  box-shadow: 0 0 8px var(--amber-glow);
}

.vu-seg.lit.peak {
  background: #ff3b30;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.65);
}

.lcd-status-readout {
  text-align: right;
  font-family: var(--font-mono);
}

.lcd-mode-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #160a00;
  background: var(--amber-lcd);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 3px;
}

.lcd-ping-text {
  display: block;
  font-size: 0.75rem;
  color: #ffbd73;
}

/* Transparent Cassette Window */
.cassette-bay {
  background: linear-gradient(145deg, #101217 0%, #1c1f26 100%);
  border: 3px solid #3c4252;
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  box-shadow: inset 0 10px 28px rgba(0, 0, 0, 0.9);
}

/* Acrylic Glass Glare */
.cassette-bay::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, transparent 38%, rgba(255, 255, 255, 0.03) 65%, transparent 100%);
  pointer-events: none;
}

.cassette-shell {
  background: linear-gradient(180deg, #272523 0%, #191716 100%);
  border: 2px solid #44403c;
  border-radius: 12px;
  padding: 14px 16px 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}

.cassette-screw {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5a5550;
  border: 1px solid #1e1c1a;
}
.cassette-screw.tl { top: 8px; left: 8px; }
.cassette-screw.tr { top: 8px; right: 8px; }
.cassette-screw.bl { bottom: 8px; left: 8px; }
.cassette-screw.br { bottom: 8px; right: 8px; }

/* Handwritten Marker Paper Sticker */
.cassette-sticker {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 23px,
      rgba(59, 130, 246, 0.14) 23px,
      rgba(59, 130, 246, 0.14) 24px
    ),
    linear-gradient(180deg, #f9f2e4 0%, #eadbc1 100%);
  border-radius: 7px;
  padding: 10px 16px 14px;
  border: 1px solid #c9b79c;
  color: var(--marker-ink);
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.sticker-header-stripe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #ff6a00;
  padding-bottom: 4px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #4a3d2f;
}

.handwritten-title {
  font-family: var(--font-hand);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: #132247;
  transform: rotate(-0.6deg);
  letter-spacing: 0.02em;
  text-shadow: 0.5px 0.5px 0 rgba(19, 34, 71, 0.25);
  margin: 4px 0 8px;
  text-align: center;
}

/* Reels & Tape Window */
.tape-window {
  background: rgba(16, 17, 22, 0.92);
  border: 2px solid #44403c;
  border-radius: 8px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.9);
}

.tape-ribbon-track {
  position: absolute;
  left: 58px;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  border-top: 2px solid #4a2e1b;
  border-bottom: 2px solid #4a2e1b;
  background: repeating-linear-gradient(
    90deg,
    rgba(139, 90, 43, 0.28) 0 8px,
    rgba(40, 24, 14, 0.6) 8px 16px
  );
}

.boombox-unit.is-playing .tape-ribbon-track,
.boombox-unit.is-ffwd .tape-ribbon-track {
  animation: tapeSlide 0.8s linear infinite;
}

.boombox-unit.is-ffwd .tape-ribbon-track {
  animation-duration: 0.22s;
}

.cassette-reel {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #181a1f 0 32%, #e6dfd3 34% 48%, #2c2824 50% 100%);
  border: 3px solid #6b4e35;
  box-shadow: 0 0 0 8px rgba(72, 42, 22, 0.55);
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  animation: spinSlow 6s linear infinite;
}

.cassette-reel::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px dashed #1c1e24;
}

.boombox-unit.is-playing .cassette-reel {
  animation: spinSlow 2.1s linear infinite;
}

.boombox-unit.is-ffwd .cassette-reel {
  animation: spinSlow 0.45s linear infinite;
}

.boombox-unit.is-rec .cassette-reel {
  animation: spinSlow 1.6s linear infinite;
}

.tape-bridge-specs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #a39a8e;
}

/* Tactile Mechanical Transport Buttons */
.transport-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #0f1115;
  border: 2px solid #2d323e;
  border-radius: 12px;
  padding: 10px;
}

.mech-key {
  appearance: none;
  border: 1px solid #4c5364;
  border-bottom: 5px solid #090a0d;
  border-radius: 8px;
  background: linear-gradient(180deg, #353a47 0%, #22262f 60%, #1b1e25 100%);
  color: var(--text-main);
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.08s ease, border-bottom-width 0.08s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 14px rgba(0, 0, 0, 0.5);
}

.mech-key:hover {
  border-color: var(--amber-lcd);
}

.mech-key:active,
.mech-key.is-latched {
  transform: translateY(3px);
  border-bottom-width: 2px;
  background: linear-gradient(180deg, #252933 0%, #161920 100%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 140, 26, 0.25);
}

.mech-key-main {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.mech-key[data-action="play"].is-latched .mech-key-main {
  color: var(--led-green);
}

.mech-key[data-action="ffwd"].is-latched .mech-key-main {
  color: var(--amber-lcd);
}

.mech-key[data-action="rec"].is-latched .mech-key-main,
.mech-key[data-action="rec"] .mech-key-icon {
  color: #ff5449;
}

.mech-key-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-quick-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Section Headers & Shared Hardware Panels
   ========================================================================== */
.section-block {
  padding: 58px 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--amber-lcd);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
}

.section-desc {
  margin: 6px 0 0;
  color: var(--text-muted);
  max-width: 620px;
  font-size: 0.95rem;
}

/* Node Latency & Status Deck */
.rack-panel {
  background: linear-gradient(180deg, #1b1e26 0%, #12141a 100%);
  border: 1px solid #353b4a;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.node-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.node-stats-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-chip {
  background: #0d0f14;
  border: 1px solid #2d3342;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stat-chip strong {
  color: var(--amber-lcd);
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 14px;
}

.node-card {
  background: #13151b;
  border: 1px solid #2a2f3d;
  border-radius: 12px;
  padding: 15px 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.node-card.is-scanning {
  border-color: var(--amber-lcd);
  box-shadow: 0 0 18px rgba(255, 140, 26, 0.22);
}

.node-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.node-name {
  font-weight: 700;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-latency {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--led-green);
  background: rgba(46, 230, 122, 0.1);
  border: 1px solid rgba(46, 230, 122, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.node-latency.warm {
  color: var(--amber-lcd);
  background: rgba(255, 140, 26, 0.1);
  border-color: rgba(255, 140, 26, 0.3);
}

.node-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.node-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unlock-tag {
  font-size: 0.69rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.node-signal-bar {
  margin-top: 10px;
  height: 4px;
  border-radius: 4px;
  background: #232733;
  overflow: hidden;
}

.node-signal-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--led-green), var(--amber-lcd));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Pricing Tape Editions */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 18px;
}

.tape-plan-card {
  background: linear-gradient(180deg, #1f232d 0%, #151820 100%);
  border: 2px solid #353b4a;
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tape-plan-card:hover {
  transform: translateY(-4px);
  border-color: #5b647a;
}

.tape-plan-card.is-featured,
.tape-plan-card.is-highlighted {
  border-color: var(--amber-lcd);
  box-shadow: 0 0 34px rgba(255, 140, 26, 0.22);
}

.plan-tape-ribbon {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber-lcd);
  border-bottom: 2px solid rgba(255, 140, 26, 0.35);
  padding-bottom: 8px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-badge {
  background: var(--amber-lcd);
  color: #160a00;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.66rem;
}

.plan-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0;
  font-family: var(--font-mono);
}

.plan-price .currency {
  font-size: 1rem;
  color: var(--amber-lcd);
}

.plan-price .amount {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
}

.plan-price .period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
  color: #d6dde8;
}

.plan-features li::before {
  content: "▸ ";
  color: var(--amber-lcd);
  font-weight: 700;
}

/* Core Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.adv-card {
  background: linear-gradient(180deg, #1a1d24 0%, #13151b 100%);
  border: 1px solid #2d3240;
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.2s;
}

.adv-card:hover {
  border-color: rgba(255, 140, 26, 0.45);
}

.adv-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 140, 26, 0.12);
  border: 1px solid rgba(255, 140, 26, 0.35);
  color: var(--amber-lcd);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  margin-bottom: 14px;
}

.adv-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-family: var(--font-display);
}

.adv-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.91rem;
}

/* FAQ Mechanical Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #16181f;
  border: 1px solid #2e3342;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-main);
  padding: 17px 20px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--amber-lcd);
}

.faq-toggle-led {
  font-family: var(--font-mono);
  color: var(--amber-lcd);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.93rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* User Reviews (Mixtape Listener Cards) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.review-card {
  background: linear-gradient(180deg, #1b1e26 0%, #14161c 100%);
  border: 1px solid #2f3545;
  border-radius: 14px;
  padding: 20px;
  position: relative;
}

.review-sticker-top {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-lcd);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.review-quote {
  margin: 0 0 16px;
  color: #dfe5f0;
  font-size: 0.93rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c1a, #8b3e00);
  color: #160a00;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
}

.review-author-info strong {
  display: block;
  font-size: 0.9rem;
}

.review-author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Modal for REC Config Export */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 9, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-chassis {
  width: min(720px, 100%);
  background: linear-gradient(180deg, #212530 0%, #151820 100%);
  border: 2px solid var(--amber-lcd);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-close {
  background: #2b303d;
  border: 1px solid #485064;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.client-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.client-tab {
  background: #12141a;
  border: 1px solid #353b4a;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
}

.client-tab.is-active {
  border-color: var(--amber-lcd);
  color: var(--amber-lcd);
  background: rgba(255, 140, 26, 0.12);
}

.config-code-box {
  background: #0a0b0f;
  border: 1px solid #2b303e;
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ffd7a6;
  max-height: 250px;
  overflow: auto;
  white-space: pre;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0d11;
  padding: 40px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--amber-lcd);
}

.footer-copy {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Knowledge Base & Article Pages Styles
   ========================================================================== */
.kb-hero {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.kb-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 26px;
  align-items: center;
}

.kb-search-input {
  flex: 1;
  min-width: 240px;
  background: #14171f;
  border: 1px solid #353b4a;
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.kb-card {
  background: linear-gradient(180deg, #1b1e26 0%, #14161c 100%);
  border: 1px solid #2e3443;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}

.kb-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber-lcd);
}

.kb-card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-lcd);
  margin-bottom: 8px;
}

.kb-card h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.4;
}

.kb-card p {
  margin: 0 0 14px;
  font-size: 0.89rem;
  color: var(--text-muted);
}

.kb-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.kb-kw-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 140, 26, 0.1);
  border: 1px solid rgba(255, 140, 26, 0.28);
  color: #ffc88e;
}

/* Single Article Layout */
.article-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 36px 0 60px;
  align-items: start;
}

.article-main {
  background: linear-gradient(180deg, #171a21 0%, #12141a 100%);
  border: 1px solid #2d3240;
  border-radius: 16px;
  padding: 32px 34px;
}

.article-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-breadcrumb a:hover {
  color: var(--amber-lcd);
}

.article-main h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.28;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: #ffd7a8;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--amber-lcd);
}

.article-body h3 {
  font-size: 1.08rem;
  color: #fff;
  margin: 20px 0 8px;
}

.article-body p {
  margin: 0 0 14px;
  color: #d6dde8;
  font-size: 0.98rem;
  line-height: 1.82;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #d6dde8;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.88rem;
  background: #0e1015;
  border-radius: 8px;
  overflow: hidden;
}

.article-body th,
.article-body td {
  border: 1px solid #2c313f;
  padding: 10px 12px;
  text-align: left;
}

.article-body th {
  background: #1f232e;
  color: var(--amber-lcd);
  font-family: var(--font-mono);
}

.article-body pre {
  background: #0a0c10;
  border: 1px solid #2b303d;
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffd5a1;
}

.article-callout {
  background: rgba(255, 140, 26, 0.08);
  border: 1px solid rgba(255, 140, 26, 0.3);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}

.article-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-box {
  background: #161820;
  border: 1px solid #2e3443;
  border-radius: 14px;
  padding: 18px;
}

.sidebar-box h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
  font-family: var(--font-mono);
  color: var(--amber-lcd);
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.86rem;
}

.sidebar-links a {
  color: var(--text-muted);
  transition: color 0.18s;
}
.sidebar-links a:hover {
  color: var(--amber-lcd);
}

/* Animations */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tapeSlide {
  from { background-position: 0 0; }
  to { background-position: 32px 0; }
}

@keyframes speakerPulse {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .boombox-grid {
    grid-template-columns: 1fr;
  }
  .speaker-grille {
    display: none;
  }
  .article-shell {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #14161c;
    border-bottom: 1px solid #2e3342;
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.is-open {
    display: flex;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .lcd-console {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .lcd-status-readout {
    text-align: left;
  }
  .article-main {
    padding: 22px 18px;
  }
}

