/* ═══════════════════════════════════════════
   MuzPod — Design System
   ═══════════════════════════════════════════ */

:root {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-elevated: #232342;
  --primary: #7c5cfc;
  --primary-glow: rgba(124, 92, 252, 0.4);
  --accent: #ff6b9d;
  --accent-glow: rgba(255, 107, 157, 0.4);
  --gold: #ffd93d;
  --gold-glow: rgba(255, 217, 61, 0.3);
  --text: #e8e8f0;
  --text-muted: #9090a8;
  --text-dim: #5a5a78;
  --border: #2a2a4a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 8px 40px rgba(0,0,0,0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════ Header ═══════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo-icon { font-size: 28px; }

.logo-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: linear-gradient(135deg, var(--primary), #9b6dff);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: var(--transition);
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* ═══════════════ Buttons ═══════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #9b6dff);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ff4081);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--primary); color: var(--text); }

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}

/* ═══════════════ Hero ═══════════════ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 60px;
  overflow: hidden;
}

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

.note {
  position: absolute;
  font-size: 32px;
  opacity: 0.15;
  color: var(--primary);
  animation: floatNote 8s ease-in-out infinite;
}

.note-1 { top: 15%; left: 10%; animation-delay: 0s; }
.note-2 { top: 25%; right: 12%; animation-delay: 1s; font-size: 24px; color: var(--accent); }
.note-3 { top: 45%; left: 8%; animation-delay: 2s; font-size: 40px; color: var(--gold); }
.note-4 { top: 60%; right: 15%; animation-delay: 3s; }
.note-5 { top: 75%; left: 20%; animation-delay: 4s; font-size: 28px; color: var(--accent); }
.note-6 { top: 10%; left: 45%; animation-delay: 5s; font-size: 36px; color: var(--gold); }
.note-7 { top: 55%; left: 55%; animation-delay: 6s; }
.note-8 { top: 80%; right: 25%; animation-delay: 7s; font-size: 22px; color: var(--gold); }

@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-30px) rotate(15deg); opacity: 0.3; }
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.block { display: block; }

.hero-sub {
  display: block;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions { margin-bottom: 20px; }
.hero-note { color: var(--text-dim); font-size: 13px; margin-top: 12px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
}

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

/* ═══════════════ Sections ═══════════════ */

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 24px;
}

/* ═══════════════ How It Works ═══════════════ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(124, 92, 252, 0.15);
}

.step-icon { font-size: 40px; margin-bottom: 16px; }

.step-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.step-card p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ═══════════════ Occasions ═══════════════ */

.occasions { background: var(--bg-card); }

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.occasion-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.occasion-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.occasion-icon { font-size: 32px; margin-bottom: 8px; }
.occasion-card span { font-size: 15px; font-weight: 500; }

/* ═══════════════ CTA ═══════════════ */

.cta-card {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ═══════════════ Create Form ═══════════════ */

.create-section {
  padding: 60px 0 100px;
}

.create-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 48px;
}

.create-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active { display: block; }

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

.step-header {
  margin-bottom: 32px;
}

.step-badge {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.step-header h2 {
  font-size: 26px;
  font-weight: 700;
}

.field {
  display: block;
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.field textarea { resize: vertical; min-height: 100px; }

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

/* ═══════════════ Choice Cards ═══════════════ */

.occasion-choices,
.genre-grid,
.mood-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.gender-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto 32px;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.choice-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.choice-card input { position: absolute; opacity: 0; pointer-events: none; }

.choice-card:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(255, 107, 157, 0.1));
  box-shadow: 0 0 20px var(--primary-glow);
}

.choice-icon { font-size: 32px; }

.choice-label { font-size: 15px; font-weight: 600; }

.gender-card { padding: 32px 16px; }
.gender-card .choice-icon { font-size: 48px; }
.gender-card .choice-label { font-size: 18px; }

/* ═══════════════ Progress ═══════════════ */

.progress-bar-container {
  max-width: 640px;
  margin: 24px auto 12px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}

.ps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.ps-dot.active { background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }

/* ═══════════════ Order / Result ═══════════════ */

.order-section {
  padding: 60px 0;
}

.order-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 40px;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.demo-card:hover { border-color: var(--primary); }

.demo-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.demo-player audio {
  width: 100%;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
}

.demo-meta {
  color: var(--text-dim);
  font-size: 13px;
}

/* ═══════════════ Payment ═══════════════ */

.payment-section {
  max-width: 480px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.price-tag {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.price-desc {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.price-features li {
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.price-features li:last-child { border: none; }

#payment-form { text-align: left; }

#payment-form .field { margin-bottom: 20px; }

#payment-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
  outline: none;
}

#payment-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

#pay-btn { width: 100%; justify-content: center; }

.payment-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 12px;
}

/* ═══════════════ Generating ═══════════════ */

.generating {
  text-align: center;
  padding: 60px 20px;
}

.gen-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

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

.generating h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.gen-status {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.gen-steps {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}

.gen-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 15px;
  transition: var(--transition);
}

.gen-step.done {
  color: var(--text);
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid var(--primary);
}

.gen-step.active {
  color: var(--primary);
  border: 1px solid var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
  50% { box-shadow: 0 0 20px var(--primary-glow); }
}

.gs-icon { font-size: 20px; }

.gen-time {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ═══════════════ Generation Phases ═══════════════ */

.gen-phases {
  max-width: 480px;
  margin: 24px auto 0;
}

.gen-phase {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.gen-phase.done {
  border-color: rgba(124, 92, 252, 0.3);
  background: rgba(124, 92, 252, 0.05);
}

.gen-phase.active {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  animation: pulse 2s ease-in-out infinite;
}

.gp-icon { font-size: 24px; flex-shrink: 0; }

.gp-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gp-label {
  font-size: 15px;
  font-weight: 600;
}

.gen-phase.done .gp-label { color: var(--text-muted); }
.gen-phase.active .gp-label { color: var(--primary); }

.gp-timer {
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.gp-status {
  font-size: 18px;
  flex-shrink: 0;
}

/* ═══════════════ Lyrics Approval ═══════════════ */

.lyrics-approval {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 0;
}

.lyrics-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 24px 0;
  max-height: 400px;
  overflow-y: auto;
}

.lyrics-box pre {
  font-family: var(--font);
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.lyrics-edit textarea,
.lyrics-own textarea {
  width: 100%;
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font);
  line-height: 2;
  resize: vertical;
  min-height: 280px;
  outline: none;
  transition: var(--transition);
}

.lyrics-edit textarea:focus,
.lyrics-own textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.lyrics-actions {
  text-align: center;
  margin-top: 24px;
}

.lyrics-actions .btn-accent {
  margin-bottom: 16px;
}

.lyrics-secondary {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════ Download / Success ═══════════════ */

.download-section {
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.success-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 32px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.success-card h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.success-card > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
  margin: 0 auto 24px;
}

.download-links .btn { justify-content: center; }

.email-notice {
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-bottom: 24px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.download-meta {
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ═══════════════ Error ═══════════════ */

.error-card {
  text-align: center;
  padding: 60px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.error-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-card p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ═══════════════ 404 ═══════════════ */

.not-found {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

/* ═══════════════ Footer ═══════════════ */

.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ═══════════════ Animations ═══════════════ */

.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { animation-delay: 0.15s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.45s; transition-delay: 0.3s; }
.delay-4 { animation-delay: 0.6s; transition-delay: 0.4s; }
.delay-5 { animation-delay: 0.75s; transition-delay: 0.5s; }
.delay-6 { animation-delay: 0.9s; transition-delay: 0.6s; }
.delay-7 { animation-delay: 1.05s; transition-delay: 0.7s; }

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

/* ═══════════════ Responsive ═══════════════ */

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 60px 0 40px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .stat-num { font-size: 24px; }
  .section { padding: 60px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .occasions-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-links { align-items: center; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
  .btn-nav { padding: 8px 16px !important; }
  .demos-grid { grid-template-columns: 1fr; }
  .gender-choices { grid-template-columns: 1fr 1fr; }
  .download-links { max-width: 100%; }
  .success-card { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 20px; }
  .nav-links a[href*="create"] { display: none; }
  .btn-lg { padding: 14px 28px; font-size: 16px; }
  .create-form { padding: 0 8px; }
  .step-header h2 { font-size: 22px; }
  .occasion-choices { grid-template-columns: 1fr 1fr; }
  .price-tag { font-size: 36px; }
}

/* ═══════════════ Accessibility ═══════════════ */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Audio player styling */
audio {
  height: 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

audio::-webkit-media-controls-panel {
  background: var(--bg-elevated);
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: var(--text-muted);
}

/* ═══════════════ Own Text Toggle ═══════════════ */

/* ─── Alternative Mode Buttons ───────────────────────────── */

.alt-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.btn-alt-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  gap: 3px;
  text-align: center;
}

.btn-alt-mode:hover {
  border-color: var(--primary);
  background: rgba(124, 92, 252, 0.08);
  transform: translateY(-1px);
}

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

.btn-alt-mode span {
  font-size: 20px;
}

.btn-alt-mode small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 180px;
}

.btn-alt-mode.selected {
  border-style: solid;
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(255, 107, 157, 0.15));
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.25);
}

@media (max-width: 480px) {
  .alt-modes {
    grid-template-columns: 1fr;
  }
  .btn-alt-mode small {
    max-width: none;
  }
}

/* ─── Demo Blocked Banner ───────────────────────────────── */

.demo-blocked-banner {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(124, 92, 252, 0.08));
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.demo-blocked-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.demo-blocked-body strong {
  font-size: 20px;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.demo-blocked-body p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.demo-blocked-body b {
  color: var(--accent);
}

.demo-blocked-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ─── SEO Landing Pages ═══════════════════════════════════ */

.seo-hero {
  text-align: center;
  padding: 60px 0 48px;
}

.seo-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #7c5cfc, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seo-hero-text {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.seo-cta {
  margin-bottom: 8px;
}

.seo-cta-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

.seo-content {
  padding: 0 0 80px;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.seo-main h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: var(--text);
}

.seo-main h2:first-child {
  margin-top: 0;
}

.seo-main h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.seo-steps {
  list-style: none;
  padding: 0;
  counter-reset: seo-step;
}

.seo-steps li {
  padding: 18px 20px 18px 60px;
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 20px;
}

.seo-steps li::before {
  counter-increment: seo-step;
  content: counter(seo-step);
  position: absolute;
  left: -21px;
  top: 18px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.seo-steps li p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 4px;
  line-height: 1.5;
}

.seo-benefits {
  list-style: none;
  padding: 0;
}

.seo-benefits li {
  padding: 10px 0 10px 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  position: relative;
}

.seo-benefits li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 10px;
}

.seo-benefits li strong {
  color: var(--text);
}

.seo-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-recipient-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.seo-recipient-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124, 92, 252, 0.08);
}

.seo-faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Sidebar */

.seo-sidebar {
  position: sticky;
  top: 100px;
}

.seo-sidebar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.seo-sidebar-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

.seo-occasion-list {
  list-style: none;
  padding: 0;
}

.seo-occasion-list li {
  margin-bottom: 4px;
}

.seo-occasion-list a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-xs);
  font-size: 14px;
  transition: var(--transition);
}

.seo-occasion-list a:hover {
  background: rgba(124, 92, 252, 0.08);
  color: var(--primary);
}

@media (max-width: 768px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
  .seo-sidebar {
    position: static;
  }
  .seo-hero {
    padding: 40px 0 32px;
  }
  .seo-steps li {
    margin-left: 12px;
    padding: 14px 12px 14px 44px;
  }
}
