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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #27272a;
  --fg: #fafafa;
  --fg-secondary: #a1a1aa;
  --fg-muted: #71717a;
  --purple: #a855f7;
  --pink: #ec4899;
  --indigo: #6366f1;
}

html { scroll-behavior: smooth; }

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

/* ── NAV ─────────────────────────────────────── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 48px 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, #a855f740 0%, #ec489920 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--purple);
}

.eyebrow-pink {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--pink);
}

h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 800px;
}

.subtitle {
  font-size: 18px;
  color: var(--fg-secondary);
  max-width: 640px;
  line-height: 1.6;
}

/* ── INPUT BAR ────────────────────────────────── */
.input-bar {
  display: flex;
  align-items: center;
  background: #18181b;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 6px 6px 20px;
  width: 100%;
  max-width: 680px;
  gap: 8px;
}

.input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

.input-bar input::placeholder { color: var(--fg-muted); }

.input-bar button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}

.input-bar button:hover { opacity: 0.9; transform: scale(1.02); }
.input-bar button:active { transform: scale(0.98); }
.input-bar button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── STATUS BOX ───────────────────────────────── */
.status-box {
  max-width: 680px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.status-box.loading {
  background: #18181b;
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-box.error {
  background: #2a1010;
  border: 1px solid #7f1d1d;
  color: #fca5a5;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── OPTIONS BOX ──────────────────────────────── */
.options-box {
  max-width: 680px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.video-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.video-info img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.video-info-text { text-align: left; }
.video-info-text .title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.video-info-text .meta { font-size: 12px; color: var(--fg-secondary); font-family: 'Geist Mono', monospace; }

.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.format-btn {
  background: var(--surface);
  border: none;
  padding: 14px 20px;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: background 0.15s;
}

.format-btn:hover { background: #1a1a1a; }

.format-btn .label { font-weight: 600; }
.format-btn .sublabel { font-size: 11px; color: var(--fg-muted); font-family: 'Geist Mono', monospace; }

.format-btn .dl-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.format-btn.audio .dl-icon {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
}

/* ── TRUST ROW ────────────────────────────────── */
.trust-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-secondary);
}

/* ── SECTION SHARED ───────────────────────────── */
section {
  padding: 80px 120px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: 44px;
  font-weight: 700;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ── FEATURES ─────────────────────────────────── */
.features { background: var(--bg); }

.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: #3f3f46; transform: translateY(-2px); }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon.purple { background: linear-gradient(180deg, var(--purple), #a855f733); }
.card-icon.pink   { background: linear-gradient(180deg, var(--pink), #ec489933); }
.card-icon.indigo { background: linear-gradient(180deg, var(--indigo), #6366f133); }

.card h3 { font-size: 20px; font-weight: 600; }
.card p  { font-size: 15px; color: var(--fg-secondary); line-height: 1.6; }

/* ── HOW IT WORKS ─────────────────────────────── */
.how-it-works { background: #111111; }

.steps-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 24px;
  text-align: center;
}

.step-num {
  width: 64px; height: 64px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.step-num.purple   { background: var(--purple); }
.step-num.pink     { background: var(--pink); }
.step-num.gradient { background: linear-gradient(90deg, var(--purple), var(--pink)); }

.step h3 { font-size: 22px; font-weight: 600; }
.step p  { font-size: 15px; color: var(--fg-secondary); line-height: 1.6; }

/* ── FAQ ──────────────────────────────────────── */
.faq { background: var(--bg); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-item {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--purple); transition: transform 0.2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--purple); }

.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
}

/* ── UTILITIES ────────────────────────────────── */
.hidden { display: none !important; }

/* ── PROGRESS BAR ─────────────────────────────── */
.progress-bar-wrap {
  max-width: 680px;
  width: 100%;
  background: #18181b;
  border: 1px solid var(--border);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 9999px;
  transition: width 0.3s;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  h1 { font-size: 38px; }
  .cards-row, .steps-row { grid-template-columns: 1fr; }
  section { padding: 60px 24px; }
  .footer { padding: 40px 24px; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .nav { padding: 16px 24px; }
  .hero { padding: 80px 24px 60px; }
  .trust-row { flex-direction: column; gap: 12px; }
  .format-grid { grid-template-columns: 1fr; }
}
