:root {
  color-scheme: dark;
  --bg: #08080d;
  --bg-alt: #0d0d15;
  --surface: #12121c;
  --surface-2: #181826;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ecebf5;
  --muted: #9b9ab0;
  --accent: #818cf8;
  --accent-strong: #6366f1;
  --accent-2: #a78bfa;
  --live: #f43f5e;
  --ok: #34d399;
  --radius: 14px;
  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent-strong);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 24px;
}

.narrow {
  max-width: 780px;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 38rem;
}

.fineprint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 60%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.4) inset,
    0 8px 30px -8px rgba(99, 102, 241, 0.7);
}

.btn-primary:hover {
  background: #5558ea;
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-mark rect {
  fill: var(--accent-strong);
}

.brand-mark path {
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  fill: none;
}

.brand-sm {
  font-size: 1rem;
}

.brand-sm .brand-mark {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.925rem;
}

.nav-links a,
.link-quiet,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.link-quiet:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 0.925rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 88px 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 70% 40%, rgba(99, 102, 241, 0.28), transparent 70%),
    radial-gradient(30% 40% at 20% 20%, rgba(167, 139, 250, 0.14), transparent 70%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Live card */
.live-card {
  margin: 0;
  padding: 22px;
  background: linear-gradient(180deg, rgba(24, 24, 38, 0.92), rgba(15, 15, 24, 0.92));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(129, 140, 248, 0.08);
}

.live-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.live-title {
  font-weight: 600;
}

.live-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

.dot-soft {
  background: var(--ok);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(244, 63, 94, 0);
  }
}

.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
  margin-block: 18px;
  padding-inline: 4px;
}

.wave span {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-strong));
  transform: scaleY(0.25);
  animation: bar 1.3s ease-in-out infinite;
}

/* Pseudo-random rhythm so the bars don't move in lockstep. */
.wave span:nth-child(3n) {
  animation-duration: 1.05s;
}
.wave span:nth-child(4n + 1) {
  animation-duration: 1.55s;
}
.wave span:nth-child(5n + 2) {
  animation-delay: -0.4s;
}
.wave span:nth-child(7n) {
  animation-delay: -0.9s;
}
.wave span:nth-child(2n) {
  animation-delay: -0.2s;
}

@keyframes bar {
  0%,
  100% {
    transform: scaleY(0.2);
  }
  50% {
    transform: scaleY(1);
  }
}

.transcript {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.transcript li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 0.95rem;
}

.who {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.who.rep {
  color: var(--accent);
}

.who.home {
  color: #fbbf24;
}

.typing p {
  color: var(--muted);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.live-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.listening {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a7f3d0;
}

/* Sections */
.section {
  padding-block: 96px;
}

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  max-width: 48rem;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-glow {
  background:
    radial-gradient(50% 70% at 15% 50%, rgba(99, 102, 241, 0.16), transparent 70%), var(--bg);
}

.grid-3,
.grid-2,
.steps {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.grid-3,
.steps {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.feature,
.steps li {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3,
.feature h3,
.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p,
.feature p,
.steps p,
.benefits p {
  color: var(--muted);
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: none;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: var(--accent);
  font-weight: 700;
}

.feature {
  padding: 32px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.14);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split .lede {
  margin-top: 20px;
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.benefits li {
  padding-left: 22px;
  border-left: 2px solid rgba(129, 140, 248, 0.45);
}

.benefits h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Comparison */
.table-scroll {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface);
}

.compare tbody th {
  font-weight: 500;
}

.compare .us {
  background: rgba(99, 102, 241, 0.08);
  width: 26%;
}

.compare thead .us {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.14);
}

.yes {
  color: var(--ok);
  font-weight: 700;
  font-size: 1.1rem;
}

.no {
  color: var(--muted);
}

/* Integrations */
.checks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    rgba(52, 211, 153, 0.14);
}

.code {
  min-width: 0;
  background: #0a0a12;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.code-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.code pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #d4d4e4;
}

.code .c {
  color: #6b6a80;
}

.code .k {
  color: var(--accent-2);
}

.code .s {
  color: #86efac;
}

/* FAQ */
.faq {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 22px;
  color: var(--muted);
  max-width: 40rem;
}

.faq a {
  color: var(--accent);
}

/* Final CTA */
.final {
  padding: 72px 32px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(129, 140, 248, 0.25);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(99, 102, 241, 0.3), transparent 70%), var(--surface);
}

.final h2 {
  max-width: 36rem;
  margin: 0 auto;
}

.final p {
  margin: 16px 0 30px;
  color: var(--muted);
}

/* Footer */
.footer {
  padding-block: 36px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

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

.footer-inner .muted {
  margin-left: auto;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.notfound h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 14px;
}

.notfound p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 18px;
  }

  .hero {
    padding-block: 56px 64px;
  }

  .section {
    padding-block: 64px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .link-quiet {
    display: none;
  }

  .card,
  .feature,
  .steps li {
    padding: 22px;
  }

  .live-card {
    padding: 18px;
  }

  .transcript li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .final {
    padding: 52px 20px;
  }

  .footer-inner .muted {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wave span,
  .dot,
  .caret {
    animation: none;
  }

  .wave span {
    transform: scaleY(0.55);
  }
}
