/* ============================================================
   Sound2Agent — landing styles
   ============================================================ */

:root {
  --bg: #06070c;
  --bg-2: #0a0c14;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #edeff7;
  --muted: #9aa3ba;
  --acc-a: #8b7cff;
  --acc-b: #3fe0bc;
  --grad: linear-gradient(120deg, var(--acc-a), var(--acc-b));
  --radius: 16px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
p a, .faq-list a, .prose a { color: var(--acc-b); text-decoration: underline; text-underline-offset: 3px; }
p a:hover, .faq-list a:hover, .prose a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}
.container-narrow { width: min(780px, 100% - 48px); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #07080d;
  box-shadow: 0 8px 28px -8px rgba(139, 124, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(63, 224, 188, 0.5);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18.5px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  fill: url(#s2a-grad);
}
/* SVG gradient fallback: solid accent when defs unavailable */
.brand-mark rect { fill: var(--acc-b); }
.brand-mark rect:nth-child(odd) { fill: var(--acc-a); }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 9px;
}
.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 110px;
  overflow: hidden;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.bg-glow-a {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: rgba(139, 124, 255, 0.16);
}
.bg-glow-b {
  width: 520px;
  height: 520px;
  top: 40px;
  right: -160px;
  background: rgba(63, 224, 188, 0.12);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 26px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc-b);
  box-shadow: 0 0 10px var(--acc-b);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 62px);
  margin-bottom: 22px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 52ch;
}
.hero-copy .lead { margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-note a { color: var(--acc-b); }

/* ---------- hero demo card ---------- */

.hero-demo { position: relative; }
.demo-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(139, 124, 255, 0.06),
    0 0 120px -30px rgba(139, 124, 255, 0.35);
}
.demo-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.demo-mic {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(139, 124, 255, 0.14);
  stroke: var(--acc-a);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.demo-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.demo-sub { font-size: 12.5px; color: var(--muted); }
.demo-live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ff7d90;
  border: 1px solid rgba(255, 125, 144, 0.35);
  border-radius: 6px;
  padding: 3px 8px;
  animation: pulse 1.6s ease-in-out infinite;
}

.eq {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
  margin-bottom: 20px;
}
.eq span {
  flex: 1;
  height: 100%;
  border-radius: 4px;
  background: var(--grad);
  opacity: 0.85;
  transform-origin: center;
  animation: eq-bounce 1.15s ease-in-out infinite;
}
.eq span:nth-child(5n + 1) { animation-delay: -0.9s; }
.eq span:nth-child(5n + 2) { animation-delay: -0.35s; }
.eq span:nth-child(5n + 3) { animation-delay: -0.6s; }
.eq span:nth-child(5n + 4) { animation-delay: -0.15s; }
.eq span:nth-child(5n)     { animation-delay: -0.75s; }
.eq span:nth-child(7n + 2) { animation-duration: 1.35s; }
.eq span:nth-child(3n + 1) { animation-duration: 0.95s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.18); }
  50% { transform: scaleY(1); }
}

.demo-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.demo-divider::before,
.demo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.demo-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.demo-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.demo-steps li.on { opacity: 1; transform: translateY(0); }
.demo-steps li b { color: var(--text); font-weight: 600; }
.step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-ico.ok { background: rgba(63, 224, 188, 0.15); color: var(--acc-b); }
.step-ico.wait { background: rgba(139, 124, 255, 0.15); color: var(--acc-a); }

/* ---------- sections ---------- */

.section { padding: 96px 0; position: relative; }
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  max-width: 24ch;
  margin-inline: auto;
}
.kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card h3 {
  font-size: 18.5px;
  margin-bottom: 10px;
}
.card p { font-size: 14.5px; color: var(--muted); }

.card-ico {
  width: 42px;
  height: 42px;
  padding: 9px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 124, 255, 0.16), rgba(63, 224, 188, 0.12));
  border: 1px solid rgba(139, 124, 255, 0.25);
  stroke: var(--acc-b);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card { position: relative; }
.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}

.card-mini { padding: 24px; }
.card-mini h3 { font-size: 16.5px; }
.card-mini p { font-size: 14px; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.chip {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- pricing ---------- */

.billing-toggle {
  display: inline-flex;
  margin-top: 26px;
  padding: 5px;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.toggle-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.toggle-opt.is-active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.toggle-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(63, 224, 188, 0.14);
  color: var(--acc-b);
}

.pricing-grid { align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
}
.price-card h3 { font-size: 17px; color: var(--muted); font-weight: 600; }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
}
.price-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-per { color: var(--muted); font-size: 14px; }
.price-sub { font-size: 13.5px; color: var(--muted); margin: 4px 0 22px; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  flex: 1;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--muted);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--acc-b);
  font-weight: 700;
}

.price-featured {
  background: linear-gradient(170deg, rgba(139, 124, 255, 0.11), rgba(63, 224, 188, 0.05));
  border-color: rgba(139, 124, 255, 0.45);
  box-shadow: 0 24px 70px -30px rgba(139, 124, 255, 0.5);
  position: relative;
}
.price-featured:hover { border-color: rgba(139, 124, 255, 0.7); }
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #07080d;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-fineprint {
  margin-top: 34px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 72ch;
  margin-inline: auto;
}

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta-band { padding: 110px 0; }
.cta-inner {
  text-align: center;
  position: relative;
  padding: 72px 40px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(139, 124, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 110%, rgba(63, 224, 188, 0.14), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.cta-inner .lead { margin: 0 auto 32px; }
.cta-inner .hero-note { margin-top: 20px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-2);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 26px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- legal / prose pages ---------- */

.prose-wrap { padding: 72px 0 96px; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

/* ---------- 404 ---------- */

.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.notfound .flatline {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  height: 40px;
  margin: 0 auto 28px;
  max-width: 320px;
}
.notfound .flatline span {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--border-strong);
}
.notfound h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.notfound p { color: var(--muted); margin-bottom: 30px; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.no-observer .reveal { opacity: 1; transform: none; }

/* stagger inside grids */
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-demo { max-width: 560px; margin-inline: auto; width: 100%; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 7, 12, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .section { padding: 68px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { padding: 52px 24px; }
  .btn { padding: 12px 22px; }
  .price-num { font-size: 38px; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .demo-steps li { opacity: 1; transform: none; }
  .eq span { transform: scaleY(0.5); }
}
