:root {
  --bg: #fafafa;
  --bg-gradient: linear-gradient(180deg, #f0f4ff 0%, #fafafa 50%);
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: #eef2ff;
  --grad-1: #6366f1;
  --grad-2: #ec4899;
  --danger: #dc2626;
  --success: #059669;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 4px 6px rgba(15,23,42,.05), 0 20px 50px rgba(99,102,241,.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0f;
    --bg-gradient: linear-gradient(180deg, #0f172a 0%, #0a0a0f 50%);
    --surface: #15151d;
    --surface-raised: #1a1a24;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #262633;
    --border-strong: #333345;
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-soft: #1e1b3b;
    --grad-1: #818cf8;
    --grad-2: #f472b6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 1px 3px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.2);
    --shadow-lg: 0 4px 6px rgba(0,0,0,.3), 0 20px 50px rgba(129,140,248,.2);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); text-decoration: none; }

h1, h2, h3 { letter-spacing: -0.02em; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__icon { font-size: 24px; }

.topnav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--text); }
@media (max-width: 560px) {
  .topnav { gap: 14px; font-size: 13px; }
  .topnav a[href="#how"] { display: none; }
}

.bmc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #ffdd00;
  color: #000;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .1s;
}
.bmc:hover { color: #000; transform: translateY(-1px); text-decoration: none; }
.bmc-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-right: 10px;
  max-width: 260px;
  line-height: 1.3;
  text-align: right;
}
@media (max-width: 880px) {
  .bmc-note { display: none; }
}
@media (max-width: 640px) {
  .bmc span:last-child { display: none; }
}

/* Hero */
.hero {
  background: var(--bg-gradient);
  padding: 56px 20px 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  opacity: .7;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
}
.gradient {
  background: linear-gradient(120deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.sub {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 0 auto 32px;
  max-width: 560px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero__stats strong {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  background: linear-gradient(120deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__stats span {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px 8px; }
}

/* Container */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 20px; }
.section__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}
.section__sub {
  color: var(--muted);
  text-align: center;
  margin: 0 0 40px;
  font-size: 16px;
}

/* Card */
.card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: -40px 0 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.card--prominent { margin-top: -60px; }

.form__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.form__header h2 {
  font-size: 20px;
  margin: 0;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}

.label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 14px 0 6px;
}

textarea, select {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 8px;
}
.err { color: var(--danger); font-weight: 500; }

.turnstile { margin: 16px 0; min-height: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform .08s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(120deg, var(--grad-1), var(--grad-2));
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn--primary:hover { box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn--primary:disabled { opacity: .6; cursor: not-allowed; }

.btn--secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  margin-top: 12px;
}
.btn--secondary:hover { background: var(--accent); color: #fff; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.status.err { color: var(--danger); }

.result { margin-top: 12px; }
.result h2 { margin: 0 0 12px; font-size: 20px; }
.result audio { width: 100%; margin: 8px 0; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Features grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.feature__icon {
  font-size: 32px;
  margin-bottom: 10px;
  display: inline-block;
}
.feature h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 700;
}
.feature p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--grad-1), var(--grad-2));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.steps h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 700;
}
.steps p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Uses */
.uses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.use {
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: transform .1s, border-color .15s;
}
.use:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* FAQ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  transition: transform .15s;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer p { margin: 0; }
