:root {
  /* ── Colour ────────────────────────── */
  --bg:                 #050308;
  --text-primary:       #ffffff;
  --text-muted:         rgba(255, 255, 255, 0.65);
  --border-glass:       rgba(255, 255, 255, 0.08);
  --border-highlight:   rgba(255, 255, 255, 0.25);
  --accent-pink:        #ff007f;
  --accent-violet:      #9d4edd;
  --accent-glow:        rgba(255, 0, 127, 0.4);
  --glass-bg-start:     rgba(255, 255, 255, 0.06);
  --glass-bg-end:       rgba(255, 255, 255, 0.01);

  /* ── Type Scale (fluid) ────────────── */
  --type-display:   clamp(3rem, 9vw, 5rem);    /* H1 display — JJE.DIGITAL   */
  --type-heading:   clamp(1rem, 2.8vw, 1.35rem); /* H2 sub-heading — JJ ENBLOOM */
  --type-body-lg:   clamp(0.95rem, 2vw, 1.1rem); /* Body large — description    */
  --type-body:      clamp(0.85rem, 1.8vw, 1rem); /* Body regular — card text    */
  --type-label:     0.75rem;                   /* Label / badge / meta        */
  --type-code:      0.78rem;                   /* Monospace code              */

  /* ── Font Weights ──────────────────── */
  --fw-black:   900;   /* Display titles              */
  --fw-bold:    700;   /* Sub-headings, CTAs          */
  --fw-medium:  500;   /* UI labels, nav              */
  --fw-regular: 400;   /* Body copy, descriptions     */

  /* ── Tracking (letter-spacing) ─────── */
  --ls-tightest: -0.04em;  /* Display — optical kern for heavy weight */
  --ls-tight:    -0.01em;  /* Section headings                        */
  --ls-normal:    0.01em;  /* Body — barely open                      */
  --ls-wide:      0.08em;  /* UI labels, badges                       */
  --ls-wider:     0.24em;  /* Nav links, small caps                   */
  --ls-widest:    0.72em;  /* Brand sub-heading — maximum spread      */

  /* ── Leading (line-height) ─────────── */
  --lh-flat:    1;      /* Display type — no extra space */
  --lh-tight:   1.2;    /* Large headings                */
  --lh-snug:    1.4;    /* Sub-headings                  */
  --lh-body:    1.65;   /* Body copy — optimal readability */
  --lh-loose:   1.8;    /* Long-form / small text        */

  /* ── Font Stacks ───────────────────── */
  --font-sans:  'Inter', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-ui:    'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(20, 10, 40, 1), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(30, 0, 20, 1), transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ============================================
   AMBIENT NEON LIGHT RAYS & BACKGROUND
   ============================================ */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: float 20s ease-in-out infinite alternate;
}

.glow-pink {
  width: 50vw;
  height: 50vw;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 0, 127, 0.4) 0%, transparent 70%);
}

.glow-violet {
  width: 60vw;
  height: 60vw;
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.3) 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, 5%) scale(0.9); }
}

/* ============================================
   PRIMARY GLASSMORPHIC MAIN WINDOW (Adaptive)
   ============================================ */
.glass-window {
  position: relative;
  z-index: 2;
  width: min(98vw, 1280px);
  margin: clamp(6px, 2vw, 24px) auto;
  background: linear-gradient(135deg, var(--glass-bg-start) 0%, var(--glass-bg-end) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-top: 1px solid var(--border-highlight);
  border-left: 1px solid var(--border-highlight);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.03),
    0 0 60px rgba(255, 0, 127, 0.15);
  border-radius: clamp(14px, 2.5vw, 28px);
  padding: clamp(12px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 36px);
  transition: width 0.3s ease, padding 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}

.neon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}

.pulsing {
  animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
  0% { opacity: 0.5; transform: scale(0.9); box-shadow: 0 0 5px var(--accent-pink); }
  100% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 16px var(--accent-pink); }
}

/* ============================================
/* ============================================
   MUSIC HUB WELCOME BANNER & FEATURED CARDS
   ============================================ */
.music-hub-banner {
  background: linear-gradient(135deg, rgba(255,0,127,0.18) 0%, rgba(157,78,221,0.15) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 0, 127, 0.4);
  border-radius: 20px;
  padding: 16px 24px;
  margin: 18px 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.2);
}

.music-hub-badge {
  background: var(--accent-pink);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.music-hub-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 500;
}

/* ============================================
   MODULAR APP GRID LAYOUT (MOBILE & DESKTOP)
   ============================================ */
.grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  position: relative;
  padding: 0 4px;
}

@media screen and (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 18px;
  }
}

@media screen and (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 22px;
  }
}

.grid__item {
  position: relative;
  margin: 0;
  will-change: transform, width, height;
  cursor: pointer;
  z-index: 1;
  border: none;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
  outline: none;
  display: flex;
  flex-direction: column;
}

.glass-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(28, 18, 42, 0.75) 0%, rgba(12, 8, 20, 0.85) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 22px;
  padding: 20px 18px;
  /* 3D Tactile App Icon Depth */
  box-shadow: 
    0 10px 22px rgba(0, 0, 0, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}

.glass-card:hover,
.grid__item:focus-visible .glass-card {
  background: linear-gradient(145deg, rgba(255, 0, 127, 0.16) 0%, rgba(20, 10, 30, 0.9) 100%);
  border-top-color: rgba(255, 0, 127, 0.7);
  border-left-color: rgba(255, 0, 127, 0.5);
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 30px rgba(255, 0, 127, 0.3);
  transform: translateY(-3px);
}

/* 3D Button Active Pressed State */
.grid__item:active .glass-card {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.glass-card h2 {
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Indicating 3D Arrow Button Indicator */
.card-indicator-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover .card-indicator-arrow {
  background: rgba(255, 0, 127, 0.3);
  border-color: var(--accent-pink);
  color: #fff;
  transform: scale(1.12) rotate(45deg);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
}

.grid__item.is-expanded .card-indicator-arrow {
  transform: rotate(180deg);
  background: var(--accent-pink);
  color: #fff;
  border-color: #fff;
}

/* Expanding Grid Item State */
.grid__item.is-expanded {
  grid-column: 1 / -1;
  z-index: 100;
}

.grid__item.is-expanded .glass-card {
  background: rgba(12, 8, 22, 0.96);
  border-color: var(--accent-pink);
  box-shadow: 0 0 70px rgba(255, 0, 127, 0.3), 0 24px 70px rgba(0,0,0,0.9);
}

.grid__item-expanded-content {
  display: none;
  opacity: 0;
  margin-top: 20px;
  transition: opacity 0.3s ease;
}

.grid__item.is-expanded .grid__item-expanded-content {
  display: block;
  opacity: 1;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
form, .chat-input-group {
  display: flex;
  gap: 12px;
}

input {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(0, 0, 0, 0.8);
  border-left: 1px solid rgba(0, 0, 0, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  flex: 1;
  outline: none;
  transition: all 0.3s ease;
}

input:focus {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--accent-pink);
  box-shadow: 
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(255, 0, 127, 0.4);
}

button[type="submit"], button[type="button"] {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

button[type="submit"]:hover, button[type="button"]:hover {
  background: rgba(255, 0, 127, 0.25);
  border-color: rgba(255, 0, 127, 0.6);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.35);
}

.status-msg {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  min-height: 18px;
}

/* ============================================
   CHAT COMPONENT
   ============================================ */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-log {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(0, 0, 0, 0.8);
  border-left: 1px solid rgba(0, 0, 0, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  height: 240px;
  overflow-y: auto;
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.chat-msg {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-who {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.chat-text {
  color: var(--text-primary);
  flex: 1;
}

/* ============================================
   BROADCAST VIDEO CARD (Glassmorphic)
   ============================================ */
.broadcast-card {
  border-top: 1px solid rgba(255, 0, 127, 0.5);
  border-left: 1px solid rgba(255, 0, 127, 0.3);
  background: linear-gradient(145deg, rgba(255,0,127,0.06) 0%, rgba(255,0,127,0.01) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 0, 127, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
}

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

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-pink);
}

.stream-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
}

.hidden {
  display: none !important;
}

/* ============================================
   CTA CARD STYLES
   ============================================ */
.cta-card {
  text-align: center;
  border-color: rgba(255, 0, 127, 0.25);
  background: rgba(255, 0, 127, 0.04);
}

.cta-card h2 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 8px;
}

.cta-description {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-violet) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 0, 127, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

/* ============================================
   SOUNDCLOUD PLAYER PANEL (Responsive)
   ============================================ */
.sc-player-panel {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 16px;
  margin: 16px 0 20px;
  overflow: hidden;
}

.sc-player-panel iframe {
  width: 100%;
  height: 166px;
  border: none;
  border-radius: 12px;
}

/* ============================================
   GUMROAD PACK CARDS
   ============================================ */
.gumroad-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.pack-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pack-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.pack-card--free { border-color: rgba(51, 255, 120, 0.25); }
.pack-card--free:hover { border-color: rgba(51, 255, 120, 0.5); box-shadow: 0 12px 32px rgba(51, 255, 120, 0.08); }

.pack-card--premium { border-color: rgba(79, 172, 254, 0.25); }
.pack-card--premium:hover { border-color: rgba(79, 172, 254, 0.5); box-shadow: 0 12px 32px rgba(79, 172, 254, 0.08); }

.pack-card--fx { border-color: rgba(255, 0, 127, 0.25); }
.pack-card--fx:hover { border-color: rgba(255, 0, 127, 0.5); box-shadow: 0 12px 32px rgba(255, 0, 127, 0.08); }

.pack-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  float: right;
}

.pack-badge--free { background: rgba(51, 255, 120, 0.15); color: #33ff78; }
.pack-badge--premium { background: rgba(79, 172, 254, 0.15); color: #4facfe; }
.pack-badge--fx { background: rgba(255, 0, 127, 0.15); color: #ff007f; }

.pack-card h3 {
  font-size: 16px;
  margin: 4px 0 8px;
  color: #fff;
}

.pack-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  margin-bottom: 14px;
}

.pack-card .cta-button {
  padding: 10px 16px;
  font-size: 12px;
  display: block;
  width: 100%;
  text-align: center;
}

/* ============================================
   LEAVE CHAT BUTTON
   ============================================ */
.btn-leave {
  background: rgba(255, 51, 68, 0.1) !important;
  border-color: rgba(255, 51, 68, 0.3) !important;
  color: #ff5f56 !important;
  padding: 12px 14px !important;
  font-size: 12px !important;
  min-width: auto;
  flex-shrink: 0;
}
.btn-leave:hover {
  background: rgba(255, 51, 68, 0.25) !important;
}

/* ============================================
   FOOTER (Glass treatment)
   ============================================ */
.site-footer {
  text-align: center;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--accent-pink);
}

/* ============================================
   LOADING & SUCCESS STATES
   ============================================ */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin-left: 8px;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-msg.success { color: #33ff78; }
.status-msg.error { color: #ff5f56; }

/* ============================================
   JJE BRAND HEADER — TYPOGRAPHIC HIERARCHY
   ============================================ */
.jje-brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 24px 60px;
  gap: 0;
  font-family: var(--font-sans);
}

/* ── Level 1 · DISPLAY ── */
.jje-title {
  font-family: var(--font-sans);
  font-size: var(--type-display);
  font-weight: var(--fw-black);
  line-height: 1.15;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  display: inline-block;
  transform: scaleY(1.28);
  transform-origin: center center;
  margin: 12px 0 28px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #00c6fb 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: dynamicGradient 5s ease infinite alternate;
  filter: drop-shadow(0 0 32px rgba(0, 242, 254, 0.38));
}

/* ── Level 2 · SUBTITLE ── */
.jje-subtitle {
  font-family: var(--font-sans);
  font-size: var(--type-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  margin: 0 0 28px;
  padding-left: var(--ls-widest);
}

/* ── Level 3 · BODY DESCRIPTION ── */
.jje-description {
  font-family: var(--font-sans);
  font-size: var(--type-body-lg);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  color: #a3a3a3;
  -webkit-text-fill-color: #a3a3a3;
  max-width: 480px;
  margin: 0;
}

@keyframes dynamicGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================
   LOW-LATENCY MUSIC EQ ANIMATION (7 BARS)
   ============================================ */
.music-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin-bottom: 12px;
}

.eq-bar {
  width: 5px;
  background: linear-gradient(to top, #00f2fe 0%, #ff007f 100%);
  border-radius: 4px;
  animation: eqBounce 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.45);
  transform-origin: bottom;
}

.bar-1 { height: 35%; animation-delay: 0.0s; }
.bar-2 { height: 75%; animation-delay: 0.18s; }
.bar-3 { height: 100%; animation-delay: 0.35s; }
.bar-4 { height: 50%; animation-delay: 0.12s; }
.bar-5 { height: 90%; animation-delay: 0.28s; }
.bar-6 { height: 60%; animation-delay: 0.42s; }
.bar-7 { height: 40%; animation-delay: 0.08s; }

@keyframes eqBounce {
  0%   { transform: scaleY(0.25); opacity: 0.7; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* ============================================
   SOCIAL ROW
   ============================================ */
.social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.social-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-btn:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.1);
}

.social-btn.spotify:hover {
  color: #1db954;
  border-color: rgba(29, 185, 84, 0.5);
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.3);
}

.social-btn.apple:hover {
  color: #ff3344;
  border-color: rgba(255, 51, 68, 0.5);
  box-shadow: 0 0 12px rgba(255, 51, 68, 0.3);
}

/* ============================================
   ACCESSIBILITY & UX ENHANCEMENTS
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  background: var(--accent-pink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 3px;
}

input:focus-visible {
  outline: none;
  border-color: rgba(255, 0, 127, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.25), 0 0 16px rgba(255, 0, 127, 0.3);
}

.status-msg,
.chat-who {
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   RESPONSIVE — TABLET (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  body { padding: 16px 10px; }
  .glass-window {
    padding: 18px 16px 28px;
    border-radius: 20px;
    gap: 24px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  .glass-card {
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
  .cta-button { width: 100%; text-align: center; }
  input[type="text"],
  input[type="email"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 640px)
   ============================================ */
@media (max-width: 640px) {
  .gumroad-packs-grid { grid-template-columns: 1fr; }
  .jje-brand-container { padding: 32px 16px 44px; }
  .jje-title {
    letter-spacing: 0.12em;
    padding-left: 0.12em;
    transform: scaleY(1.2);
    margin: 8px 0 20px;
  }
  .jje-subtitle {
    letter-spacing: 0.42em;
    padding-left: 0.42em;
    margin-bottom: 20px;
  }
}

/* ============================================
   RESPONSIVE — PHONE (max-width: 520px)
   ============================================ */
@media (max-width: 520px) {
  body { padding: 4px; }
  .glass-window {
    width: 100% !important;
    padding: 12px 10px 18px !important;
    border-radius: 14px !important;
    gap: 14px !important;
  }
  .grid {
    grid-template-columns: 1fr !important;
    grid-gap: 12px !important;
  }
  .glass-card {
    padding: 16px 12px !important;
    border-radius: 14px !important;
  }
  .jje-brand-container { padding: 18px 6px 24px; }
  .jje-title {
    font-size: clamp(1.8rem, 8.5vw, 2.5rem);
    letter-spacing: 0.06em;
    padding-left: 0.06em;
    transform: scaleY(1.15);
    margin: 4px 0 12px;
  }
  .jje-subtitle {
    font-size: 0.88rem;
    letter-spacing: 0.28em;
    padding-left: 0.28em;
    margin-bottom: 12px;
  }
  .jje-description {
    font-size: 0.84rem;
    line-height: 1.45;
  }
  form, .chat-input-group {
    flex-direction: column;
    gap: 10px;
  }
  button, .cta-button, .pack-card .cta-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }
  .cta-button { padding: 12px 24px; font-size: 14px; }
}

/* Visualizer GSAP Sub Menu & Card Expansion Fix */
.grid__item[data-button-id="visualizerApp"].grid__item--is-expanded .glass-card {
  max-height: 85vh !important;
  overflow-y: auto !important;
}

.visualizer-sub-menu {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(10, 5, 20, 0.4);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 10;
  display: none; /* GSAP will control this */
}

.visualizer-menu-item.detailed-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(20, 20, 35, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.25s ease;
  opacity: 0; /* GSAP will animate */
  transform: translateY(-10px); /* GSAP will animate */
  text-align: left;
}

.visualizer-menu-item.detailed-card:hover:not(.disabled-card) {
  background: rgba(255, 0, 127, 0.15);
  border-color: var(--accent-pink);
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 20px rgba(255, 0, 127, 0.2);
}

.visualizer-menu-item.detailed-card.disabled-card {
  opacity: 0.5 !important;
  cursor: not-allowed;
  filter: grayscale(1);
}

.vm-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.vm-text h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
}

.vm-text p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}
