/* ==========================================================================
   MUSIC PRODUCER LAB - UNIFIED DESIGN SYSTEM
   A stunning, modern, responsive CSS framework
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS & VARIABLES
   -------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  /* Color Palette - Dark Futuristic */
  --bg-dark: #030508;
  --bg-primary: #050810;
  --bg-secondary: #0a0f1a;
  --bg-tertiary: #0d1424;
  --bg-card: #0f1628;
  --bg-card-hover: #141c32;
  --bg-elevated: #161e35;
  
  /* Text Colors */
  --text-primary: #f0f4ff;
  --text-secondary: #b8c4e0;
  --text-muted: #7a8ba8;
  --text-dim: #8fa4c9;
  
  /* Accent Colors - Neon/Cyberpunk */
  --accent-cyan: #00f0ff;
  --accent-purple: #b366ff;
  --accent-pink: #ff66b2;
  --accent-orange: #ff7733;
  --accent-blue: #4d9fff;
  --accent-green: #00ff9d;
  --accent-amber: #ffcc00;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(179, 102, 255, 0.15), rgba(255, 102, 178, 0.15));
  --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-dark) 100%);
  --gradient-hero: radial-gradient(ellipse at 20% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(179, 102, 255, 0.1) 0%, transparent 40%),
                   radial-gradient(ellipse at 50% 100%, rgba(255, 102, 178, 0.08) 0%, transparent 50%),
                   var(--bg-primary);
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(0, 240, 255, 0.3);
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 30px rgba(0, 240, 255, 0.3);
  --glow-purple: 0 0 30px rgba(179, 102, 255, 0.3);
  --glow-pink: 0 0 30px rgba(255, 102, 178, 0.3);
  --glow-intense: 0 0 60px rgba(0, 240, 255, 0.4), 0 0 100px rgba(179, 102, 255, 0.2);

  /* Text Shadows */
  --text-shadow-default: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.6);
  
  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Orbitron", var(--font-body);
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Z-Index Scale */
  --z-base: 0;
  --z-above: 10;
  --z-nav: 100;
  --z-modal: 1000;
  --z-toast: 2000;
  
  /* Safe Areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* Light mode variables */
[data-theme="light"] {
  --bg-dark: #e8eaf0;
  --bg-primary: #f5f7fa;
  --bg-secondary: #e8ebf0;
  --bg-tertiary: #dce0e8;
  --bg-card: #fafbfc;
  --bg-card-hover: #f0f2f5;
  --bg-elevated: #ffffff;

  --text-primary: #1a1f2e;
  --text-secondary: #2d3748;
  --text-muted: #4a5568;
  --text-dim: #718096;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);
  --border-medium: rgba(0, 0, 0, 0.16);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);

  --gradient-hero: radial-gradient(ellipse at 20% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(179, 102, 255, 0.06) 0%, transparent 40%),
                   var(--bg-primary);
}

/* Light mode navbar overrides */
[data-theme="light"] .navbar {
  background: linear-gradient(180deg, rgba(250, 251, 252, 0.98) 0%, rgba(245, 247, 250, 0.95) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(250, 251, 252, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar-logo {
  color: #1a1f2e;
  text-shadow: none;
}

[data-theme="light"] .navbar-link {
  color: #2d3748;
  text-shadow: none;
}

[data-theme="light"] .navbar-link:hover,
[data-theme="light"] .navbar-link.active {
  color: #1a1f2e;
  text-shadow: none;
}

[data-theme="light"] .navbar-nav {
  background: #fafbfc;
}

@media (max-width: 900px) {
  [data-theme="light"] .navbar {
    background: #f5f7fa;
  }

  [data-theme="light"] .navbar.scrolled {
    background: #fafbfc;
  }
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: rgba(0, 240, 255, 0.55) rgba(10, 15, 26, 0.9);
  scrollbar-width: thin;
}

@media (max-width: 480px) {
  html { font-size: 14px; }
}

@media (min-width: 1440px) {
  html { font-size: 17px; }
}

@media (min-width: 1920px) {
  html { font-size: 18px; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--gradient-hero);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* --------------------------------------------------------------------------
   SCROLLBARS
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.96) 0%, rgba(10, 15, 26, 0.96) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.72) 0%, rgba(179, 102, 255, 0.72) 100%);
  border-radius: 9999px;
  border: 2px solid rgba(5, 8, 16, 0.95);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.14),
    0 0 18px rgba(0, 240, 255, 0.18);
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.9) 0%, rgba(179, 102, 255, 0.88) 100%);
}

::-webkit-scrollbar-corner {
  background: rgba(5, 8, 16, 0.96);
}

[data-theme="light"] {
  scrollbar-color: rgba(77, 159, 255, 0.7) rgba(220, 224, 232, 0.95);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(232, 235, 240, 0.96) 0%, rgba(220, 224, 232, 0.96) 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(77, 159, 255, 0.72) 0%, rgba(179, 102, 255, 0.62) 100%);
  border-color: rgba(245, 247, 250, 0.98);
  box-shadow:
    0 0 0 1px rgba(77, 159, 255, 0.12),
    0 0 14px rgba(77, 159, 255, 0.12);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(77, 159, 255, 0.84) 0%, rgba(179, 102, 255, 0.74) 100%);
}

[data-theme="light"] ::-webkit-scrollbar-corner {
  background: rgba(232, 235, 240, 0.96);
}

/* Prevent horizontal scroll */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
  text-shadow: var(--text-shadow-default);
}

a:hover {
  color: var(--accent-purple);
}

/* Touch-friendly targets */
button, a, input, select, textarea {
  min-height: 44px;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: rgba(0, 240, 255, 0.3);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-shadow: var(--text-shadow-default);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
  text-shadow: var(--text-shadow-default);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none !important; /* Prevent text-shadow from interfering with gradient */
}

.text-glow {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5),
               0 0 40px rgba(179, 102, 255, 0.3);
}

.font-mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.section {
  padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0.45rem 0;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.98) 0%, rgba(5, 8, 16, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  transition: background var(--transition-base), padding var(--transition-base);
  padding-top: max(0.45rem, var(--safe-top));
}

.navbar.scrolled {
  background: linear-gradient(180deg, rgba(10, 15, 26, 1) 0%, rgba(5, 8, 16, 0.98) 100%);
  padding: 0.3rem 0;
  padding-top: max(0.3rem, var(--safe-top));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-shadow: var(--text-shadow-default);
}

.navbar-logo img {
  height: 28px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.navbar-link {
  position: relative;
  color: #e0e8f5;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
  text-shadow: var(--text-shadow-default);
}

.navbar-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.navbar-link:hover,
.navbar-link.active {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.navbar-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.045);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.navbar-instagram:hover {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.6);
  background: rgba(0, 240, 255, 0.1);
}

@media (max-width: 1500px) {
  .navbar-nav {
    gap: var(--space-lg);
  }

  .navbar-instagram span {
    display: none;
  }

  .navbar-instagram {
    width: 40px;
    justify-content: center;
    padding-inline: 0;
  }
}

@media (max-width: 1380px) {
  .navbar-nav {
    gap: 0.6rem;
  }

  .navbar-link {
    font-size: 0.875rem;
  }
}

@media (max-width: 1200px) {
  .nav-secondary {
    display: none;
  }

  .navbar-nav {
    gap: 0.5rem;
  }
}

.hero-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0 1.15rem;
  padding: 0.45rem 0.75rem;
  width: fit-content;
  border: 1px solid rgba(0, 240, 255, 0.26);
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.06);
  color: var(--accent-cyan);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.hero-instagram-link:hover {
  border-color: rgba(179, 102, 255, 0.72);
  background: rgba(179, 102, 255, 0.11);
  color: #ffffff;
}

.ig-bridge-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-radius: 8px;
  color: #ffffff;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  background: rgba(3, 5, 8, 0.62);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.ig-bridge-follow:hover {
  border-color: rgba(179, 102, 255, 0.72);
  background: rgba(179, 102, 255, 0.12);
  transform: translateY(-1px);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Navigation */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .navbar {
    background: #0a0f1a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .navbar.scrolled {
    background: #050810;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-xl);
    gap: var(--space-lg);
    background: #050810;
    box-shadow: inset 1px 0 0 var(--border-subtle);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
  }
  
  .navbar-nav.open {
    transform: translateX(0);
  }
  
  .navbar-link {
    font-size: 1.25rem;
  }
  
  .navbar-actions {
    display: none;
  }
  
  .navbar-nav.open + .navbar-actions {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: var(--space-2xl);
    left: var(--space-xl);
    right: var(--space-xl);
  }

  .navbar-instagram {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
/* Universal button font rule - apply Orbitron to all buttons */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: var(--font-display);
  text-shadow: var(--text-shadow-default);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 48px;
  text-shadow: none;
}

.btn-primary {
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.22) 0%, rgba(179, 102, 255, 0.2) 56%, rgba(255, 102, 178, 0.18) 100%);
  color: var(--text-primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 999px;
  padding: var(--space-md) var(--space-2xl);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 240, 255, 0.14),
    0 0 28px rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.48);
  color: var(--text-primary);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 240, 255, 0.26);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.1rem;
  min-height: 56px;
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  min-height: 40px;
  border-radius: var(--radius-full);
}

.btn-icon {
  width: 48px;
  padding: 0;
}

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card + .card {
  margin-top: var(--space-xl);
}

.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-glow);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  text-shadow: var(--text-shadow-default);
}

.card-description {
  color: var(--text-secondary);
  font-size: 1rem;
  text-shadow: var(--text-shadow-default);
}

/* Lab Cards - Special styling */
.lab-card {
  position: relative;
  overflow: hidden;
}

.lab-card-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 255, 157, 0.15);
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.lab-card-badge.premium {
  background: rgba(179, 102, 255, 0.15);
  color: var(--accent-purple);
}

/* --------------------------------------------------------------------------
   LESSON/TUTORIAL PAGES
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(5, 8, 16, 0.92);
  border-bottom: 1px solid var(--border-subtle);
}

.glass {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color var(--transition-base);
}

.brand:hover {
  color: var(--accent-cyan);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.main-content {
  padding: calc(var(--space-3xl) + 40px) 0 var(--space-4xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.hero-title .highlight {
  display: inline-block;
  color: var(--accent-cyan);
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.check-list {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1);
}

.exercise-card {
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}


.exercise-info {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

/* Lesson navigation (header + footer variants) */
.lesson-nav--pinned {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: block;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-xl);
  background: rgba(5, 8, 16, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lesson-nav--pinned .lesson-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.lesson-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: var(--text-shadow-default);
}

.lesson-nav-logo img { height: 32px; }

.lesson-nav--pinned .nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lesson-nav--pinned + .lesson-content {
  padding-top: calc(var(--space-2xl) + 24px);
}

.lesson-nav--pinned .btn { min-height: unset; }

.lesson-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
}

.lesson-nav .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.lesson-nav .nav-btn:hover,
.lesson-nav .nav-btn:focus-visible {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  outline: none;
}

.lesson-nav .nav-btn.overview {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(179, 102, 255, 0.1));
  border-color: rgba(0, 240, 255, 0.3);
}

.lesson-nav .arrow {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .main-content {
    padding-top: calc(var(--space-2xl) + 32px);
  }

  .header-inner {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: var(--space-sm);
  }

  .lesson-nav {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: calc(72px + var(--space-xl));
  padding-bottom: calc(var(--space-2xl) + var(--space-lg));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
  top: 50%;
  right: 10%;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-pink);
  bottom: 10%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(-30px, -10px) scale(1.02); }
}

.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 1.02fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
  padding-top: clamp(1rem, 3vh, 2rem);
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-top: clamp(0.25rem, 1vh, 0.85rem);
  z-index: 1;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  text-shadow: var(--text-shadow-default);
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  margin-bottom: var(--space-lg);
  max-width: 11ch;
  text-shadow: var(--text-shadow-default);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 620px;
  text-shadow: var(--text-shadow-default);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-cta .btn {
  min-width: 240px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding-top: var(--space-sm);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-shadow: var(--text-shadow-default);
}

.hero-callout {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(179, 102, 255, 0.04)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-callout p {
  margin: 0;
  max-width: none;
}

.hero-callout strong {
  color: var(--text-primary);
}

.hero-callout-title {
  font-size: 0.96rem;
  color: var(--text-primary);
}

.hero-callout-detail {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-home-visual {
  padding: calc(var(--space-xl) + 0.15rem);
}

.home-visual-transport {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.home-visual-transport span {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.home-visual-lanes {
  display: grid;
  gap: 0.9rem;
}

.home-visual-lane {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.home-visual-label {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-visual-steps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.45rem;
}

.home-visual-step {
  height: 26px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-visual-step.is-cyan {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.95), rgba(77, 159, 255, 0.8));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
}

.home-visual-step.is-purple {
  background: linear-gradient(135deg, rgba(179, 102, 255, 0.92), rgba(255, 102, 178, 0.82));
  box-shadow: 0 0 18px rgba(179, 102, 255, 0.2);
}

.home-visual-step.is-orange {
  background: linear-gradient(135deg, rgba(255, 177, 138, 0.95), rgba(255, 119, 51, 0.82));
  box-shadow: 0 0 18px rgba(255, 119, 51, 0.2);
}

.home-visual-note {
  margin-top: var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.home-visual-meters {
  display: grid;
  gap: var(--space-sm);
}

.home-visual-meter {
  display: grid;
  gap: 0.35rem;
}

.home-visual-meter-label {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-visual-meter-track {
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.home-visual-meter-fill {
  height: 100%;
  border-radius: inherit;
}

.home-visual-meter-fill.is-cyan {
  width: 82%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
}

.home-visual-meter-fill.is-purple {
  width: 64%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
}

.home-visual-meter-fill.is-orange {
  width: 74%;
  background: linear-gradient(90deg, #ffb18a, var(--accent-orange));
}

.landing-cta-center {
  display: flex;
  justify-content: center;
}

.landing-wide-cta {
  width: 100%;
}

.landing-promo-section {
  padding-top: calc(var(--space-2xl) + 1rem);
  background:
    radial-gradient(circle at 18% 15%, rgba(0, 240, 255, 0.09), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(179, 102, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(5, 8, 16, 0.96) 0%, rgba(10, 15, 26, 0.94) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.landing-promo-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.4fr);
  gap: var(--space-2xl);
  align-items: center;
}

.landing-promo-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.landing-promo-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-promo-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.94;
}

.landing-promo-copy p {
  margin: 0;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.8;
  text-shadow: var(--text-shadow-default);
}

.landing-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.landing-promo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  text-shadow: none;
}

.landing-promo-link:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.landing-promo-link-primary {
  border-color: rgba(0, 240, 255, 0.28);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(179, 102, 255, 0.22));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 240, 255, 0.08);
}

.landing-promo-link-primary:hover {
  border-color: rgba(0, 240, 255, 0.46);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.26), rgba(179, 102, 255, 0.28));
}

.landing-promo-video-card {
  position: relative;
}

.landing-promo-video-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 240, 255, 0.2), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(179, 102, 255, 0.22), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255, 102, 178, 0.16), transparent 36%);
  filter: blur(22px);
  opacity: 0.85;
  pointer-events: none;
}

.landing-promo-video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.95) 0%, rgba(5, 8, 16, 0.98) 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.7rem;
}

.landing-promo-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #020305;
}

.tools-lesson-section {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 240, 255, 0.09), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(179, 102, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(7, 10, 19, 0.96) 0%, rgba(10, 15, 26, 0.94) 100%);
  box-shadow: var(--shadow-lg);
}

.tools-lesson-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.45fr);
  gap: var(--space-2xl);
  align-items: center;
}

.tools-lesson-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tools-lesson-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(179, 102, 255, 0.2);
  background: rgba(179, 102, 255, 0.08);
  color: var(--accent-purple);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-lesson-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.94;
}

.tools-lesson-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.8;
  text-shadow: var(--text-shadow-default);
}

.tools-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.tools-lesson-video-card {
  position: relative;
}

.tools-lesson-video-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 240, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(179, 102, 255, 0.2), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(255, 102, 178, 0.12), transparent 36%);
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}

.tools-lesson-video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.95) 0%, rgba(5, 8, 16, 0.98) 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.7rem;
}

.tools-lesson-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #020305;
}

.glossary-lesson-section {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 240, 255, 0.09), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(179, 102, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(7, 10, 19, 0.96) 0%, rgba(10, 15, 26, 0.94) 100%);
  box-shadow: var(--shadow-lg);
}

.glossary-lesson-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.45fr);
  gap: var(--space-2xl);
  align-items: center;
}

.glossary-lesson-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.glossary-lesson-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(179, 102, 255, 0.2);
  background: rgba(179, 102, 255, 0.08);
  color: var(--accent-purple);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glossary-lesson-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.94;
}

.glossary-lesson-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.8;
  text-shadow: var(--text-shadow-default);
}

.glossary-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.glossary-lesson-video-card {
  position: relative;
}

.glossary-lesson-video-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 240, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(179, 102, 255, 0.2), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(255, 102, 178, 0.12), transparent 36%);
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}

.glossary-lesson-video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.95) 0%, rgba(5, 8, 16, 0.98) 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.7rem;
}

.glossary-lesson-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #020305;
}

.labs-lesson-section {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 240, 255, 0.09), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(179, 102, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(7, 10, 19, 0.96) 0%, rgba(10, 15, 26, 0.94) 100%);
  box-shadow: var(--shadow-lg);
}

.labs-lesson-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.45fr);
  gap: var(--space-2xl);
  align-items: center;
}

.labs-lesson-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.labs-lesson-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.labs-lesson-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.94;
}

.labs-lesson-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.8;
  text-shadow: var(--text-shadow-default);
}

.labs-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.labs-lesson-video-card {
  position: relative;
}

.labs-lesson-video-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 240, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(179, 102, 255, 0.2), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(255, 102, 178, 0.12), transparent 36%);
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}

.labs-lesson-video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.95) 0%, rgba(5, 8, 16, 0.98) 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.7rem;
}

.labs-lesson-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #020305;
}

.song-studio-video-section {
  margin-top: 0;
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl);
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 240, 255, 0.09), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(255, 119, 51, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(7, 10, 19, 0.96) 0%, rgba(10, 15, 26, 0.94) 100%);
  box-shadow: var(--shadow-lg);
}

.song-studio-video-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.45fr);
  gap: var(--space-2xl);
  align-items: center;
}

.song-studio-video-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.song-studio-video-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 119, 51, 0.2);
  background: rgba(255, 119, 51, 0.08);
  color: var(--accent-orange);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.song-studio-video-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.94;
}

.song-studio-video-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.8;
  text-shadow: var(--text-shadow-default);
}

.song-studio-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.song-studio-video-card {
  position: relative;
}

.song-studio-video-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 240, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 119, 51, 0.2), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(179, 102, 255, 0.14), transparent 36%);
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}

.song-studio-video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.95) 0%, rgba(5, 8, 16, 0.98) 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.7rem;
}

.song-studio-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #020305;
}

.pricing-video-section {
  margin-top: 0;
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl);
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 240, 255, 0.09), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(179, 102, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(7, 10, 19, 0.96) 0%, rgba(10, 15, 26, 0.94) 100%);
  box-shadow: var(--shadow-lg);
}

.pricing-video-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.45fr);
  gap: var(--space-2xl);
  align-items: center;
}

.pricing-video-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.pricing-video-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(179, 102, 255, 0.2);
  background: rgba(179, 102, 255, 0.08);
  color: var(--accent-purple);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-video-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.94;
}

.pricing-video-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.8;
  text-shadow: var(--text-shadow-default);
}

.pricing-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.pricing-video-card {
  position: relative;
}

.pricing-video-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 240, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(179, 102, 255, 0.2), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(255, 119, 51, 0.14), transparent 36%);
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}

.pricing-video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.95) 0%, rgba(5, 8, 16, 0.98) 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.7rem;
}

.pricing-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #020305;
}

@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-image {
    max-width: none;
    margin-top: 0;
  }

  .landing-promo-shell {
    grid-template-columns: 1fr;
  }

  .tools-lesson-shell {
    grid-template-columns: 1fr;
  }

  .glossary-lesson-shell {
    grid-template-columns: 1fr;
  }

  .labs-lesson-shell {
    grid-template-columns: 1fr;
  }

  .landing-promo-copy p {
    max-width: none;
  }

  .tools-lesson-copy p {
    max-width: none;
  }

  .glossary-lesson-copy p {
    max-width: none;
  }

  .labs-lesson-copy p {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(66px + var(--space-lg));
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding-top: 0;
  }

  .hero-image {
    margin-left: 0;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: var(--space-xl);
  }

  .hero-stat {
    text-align: center;
  }

  .landing-promo-section {
    padding-top: var(--space-xl);
  }

  .landing-promo-video-frame {
    padding: 0.45rem;
    border-radius: 20px;
  }

  .landing-promo-video {
    border-radius: 14px;
  }

  .tools-lesson-section {
    padding: var(--space-xl);
  }

  .tools-lesson-video-frame {
    padding: 0.45rem;
    border-radius: 20px;
  }

  .tools-lesson-video {
    border-radius: 14px;
  }

  .glossary-lesson-section {
    padding: var(--space-xl);
  }

  .glossary-lesson-video-frame {
    padding: 0.45rem;
    border-radius: 20px;
  }

  .glossary-lesson-video {
    border-radius: 14px;
  }

  .labs-lesson-section {
    padding: var(--space-xl);
  }

  .labs-lesson-video-frame {
    padding: 0.45rem;
    border-radius: 20px;
  }

  .labs-lesson-video {
    border-radius: 14px;
  }

  .song-studio-video-section {
    padding: var(--space-xl);
  }

  .song-studio-video-shell {
    grid-template-columns: 1fr;
  }

  .song-studio-video-frame {
    padding: 0.45rem;
    border-radius: 20px;
  }

  .song-studio-video {
    border-radius: 14px;
  }

  .pricing-video-section {
    padding: var(--space-xl);
  }

  .pricing-video-shell {
    grid-template-columns: 1fr;
  }

  .pricing-video-frame {
    padding: 0.45rem;
    border-radius: 20px;
  }

  .pricing-video {
    border-radius: 14px;
  }
}

/* --------------------------------------------------------------------------
   FEATURES / MODULES SECTION
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  position: relative;
  padding: var(--space-xl);
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--glow-cyan);
}

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

.feature-icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius-lg);
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  box-shadow: none;
}

.feature-content {
  position: relative;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  text-shadow: var(--text-shadow-default);
}

.feature-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  text-shadow: var(--text-shadow-default);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent-cyan);
  font-weight: 500;
  font-size: 0.9rem;
}

.feature-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.feature-link svg {
  transition: transform var(--transition-fast);
}

.feature-link:hover svg,
.feature-link:hover .feature-link-arrow {
  transform: translateX(4px);
}

.audience-toggle {
  display: inline-flex;
  width: min(100%, 430px);
  padding: 0.35rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(179, 102, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.audience-toggle-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 56px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audience-toggle-btn svg {
  flex-shrink: 0;
}

.audience-toggle-btn:hover {
  color: var(--text-primary);
}

.audience-toggle-btn.is-active {
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(179, 102, 255, 0.18)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  padding-bottom: max(var(--space-xl), var(--safe-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand {
  max-width: 300px;
}

@media (max-width: 600px) {
  .footer-brand {
    max-width: none;
    margin: 0 auto;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

@media (max-width: 600px) {
  .footer-logo {
    justify-content: center;
  }
}

.footer-logo img {
  height: 32px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.footer-domain {
  color: var(--accent-cyan);
  font-size: 0.86rem;
  font-weight: 650;
  margin: -0.45rem 0 var(--space-sm);
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-instagram:hover {
  color: var(--accent-cyan);
}

@media (max-width: 600px) {
  .footer-socials {
    justify-content: center;
  }
}

.footer-social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-social:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--bg-dark);
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  text-shadow: var(--text-shadow-default);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 600px) {
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

.footer-copyright {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   FORM ELEMENTS
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Form select touch-friendly dropdown fix */
.form-select {
  min-height: 48px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237a8ba8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 20px;
  padding-right: calc(var(--space-md) * 2 + 20px);
}

/* Ensure select is clickable on mobile */
.form-select option {
  padding: var(--space-md);
  min-height: 44px;
}

@media (max-width: 768px) {
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* --------------------------------------------------------------------------
   BADGES & PILLS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.badge-primary {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
}

.badge-success {
  background: rgba(0, 255, 157, 0.15);
  color: var(--accent-green);
}

.badge-warning {
  background: rgba(255, 204, 0, 0.15);
  color: var(--accent-amber);
}

.badge-premium {
  background: rgba(179, 102, 255, 0.15);
  color: var(--accent-purple);
}

/* --------------------------------------------------------------------------
   THEME TOGGLE - Improved Design
   -------------------------------------------------------------------------- */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-direction: row-reverse;
}

.theme-toggle-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 45px;
}

.theme-toggle {
  position: relative;
  width: 64px;
  height: 32px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  border-color: var(--border-medium);
  background: var(--bg-tertiary);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: var(--accent-cyan);
  border-radius: 50%;
  transition: all var(--transition-base);
  box-shadow: var(--glow-cyan);
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 204, 0, 0.1);
  border-color: rgba(255, 204, 0, 0.3);
}

[data-theme="light"] .theme-toggle::before {
  transform: translateX(32px);
  background: var(--accent-amber);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

/* --------------------------------------------------------------------------
   THEME PICKER
   -------------------------------------------------------------------------- */
.theme-picker {
  position: relative;
  display: inline-block;
}

.theme-picker-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.theme-picker-trigger:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.theme-picker-trigger:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.theme-picker-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.theme-picker-label {
  font-weight: 500;
}

.theme-picker-chevron {
  opacity: 0.7;
  transition: transform var(--transition-base);
}

.theme-picker-trigger[aria-expanded="true"] .theme-picker-chevron {
  transform: rotate(180deg);
}

.theme-picker-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 500px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  display: none;
  z-index: var(--z-modal);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-picker-dropdown.open {
  display: block;
}

.theme-picker-header {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.theme-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.theme-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
  background: var(--bg-tertiary);
}

.theme-card:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.theme-card.active {
  border-color: var(--accent-green);
  background: var(--bg-tertiary);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.theme-card-preview {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-sm);
}

.theme-preview-color {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.theme-card-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.theme-card-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.theme-card-checkmark {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 24px;
  height: 24px;
  background: var(--accent-green);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .theme-picker-dropdown {
    width: 300px;
    max-width: calc(100vw - 32px);
  }

  .theme-picker-label {
    display: none; /* Hide label text on mobile, show only icon */
  }

  .theme-preview-color {
    width: 32px;
    height: 32px;
  }
}

/* iOS Safari: Ensure touch targets are 44x44px minimum */
@media (max-width: 768px) {
  .theme-picker-trigger {
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-sm);
  }

  .theme-card {
    min-height: 88px; /* Ensures adequate touch target with padding */
  }
}


/* --------------------------------------------------------------------------
   PROGRESS BADGE
   -------------------------------------------------------------------------- */
.progress-badge-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all var(--transition-base);
}

.progress-badge-link:hover .progress-badge {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(179, 102, 255, 0.18)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.22);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-shadow: none;
}

.progress-badge::before {
  content: "🎵";
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* Noise overlay for texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animated underline */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.animated-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Glitch effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: var(--accent-cyan);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 3s infinite linear alternate-reverse;
  color: var(--accent-pink);
  z-index: -2;
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 2px); }
  40% { clip-path: inset(40% 0 30% 0); transform: translate(2px, -2px); }
  60% { clip-path: inset(60% 0 20% 0); transform: translate(-1px, 1px); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); }
  40% { clip-path: inset(10% 0 50% 0); transform: translate(-2px, 2px); }
  60% { clip-path: inset(50% 0 30% 0); transform: translate(1px, -1px); }
  80% { clip-path: inset(30% 0 40% 0); transform: translate(-1px, 1px); }
}

/* --------------------------------------------------------------------------
   PRELOADER
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.preloader-logo {
  width: 80px;
  height: 80px;
  animation: preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.preloader-bar {
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: preloader-bar 1s ease-in-out infinite;
}

.preloader-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.preloader-bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.preloader-bar:nth-child(3) { height: 40px; animation-delay: 0.2s; }
.preloader-bar:nth-child(4) { height: 25px; animation-delay: 0.3s; }
.preloader-bar:nth-child(5) { height: 35px; animation-delay: 0.4s; }

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes preloader-bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.preloader-progress {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--space-md);
}

.preloader-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: preloader-progress 2s ease-out forwards;
}

@keyframes preloader-progress {
  0% { width: 0; }
  20% { width: 20%; }
  50% { width: 60%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

/* --------------------------------------------------------------------------
   ENHANCED PAGE TRANSITIONS
   -------------------------------------------------------------------------- */
.page-transition {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered entrance for cards */
.feature-card,
.lesson-card,
.explore-card,
.download-card {
  animation: fadeInUp 0.5s ease-out backwards;
}

.feature-card:nth-child(1),
.lesson-card:nth-child(1),
.explore-card:nth-child(1),
.download-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2),
.lesson-card:nth-child(2),
.explore-card:nth-child(2),
.download-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3),
.lesson-card:nth-child(3),
.explore-card:nth-child(3),
.download-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4),
.lesson-card:nth-child(4),
.explore-card:nth-child(4),
.download-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5),
.lesson-card:nth-child(5),
.explore-card:nth-child(5),
.download-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6),
.lesson-card:nth-child(6),
.explore-card:nth-child(6),
.download-card:nth-child(6) { animation-delay: 0.35s; }

/* --------------------------------------------------------------------------
   ENHANCED GLOW EFFECTS
   -------------------------------------------------------------------------- */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glow-border:hover::before {
  opacity: 1;
}

/* Floating elements animation */
.float {
  animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   CUSTOM SCROLLBAR
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-secondary);
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY IMPROVEMENTS
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .preloader {
    display: none;
  }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
  :root {
    --border-subtle: rgba(255, 255, 255, 0.3);
    --border-light: rgba(255, 255, 255, 0.5);
  }
}

/* --------------------------------------------------------------------------
   PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .navbar,
  .footer,
  .noise-overlay,
  .preloader,
  .scroll-indicator,
  .theme-toggle {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

/* --------------------------------------------------------------------------
   LESSON PAGE STYLES
   -------------------------------------------------------------------------- */
.page-inner {
  padding-bottom: var(--space-2xl);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.sections-grid .section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  text-shadow: var(--text-shadow-default);
}

.section-body {
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-list {
  list-style: none;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.section-list li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--text-secondary);
}

.section-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.instruction-line {
  background: rgba(0, 240, 255, 0.1);
  border-left: 3px solid var(--accent-cyan);
  padding: var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--space-sm);
}

.instruction {
  margin: 0;
}

.count {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.nowrap {
  white-space: nowrap;
}

/* Sequencer Styles */
.sequencer {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-md);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sequencer-wrapper {
  width: 100%;
  min-width: max-content;
}

.sequencer-grid {
  width: 100%;
}

.sequencer-row,
.sequencer-header-row,
.sequencer-beat-row {
  width: 100%;
}

.sequencer-steps {
  flex: 1;
  display: flex;
  gap: 2px;
}

.sequencer-step {
  flex: 1;
  min-width: 36px;
  height: 44px;
  touch-action: manipulation;
}

/* Mobile sequencer adjustments */
@media (max-width: 768px) {
  .sequencer {
    padding: var(--space-md);
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .sequencer-step {
    min-width: 32px;
    height: 40px;
  }
  
  .sequencer-label {
    width: 50px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .sequencer-step {
    min-width: 24px;
    height: 44px; /* iOS minimum touch target */
  }

  .sequencer-label {
    width: 40px !important;
  }

  .sequencer-step-number {
    font-size: 0.6rem !important;
    min-width: 24px !important;
  }
}

.sequencer-status {
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   EXERCISE INSTRUCTIONS STYLES
   -------------------------------------------------------------------------- */
.exercise-instructions {
  margin-top: var(--space-2xl);
}

.exercise-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.exercise-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
}

.exercise-steps {
  margin-top: var(--space-lg);
}

.exercise-steps h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.exercise-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.exercise-checklist li {
  position: relative;
  padding-left: var(--space-xl);
  color: var(--text-secondary);
  line-height: 1.6;
}

.exercise-checklist li::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-primary);
}

.exercise-tip {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(0, 240, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.exercise-tip strong {
  color: var(--accent-cyan);
}

/* Pattern Hint Visual */
.pattern-hint {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.pattern-hint-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.pattern-grid-visual,
.pattern-row-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--space-sm);
  align-items: center;
}

.pattern-row-visual {
  margin-bottom: var(--space-md);
}

.instrument-label {
  width: 60px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.step-on,
.step-off {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.step-on {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
  font-weight: 700;
}

.step-on.highlight {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
  box-shadow: 0 0 10px rgba(255, 102, 178, 0.5);
}

.step-off {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.step-off.fill-zone {
  background: rgba(255, 102, 178, 0.1);
  border-color: rgba(255, 102, 178, 0.3);
}

.pattern-note {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive pattern grid */
@media (max-width: 600px) {
  .pattern-grid-visual,
  .pattern-row-visual {
    gap: 2px;
  }
  
  .step-on,
  .step-off {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
  }
  
  .instrument-label {
    width: 45px;
    font-size: 0.65rem;
  }
  
  .pattern-hint {
    padding: var(--space-md);
  }
}

@media (max-width: 400px) {
  .step-on,
  .step-off {
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
  }
  
  .instrument-label {
    width: 38px;
    font-size: 0.6rem;
  }
}

.sequencer-status.success {
  background: rgba(0, 255, 157, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 157, 0.2);
}

.sequencer-status.error {
  background: rgba(255, 102, 178, 0.1);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 102, 178, 0.2);
}

/* Lesson Hero (different from homepage hero) */
.hero-copy {
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.hero-copy-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.hero-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.hero-visual-title {
  font-family: var(--font-display);
  font-weight: 600;
}

.hero-visual-pill {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .hero-visual-grid {
    grid-template-columns: 1fr;
  }
}

.hero-visual-main {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.hero-visual-main-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.hero-visual-waves {
  display: flex;
  gap: var(--space-sm);
  height: 60px;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
}

.hero-visual-wave {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 4px;
  animation: wave 1s ease-in-out infinite;
}

.hero-visual-wave:nth-child(1) { height: 40%; animation-delay: 0s; }
.hero-visual-wave:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.hero-visual-wave:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.hero-visual-wave:nth-child(4) { height: 60%; animation-delay: 0.3s; }
.hero-visual-wave:nth-child(5) { height: 80%; animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.6); }
}

.hero-visual-metrics {
  display: flex;
  gap: var(--space-xl);
}

.hero-visual-metric span {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: var(--space-xs);
}

.hero-visual-metric strong {
  color: var(--text-primary);
}

.hero-visual-side-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.hero-visual-side-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.hero-visual-pill-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.hero-visual-pill-tag {
  background: rgba(179, 102, 255, 0.15);
  color: var(--accent-purple);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.hero-visual-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-visual-footer span:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* Button outline style */
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   MOBILE OVERFLOW & SMALL SCREEN FIXES (360px)
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  /* Ensure no horizontal overflow */
  .container {
    padding: 0 var(--space-sm);
  }
  
  /* Hero section fixes */
  .hero-title,
  h1 {
    font-size: 1.75rem;
    word-wrap: break-word;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Button fixes */
  .btn {
    padding: var(--space-md);
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
  
  .btn-lg {
    padding: var(--space-md) var(--space-lg);
  }
  
  /* Card fixes */
  .feature-card,
  .lesson-card,
  .download-card {
    padding: var(--space-md);
  }
  
  /* Navbar fixes */
  .navbar-logo span {
    display: none;
  }
  
  /* Footer fixes */
  .footer-grid {
    gap: var(--space-lg);
  }
  
  .footer-socials {
    flex-wrap: wrap;
  }
  
  /* Form fixes */
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Extra small screens (320px) */
@media (max-width: 320px) {
  html {
    font-size: 13px;
  }
  
  .container {
    padding: 0 var(--space-xs);
  }
}

/* Hamburger menu z-index fix for overlay */
@media (max-width: 900px) {
  .navbar-nav.open {
    z-index: 999;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ======================================
   VELOCITY LANES - Range Slider Styling
   ====================================== */

/* Velocity row container */
.sequencer-velocity-row {
  margin-top: -8px;
}

/* Range slider base */
input[type="range"].sequencer-velocity-slider,
.sequencer-velocity-sliders input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

/* Range slider track - Webkit/Blink */
input[type="range"]::-webkit-slider-track {
  background: transparent;
  border-radius: 4px;
  height: 8px;
  border: none;
}

/* Range slider track - Firefox */
input[type="range"]::-moz-range-track {
  background: transparent;
  border-radius: 4px;
  height: 8px;
  border: none;
}

/* Range slider thumb - Webkit/Blink */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan, #00f0ff);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 240, 255, 0.4), 0 0 0 2px rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.9);
}

/* Range slider thumb - Firefox */
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  background: var(--accent-cyan, #00f0ff);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 240, 255, 0.4), 0 0 0 2px rgba(255,255,255,0.2);
}

/* Range slider thumb hover */
input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--accent-primary, #5f4dff);
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

input[type="range"]::-moz-range-thumb:hover {
  background: var(--accent-primary, #5f4dff);
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* Range slider thumb active/focus */
input[type="range"]:active::-webkit-slider-thumb,
input[type="range"]:focus::-webkit-slider-thumb {
  background: var(--accent-primary, #5f4dff);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(95, 77, 255, 0.8);
}

input[type="range"]:active::-moz-range-thumb,
input[type="range"]:focus::-moz-range-thumb {
  background: var(--accent-primary, #5f4dff);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(95, 77, 255, 0.8);
}

/* Remove outline on focus */
input[type="range"]:focus {
  outline: none;
}

.tool-demo-controls {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.tool-demo-controls .btn {
  min-width: 120px;
}

.tool-demo-preset-btn {
  min-width: 220px;
}

.tool-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .audience-toggle {
    width: 100%;
  }

  .audience-toggle-btn {
    min-height: 52px;
    padding: 0.75rem;
    font-size: 0.92rem;
  }

  .tool-demo-controls .btn,
  .tool-demo-preset-btn {
    width: 100%;
  }
}

/* Velocity bar visual feedback */
.velocity-bar {
  transition: opacity 0.2s ease;
}

.velocity-bar:hover {
  opacity: 0.9;
}

/* Velocity fill animation */
.velocity-fill {
  transition: height 0.1s ease, opacity 0.15s ease;
}

/* Velocity value label */
.velocity-value-label {
  user-select: none;
  transition: color 0.2s ease;
}

.velocity-value-label:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Velocity info icon animation */
.velocity-info-icon {
  animation: pulse-subtle 3s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.velocity-info-icon:hover {
  animation: none;
}

/* Velocity slider container and track styling */
.velocity-slider-container {
  position: relative;
  display: flex;
  align-items: center;
}

.velocity-slider-track {
  position: absolute;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.velocity-direction-indicator {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.velocity-slider-container:hover .velocity-direction-indicator {
  opacity: 0.8;
  color: rgba(0, 240, 255, 0.6);
}

/* Responsive adjustments for velocity lanes */
@media (max-width: 768px) {
  .sequencer-velocity-row {
    margin-bottom: 12px;
  }

  .velocity-bar {
    height: 32px !important;
  }

  .velocity-value-label {
    font-size: 9px !important;
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
  }

  input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
  }

  .velocity-direction-indicator {
    font-size: 5px !important;
  }
}

/* ==========================================
   PROFESSIONAL MIXER STYLES
   ========================================== */

/* Professional Mixer Console Styles */
.mixer-console,
#mpl-mixer-container {
  background: linear-gradient(180deg, #0a0e14 0%, #050709 100%);
  border: 2px solid #1a1f2e;
  border-radius: 12px;
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mixer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid #1a1f2e;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.mixer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mixer-transport {
  display: flex;
  gap: var(--space-sm);
}

.transport-btn {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1219 100%);
  border: 2px solid #2a3340;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.transport-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

.transport-btn.playing {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: white;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.mixer-channels {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: var(--space-md) 0;
  background: rgba(10, 14, 20, 0.6);
  border-radius: 8px;
  padding: var(--space-lg);
}

.channel-strip {
  min-width: 110px;
  max-width: 110px;
  background: linear-gradient(180deg, #1a1f2e 0%, #0f1219 100%);
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #2a3340;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.channel-strip:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.1);
}

.channel-strip.master {
  background: linear-gradient(180deg, #2a1f3e 0%, #1a0f29 100%);
  border: 2px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.2);
}

.channel-strip.master:hover {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.3);
}

.channel-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: white;
  padding: var(--space-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 8px 8px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-meter {
  height: 180px;
  background: #000;
  position: relative;
  overflow: hidden;
  margin: var(--space-sm);
  border-radius: 4px;
  border: 1px solid #1a1f2e;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.meter-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg,
    #10b981 0%,
    #10b981 50%,
    #f59e0b 75%,
    #ef4444 90%,
    #dc2626 100%);
  transition: height 0.08s ease-out;
  box-shadow: 0 0 10px currentColor;
}

.meter-peak {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #ef4444;
  transition: bottom 0.05s;
  box-shadow: 0 0 8px #ef4444;
}

.channel-fader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-sm);
  margin: var(--space-md) 0;
}

.fader-track {
  width: 10px;
  height: 140px;
  background: linear-gradient(180deg, #0a0e14 0%, #1a1f2e 100%);
  border-radius: 5px;
  position: relative;
  border: 1px solid #2a3340;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.fader-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #00d4ff 0%, #0891b2 100%);
  border-radius: 5px;
  transition: height 0.1s;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.fader-value {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-weight: 600;
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 50px;
  text-align: center;
}

input[type="range"].vertical-slider {
  -webkit-appearance: slider-vertical;
  writing-mode: bt-lr;
  width: 40px;
  height: 140px;
  background: transparent;
  cursor: grab;
}

input[type="range"].vertical-slider:active {
  cursor: grabbing;
}

.channel-pan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: 0 var(--space-sm);
  margin-bottom: var(--space-sm);
}

.pan-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pan-knob {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3a3f4a, #1a1f2a);
  border: 2px solid #2a3340;
  position: relative;
  cursor: pointer;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}

.pan-knob:hover {
  border-color: var(--accent-cyan);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(0, 212, 255, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.pan-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, #00d4ff 0%, #0891b2 100%);
  transform-origin: bottom center;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.channel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1219 100%);
  border: 2px solid #2a3340;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.channel-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.channel-btn.mute.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.channel-btn.solo.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Mixer Mobile Responsive */
@media (max-width: 768px) {
  .channel-strip {
    min-width: 95px;
    max-width: 95px;
  }

  .channel-meter {
    height: 150px;
  }

  .fader-track {
    height: 120px;
  }

  input[type="range"].vertical-slider {
    height: 120px;
  }

  .channel-name {
    font-size: 0.65rem;
    padding: 6px;
  }

  .pan-knob {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .mixer-channels {
    gap: 8px;
    padding: var(--space-md);
  }

  .channel-strip {
    min-width: 80px;
    max-width: 80px;
  }

  .channel-meter {
    height: 120px;
    margin: 6px;
  }

  .fader-track {
    height: 100px;
    width: 8px;
  }

  input[type="range"].vertical-slider {
    height: 100px;
    width: 32px;
  }

  .channel-name {
    font-size: 0.6rem;
    padding: 4px;
  }

  .fader-value {
    font-size: 0.65rem;
    min-width: 40px;
    padding: 1px 4px;
  }

  .pan-knob {
    width: 35px;
    height: 35px;
  }

  .pan-indicator {
    width: 2px;
    height: 14px;
  }

  .pan-label {
    font-size: 0.6rem;
  }

  .channel-btn {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }

  .channel-controls {
    gap: 4px;
    padding: 6px;
  }
}

/* Mix Status */
.mix-status {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.8) 0%, rgba(26, 31, 46, 0.6) 100%);
  border-radius: 8px;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  border: 1px solid #2a3340;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #00d4ff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.status-value.warning {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-value.danger {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   Modern toast notification system to replace browser alerts
   ========================================================================== */

.mpl-toast {
  position: fixed;
  z-index: 10000;
  padding: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  min-width: 280px;
  pointer-events: all;
}

/* Position variants */
.mpl-toast-top-right {
  top: 20px;
  right: 20px;
}

.mpl-toast-top-left {
  top: 20px;
  left: 20px;
}

.mpl-toast-bottom-right {
  bottom: 20px;
  right: 20px;
}

.mpl-toast-bottom-left {
  bottom: 20px;
  left: 20px;
}

/* Show/Hide animations */
.mpl-toast-show {
  opacity: 1;
  transform: translateY(0);
}

.mpl-toast-hide {
  opacity: 0;
  transform: translateY(-20px);
}

/* Toast content */
.mpl-toast-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
}

.mpl-toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mpl-toast-message {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
}

.mpl-toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mpl-toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Type variants */
.mpl-toast-success {
  border-left: 4px solid var(--accent-green);
}

.mpl-toast-success .mpl-toast-icon {
  color: var(--accent-green);
}

.mpl-toast-error {
  border-left: 4px solid #ef4444;
}

.mpl-toast-error .mpl-toast-icon {
  color: #ef4444;
}

.mpl-toast-warning {
  border-left: 4px solid var(--accent-amber);
}

.mpl-toast-warning .mpl-toast-icon {
  color: var(--accent-amber);
}

.mpl-toast-info {
  border-left: 4px solid var(--accent-cyan);
}

.mpl-toast-info .mpl-toast-icon {
  color: var(--accent-cyan);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .mpl-toast {
    max-width: calc(100vw - 32px);
    min-width: calc(100vw - 32px);
    left: 16px !important;
    right: 16px !important;
  }

  .mpl-toast-top-right,
  .mpl-toast-top-left {
    top: 16px;
  }

  .mpl-toast-bottom-right,
  .mpl-toast-bottom-left {
    bottom: 16px;
  }
}

/* ── Native icon badge (shared across pages) ─────────────────────────── */
.faq-native-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(11, 18, 30, 0.96), rgba(12, 18, 30, 0.82));
  flex-shrink: 0;
}
.faq-native-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01));
}
.faq-native-icon span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.faq-native-icon.is-cyan span    { color: var(--accent-cyan); }

/* --------------------------------------------------------------------------
   STUDENT DASHBOARD
   -------------------------------------------------------------------------- */
.student-dashboard {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 240, 255, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(179, 102, 255, 0.08), transparent 28%),
    var(--bg-dark);
  color: var(--text-primary);
}

.student-dashboard__header {
  position: sticky;
  top: 0;
  z-index: var(--z-above);
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 16, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.student-dashboard__header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.student-dashboard__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-shadow: none;
}

.student-dashboard__subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.student-dashboard__pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.student-dashboard__pill--premium {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-weight: 700;
}

.student-dashboard__pill--free {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.student-dashboard__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.student-dashboard__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.student-dashboard__button:hover {
  transform: translateY(-1px);
}

.student-dashboard__button--primary,
.student-dashboard__button--join {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #041019;
  box-shadow: var(--glow-cyan);
}

.student-dashboard__button--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

.student-dashboard__button--ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.student-dashboard__button--banner {
  background: #fff;
  color: #3f35d4;
}

.student-dashboard__button--resume {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.22);
}

.student-dashboard__button--join:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.student-dashboard__main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.student-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.student-dashboard__stat-card {
  background: linear-gradient(180deg, rgba(15, 22, 40, 0.94), rgba(10, 15, 26, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
}

.student-dashboard__stat-label {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.student-dashboard__stat-value {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.student-dashboard__stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.16);
  font-size: 1.3rem;
}

.student-dashboard__banner {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid transparent;
}

.student-dashboard__banner--resume {
  background: linear-gradient(135deg, rgba(22, 30, 53, 0.95), rgba(15, 22, 40, 0.98));
  border-color: var(--border-light);
}

.student-dashboard__banner--upgrade {
  background: linear-gradient(135deg, #6b2ee6 0%, #4f46e5 55%, #00a6ff 100%);
  box-shadow: var(--shadow-lg);
}

.student-dashboard__banner-eyebrow,
.student-dashboard__banner-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.student-dashboard__banner-eyebrow {
  margin-bottom: 6px;
}

.student-dashboard__banner-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: none;
}

.student-dashboard__banner-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.student-dashboard__card {
  background: linear-gradient(180deg, rgba(15, 22, 40, 0.95), rgba(10, 15, 26, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.student-dashboard__card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.student-dashboard__card-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: none;
}

.student-dashboard__card-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  font-size: 0.76rem;
  border: 1px solid rgba(0, 240, 255, 0.16);
}

.student-dashboard__empty {
  padding: 42px 24px;
  text-align: center;
  color: var(--text-muted);
}

.student-dashboard__empty p {
  margin: 0 0 6px;
}

.student-dashboard__empty small {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.student-dashboard__class-list {
  display: flex;
  flex-direction: column;
}

.student-dashboard__class-row {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.student-dashboard__class-row:last-child {
  border-bottom: none;
}

.student-dashboard__class-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.student-dashboard__class-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: none;
}

.student-dashboard__class-meta,
.student-dashboard__class-footer,
.student-dashboard__class-progress-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.student-dashboard__class-progress-summary {
  text-align: right;
  min-width: 120px;
}

.student-dashboard__class-progress-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.student-dashboard__class-progress-label {
  margin: 3px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.student-dashboard__class-link {
  color: var(--accent-cyan);
  text-decoration: none;
  text-shadow: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.student-dashboard__class-link:hover {
  text-decoration: underline;
}

.student-dashboard__progress-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  overflow: hidden;
  margin-bottom: 8px;
}

.student-dashboard__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width 250ms ease;
}

.student-dashboard__join {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 8, 16, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.student-dashboard__join label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.student-dashboard__join-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.student-dashboard__join-field {
  flex: 1 1 280px;
  min-width: 0;
}

.student-dashboard__join-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  outline: none;
}

.student-dashboard__join-input::placeholder {
  color: var(--text-muted);
}

.student-dashboard__join-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
}

.student-dashboard__join-message {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.student-dashboard__join-message--error {
  color: #ff8e9f;
}

.student-dashboard__join-message--success {
  color: var(--accent-green);
}

.student-dashboard__note {
  margin: -8px 0 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.student-dashboard__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.student-dashboard__quick-link {
  display: block;
  padding: 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-shadow: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(15, 22, 40, 0.94), rgba(10, 15, 26, 0.98));
  border: 1px solid var(--border-subtle);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.student-dashboard__quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.18);
  background: linear-gradient(180deg, rgba(20, 28, 50, 0.95), rgba(12, 18, 31, 0.98));
}

.student-dashboard__quick-link-icon {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.student-dashboard__quick-link-title {
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: none;
}

.student-dashboard__quick-link-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .student-dashboard__stats,
  .student-dashboard__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-dashboard__banner,
  .student-dashboard__class-row-header,
  .student-dashboard__header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .student-dashboard__class-progress-summary {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .student-dashboard__main,
  .student-dashboard__header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .student-dashboard__stats,
  .student-dashboard__links {
    grid-template-columns: 1fr;
  }

  .student-dashboard__button {
    width: 100%;
  }

  .student-dashboard__actions {
    width: 100%;
  }
}
.faq-native-icon.is-purple span  { color: var(--accent-purple); }
.faq-native-icon.is-green span   { color: var(--accent-green); }
.faq-native-icon.is-pink span    { color: var(--accent-pink); }
.faq-native-icon.is-amber span   { color: var(--accent-amber); }
.faq-native-icon.is-orange span  { color: var(--accent-orange); }

/* Lesson hero two-column layout - responsive */
@media (max-width: 768px) {
  .hero[style*="display: flex"] {
    flex-direction: column !important;
    gap: var(--space-xl) !important;
  }
  
  .hero-visual {
    order: -1;
    max-width: 300px !important;
    margin: 0 auto;
  }
}
