/*
 * ProDJ Pulse - Glassmorphism Apple-Style Design
 * Audio stem/acapella extraction platform
 */

/* ============================================
   DESIGN TOKENS - Glassmorphism System
   ============================================ */
:root {
  /* Dark Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f15;
  --bg-tertiary: #151520;
  --bg-elevated: #1a1a28;

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-bg-hover: rgba(255, 255, 255, 0.05);
  --glass-bg-active: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-blur: 20px;
  --glass-blur-strong: 40px;

  /* Neon Purple Accents */
  --accent-primary: #8b5cf6;
  --accent-secondary: #a855f7;
  --accent-tertiary: #7c3aed;
  --accent-muted: rgba(139, 92, 246, 0.3);
  --accent-glow: rgba(139, 92, 246, 0.4);
  --accent-glow-strong: rgba(139, 92, 246, 0.6);

  /* Gradient Accents */
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #7c3aed 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-radial: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 60%);

  /* Status Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-border: rgba(16, 185, 129, 0.4);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --danger-border: rgba(239, 68, 68, 0.4);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.4);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-accent: #a855f7;

  /* Shadows */
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-medium: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-glow-sm: 0 0 20px var(--accent-muted);
  --shadow-inset: inset 0 1px 1px rgba(255, 255, 255, 0.05);

  /* 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;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: var(--gradient-radial);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

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

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

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */
.site-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ============================================
   HEADER - Glassmorphism Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-xl);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-purple);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-sm);
  transition: var(--transition-base);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.logo-text {
  display: flex;
  align-items: center;
}

.logo-accent {
  color: var(--accent-secondary);
  padding-left: 5px;
  transition: var(--transition-base);
}

.site-logo:hover .logo-accent {
  color: var(--accent-primary);
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--glass-bg-active);
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.user-greeting {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-md);
}

/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.glass-card--elevated {
  background: var(--bg-elevated);
  backdrop-filter: blur(var(--glass-blur-strong));
}

.glass-card--glow:hover {
  box-shadow: var(--shadow-medium), var(--shadow-glow-sm);
  border-color: var(--accent-muted);
}

.glass-card--static:hover {
  transform: none;
}

/* Glass Button */
.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-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-purple);
  color: white;
  box-shadow: var(--shadow-glow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: white;
}

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

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1a2e;
  font-weight: 600;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* ============================================
   ALERTS - Glassmorphism Style
   ============================================ */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  font-weight: 500;
  backdrop-filter: blur(var(--glass-blur));
}

.alert-success {
  background: var(--success-bg);
  color: #34d399;
  border: 1px solid var(--success-border);
}

.alert-error {
  background: var(--danger-bg);
  color: #f87171;
  border: 1px solid var(--danger-border);
}

.alert-warning {
  background: var(--warning-bg);
  color: #fbbf24;
  border: 1px solid var(--warning-border);
}

.alert p {
  margin: 0;
  color: inherit;
}

/* ============================================
   FORMS - Glassmorphism Style
   ============================================ */
.form-container {
  max-width: 420px;
  margin: 0 auto;
  padding: var(--space-2xl);
}

.form-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.form-group {
  margin-bottom: var(--space-lg);
}

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

.form-group input,
.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.form-group input:hover,
.form-input:hover {
  border-color: var(--glass-border-hover);
}

.form-group input:focus,
.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-group input::placeholder,
.form-input::placeholder {
  color: var(--text-muted);
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: var(--space-sm);
}

.form-links {
  text-align: center;
  margin-top: var(--space-xl);
  color: var(--text-muted);
}

.form-links a {
  color: var(--accent-secondary);
  font-weight: 500;
}

.form-links a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.form-links p {
  margin-bottom: var(--space-sm);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header {
  margin-bottom: var(--space-2xl);
  padding-top: calc(80px + var(--space-2xl));
}

.dashboard-header h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card {
  padding: var(--space-xl);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.stat-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

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

/* ============================================
   HERO SECTION - Homepage
   ============================================ */
.hero-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(80px + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  position: relative;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(var(--glass-blur));
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  max-width: 900px;
}

.hero-title .gradient-text {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero-actions .btn {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

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

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

.hero-stat-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   SECTIONS - Common Styles
   ============================================ */
.section {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--accent-muted);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   TOOLS INTRODUCTION SECTION
   ============================================ */
.tools-intro {
  margin-bottom: var(--space-3xl);
}

.tools-intro-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.tools-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.tools-intro-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.tools-intro-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Tools Cards Grid */
.tools-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: all var(--transition-base);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-medium);
}

/* Mashup Card */
.tool-card--mashup::before {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

.tool-card--mashup:hover {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.15);
}

.tool-card--mashup .tool-card-icon {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

/* Convert Card */
.tool-card--convert::before {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.tool-card--convert:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.tool-card--convert .tool-card-icon {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Card Icon */
.tool-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tool-card-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

/* Card Content */
.tool-card-content {
  flex: 1;
}

.tool-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.tool-card-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.tool-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.tool-card-features li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.tool-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
}

/* Card CTA */
.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-primary);
  transition: all var(--transition-base);
}

.tool-card:hover .tool-card-cta {
  gap: var(--space-sm);
}

.tool-card-cta svg {
  transition: transform var(--transition-base);
}

.tool-card:hover .tool-card-cta svg {
  transform: translateX(4px);
}

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

.feature-card {
  padding: var(--space-xl);
  text-align: left;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-glow-sm);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-icon--purple { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.feature-icon--pink { background: linear-gradient(135deg, #ec4899, #f472b6); }
.feature-icon--blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.feature-icon--green { background: linear-gradient(135deg, #10b981, #34d399); }
.feature-icon--orange { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.feature-icon--cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

.feature-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================
   HOW IT WORKS - Steps
   ============================================ */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
  padding: var(--space-xl);
}

.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--gradient-purple);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.step-connector {
  position: absolute;
  top: 48px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  z-index: -1;
}

.step-item:last-child .step-connector {
  display: none;
}

.step-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
}

.pricing-card {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pricing-card--popular {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.pricing-card--popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-purple);
}

.pricing-badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  background: var(--gradient-purple);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header {
  margin-bottom: var(--space-xl);
}

.pricing-name {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.pricing-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

.pricing-price {
  margin-bottom: var(--space-xl);
}

.pricing-amount {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-amount .currency {
  font-size: var(--text-2xl);
  vertical-align: super;
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-left: var(--space-xs);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled svg {
  color: var(--text-muted);
}

.pricing-cta {
  width: 100%;
  margin-top: auto;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: var(--space-3xl);
  background: var(--gradient-glass);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  margin: var(--space-3xl) 0;
}

.cta-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   EXTRACTOR - Main Application UI
   ============================================ */
.extractor-hero {
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
}

.extractor-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.extractor-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Upload Zone */
.upload-zone {
  position: relative;
  padding: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent-primary);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-glow-sm);
}

.upload-zone.dragover {
  transform: scale(1.01);
}

.upload-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: var(--gradient-purple);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.upload-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

/* File Format Icon */
.file-format-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--gradient-purple);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: var(--shadow-glow-sm);
}

.file-format-icon .file-icon-svg {
  width: 22px;
  height: 22px;
  color: white;
}

.file-format-text {
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

.upload-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.upload-text {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.upload-formats {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.format-badge {
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Radio & Checkbox - Glass Style */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.radio-item,
.checkbox-item {
  position: relative;
}

.radio-item input,
.checkbox-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.radio-label:hover,
.checkbox-label:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.radio-item input:checked + .radio-label,
.checkbox-item input:checked + .checkbox-label {
  background: var(--accent-muted);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.radio-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-fast);
}

.radio-item input:checked + .radio-label .radio-dot {
  border-color: var(--accent-primary);
}

.radio-item input:checked + .radio-label .radio-dot::after {
  opacity: 1;
  transform: scale(1);
}

/* Radio compacto para modelos */
.radio-label--compact {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
}

.radio-label--best {
  border-color: var(--accent-muted);
}

.radio-item input:checked + .radio-label--best {
  background: var(--accent-muted);
  border-color: var(--accent-primary);
}

.radio-group--vertical {
  flex-direction: column;
}

.badge-base {
  font-size: 9px;
  padding: 1px 4px;
  background: var(--glass-bg-active);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 4px;
  border: 1px solid var(--glass-border);
}

.badge-premium {
  font-size: 9px;
  padding: 1px 4px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1a2e;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 4px;
}

.badge-best {
  font-size: 9px;
  padding: 2px 8px;
  background: var(--gradient-purple);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 4px;
}

.model-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: var(--space-sm) 0 0 0;
  padding-left: 2px;
}

/* Options Panel */
.options-panel {
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.options-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.options-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.option-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

/* Waveform Canvas (Real Audio Preview) */
.waveform-preview {
  position: relative;
  height: 100px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
  overflow: hidden;
}

.waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.waveform-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-muted), transparent);
  pointer-events: none;
  transition: width var(--transition-base);
}

.waveform-time {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.waveform-duration {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Processing State */
.processing-container {
  padding: var(--space-2xl);
}

.processing-info {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.processing-status {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.processing-detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-purple);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  box-shadow: var(--shadow-glow-sm);
}

/* Waveform Visualization */
.waveform-container {
  height: 120px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 80%;
}

.waveform-bar {
  width: 4px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  animation: waveform 1.2s ease-in-out infinite;
}

.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { animation-delay: 0.6s; }
.waveform-bar:nth-child(8) { animation-delay: 0.7s; }
.waveform-bar:nth-child(9) { animation-delay: 0.8s; }
.waveform-bar:nth-child(10) { animation-delay: 0.9s; }

@keyframes waveform {
  0%, 100% { height: 20%; opacity: 0.5; }
  50% { height: 100%; opacity: 1; }
}

/* Stems Output */
.stems-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.stem-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
}


.stem-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stem-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.stem-icon--vocals { background: linear-gradient(135deg, #ec4899, #f472b6); }
.stem-icon--drums { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.stem-icon--bass { background: linear-gradient(135deg, #10b981, #34d399); }
.stem-icon--other { background: linear-gradient(135deg, #3b82f6, #60a5fa); }

.stem-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

.stem-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.stem-info {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.stem-waveform {
  flex: 1;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin: 0;
}

.stem-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.stem-btn {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: var(--space-xl);
  padding-top: var(--space-3xl);
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: var(--space-3xl);
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   AUTH PAGES - Centered Layout
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: var(--space-2xl);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden { display: none !important; }
.visible { display: block !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-toggle {
  display: none;
  padding: var(--space-sm);
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  .site-content {
    padding: var(--space-lg);
  }

  .step-connector {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }

  .site-header {
    padding: var(--space-sm);
  }

  .header-inner {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
  }

  .site-logo {
    font-size: var(--text-lg);
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .nav-link span {
    display: none;
  }

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

  .tools-intro-title {
    font-size: var(--text-2xl);
  }

  .tool-card {
    padding: var(--space-lg);
  }

  .upload-zone {
    padding: var(--space-xl);
  }

  .upload-icon {
    width: 64px;
    height: 64px;
  }

  .stems-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 80px;
    left: var(--space-md);
    right: var(--space-md);
    flex-direction: column;
    background: var(--bg-elevated);
    backdrop-filter: blur(var(--glass-blur-strong));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    gap: var(--space-xs);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .site-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link span {
    display: inline;
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 1.75rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
  }

  .site-content {
    padding: var(--space-md);
  }

  .extractor-hero {
    padding-top: calc(70px + var(--space-2xl));
  }

  .upload-formats {
    flex-wrap: wrap;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .radio-group,
  .checkbox-group {
    flex-direction: column;
  }

  .radio-label,
  .checkbox-label {
    width: 100%;
  }
}

/* ============================================
   DARK MODE SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--glass-border-hover);
}

/* ============================================
   SELECTION STYLES
   ============================================ */
::selection {
  background: var(--accent-muted);
  color: var(--text-primary);
}

/* ============================================
   FOCUS STATES - Accessibility
   ============================================ */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
