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

:root {
  --bg: #ffffff;
  --bg2: #f5f5fa;
  --card: #ffffff;
  --border: #e8e8f0;
  --purple: #7c3aed;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, #7c3aed, #ec4899);
  --text: #1a1a2e;
  --muted: #6b7280;
  --r: 16px;
  --t: 0.22s ease;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.logo-icon { font-size: 1.5rem; }
.logo-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color var(--t); }
.nav a:hover { color: var(--text); }

/* ── Buttons ── */
.btn-primary {
  display: inline-block; background: var(--grad); color: #fff;
  border: none; border-radius: 50px; padding: 13px 32px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  text-decoration: none; font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,.3); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 50px; padding: 13px 26px;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  transition: background var(--t), border-color var(--t); font-family: inherit;
}
.btn-secondary:hover { background: var(--bg2); border-color: var(--purple); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-hero { font-size: 1.05rem; padding: 16px 44px; }

/* ── Hero ── */
.hero {
  padding: 90px 0 70px;
  background: linear-gradient(160deg, #faf5ff 0%, #fdf2f8 50%, #f0f9ff 100%);
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -150px; right: -100px;
  width: 600px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124,58,237,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.2);
  color: var(--purple); border-radius: 50px; padding: 6px 16px; font-size: 0.83rem;
  font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.18; margin-bottom: 18px; color: var(--text); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.05rem; color: var(--muted); margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-features { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.feature { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.87rem; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.music-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 24px; width: 280px; box-shadow: var(--shadow-lg);
}
.waveform { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-bottom: 18px; }
.waveform span { flex: 1; background: var(--grad); border-radius: 3px; animation: wave 1.4s ease-in-out infinite; }
.waveform span:nth-child(1) { animation-delay: 0s; }
.waveform span:nth-child(2) { animation-delay: .15s; }
.waveform span:nth-child(3) { animation-delay: .3s; }
.waveform span:nth-child(4) { animation-delay: .45s; }
.waveform span:nth-child(5) { animation-delay: .6s; }
.waveform span:nth-child(6) { animation-delay: .45s; }
.waveform span:nth-child(7) { animation-delay: .3s; }
.waveform span:nth-child(8) { animation-delay: .15s; }
.waveform span:nth-child(9) { animation-delay: .05s; }
.waveform span:nth-child(10) { animation-delay: .2s; }
@keyframes wave { 0%,100% { height: 10px; } 50% { height: 42px; } }
.music-card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; color: var(--text); }
.music-card-meta { font-size: 0.8rem; color: var(--muted); }

/* ── How it works ── */
.how-section { padding: 80px 0; background: var(--bg); }
.section-title { font-size: 1.75rem; font-weight: 700; text-align: center; margin-bottom: 48px; color: var(--text); }
.how-steps { display: flex; align-items: flex-start; gap: 16px; }
.how-step { flex: 1; text-align: center; padding: 0 12px; }
.how-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 auto 16px;
}
.how-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.how-step p { font-size: 0.87rem; color: var(--muted); }
.how-arrow { color: #d1d5db; font-size: 1.4rem; padding-top: 16px; }

/* ── Examples ── */
.examples-section { padding: 80px 0; background: var(--bg2); }
.section-sub { text-align: center; color: var(--muted); margin-top: -32px; margin-bottom: 40px; font-size: 0.95rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.tab {
  background: #fff; border: 1.5px solid var(--border); border-radius: 50px;
  padding: 8px 18px; font-size: 0.88rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: var(--t); font-family: inherit;
}
.tab:hover { border-color: var(--purple); color: var(--purple); }
.tab.active { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.example-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
}
.example-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.example-tag {
  display: inline-block; background: rgba(124,58,237,.08); color: var(--purple);
  border-radius: 50px; padding: 3px 11px; font-size: 0.73rem; font-weight: 600;
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em;
}
.example-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.example-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.example-card audio { width: 100%; }

/* ── Pricing ── */
.pricing-section { padding: 80px 0; background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.pricing-card {
  background: #fff; border: 2px solid var(--border); border-radius: var(--r);
  padding: 28px 20px; text-align: center; position: relative;
  box-shadow: var(--shadow); transition: border-color var(--t), transform var(--t);
}
.pricing-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.pricing-card.popular { border-color: var(--purple); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.pricing-songs { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.pricing-price {
  font-size: 2rem; font-weight: 800; margin-bottom: 4px;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-per { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }

/* ── Wizard ── */
.wizard-section { padding: 60px 0 100px; background: var(--bg2); }

.progress-wrap { margin-bottom: 36px; }
.progress-steps { display: flex; justify-content: space-between; margin-bottom: 12px; }
.prog-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.prog-step span {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.9rem; color: var(--muted); transition: var(--t);
}
.prog-step label { font-size: 0.78rem; color: var(--muted); transition: color var(--t); }
.prog-step.active span { background: var(--grad); border-color: transparent; color: #fff; }
.prog-step.active label { color: var(--text); font-weight: 600; }
.prog-step.done span { background: var(--grad); border-color: transparent; color: #fff; }
.prog-step.done label { color: var(--text); }

.progress-track { height: 3px; background: var(--border); border-radius: 2px; margin: 0 19px; }
.progress-fill { height: 100%; background: var(--grad); border-radius: 2px; width: 0; transition: width .5s ease; }

/* Wizard card */
.wizard-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 48px; box-shadow: var(--shadow);
}
.wizard-card h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step-sub { color: var(--muted); margin-bottom: 32px; font-size: 0.95rem; }

/* Form */
.fgroup { margin-bottom: 22px; }
.fgroup label { display: block; font-weight: 500; margin-bottom: 10px; font-size: 0.93rem; color: var(--text); }
.req { color: #ef4444; }
.opt { color: var(--muted); font-size: 0.82rem; font-weight: 400; }

/* Quick tags */
.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.qtag {
  background: rgba(124,58,237,.07); border: 1px solid rgba(124,58,237,.2);
  border-radius: 50px; padding: 5px 14px; color: var(--purple);
  font-size: 0.83rem; font-weight: 500; cursor: pointer;
  transition: var(--t); font-family: inherit;
}
.qtag:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

input[type="text"], textarea {
  width: 100%; background: #fafafa; border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 16px; color: var(--text);
  font-size: 0.95rem; font-family: inherit; transition: var(--t); outline: none; resize: vertical;
}
input[type="text"]:focus, textarea:focus {
  border-color: var(--purple); background: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
input::placeholder, textarea::placeholder { color: #c4c4cc; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  background: #f5f5fa; border: 1.5px solid var(--border);
  border-radius: 50px; padding: 7px 16px; color: var(--text);
  font-size: 0.87rem; cursor: pointer; transition: var(--t); font-family: inherit;
}
.pill:hover { background: rgba(124,58,237,.07); border-color: var(--purple); color: var(--purple); }
.pill.selected { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 28px; }
.pkg-card {
  background: #fafafa; border: 2px solid var(--border);
  border-radius: var(--r); padding: 24px; text-align: center;
  cursor: pointer; transition: var(--t); position: relative;
}
.pkg-card:hover { border-color: var(--purple); background: rgba(124,58,237,.04); }
.pkg-card.selected { border-color: var(--purple); background: rgba(124,58,237,.06); }
.pkg-card.pkg-popular { border-color: rgba(124,58,237,.35); }
.pkg-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.pkg-songs { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.pkg-price {
  font-size: 1.7rem; font-weight: 800; margin-bottom: 4px;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pkg-per { font-size: 0.8rem; color: var(--muted); }

.btn-row { display: flex; gap: 14px; margin-top: 28px; }
.secure-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 14px; }

.divider {
  text-align: center; color: var(--muted); font-size: 0.82rem; margin: 22px 0 14px;
  position: relative;
}
.divider::before, .divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 30px); height: 1px; background: var(--border);
}
.divider::before { left: 0; } .divider::after { right: 0; }

.btn-test {
  width: 100%; background: transparent; color: var(--muted);
  border: 1.5px dashed var(--border); border-radius: 12px; padding: 13px;
  cursor: pointer; font-size: 0.9rem; transition: var(--t); font-family: inherit;
}
.btn-test:hover { background: var(--bg2); color: var(--text); border-color: var(--purple); }

/* Loader */
.loader-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 0; gap: 18px; color: var(--muted);
}
.spinner {
  width: 46px; height: 46px; border: 3px solid var(--border);
  border-top-color: var(--purple); border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#lyricsText { min-height: 300px; font-size: 0.92rem; line-height: 1.85; font-family: inherit; }
.lyrics-meta { margin-top: 10px; text-align: right; }
.btn-regen {
  background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px;
  color: var(--muted); font-size: 0.82rem; cursor: pointer; transition: var(--t); font-family: inherit;
}
.btn-regen:hover { color: var(--purple); border-color: var(--purple); }

/* Step 5 */
.gen-state, .done-state, .err-state { text-align: center; }
.bars-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 52px; }
.bars span {
  display: block; width: 7px; background: var(--grad); border-radius: 4px;
  animation: bar 1.1s ease-in-out infinite;
}
.bars span:nth-child(1) { animation-delay: 0s; }
.bars span:nth-child(2) { animation-delay: .18s; }
.bars span:nth-child(3) { animation-delay: .36s; }
.bars span:nth-child(4) { animation-delay: .18s; }
.bars span:nth-child(5) { animation-delay: 0s; }
@keyframes bar { 0%,100% { height: 12px; } 50% { height: 48px; } }

.status-label { color: var(--muted); font-size: 0.88rem; margin-top: 16px; }
.done-icon, .err-icon { font-size: 4rem; margin-bottom: 16px; }
.audio-wrap { margin: 24px 0; }
audio { width: 100%; max-width: 460px; }
.btn-dl { display: block; max-width: 260px; margin: 0 auto 16px; text-align: center; }

/* ── SEO section ── */
.seo-section { padding: 72px 0; background: var(--bg); border-top: 1px solid var(--border); }
.seo-lead {
  font-size: 1rem; color: var(--muted); line-height: 1.75;
  max-width: 760px; margin: 0 auto 48px; text-align: center;
}
.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.seo-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.seo-block h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.seo-block p { font-size: 0.92rem; color: var(--muted); line-height: 1.75; }
.seo-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; }
.seo-steps li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.92rem; color: var(--muted); line-height: 1.6;
  counter-increment: step;
}
.seo-steps li::before {
  content: counter(step);
  min-width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.seo-steps { counter-reset: step; }
.seo-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.seo-list li { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.seo-note {
  margin-top: 16px; font-size: 0.9rem; color: var(--text);
  background: rgba(124,58,237,.06); border: 1px solid rgba(124,58,237,.15);
  border-radius: 10px; padding: 12px 16px;
}

@media (max-width: 640px) {
  .seo-grid, .seo-bottom { grid-template-columns: 1fr; gap: 32px; }
}

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--border); text-align: center; background: var(--bg); }
.footer-logo { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.footer p { color: var(--muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2rem; }
  .wizard-card { padding: 28px 20px; }
  .how-steps { flex-direction: column; }
  .how-arrow { display: none; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .examples-grid { grid-template-columns: 1fr; }
  .nav a { display: none; }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}
