/* ===== Celebrity Voice Changer — modern redesign =====
   Dark, AI-voice aesthetic. Hand-rolled (no framework). */

:root {
  --bg: #0a0812;
  --bg-alt: #100c1c;
  --surface: #17132a;
  --surface-2: #1e1938;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceaf6;
  --muted: #a7a2c4;
  --brand-1: #7c5cff;   /* violet */
  --brand-2: #ff5c9d;   /* pink   */
  --brand-3: #22d3ee;   /* cyan   */
  --grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --grad-3: linear-gradient(120deg, var(--brand-3) 0%, var(--brand-1) 50%, var(--brand-2) 100%);
  --radius: 18px;
  --maxw: 1120px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(255, 92, 157, 0.45); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 8, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-family: 'Poppins', sans-serif; font-size: 1.02rem; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(124, 92, 255, 0.28), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-3);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 20px;
  background: rgba(34, 211, 238, 0.06);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 520px; margin: 18px 0 30px; }

.store-buttons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.store-buttons.center { justify-content: center; }
.store-badge { display: inline-flex; transition: transform 0.18s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge .badge-img { width: auto; display: block; }
/* Apple SVG is tight; Google PNG has built-in clear-space padding.
   Size each so the visible buttons align (~48px tall). */
.badge-apple  { height: 48px; }
.badge-google { height: 71px; margin: -11px -6px; }

.hero-meta { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }
.hero-meta span { color: #ffd166; letter-spacing: 2px; margin-right: 8px; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.phone-glow {
  position: absolute;
  width: 340px; height: 340px;
  background: var(--grad-3);
  filter: blur(70px);
  opacity: 0.45;
  border-radius: 50%;
}
.phone-img { position: relative; max-height: 460px; width: auto; z-index: 2; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5)); }

.waveform {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  margin-top: -30px;
}
.waveform span {
  width: 5px;
  border-radius: 4px;
  background: var(--grad);
  animation: wave 1.1s ease-in-out infinite;
}
.waveform span:nth-child(odd)  { height: 60%; animation-delay: -0.2s; }
.waveform span:nth-child(3n)   { height: 100%; animation-delay: -0.4s; }
.waveform span:nth-child(3n+1) { height: 40%; animation-delay: -0.1s; }
.waveform span:nth-child(5n)   { height: 80%; animation-delay: -0.5s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.5); }
.card-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--surface-2);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* Voices grid */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.voice { margin: 0; text-align: center; }
.voice img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.voice:hover img { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow); }
.voice figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.voices-note { text-align: center; color: var(--muted); margin-top: 38px; font-size: 1.02rem; }

/* Impersonation disclaimer */
.disclaimer {
  max-width: 780px;
  margin: 22px auto 0;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  text-align: center;
}
.disclaimer strong { color: var(--text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step-num {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.4);
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* Download CTA */
.download-cta { text-align: center; }
.download-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.download-cta p { color: var(--muted); font-size: 1.1rem; margin: 0 0 30px; }

/* ===== Contact form ===== */
.alert-success {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #b6f3ff;
  padding: 16px 20px;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 500;
}
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn-primary { justify-self: start; }
/* Honeypot — hidden from humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-family: 'Poppins', sans-serif; }
.footer-brand .brand-logo { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-disclaimer { color: var(--muted); font-size: 0.78rem; line-height: 1.6; width: 100%; margin: 12px 0 0; opacity: 0.85; }
.copyright { color: var(--muted); font-size: 0.85rem; width: 100%; margin: 8px 0 0; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-img { max-height: 380px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 60px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .waveform span { animation: none; }
  html { scroll-behavior: auto; }
}
