/* ═══════════════════════════════════════════════════════════════════
   LA LLORONA — Horror Reverberator Website
   Carbon Fiber Plugins
   Spectral Horror Visual DNA — exact plugin color palette
═══════════════════════════════════════════════════════════════════ */

/* From editor.rs:
   BG:       rgb(5, 5, 8)     → #050508
   PANEL:    rgb(12, 10, 16)  → #0c0a10
   BORDER:   rgb(45, 15, 60)  → #2d0f3c
   TEXT:     rgb(255,230,240) → #ffe6f0
   TEXT_DIM: rgb(150, 80,120) → #965078
   CYAN:     rgb(0, 255, 200) → #00ffc8
   CYAN_MID: rgb(0, 140, 110) → #008c6e
   WHITE_BONE (pink): rgb(255,0,100) → #ff0064
   PURPLE:   rgb(160, 20,255) → #a014ff
   ACCENT_SPATIAL: rgb(0,180,255) → #00b4ff
*/

:root {
  --bg:      #050508;
  --panel:   #0c0a10;
  --border:  #2d0f3c;
  --text:    #ffe6f0;
  --dim:     #965078;
  --cyan:    #00ffc8;
  --cyan-m:  #008c6e;
  --pink:    #ff0064;
  --purple:  #a014ff;
  --blue:    #00b4ff;
  --blood:   #ff143c;

  --font-mono:  'Share Tech Mono', monospace;
  --font-body:  'Rajdhani', sans-serif;
  --font-title: 'Orbitron', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 66px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
strong { color: var(--cyan); font-weight: 600; }
em { color: var(--pink); font-style: italic; }

/* ── HAZARD STRIPE ── */
.hazard-bar {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--cyan-m) 0, var(--cyan-m) 6px,
    #0a0c12 6px, #0a0c12 15px
  );
  width: 100%;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(5, 5, 8, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  height: 100%;
}
.nav-brand-img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.3));
  transition: filter .3s ease, transform .3s ease;
}
.nav-brand:hover .nav-brand-img {
  filter: drop-shadow(0 0 14px rgba(140, 230, 40, 0.6));
  transform: scale(1.03);
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 160;
  transition: border-color 0.25s, background 0.25s;
}
.nav-toggle:hover, .nav-toggle.open {
  border-color: var(--cyan);
  background: rgba(0, 255, 200, 0.08);
}
.hamburger-bar {
  width: 22px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  flex-shrink: 1;
  height: auto;
  margin: 0;
  padding: 0;
}
.nav-links li {
  display: flex;
  align-items: center;
  height: auto;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--dim);
  padding: 0 10px;
  height: 38px;
  border: none;
  transition: all .2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
  border-color: transparent;
  background: transparent;
  text-shadow: 0 0 8px rgba(0, 255, 200, 0.4);
}
.nav-links a.nav-trial-btn {
  color: var(--cyan);
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  border-radius: 0;
  padding: 0 14px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all .2s ease;
}
.nav-links a.nav-trial-btn:hover {
  background: transparent;
  color: #fff;
  border-color: transparent;
  text-shadow: 0 0 14px rgba(0, 255, 200, 0.85);
  box-shadow: none;
}
.nav-links a.nav-buy-btn {
  color: var(--pink);
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .08em;
  border-radius: 0;
  padding: 0 14px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all .2s ease;
}
.nav-links a.nav-buy-btn:hover {
  background: transparent;
  color: #fff;
  border-color: transparent;
  text-shadow: 0 0 16px rgba(255, 0, 100, 0.9);
  box-shadow: none;
}
.nav-price-strike {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  opacity: 0.65;
  margin: 0 5px 0 6px;
  font-weight: 500;
  font-size: 0.92em;
}

/* ── ACCOUNT & SUPPORT BUTTONS (SEPARATED RIGHT OF BUY NOW) ── */
.nav-links li.nav-account-item {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.nav-links li.nav-support-item {
  margin-left: 4px;
}
.nav-links a.nav-account-btn {
  color: var(--cyan);
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0;
  padding: 0 12px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  letter-spacing: .06em;
  box-shadow: none;
  transition: all .2s ease;
}
.nav-links a.nav-account-btn:hover {
  color: #fff;
  border-color: transparent;
  background: transparent;
  text-shadow: 0 0 12px rgba(0, 255, 200, 0.7);
  box-shadow: none;
}
.nav-links a.nav-support-btn {
  color: #d8c2d2;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0;
  padding: 0 12px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  letter-spacing: .06em;
  box-shadow: none;
  transition: all .2s ease;
}
.nav-links a.nav-support-btn:hover,
.nav-links a.nav-support-btn.active {
  color: #00ffc8;
  border-color: transparent;
  background: transparent;
  text-shadow: 0 0 12px rgba(0, 255, 200, 0.6);
  box-shadow: none;
}

.nav-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── SECTION ── */
.section { padding: 90px 0; }

/* ══════════════════════════════════════════════════════════════
   HERO — Pure CSS dark panel + Canvas animation. NO IMAGES.
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Animated canvas fills the hero background */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Subtle vignette overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 30%,
    rgba(5,5,8,0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: 40px 24px;
  max-width: 820px;
}

/* Hero Title Wrap — standalone without plaque box */
.hero-title-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

/* Hero Content Wrap — tagline + CTA buttons */
.hero-boxed-content {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 10px 24px;
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Plaque corner marks (purple — same as header corner marks in plugin) */
.plaque-corner { position: absolute; width: 10px; height: 10px; }
.plaque-corner::before, .plaque-corner::after { content:''; position:absolute; background: var(--purple); }
.plaque-corner::before { width:1.5px; height:10px; }
.plaque-corner::after  { width:10px;  height:1.5px; }
.plaque-corner--tl { top:-1px;  left:-1px;  } .plaque-corner--tl::before{top:0;left:0;}  .plaque-corner--tl::after{top:0;left:0;}
.plaque-corner--tr { top:-1px;  right:-1px; } .plaque-corner--tr::before{top:0;right:0;} .plaque-corner--tr::after{top:0;right:0;}
.plaque-corner--bl { bottom:-1px;left:-1px; } .plaque-corner--bl::before{bottom:0;left:0;} .plaque-corner--bl::after{bottom:0;left:0;}
.plaque-corner--br { bottom:-1px;right:-1px;} .plaque-corner--br::before{bottom:0;right:0;}.plaque-corner--br::after{bottom:0;right:0;}

.plugin-brand-logo {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.hero-brand-img {
  height: 54px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(0, 255, 200, 0.4)) drop-shadow(0 0 6px rgba(140, 230, 40, 0.35));
}

/* Title — chromatic aberration: pink layer offset left, cyan offset right, white on top */
.hero-title {
  position: relative;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  height: 1.15em;
  margin-bottom: 4px;
}
.title-layer {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.title-pink  { color: rgba(255,0,100,.65);  transform: translateX(calc(-50% - 3px)); }
.title-cyan  { color: rgba(0,255,200,.65);  transform: translateX(calc(-50% + 3px)); }
.title-white { color: #ffffff; }

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--dim);
  margin-top: 2px;
}

.hero-tagline { display: flex; flex-direction: column; gap: 5px; text-align: center; }
.tagline-main { font-family: var(--font-body); font-size: clamp(1.05rem,2vw,1.35rem); font-weight: 600; color: var(--text); letter-spacing: .04em; }
.tagline-sub  { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .08em; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  color: #000; background: var(--cyan); padding: 12px 32px;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: all .2s; display: inline-block;
}
.btn-primary:hover { background: #fff; box-shadow: 0 0 20px rgba(0,255,200,.4); color:#000; }
.btn-ghost {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  color: var(--purple); background: transparent; padding: 11px 30px;
  border: 1px solid var(--purple);
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: all .2s; display: inline-block;
}
.btn-ghost:hover { background: rgba(160,20,255,.1); color:#fff; border-color:#fff; }

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.scroll-cue-text {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.25em;
  color: var(--dim);
  text-transform: uppercase;
}
.scroll-mouse {
  width: 14px;
  height: 22px;
  border: 1.5px solid var(--dim);
  border-radius: 8px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.scroll-wheel {
  width: 2px;
  height: 5px;
  background: var(--cyan);
  border-radius: 1px;
  animation: scrollWheelPulse 1.8s infinite ease-in-out;
}
@keyframes scrollWheelPulse {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   LA LLORONA HARDWARE PLUGIN UI STYLES (from la_llorona_ui.html)
═══════════════════════════════════════════════════════════════ */
:root {
  --wood-base: #19191c;
  --wood-dark: #0f0f12;
  --wood-light: #28282d;
  --disabled-grey: #505058;
}

.plugin-showcase-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  padding: 10px 0 30px;
}

/* Sub-Module Rack Chassis Frame */
.plugin-rack-frame {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto 40px auto;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

.rack-chassis {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hazard-stripe-top {
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--cyan-m) 0,
    var(--cyan-m) 6px,
    #08080c 6px,
    #08080c 15px
  );
  margin-bottom: 8px;
  border-radius: 2px;
}

/* Plugin Main Container (Fixed 1060px x 534px) */
#plugin-window {
  width: 1060px;
  height: 534px;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(160, 20, 255, 0.2);
  border: 1px solid #1a0824;
  flex-shrink: 0;
  font-family: Consolas, "Segoe UI", Roboto, monospace;
  color: var(--text);
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

/* Side Charcoal Wood Panels */
.wood-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  background: var(--wood-base);
  z-index: 30;
}
.wood-panel.left {
  left: 0;
  border-right: 1.5px solid rgba(0, 0, 0, 0.8);
}
.wood-panel.right {
  right: 0;
  border-left: 1.5px solid rgba(0, 0, 0, 0.8);
}
.wood-grain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--wood-dark);
}
.wood-highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--wood-light);
}

/* Main Work Area (1020px) */
.work-area {
  position: absolute;
  left: 20px;
  width: 1020px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: visible;
  box-sizing: border-box;
}

.corner-mark {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}

/* Header Section (130px) */
.header {
  width: 100%;
  height: 130px;
  background: #0a0e12;
  border: 1px solid var(--border);
  border-top: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: visible;
}

.header-hazard-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--cyan-m) 0,
    var(--cyan-m) 6px,
    #08080c 6px,
    #08080c 15px
  );
  border-bottom: 1px solid var(--border);
  z-index: 10;
  pointer-events: none;
}

/* Header Left Wing: Signal Routing / Bypass */
.header-left-controls {
  position: absolute;
  left: 16px;
  top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
}

.header-control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.header-control-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #e6e6f0;
  letter-spacing: 1px;
  font-family: Consolas, monospace;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.bypass-btn {
  width: 135px;
  height: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: #ffffff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.bypass-btn:hover {
  border-color: #00ffc8;
  color: #ffffff;
}
.bypass-btn.active {
  background: #dc2341;
  border-color: #ff3c5a;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(220, 35, 65, 0.6);
}

/* Header Center: Title Plaque (460px x 94px) */
.header .title-plaque {
  width: 460px;
  height: 94px;
  margin-top: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px;
  box-sizing: border-box;
}

.title-text-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.title-glitch {
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  position: relative;
  color: #ffffff;
  line-height: 1;
  transition: color 0.15s ease;
}
.title-glitch::before {
  content: "LA LLORONA";
  position: absolute;
  left: -2px;
  top: 0;
  color: rgba(255, 0, 100, 0.75);
  z-index: -1;
  transition: all 0.15s ease;
}
.title-glitch::after {
  content: "LA LLORONA";
  position: absolute;
  left: 2px;
  top: 0;
  color: rgba(0, 255, 200, 0.75);
  z-index: -1;
  transition: all 0.15s ease;
}
.title-text-container:hover .title-glitch {
  color: var(--cyan);
}
.title-text-container:hover .title-glitch::before {
  left: -3.5px;
  color: rgba(255, 0, 100, 0.9);
}
.title-text-container:hover .title-glitch::after {
  left: 3.5px;
  color: rgba(0, 255, 200, 0.9);
}

.subtitle {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #c080a8;
  margin-top: 4px;
  transition: color 0.15s ease;
}
.title-text-container:hover .subtitle {
  color: #dcf0ff;
}

/* Preset Navigation Bar */
.preset-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 260px;
  margin-top: 2px;
}

.preset-arrow-btn {
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.15s ease, transform 0.1s ease;
}
.preset-arrow-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.preset-display-btn {
  flex: 1;
  height: 20px;
  background: #0a0e12;
  border: 1px solid var(--cyan-m);
  border-radius: 2px;
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  text-shadow: 0 0 6px rgba(0, 255, 200, 0.4);
}
.preset-display-btn:hover {
  border-color: var(--cyan);
  color: #ffffff;
  background: #0f181c;
}

/* Wireframe Vector Isometric Die Randomizer Buttons */
.plaque-die-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 18px;
  height: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  opacity: 0.75;
  transition: all 0.15s ease;
  z-index: 20;
  outline: none;
}
.plaque-die-icon:hover {
  opacity: 1;
  color: #ffffff;
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(0, 255, 200, 0.8));
}

.module-die-icon {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 16px;
  height: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: all 0.15s ease;
  z-index: 20;
  outline: none;
}
.module-die-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}

.module-box.reverb .module-die-icon {
  color: var(--cyan);
}
.module-box.reverb .module-die-icon:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(0, 255, 200, 0.9));
}

.module-box.spatial .module-die-icon {
  color: var(--ice);
}
.module-box.spatial .module-die-icon:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(0, 180, 255, 0.9));
}

.module-box.pressure .module-die-icon {
  color: var(--pink);
}
.module-box.pressure .module-die-icon:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 0, 100, 0.9));
}

.module-box.horror .module-die-icon {
  color: var(--purple);
}
.module-box.horror .module-die-icon:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(160, 20, 255, 0.9));
}

.vector-die-icon {
  display: block;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Header Right Wing: ERB RESOLUTION */
.header-right-controls {
  position: absolute;
  right: 16px;
  top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.dropdown-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #e6e6f0;
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.custom-dropdown-trigger {
  background: var(--panel);
  border: 1px solid var(--border);
  color: #ffffff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  height: 28px;
  padding: 0 10px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 135px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.custom-dropdown-trigger:hover {
  border-color: var(--purple);
  background: #14101c;
}
.custom-dropdown-trigger.cyan-theme {
  border-color: var(--border);
  color: var(--cyan);
}
.custom-dropdown-trigger.cyan-theme:hover {
  border-color: var(--cyan);
  background: #101c1c;
}

.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor;
}

.dropdown-menu {
  position: absolute;
  top: 34px;
  right: 0;
  background: #0b141a;
  border: 1px solid var(--cyan-m);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.95);
  z-index: 100;
  display: none;
  flex-direction: column;
  width: 135px;
  overflow: hidden;
}
.dropdown-menu.open {
  display: flex;
}
.dropdown-item {
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 10px;
  color: var(--text);
  cursor: pointer;
  font-family: Consolas, monospace;
}
.dropdown-item:hover, .dropdown-item.selected {
  background: #142a32;
  color: var(--cyan);
}

/* Tier 1 in Reverb Module */
.reverb-tier1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 225px;
  margin-top: 2px;
  padding: 0 6px;
  box-sizing: border-box;
}

.room-type-group {
  align-items: flex-start;
}
.room-type-group .dropdown-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #e6e6f0;
  margin-bottom: 4px;
}
.room-type-group .custom-dropdown-trigger.cyan-theme {
  min-width: 140px;
  width: 140px;
  height: 26px;
  font-size: 10.5px;
  font-weight: 700;
  border-color: var(--border);
  color: var(--cyan);
}
.room-type-group .custom-dropdown-trigger.cyan-theme:hover {
  border-color: var(--cyan);
  background: #101c1c;
}
.room-type-group .dropdown-menu {
  top: 30px;
  left: 0;
  right: auto;
  width: 140px;
}

/* Modules Container (Fixed 1020px, NO scrollbars) */
.modules-container {
  width: 1020px;
  height: 352px;
  margin-top: 6px;
  padding: 0 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  overflow: visible !important;
  box-sizing: border-box;
}

/* Omit module plugin UI racks on mobile view (max-width: 1060px) */
@media (max-width: 1060px) {
  .plugin-rack-frame {
    display: none !important;
  }
}

.module-box {
  height: 352px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: visible;
}
.module-box.reverb { width: 245px; }
.module-box.spatial { width: 175px; }
.module-box.pressure { width: 260px; }
.module-box.horror { width: 295px; }

.module-box.dimmed-module {
  opacity: 0.28;
  filter: grayscale(0.75) brightness(0.6);
  pointer-events: none;
}
.module-box.dimmed-module .module-title-badge {
  color: var(--dim) !important;
  border-color: var(--border) !important;
}
.module-box.dimmed-module .toggle-btn {
  background: var(--panel) !important;
  color: var(--disabled-grey) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}

.module-title-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #06080c;
  border: 1px solid var(--border);
  padding: 2px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  white-space: nowrap;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.module-title-badge.cyan { color: #00ffc8; border-color: rgba(0, 255, 200, 0.4); text-shadow: 0 0 8px rgba(0, 255, 200, 0.4); }
.module-title-badge.ice { color: #00b4ff; border-color: rgba(0, 180, 255, 0.4); text-shadow: 0 0 8px rgba(0, 180, 255, 0.4); }
.module-title-badge.pink { color: #ff0064; border-color: rgba(255, 0, 100, 0.4); text-shadow: 0 0 8px rgba(255, 0, 100, 0.4); }
.module-title-badge.purple { color: #c850ff; border-color: rgba(160, 20, 255, 0.4); text-shadow: 0 0 8px rgba(160, 20, 255, 0.4); }

/* Audio Knobs Component */
.knob-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: ns-resize;
  position: relative;
}
.knob-canvas {
  display: block;
}
.knob-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #f5f5fa;
  margin-top: 3px;
  text-align: center;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  line-height: 1.1;
  white-space: nowrap;
}
.knob-slot:hover .knob-label {
  color: #ffffff;
}
.knob-val {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
  text-align: center;
  font-family: Consolas, monospace;
  letter-spacing: 0.4px;
  line-height: 1.1;
  white-space: nowrap;
}

.mod-divider {
  height: 1px;
  background: var(--border);
}

/* Toggle Buttons */
.toggle-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: #787888;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11.5px;
  font-weight: 700;
  height: 24px;
  width: 80px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.8px;
  box-sizing: border-box;
}
.toggle-btn.outlined-btn {
  background: #0c0a10;
  border-color: #262030;
}
.toggle-btn.outlined-btn.purple-active.active {
  background: #0c0a10;
  color: #c850ff;
  font-weight: 800;
  border-color: #a014ff;
  box-shadow: 0 0 10px rgba(160, 20, 255, 0.4);
  text-shadow: 0 0 8px rgba(160, 20, 255, 0.6);
}
.toggle-btn.outlined-btn.ice-active.active {
  background: #0c0a10;
  color: #00c8ff;
  font-weight: 800;
  border-color: #0088cc;
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.4);
  text-shadow: 0 0 8px rgba(0, 180, 255, 0.6);
}
.toggle-btn:hover {
  border-color: #00ffc8;
  color: #ffffff;
}

.solo-btn-group {
  display: flex;
  gap: 15px;
  margin-top: 6px;
}
.mini-solo-btn {
  width: 60px;
  height: 19px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: #787888;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  font-family: Consolas, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.mini-solo-btn.active {
  background: #0c0a10;
  color: #00c8ff;
  font-weight: 800;
  border-color: #0088cc;
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.4);
  text-shadow: 0 0 6px rgba(0, 180, 255, 0.6);
}
.mini-solo-btn:hover {
  border-color: #00ffc8;
  color: #ffffff;
}

.horror-row {
  width: 275px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
}

.bottom-bar {
  width: 1000px;
  height: 26px;
  margin-top: 8px;
  background: #0a0e12;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #00ffc8;
  letter-spacing: 0.6px;
  font-family: Consolas, monospace;
  text-shadow: 0 0 8px rgba(0, 255, 200, 0.35);
  box-sizing: border-box;
}

.rack-resize-grip {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 9px;
  color: #3d4048;
  letter-spacing: -1px;
  pointer-events: none;
  user-select: none;
  font-family: Consolas, monospace;
}

/* ERB Visualizer Canvas Container */
.erb-canvas-container {
  width: 100%;
  height: 220px;
  background: #030508;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}
#erb-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 3;
  animation: scrollCue 2.5s ease-in-out infinite;
}
.scroll-line { width: 1px; height: 30px; background: linear-gradient(to bottom, var(--cyan), transparent); }
.scroll-dot  { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
@keyframes scrollCue {
  0%,100% { opacity:.4; transform: translateX(-50%) translateY(0); }
  50%     { opacity:1;  transform: translateX(-50%) translateY(6px); }
}

/* ── INTRO ── */
.intro-section { padding: 90px 0 110px; }
.intro-section .section-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--cyan-m);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.intro-section .section-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.18;
  margin-bottom: 48px;
  color: var(--text);
}
.intro-section .section-title em { color: var(--cyan); font-style: normal; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: center;
}
.intro-text p {
  color: rgba(255, 230, 240, .85);
  margin-bottom: 22px;
  font-size: 1.16rem;
  line-height: 1.7;
}
.intro-text p:last-child {
  margin-bottom: 0;
}
.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  gap: 0;
}

/* Vertical cross line */
.intro-stats::before {
  content: '';
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(160, 20, 255, 0.45) 20%,
    rgba(0, 255, 200, 0.65) 50%,
    rgba(160, 20, 255, 0.45) 80%,
    transparent 100%
  );
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Horizontal cross line */
.intro-stats::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(160, 20, 255, 0.45) 20%,
    rgba(0, 255, 200, 0.65) 50%,
    rgba(160, 20, 255, 0.45) 80%,
    transparent 100%
  );
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.stat-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 30px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
  cursor: default;
  position: relative;
  z-index: 2;
}

.stat-card:hover {
  transform: scale(1.04);
}

.stat-card:hover .stat-number {
  text-shadow: 0 0 24px rgba(0, 255, 200, 0.9);
}

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 10px;
  transition: text-shadow .25s ease;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   VIDEO DEMO SECTION — Minimal & Elegant
   ══════════════════════════════════════════════════════════════ */
.video-demo-section {
  padding: 70px 0 80px;
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 255, 200, 0.03) 0%, transparent 70%);
}

.video-card-wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.video-card {
  position: relative;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  border-color: rgba(0, 255, 200, 0.25);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 200, 0.06);
}

.video-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0c0b10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
}

.video-status-indicator {
  display: flex;
  align-items: center;
  gap: 9px;
}

.video-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: videoDotPulse 2.5s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes videoDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px var(--cyan); }
  50% { opacity: 0.35; transform: scale(0.85); box-shadow: 0 0 2px var(--cyan); }
}

.video-title-bar {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.video-badge-tag {
  color: var(--dim);
  background: transparent;
  border: none;
  padding: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.video-responsive-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
  overflow: hidden;
}

.video-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card--short {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.video-responsive-container--short {
  padding-bottom: 105%; /* Framed & cropped aspect ratio to reduce excessive vertical height */
}

.video-responsive-container--short iframe,
.video-responsive-container--short .video-iframe--short {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 155%;
  transform: translate(-50%, -50%);
  border: 0;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 20px;
  background: #0c0b10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
}

.video-meta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.video-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-meta-label {
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.video-meta-val {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 10.5px;
}

.video-youtube-link {
  display: inline-flex;
  align-items: center;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  font-weight: 500;
}

.video-youtube-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
}

/* ── MODULE SECTION ── */
.module-section { padding: 90px 0; }
.module-section--dark { background: linear-gradient(180deg, var(--bg) 0%, rgba(10,5,15,.7) 50%, var(--bg) 100%); }

.module-header { margin-bottom: 36px; }
.module-label { font-family:var(--font-mono); font-size:9px; letter-spacing:.22em; text-transform:uppercase; margin-bottom:10px; }
.module-label--cyan   { color: var(--cyan-m); }
.module-label--blue   { color: var(--blue); }
.module-label--pink   { color: var(--pink); }
.module-label--purple { color: var(--purple); }
.module-title { font-family:var(--font-title); font-size:clamp(1.6rem,2.5vw,2.2rem); font-weight:700; letter-spacing:.1em; margin-bottom:6px; }
.module-title--cyan   { color:var(--cyan);   text-shadow: 0 0 28px rgba(0,255,200,.25); }
.module-title--blue   { color:var(--blue);   text-shadow: 0 0 28px rgba(0,180,255,.25); }
.module-title--pink   { color:var(--pink);   text-shadow: 0 0 28px rgba(255,0,100,.25); }
.module-title--purple { color:var(--purple); text-shadow: 0 0 28px rgba(160,20,255,.25); }
.module-desc { font-family:var(--font-mono); font-size:9.5px; color:var(--dim); letter-spacing:.1em; }

/* ══════════════════════════════════════════════════════════════
   PLUGIN CANVAS WRAP
   The canvas draws all 4 plugin panels at once, with only the
   relevant panel at full brightness. Other panels are dimmed.
══════════════════════════════════════════════════════════════ */
.plugin-canvas-wrap {
  width: 100%;
  margin: 0 auto 48px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

/* The canvas scales to full CSS width, height auto-follows aspect ratio */
.plugin-canvas {
  width: 100%;
  height: auto;
  display: block;
  /* Keep pixel rendering crisp when scaled */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Module explanation grid below the canvas */
.module-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.module-explain-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 20px;
  transition: border-color .25s, background .25s;
}
.module-explain-card:hover {
  border-color: rgba(0,255,200,.3);
  background: rgba(12,10,16,.98);
}
.explain-param-name {
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.module-explain-card p { font-size:.88rem; color:rgba(255,230,240,.72); line-height:1.6; }

.explain-tag-wide {
  grid-column: 1 / -1;
  background: var(--panel);
  border-left: 3px solid var(--cyan);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--cyan);
  letter-spacing: .06em;
  line-height: 1.5;
}
.tag-icon { margin-right: 8px; }

/* ── HORROR ENGINE CARDS ── */
#psychoacoustic-horror .module-header {
  margin-bottom: 48px;
}
#psychoacoustic-horror .module-label {
  font-size: 11px;
  letter-spacing: .24em;
  margin-bottom: 14px;
}
#psychoacoustic-horror .module-title {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  letter-spacing: .08em;
  line-height: 1.16;
  margin-bottom: 12px;
}
#psychoacoustic-horror .module-desc {
  font-size: 1.05rem;
  letter-spacing: .06em;
  color: rgba(255, 230, 240, 0.78);
  line-height: 1.5;
}

.horror-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 48px;
}
.horror-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 24px 22px;
  position: relative;
  transition: transform .25s ease;
  cursor: default;
}
.horror-card:first-child {
  padding-left: 0;
}
.horror-card:last-child {
  padding-right: 0;
}
.horror-card:hover {
  transform: translateY(-4px);
}

/* Vertical gradient divider between horror cards */
.horror-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 6%;
  bottom: 6%;
  right: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(160, 20, 255, 0.4) 20%,
    rgba(0, 255, 200, 0.55) 50%,
    rgba(160, 20, 255, 0.4) 80%,
    transparent 100%
  );
  pointer-events: none;
}
.horror-card-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.horror-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 900;
  border: 2px solid;
}
.horror-card-icon--dread    { color:var(--cyan);   border-color:var(--cyan);   background:rgba(0,255,200,.08); }
.horror-card-icon--paranoia { color:var(--blue);   border-color:var(--blue);   background:rgba(0,180,255,.08); }
.horror-card-icon--agony    { color:var(--pink);   border-color:var(--pink);   background:rgba(255,0,100,.08); }
.horror-card-icon--psycho   { color:var(--purple); border-color:var(--purple); background:rgba(160,20,255,.08); }
.horror-card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--purple);
}
.horror-card-subtitle {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: .08em;
  margin-top: 3px;
}
.horror-card p {
  font-size: 1.02rem;
  color: rgba(255, 230, 240, 0.85);
  line-height: 1.65;
  margin-bottom: 18px;
}
.horror-spec {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}
.spec-value {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: .06em;
  line-height: 1.45;
  font-weight: 600;
}

/* ── ARCHETYPES & SIDE ANIMATION SHOWCASE ── */
.archetypes-section { background: transparent; position: relative; }
.room-archetypes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.archetype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.archetype-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 16px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Intersecting grid lines between 3x3 cells */
.archetype-card:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(0, 255, 200, 0.3) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.archetype-card:nth-child(-n+6)::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(0, 255, 200, 0.3) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.archetype-card:hover {
  background: radial-gradient(circle at center, rgba(0, 255, 200, 0.05) 0%, transparent 80%);
  transform: scale(1.02);
}

.archetype-card.active, .archetype-card--featured.active {
  background: radial-gradient(circle at center, rgba(0, 255, 200, 0.1) 0%, transparent 80%);
  box-shadow: none;
}

.archetype-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.archetype-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
  font-weight: 700;
  letter-spacing: .06em;
}
.archetype-card.active .archetype-num {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.8);
}
.archetype-name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  text-transform: uppercase;
  transition: color .2s, text-shadow .2s;
  line-height: 1.2;
}
.archetype-card:hover .archetype-name,
.archetype-card.active .archetype-name {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 200, 0.8);
}

.archetype-desc {
  font-size: .84rem;
  color: rgba(255, 230, 240, .6);
  line-height: 1.5;
  margin-bottom: 12px;
  transition: color .2s;
}
.archetype-card.active .archetype-desc {
  color: rgba(255, 255, 255, 0.9);
}

.archetype-tag {
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--cyan-m);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  margin-top: auto;
}
.archetype-card.active .archetype-tag {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 255, 200, 0.6);
}

/* Side Room Animation Frame Showcase */
.room-animation-display {
  position: sticky;
  top: 80px;
  width: 100%;
}

.room-display-frame {
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

.room-canvas-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  background: #010609;
  border: 1px solid rgba(0, 255, 200, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 255, 200, 0.1);
}
#room-vector-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  filter: saturate(1.08) contrast(1.04);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#room-animation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 4;
}
.room-canvas-overlay {
  position: absolute;
  bottom: 10px;
  left: 12px;
  pointer-events: none;
  z-index: 5;
}
.overlay-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--cyan);
  background: rgba(5, 5, 8, 0.88);
  padding: 3px 8px;
  border: 1px solid var(--cyan-m);
  border-radius: 2px;
  letter-spacing: .1em;
  text-shadow: 0 0 6px rgba(0, 255, 200, 0.4);
}

.room-info-body {
  padding: 24px 0 0;
  background: transparent;
  border: none;
}
.room-info-header {
  margin-bottom: 12px;
}
.room-title-display {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .1em;
  text-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
  line-height: 1.1;
}
.room-subtitle-display {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
  letter-spacing: .12em;
  margin-top: 4px;
}

.room-full-desc {
  font-size: .92rem;
  color: rgba(255, 230, 240, 0.82);
  line-height: 1.7;
  margin-top: 10px;
}

/* ── ERB ── */
.erb-section { padding: 90px 0; }
.erb-inner { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.erb-title { font-family:var(--font-title); font-size:clamp(1.6rem,2.5vw,2rem); font-weight:700; letter-spacing:.06em; color:var(--text); margin-bottom:22px; line-height:1.2; }
.erb-text p { color:rgba(255,230,240,.73); margin-bottom:14px; font-size:.95rem; }
.erb-visual { background:var(--panel); border:1px solid var(--border); padding:20px 18px; border-radius: 4px; }
.erb-visual-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; flex-wrap:wrap; gap:8px; }
.erb-visual-title { font-family:var(--font-mono); font-size:9px; letter-spacing:.16em; color:var(--cyan); font-weight:700; }
.erb-signal-triggers { display:flex; gap:6px; flex-wrap:wrap; }
.erb-sig-btn { font-family:var(--font-mono); font-size:8px; letter-spacing:.08em; background:var(--bg); color:var(--dim); border:1px solid var(--border); padding:3px 8px; border-radius:2px; cursor:pointer; transition:all .2s ease; }
.erb-sig-btn:hover { background:rgba(0,255,200,.12); border-color:var(--cyan); color:var(--cyan); box-shadow:0 0 8px rgba(0,255,200,.25); }
.erb-sig-btn:active { transform:scale(0.95); }

.erb-hud-overlay { position:absolute; top:8px; right:10px; display:flex; flex-direction:column; align-items:flex-end; pointer-events:none; z-index:5; }
.hud-tag { font-family:var(--font-mono); font-size:7.5px; letter-spacing:.12em; color:var(--purple); background:rgba(5,5,8,.85); padding:2px 6px; border:1px solid rgba(160,20,255,.3); border-radius:2px; }
.hud-info { font-family:var(--font-mono); font-size:7.5px; letter-spacing:.06em; color:var(--cyan); margin-top:3px; text-shadow:0 0 6px rgba(0,255,200,.5); }

.erb-labels { display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:7.5px; color:var(--dim); margin-bottom:14px; }
.erb-band-selector-wrap { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.erb-selector-label { font-family:var(--font-mono); font-size:8px; letter-spacing:.14em; color:var(--dim); }
.erb-band-selector { display:flex; gap:8px; }
.erb-btn { font-family:var(--font-mono); font-size:8.5px; letter-spacing:.1em; background:var(--bg); color:var(--dim); border:1px solid var(--border); padding:5px 12px; cursor:pointer; transition:all .2s; }
.erb-btn:hover, .erb-btn--active { background:rgba(0,255,200,.07); border-color:var(--cyan); color:var(--cyan); }

/* ── ELEGANT ERB EXPLANATION & MINIMAL FFT NOTE ── */
.erb-explanation-wrap { margin-top:60px; padding-top:48px; border-top:1px dashed var(--border); }
.explanation-header { text-align:center; margin-bottom:36px; }
.explanation-title { font-family:var(--font-title); font-size:clamp(1.4rem,2.2vw,1.9rem); font-weight:700; letter-spacing:.08em; color:var(--text); margin-bottom:8px; }
.explanation-subtitle { font-family:var(--font-body); font-size:.95rem; color:rgba(255,230,240,.73); max-width:680px; margin:0 auto; line-height:1.6; }

.explanation-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:0; }
.explanation-card { background:var(--panel); border:1px solid var(--border); padding:24px 20px; border-radius:4px; transition:border-color .3s ease, background .3s ease, transform .3s ease; }
.explanation-card:hover { border-color:rgba(0,255,200,.4); background:rgba(12,10,16,.98); transform:translateY(-3px); }
.exp-badge { font-family:var(--font-mono); font-size:8px; letter-spacing:.14em; color:var(--purple); margin-bottom:10px; font-weight:700; }
.exp-card-title { font-family:var(--font-title); font-size:1.02rem; font-weight:700; letter-spacing:.06em; color:var(--cyan); margin-bottom:12px; }
.explanation-card p { font-size:.88rem; color:rgba(255,230,240,.75); line-height:1.65; }

/* Minimal Observation Callout at Bottom */
.erb-fft-note { background:rgba(8,6,12,.85); border:1px solid var(--border); border-left:3px solid var(--purple); padding:16px 20px; border-radius:3px; display:flex; align-items:center; gap:18px; }
.fft-note-label { font-family:var(--font-mono); font-size:8px; letter-spacing:.14em; color:var(--purple); font-weight:700; white-space:nowrap; background:rgba(160,20,255,.1); padding:4px 8px; border:1px solid rgba(160,20,255,.3); border-radius:2px; flex-shrink:0; }
.fft-note-text { font-family:var(--font-body); font-size:.88rem; color:rgba(255,230,240,.68); line-height:1.55; margin:0; }
.fft-note-text strong { color:rgba(255,230,240,.92); }



/* ── WHY SECTION REDESIGN ── */
.why-section {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, rgba(160, 20, 255, 0.05) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg) 0%, rgba(12, 10, 16, 0.6) 50%, var(--bg) 100%);
}

.section-subtitle-text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 230, 240, 0.65);
  max-width: 680px;
  margin: 12px auto 0;
  line-height: 1.6;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.why-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background-color 0.35s ease;
  overflow: hidden;
}

/* Plaque Corner Bracket overrides inside why-cards */
.why-card .plaque-corner::before,
.why-card .plaque-corner::after {
  background: var(--card-accent-color, var(--purple));
  opacity: 0.5;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.why-card:hover .plaque-corner::before,
.why-card:hover .plaque-corner::after {
  opacity: 1;
}

/* Subtle background glowing gradient per card hover */
.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, var(--card-accent-glow, rgba(0, 255, 200, 0.08)) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.why-card:hover::before {
  opacity: 1;
}

/* Bottom Glowing Line Accent */
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent-color, var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent-color, var(--cyan));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 24px var(--card-accent-glow, rgba(0, 255, 200, 0.15));
}

.why-card:hover::after {
  transform: scaleX(1);
}

/* Color variations */
.why-card--cyan {
  --card-accent-color: var(--cyan);
  --card-accent-glow: rgba(0, 255, 200, 0.18);
}
.why-card--blue {
  --card-accent-color: var(--blue);
  --card-accent-glow: rgba(0, 180, 255, 0.18);
}
.why-card--pink {
  --card-accent-color: var(--pink);
  --card-accent-glow: rgba(255, 0, 100, 0.18);
}
.why-card--purple {
  --card-accent-color: var(--purple);
  --card-accent-glow: rgba(160, 20, 255, 0.22);
}
.why-card--blood {
  --card-accent-color: var(--blood);
  --card-accent-glow: rgba(255, 20, 60, 0.22);
}

.why-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(5, 5, 8, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent-color, var(--cyan));
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.why-card:hover .why-icon-box {
  border-color: var(--card-accent-color, var(--cyan));
  background: rgba(12, 10, 16, 0.95);
  transform: scale(1.08);
  box-shadow: 0 0 14px var(--card-accent-glow, rgba(0, 255, 200, 0.25));
}

.why-svg-icon {
  width: 24px;
  height: 24px;
}

.why-card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.why-card:hover .why-card-title {
  color: var(--card-accent-color, var(--cyan));
}

.why-card-desc {
  font-size: 0.91rem;
  color: rgba(255, 230, 240, 0.75);
  line-height: 1.65;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.why-card-desc strong {
  color: var(--card-accent-color, var(--cyan));
  font-weight: 600;
}

/* ── LEGEND — Dark Vector Illustration Art Presentation ── */
.legend-section {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(1, 8, 11, 0.98) 100%);
  position: relative;
}
.legend-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(16, 85, 98, 0.12) 0%, transparent 80%);
  pointer-events: none;
}
.legend-header { text-align: center; margin-bottom: 52px; }
.legend-title {
  font-family: var(--font-title); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: .12em;
  color: var(--text);
  text-shadow: 0 0 35px rgba(27, 120, 138, 0.35);
  margin-bottom: 6px;
}
.legend-subtitle { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: #289ab0; }
.legend-layout { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start; }

.legend-image-wrap {
  position: relative;
  border: 1px solid rgba(22, 95, 110, 0.28);
  background: #010609;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.98), 0 0 35px rgba(16, 75, 88, 0.2);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.legend-image-wrap:hover {
  border-color: rgba(60, 190, 210, 0.5);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(37, 155, 176, 0.35);
}

#llorona-vector-art {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.legend-image-wrap:hover #llorona-vector-art {
  transform: scale(1.025);
  filter: saturate(1.15) contrast(1.06);
}

.legend-mist-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.legend-text { display: flex; flex-direction: column; gap: 0; }
.legend-dropcap { margin-bottom: 16px; }
.dropcap { float: left; font-family: var(--font-title); font-size: 4.2rem; line-height: .82; margin-right: 8px; color: #36b4ca; text-shadow: 0 0 18px rgba(37, 155, 176, 0.4); }
.legend-text p { color: rgba(255, 230, 240, .77); margin-bottom: 16px; font-size: .96rem; line-height: 1.75; }
.legend-quote { margin: 26px 0; padding: 18px 26px; background: rgba(14, 66, 79, 0.22); border-left: 3px solid #259cb1; position: relative; }
.quote-mark { position: absolute; font-family: var(--font-title); font-size: 3.5rem; color: #36b4ca; opacity: .3; line-height: 1; }
.quote-mark { top: 4px; left: 8px; } .quote-mark--close { top: auto; bottom: -10px; right: 12px; left: auto; }
blockquote { font-family: var(--font-body); font-size: 1.02rem; font-style: italic; color: rgba(255, 230, 240, .85); line-height: 1.65; padding: 0 12px; }
.legend-why { margin-top: 26px; padding: 22px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid #259cb1; }
.legend-why-title { font-family: var(--font-title); font-size: .95rem; font-weight: 700; color: #36b4ca; letter-spacing: .06em; margin-bottom: 12px; }

/* ── FOOTER ── */
.footer { background:var(--panel); border-top:1px solid var(--border); }
.hazard-bar--footer { position:static; height:6px; }
.footer-inner { max-width:1200px; margin:0 auto; padding:44px 32px; display:flex; justify-content:space-between; align-items:center; }
.footer-logo { display:flex; align-items:center; margin-bottom:12px; }
.footer-brand-img {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.3));
}
.footer-tagline { font-family:var(--font-mono); font-size:8.5px; color:var(--dim); letter-spacing:.1em; }
.footer-plugin-name { text-align:center; }
.footer-title-wrap { display:flex; flex-direction:column; line-height:1; }
.footer-la       { font-family:var(--font-title); font-size:10px; letter-spacing:.3em; color:var(--dim); }
.footer-llorona  { font-family:var(--font-title); font-size:2.2rem; font-weight:900; letter-spacing:.14em; color:var(--text); text-shadow:-1px 0 rgba(255,0,100,.4), 1px 0 rgba(0,255,200,.4); }
.footer-subtitle { font-family:var(--font-mono); font-size:8.5px; letter-spacing:.16em; color:var(--dim); margin-top:4px; }
.footer-bottom { text-align:center; padding:14px 32px; border-top:1px solid var(--border); font-family:var(--font-mono); font-size:8px; color:var(--dim); letter-spacing:.1em; }

/* ── SCROLL REVEAL ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .65s ease, transform .65s ease; }
.reveal.revealed { opacity:1; transform:none; }

/* ═══════════════════════════════════════════════════════════════════
   14-DAY TRIAL SECTIONS & PURCHASING DESIGN SYSTEM
═══════════════════════════════════════════════════════════════════ */

/* Section Containers */
.trial-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Variant 1: Post-Hero Callout */
.trial-section--hero-banner {
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 200, 0.08) 0%, transparent 75%),
              linear-gradient(180deg, var(--bg) 0%, rgba(12, 10, 16, 0.95) 50%, var(--bg) 100%);
  border-top: 1px solid rgba(0, 255, 200, 0.2);
  border-bottom: 1px solid rgba(45, 15, 60, 0.8);
}

/* Variant 2: Post-Module 04 DAW Integration Showcase */
.trial-section--dsp-rack {
  background: radial-gradient(ellipse at 50% 50%, rgba(160, 20, 255, 0.07) 0%, transparent 80%),
              linear-gradient(180deg, rgba(5, 5, 8, 0.98) 0%, rgba(18, 12, 28, 0.95) 50%, var(--bg) 100%);
  border-top: 1px solid rgba(160, 20, 255, 0.3);
  border-bottom: 1px solid rgba(0, 180, 255, 0.3);
  padding: 80px 0;
}

/* Variant 3: Pre-Origin Story Pledge */
.trial-section--pledge {
  background: radial-gradient(circle at 50% 40%, rgba(255, 0, 100, 0.08) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg) 0%, rgba(15, 8, 18, 0.98) 50%, var(--bg) 100%);
  border-top: 1px solid rgba(255, 0, 100, 0.3);
  border-bottom: 1px solid rgba(0, 255, 200, 0.25);
  padding: 90px 0;
}

/* Main Card Wrapper */
.trial-card {
  position: relative;
  background: transparent;
  border: none;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.4s ease;
}

.trial-card:hover {
  border-color: transparent;
  box-shadow: none;
}

/* Card Header Components */
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.trial-badge--cyan {
  color: var(--cyan);
}

.trial-badge--purple {
  color: #c875ff;
}

.trial-badge--pink {
  color: #ff5096;
}

.trial-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.trial-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 230, 240, 0.85);
  max-width: 780px;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Pricing Tag Component */
.trial-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 28px;
  box-shadow: none;
  flex-wrap: wrap;
}

.trial-price-val {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 255, 200, 0.6);
  line-height: 1;
}

.trial-price-group {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.trial-price-strike {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-color: var(--pink);
  opacity: 0.85;
}

.btn-price-reg {
  font-size: 0.78em;
  opacity: 0.75;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.trial-price-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

/* Feature Pillars Grid — Minimal with Vertical Line Dividers */
.trial-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin: 32px 0 40px;
}

.trial-feature-box {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 24px 28px;
  position: relative;
  transition: transform 0.25s ease;
}

.trial-feature-box:first-child {
  padding-left: 0;
}

.trial-feature-box:last-child {
  padding-right: 0;
}

.trial-feature-box:hover {
  transform: translateY(-3px);
}

/* Vertical gradient divider between trial columns */
.trial-feature-box:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 255, 200, 0.35) 30%,
    rgba(0, 255, 200, 0.55) 50%,
    rgba(0, 255, 200, 0.35) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.trial-feature-title {
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.trial-feature-desc {
  font-size: 0.98rem;
  color: rgba(255, 230, 240, 0.82);
  line-height: 1.6;
}

/* Action Group */
.trial-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-trial-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 16px 32px;
  background: var(--cyan);
  color: #000;
  border: 1px solid var(--cyan);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.4);
  text-decoration: none;
}

.btn-trial-primary:hover {
  background: #ffffff;
  color: #000;
  border-color: #ffffff;
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.7);
  transform: translateY(-2px);
}

.btn-trial-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 16px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 0, 100, 0.6);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
  box-shadow: 0 0 15px rgba(255, 0, 100, 0.15);
  text-decoration: none;
}

.btn-trial-secondary:hover {
  background: rgba(255, 0, 100, 0.15);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 0 25px rgba(255, 0, 100, 0.4);
  transform: translateY(-2px);
}

.trial-guarantee-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.08em;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Comparison Table in Pledge Section */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.comparison-card {
  padding: 24px 28px;
  border-radius: 4px;
  position: relative;
}

.comparison-card--good {
  background: rgba(0, 255, 200, 0.04);
  border: 1px solid rgba(0, 255, 200, 0.3);
}

.comparison-card--bad {
  background: rgba(255, 0, 100, 0.03);
  border: 1px solid rgba(255, 0, 100, 0.2);
  opacity: 0.75;
}

.comparison-header {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comparison-card--good .comparison-header { color: var(--cyan); }
.comparison-card--bad .comparison-header { color: var(--pink); }

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-card--good .comparison-list li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 900;
}

.comparison-card--bad .comparison-list li::before {
  content: "✕";
  color: var(--pink);
  font-weight: 900;
}

/* ═══════════════════════════════════════════════════════════════════
   DISCORD COMMUNITY SECTION
═══════════════════════════════════════════════════════════════════ */
.discord-section {
  padding: 80px 0 60px;
  position: relative;
  z-index: 5;
}

.discord-card {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.14) 0%, rgba(12, 10, 16, 0.92) 70%);
  border: 1px solid rgba(88, 101, 242, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 46px 48px;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(88, 101, 242, 0.12);
  transition: all 0.4s ease;
  overflow: hidden;
}

.discord-card:hover {
  border-color: rgba(88, 101, 242, 0.65);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(88, 101, 242, 0.22);
}

.discord-header-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
  background: rgba(88, 101, 242, 0.15);
  color: #8a95ff;
  border: 1px solid rgba(88, 101, 242, 0.45);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.25);
}

.discord-badge-icon {
  flex-shrink: 0;
  fill: #8a95ff;
}

.discord-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.2;
  text-transform: uppercase;
}

.discord-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: rgba(255, 230, 240, 0.85);
  line-height: 1.65;
  margin: 0 auto;
}

/* 4-column Features Grid */
.discord-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 38px;
}

.discord-feature-box {
  background: rgba(5, 5, 8, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.discord-feature-box:hover {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(14, 12, 22, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.discord-feature-icon {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.discord-feature-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.discord-feature-desc {
  font-size: 0.86rem;
  color: rgba(255, 230, 240, 0.72);
  line-height: 1.5;
}

/* Call to Action Bar */
.discord-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 16px 36px;
  background: #5865F2;
  color: #ffffff;
  border: 1px solid #7289da;
  cursor: pointer;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.45);
  text-transform: uppercase;
}

.btn-discord:hover {
  background: #6977ff;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.75), 0 0 15px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-discord-icon {
  flex-shrink: 0;
  fill: currentColor;
}

.discord-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.discord-note span:first-child {
  color: #8a95ff;
}

/* ═══════════════════════════════════════════════════════════════════
   VIP AUDIO LAB NEWSLETTER & PROMOTIONS SECTION
═══════════════════════════════════════════════════════════════════ */
.newsletter-section {
  padding: 80px 0 60px;
  position: relative;
  z-index: 5;
}

.newsletter-plaque {
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  padding: 48px 36px;
  box-shadow: 0 0 50px rgba(0, 255, 200, 0.06), 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.newsletter-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  background: rgba(0, 255, 200, 0.08);
  border: 1px solid rgba(0, 255, 200, 0.25);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.newsletter-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.newsletter-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #d0c2cc;
  line-height: 1.6;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

.newsletter-inputs {
  display: flex;
  gap: 12px;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  background: rgba(5, 5, 8, 0.9);
  border: 1px solid var(--border);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 3px;
  outline: none;
  transition: all 0.25s ease;
}

.newsletter-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.25);
}

.newsletter-btn {
  background: var(--cyan);
  color: #000;
  border: 1px solid var(--cyan);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 24px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.35);
}

.newsletter-btn:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.6);
}

.newsletter-options {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.newsletter-check-label input {
  accent-color: var(--cyan);
  cursor: pointer;
}

.newsletter-footer-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.newsletter-unsub-link {
  color: var(--cyan);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.newsletter-unsub-link:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .newsletter-inputs {
    flex-direction: column;
  }
  .newsletter-btn {
    width: 100%;
  }
  .newsletter-plaque {
    padding: 32px 18px;
  }
  .newsletter-title {
    font-size: 1.6rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   INTERACTIVE MODAL POPUP DIALOGS
═══════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--panel);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 50px rgba(0, 255, 200, 0.25), 0 25px 80px rgba(0, 0, 0, 0.95);
  max-width: 580px;
  width: 100%;
  border-radius: 4px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 8, 0.6);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--dim);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: all 0.2s ease;
  position: relative;
  z-index: 50;
  pointer-events: auto;
  user-select: none;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(0, 255, 200, 0.15);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}

.modal-box[style*="--pink"] .modal-close-btn:hover,
.modal-box--checkout .modal-close-btn:hover {
  border-color: var(--pink);
  background: rgba(255, 0, 100, 0.15);
  box-shadow: 0 0 10px rgba(255, 0, 100, 0.3);
}

.modal-body {
  padding: 28px;
}

.modal-download-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.download-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: rgba(5, 5, 8, 0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.download-option-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 255, 200, 0.08);
  box-shadow: 0 0 15px rgba(0, 255, 200, 0.15);
  transform: translateX(4px);
}

.download-opt-title {
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.download-opt-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}

.download-opt-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(0, 255, 200, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 200, 0.4);
  border-radius: 2px;
}

.checkout-summary-box {
  background: rgba(5, 5, 8, 0.7);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: 4px;
  margin: 18px 0 24px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px stroke rgba(255, 255, 255, 0.05);
}

.checkout-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
  padding-top: 14px;
}

.modal-box--checkout {
  max-width: 620px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-box--checkout .modal-body {
  overflow-y: auto;
  max-height: calc(92vh - 80px);
}

.modal-input {
  width: 100%;
  background: rgba(5, 5, 8, 0.9);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 3px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.modal-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(255, 0, 100, 0.3);
}

.modal-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.modal-auth-tab-btn {
  flex: 1;
  background: rgba(5, 5, 8, 0.6);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-auth-tab-btn:hover {
  color: #fff;
  border-color: var(--pink);
}

.modal-auth-tab-btn.active {
  background: rgba(255, 0, 100, 0.12);
  border-color: var(--pink);
  color: #ff3377;
  box-shadow: 0 0 12px rgba(255, 0, 100, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════
   COMPLETE MOBILE & TABLET RESPONSIVE DESIGN SYSTEM
   Supports iPhone SE/12/13/14/15/16, Google Pixel, Samsung Galaxy,
   Z-Fold, and all mobile / tablet screen viewports.
═══════════════════════════════════════════════════════════════════ */

/* ── 1180px & Below (Laptops, Tablets & Phones) ── */
@media (max-width: 1180px) {
  .nav-inner { height: 52px; padding: 0 16px; }
  .nav-toggle { display: flex; flex-shrink: 0; width: 38px; height: 38px; }
  
  /* Mobile Navigation Drawer */
  .nav-links {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cyan-m);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px 20px 40px;
    gap: 10px;
    z-index: 155;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li { width: 100%; text-align: center; height: auto; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 11px;
    letter-spacing: 0.12em;
    border-radius: 4px;
    border: 1px solid rgba(45, 15, 60, 0.6);
    background: rgba(12, 10, 16, 0.6);
  }
  .nav-links li.nav-account-item,
  .nav-links li.nav-support-item {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
  }
  .nav-links a.nav-trial-btn, .nav-links a.nav-buy-btn, .nav-links a.nav-account-btn, .nav-links a.nav-support-btn {
    margin-top: 6px;
    padding: 14px 20px;
    font-size: 12px;
    width: 100%;
  }

  /* Grid Layout Breakdown */
  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .room-archetypes-layout { grid-template-columns: 1fr; gap: 32px; }
  .room-animation-display { position: relative; top: 0; }
  .erb-inner { grid-template-columns: 1fr; gap: 40px; }
  .legend-layout { grid-template-columns: 1fr; gap: 40px; }
  .legend-image-wrap { max-width: 520px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .horror-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .discord-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ── 768px & Below (Mobile Phones & Small Tablets) ── */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }

  /* Hero Adjustments */
  .hero-content { padding: 24px 12px; gap: 20px; }
  .hero-title { font-size: clamp(1.9rem, 7.5vw, 3rem); height: auto; margin-bottom: 8px; }
  .title-layer { position: relative; left: 0; transform: none; display: inline-block; white-space: normal; word-break: break-word; }
  .title-pink, .title-cyan { display: none; }
  .title-white { text-shadow: -2px 0 rgba(255, 0, 100, 0.6), 2px 0 rgba(0, 255, 200, 0.6); }

  .hero-boxed-content { padding: 24px 18px; gap: 16px; }
  .tagline-main { font-size: 1.05rem; }
  .tagline-sub { font-size: 10px; }
  .cta-row { flex-direction: column; width: 100%; gap: 10px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }

  /* Section Titles & Badges */
  .section-title { font-size: clamp(1.5rem, 5.5vw, 2.1rem); margin-bottom: 28px; }
  .module-title { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .archetype-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .archetype-card { padding: 14px 12px; }

  /* ERB Controls */
  .erb-visual-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .erb-signal-triggers { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .erb-band-selector-wrap { flex-direction: column; align-items: flex-start; }
  .erb-band-selector { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .erb-btn { text-align: center; width: 100%; }

  /* Trial & Comparison Cards */
  .trial-card { padding: 0; }
  .trial-title { font-size: clamp(1.4rem, 4.5vw, 2rem); }
  .trial-grid-3 { grid-template-columns: 1fr; gap: 0; }
  .trial-feature-box { padding: 20px 0; }
  .trial-feature-box:not(:last-child)::after { display: none; }
  .trial-feature-box:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 200, 0.35) 50%, transparent 100%);
  }
  .comparison-grid { grid-template-columns: 1fr; gap: 16px; }
  .trial-cta-row { flex-direction: column; width: 100%; }
  .btn-trial-primary, .btn-trial-secondary { width: 100%; text-align: center; justify-content: center; }

  /* Horror Cards 768px */
  .horror-cards { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .horror-card { padding: 20px 14px; }
  .horror-card:not(:nth-child(2n))::after {
    content: '';
    position: absolute;
    top: 6%;
    bottom: 6%;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(160, 20, 255, 0.4) 20%, rgba(0, 255, 200, 0.55) 50%, rgba(160, 20, 255, 0.4) 80%, transparent 100%);
  }
  .horror-card:nth-child(-n+2)::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(160, 20, 255, 0.4) 20%, rgba(0, 255, 200, 0.55) 50%, rgba(160, 20, 255, 0.4) 80%, transparent 100%);
  }

  /* Discord Card Responsive */
  .discord-card { padding: 30px 18px; }
  .discord-grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .btn-discord { width: 100%; text-align: center; justify-content: center; }

  /* Video Demo Card Responsive */
  .video-demo-section { padding: 50px 0 60px; }
  .video-frame-header { padding: 10px 14px; font-size: 10px; }
  .video-badge-tag { font-size: 9px; padding: 2px 6px; }
  .video-card-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 10px;
  }
  .video-meta-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .video-youtube-link {
    width: 100%;
    justify-content: flex-start;
    padding-top: 6px;
    border-top: 1px solid rgba(150, 80, 120, 0.2);
  }

  /* Modals */
  .modal-backdrop { padding: 12px; }
  .modal-box { max-width: 100%; }
  .modal-header { padding: 18px 16px 14px; }
  .modal-title { font-size: 1.1rem; }
  .modal-body { padding: 20px 16px; }
  .download-option-btn { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .download-opt-badge { align-self: flex-start; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 20px; padding: 32px 18px; }
  .footer-logo { justify-content: center; }
}

/* ── 540px & Below (Compact Smartphone Screens: iPhone SE/12/13/14/15, Pixel 7/8/9, Samsung S-Series) ── */
@media (max-width: 540px) {
  .container { padding: 0 14px; }
  .nav-inner { height: 54px; padding: 0 14px; }
  .nav-brand-img { height: 28px; }
  .nav-toggle { width: 38px; height: 38px; padding: 6px; }

  .intro-stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-card { padding: 18px 8px; }
  .stat-number { font-size: 2rem; }

  .why-grid { grid-template-columns: 1fr; }
  .horror-cards { grid-template-columns: 1fr; gap: 0; }
  .horror-card { padding: 20px 0; }
  .horror-card::after { display: none !important; }
  .horror-card:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 200, 0.35) 50%, transparent 100%);
  }

  .archetype-grid { grid-template-columns: 1fr; gap: 0; }
  .archetype-card { padding: 14px 0; }
  .archetype-card::after { display: none !important; }
  .archetype-card:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 200, 0.3) 50%, transparent 100%);
  }

  .module-explain-grid { grid-template-columns: 1fr; }
  .explanation-grid { grid-template-columns: 1fr; gap: 14px; }

  .trial-price-pill { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; }
  .trial-price-val { font-size: 1.4rem; }

  .discord-card { padding: 24px 14px; }

  .video-frame-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .video-title-bar { font-size: 10px; }

  .room-canvas-wrap { height: 240px; }
  .room-info-body { padding: 18px 14px; }
  .room-title-display { font-size: 1.2rem; }
  .room-metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .legend-quote { padding: 14px 16px; }
  .dropcap { font-size: 3.2rem; margin-right: 6px; }
}

/* ── iPhone Notch & Safe Area Support ── */
@supports (padding: env(safe-area-inset-top)) {
  .nav { padding-top: env(safe-area-inset-top); }
  @media (max-width: 1180px) {
    .nav-links { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  }
  .footer-bottom { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

