:root {
  --bg: #0b0b0d;
  --bg-2: #111115;
  --panel: #18181d;
  --panel-2: #212128;
  --line: #2a2a33;
  --text: #f2f2f5;
  --muted: #9a9aa6;
  --brand: #e82127;
  --brand-2: #ff3a40;
  --brand-rgb: 232, 33, 39;
  --radius: 16px;
  --wrap: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

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

.accent {
  color: var(--brand);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

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

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(var(--brand-rgb), 0.7);
}

.btn.primary:hover {
  background: var(--brand-2);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: #454552;
  background: var(--panel);
}

.btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.btn.block {
  width: 100%;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand b {
  color: var(--brand);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

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

.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -200px 0 auto;
  height: 700px;
  background: radial-gradient(ellipse at 50% 30%, rgba(var(--brand-rgb), 0.28), transparent 60%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.2);
}

.hero h1 {
  margin: 24px auto 20px;
  max-width: 880px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 800;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 16px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.screen {
  position: relative;
  margin: 64px auto 0;
  max-width: 1040px;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, #26262e, #121216);
  border: 1px solid #33333d;
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -20px rgba(var(--brand-rgb), 0.35);
}

.screen img {
  width: 100%;
  border-radius: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.stat {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.section {
  padding: 110px 0;
}

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

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- features ---------- */

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

.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}

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

.feature .ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  color: var(--tint);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.97rem;
}

.pro-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(var(--brand-rgb), 0.15);
  color: var(--brand-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- showcase ---------- */

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

.showcase + .showcase {
  margin-top: 110px;
}

.showcase.flip .showcase-media {
  order: 2;
}

.showcase-media {
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(180deg, #24242c, #131317);
  border: 1px solid #33333d;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}

.showcase-media img {
  border-radius: 14px;
}

.showcase h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.showcase p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.checks li {
  position: relative;
  padding-left: 34px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3a40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* Mirror illustration */
.cast-demo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background:
    radial-gradient(circle at 70% 40%, rgba(53, 181, 138, 0.18), transparent 55%),
    #0e0e12;
  overflow: hidden;
}

.cast-car {
  width: 72%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #1d1d24, #141418);
  display: grid;
  place-items: center;
  transform: translateX(8%);
}

.cast-car .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  box-shadow: 0 0 0 12px rgba(var(--brand-rgb), 0.15);
}

.cast-phone {
  position: absolute;
  left: 8%;
  bottom: 10%;
  width: 22%;
  aspect-ratio: 9 / 18;
  border-radius: 18px;
  border: 3px solid #3a3a45;
  background: linear-gradient(180deg, #202027, #16161b);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

.cast-phone span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #35b58a;
  letter-spacing: 0.08em;
}

.cast-wave {
  position: absolute;
  left: 28%;
  bottom: 38%;
  width: 18%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #35b58a 0 8px, transparent 8px 16px);
  animation: wave 1.2s linear infinite;
  opacity: 0.8;
}

@keyframes wave {
  to {
    background-position: 32px 0;
  }
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--brand);
  font-weight: 800;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

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

.url-chip {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font: 600 0.92rem ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--text);
}

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

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  margin: 0 auto 40px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.billing-toggle button {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.billing-toggle button.active {
  background: var(--text);
  color: var(--bg);
}

.pricing-center {
  text-align: center;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 20px;
  text-align: left;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.plan.featured {
  border: 2px solid var(--brand);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(var(--brand-rgb), 0.18), transparent 60%),
    var(--panel);
}

.plan .badge {
  position: absolute;
  top: -13px;
  left: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.plan h3 {
  font-size: 1.3rem;
}

.plan .desc {
  margin-top: 6px;
  color: var(--muted);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0 4px;
}

.price strong {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.price-note {
  min-height: 1.6em;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan .checks {
  margin: 24px 0 32px;
  flex: 1;
}

/* ---------- faq ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  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;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s;
}

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

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ---------- cta ---------- */

.cta {
  padding: 100px 0;
}

.cta-box {
  padding: 72px 40px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--brand-rgb), 0.35), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.cta-box p {
  margin: 16px auto 32px;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

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

.footer-links a:hover {
  color: var(--text);
}

.legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.7;
}

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

.doc {
  max-width: 760px;
  padding: 64px 0 100px;
}

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
}

.doc .updated {
  margin: 10px 0 40px;
  color: var(--muted);
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 1.3rem;
}

.doc p,
.doc li {
  color: #c9c9d2;
}

.doc p + p {
  margin-top: 12px;
}

.doc ul {
  padding-left: 22px;
}

.doc a {
  color: var(--brand-2);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

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

@media (max-width: 980px) {
  .features,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .showcase.flip .showcase-media {
    order: 0;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-header.open .nav {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .hero {
    padding-top: 56px;
  }
  .section {
    padding: 80px 0;
  }
  .features,
  .steps,
  .plans,
  .stats {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 56px 24px;
  }
}
