/* =========================================================
   Auton — landing page styles
   ========================================================= */

:root {
  --bg: #05060a;
  --bg-alt: #080a10;
  --surface: #0d1017;
  --surface-2: #12151e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --text-muted: #9ba3b4;
  --text-dim: #6b7385;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --brand-soft: rgba(99, 102, 241, 0.14);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.grad {
  background: linear-gradient(100deg, #818cf8 0%, #22d3ee 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(100deg, var(--brand) 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.7);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.9); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-1px); }
.btn--block { width: 100%; }
.btn:active { transform: translateY(0) scale(.99); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 10, 0.6);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-scrolled {
  background: rgba(5, 6, 10, 0.88);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand__mark { display: inline-flex; }
.brand__name { color: var(--text); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 14.5px; color: var(--text-muted); font-weight: 500; transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { color: white !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 48px; overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -320px; left: 50%;
  width: 1100px; height: 780px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.28), rgba(34, 211, 238, 0.10) 42%, transparent 68%);
  pointer-events: none;
  filter: blur(20px);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__copy { max-width: 620px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.badge--live { transition: border-color .2s ease, color .2s ease; }
.badge--live:hover { border-color: rgba(99, 102, 241, 0.5); color: var(--text); }
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .45; } }

.hero__title { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero__sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-muted); margin-bottom: 32px; max-width: 560px; }

.waitlist-form { max-width: 520px; }
.waitlist-form__row { display: flex; gap: 10px; }
.waitlist-form__row--secondary { margin-top: 10px; }
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist-form input[type="email"]::placeholder { color: var(--text-dim); }
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.waitlist-form select {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7385' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.waitlist-form select:focus { outline: none; border-color: var(--brand); }
.waitlist-form select option { background: var(--surface-2); color: var(--text); }
.waitlist-form__meta { margin-top: 10px; font-size: 13px; color: var(--text-dim); min-height: 20px; }
.waitlist-form__meta.is-success { color: var(--success); }
.waitlist-form__meta.is-error { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.hero__proof { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.hero__proof li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-muted); }
.hero__proof svg { color: var(--brand-2); flex-shrink: 0; }

/* ---------- Product panel ---------- */
.hero__visual { perspective: 1200px; }
.panel {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .5s ease;
}
.hero__visual:hover .panel { transform: rotateY(0deg) rotateX(0deg); }
.panel__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.panel__title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.panel__pill {
  margin-left: auto; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--success); background: rgba(52, 211, 153, 0.12); padding: 3px 8px; border-radius: 999px;
}
.panel__body { padding: 18px; }
.ticket { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.ticket__id { font-family: var(--mono); font-size: 11px; color: var(--brand-2); letter-spacing: .04em; }
.ticket__title { font-size: 14.5px; font-weight: 600; margin: 4px 0 8px; }
.ticket__tags { display: flex; gap: 6px; }
.ticket__tags span { font-size: 11px; color: var(--text-dim); background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }

.pipeline { position: relative; }
.pipe { display: flex; gap: 12px; padding: 9px 0; position: relative; }
.pipe:not(:last-child)::after {
  content: ""; position: absolute; left: 11px; top: 32px; width: 2px; height: calc(100% - 22px); background: var(--border);
}
.pipe.is-done:not(:last-child)::after { background: rgba(52, 211, 153, 0.4); }
.pipe__icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-dim);
  position: relative; z-index: 1;
}
.pipe.is-done .pipe__icon { background: rgba(52, 211, 153, 0.15); border-color: rgba(52,211,153,.5); color: var(--success); }
.pipe.is-active .pipe__icon { background: var(--brand-soft); border-color: var(--brand); }
.pipe b { display: block; font-size: 14px; font-weight: 600; }
.pipe small { font-size: 12px; color: var(--text-dim); }
.pipe.is-active b { color: #a5b4fc; }
.pipe.is-active small { color: var(--text-muted); }
.spinner { width: 11px; height: 11px; border: 2px solid rgba(99,102,241,.3); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel__foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted); background: rgba(255,255,255,.02);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(99,102,241,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99,102,241,.6); }
  70% { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 28px;
}
.marquee__label { flex-shrink: 0; font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.marquee__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee__group { display: inline-flex; gap: 40px; padding-right: 40px; animation: scroll 34s linear infinite; }
.marquee__track:hover .marquee__group { animation-play-state: paused; }
.marquee__group span { font-size: 15px; font-weight: 600; color: var(--text-dim); white-space: nowrap; transition: color .2s ease; }
.marquee__group span:hover { color: var(--text-muted); }
@keyframes scroll { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 18px; }
.section__lead { font-size: 17px; color: var(--text-muted); }
.disclaimer { margin-top: 24px; font-size: 12.5px; color: var(--text-dim); font-style: italic; }

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .25s ease, transform .25s ease;
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.stat-card__num { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(100deg, #a5b4fc, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.stat-card p { font-size: 14.5px; color: var(--text-muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: rgba(99,102,241,.4); transform: translateY(-4px); background: var(--surface-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid rgba(99,102,241,.28);
  color: #a5b4fc; margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.step { padding: 30px 24px; border-right: 1px solid var(--border); position: relative; transition: background .25s ease; }
.step:last-child { border-right: 0; }
.step:hover { background: var(--surface-2); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--brand-2); font-weight: 600; display: block; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

.callout {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 32px 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(99,102,241,.3);
  background: linear-gradient(100deg, rgba(99,102,241,.12), rgba(34,211,238,.06));
}
.callout h3 { font-size: 20px; margin-bottom: 8px; }
.callout p { font-size: 14.5px; color: var(--text-muted); max-width: 560px; }
.callout__text { flex: 1; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.trust-item { background: var(--surface); padding: 30px 28px; transition: background .25s ease; }
.trust-item:hover { background: var(--surface-2); }
.trust-item h4 { font-size: 16px; margin-bottom: 8px; }
.trust-item p { font-size: 14px; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card--featured {
  border-color: rgba(99,102,241,.55);
  background: linear-gradient(180deg, rgba(99,102,241,.10), var(--surface) 45%);
  box-shadow: 0 24px 60px -28px rgba(99,102,241,.6);
}
.price-card__tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(100deg, var(--brand), #4f46e5);
  color: white; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 17px; color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.price span { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 14px; color: var(--text-dim); }
.price-card__desc { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; min-height: 42px; }
.price-card ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.price-card li { font-size: 14px; color: var(--text-muted); padding-left: 24px; position: relative; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand-2); font-weight: 700; font-size: 13px;
}

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

/* ---------- CTA ---------- */
.cta { padding-bottom: 110px; }
.cta__card {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 64px 40px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.hero__glow--cta { top: -420px; height: 700px; opacity: .8; }
.cta__card > * { position: relative; z-index: 1; }
.cta__card h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 16px; }
.cta__card .section__lead { margin: 0 auto 32px; max-width: 560px; }
.cta__card .waitlist-form { margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-alt); }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand { max-width: 340px; }
.footer__brand p { margin-top: 14px; font-size: 14px; color: var(--text-dim); }
.footer__links { display: flex; gap: 64px; }
.footer__links h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 16px; }
.footer__links a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color .2s ease; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .panel { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 560px; }
  .panel { transform: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--border); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(8, 10, 16, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 4px; font-size: 16px; }
  .nav__cta { margin-top: 8px; }
  .grid--4, .grid--3, .pricing, .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: 0; }
  .callout { flex-direction: column; align-items: flex-start; padding: 28px; }
  .waitlist-form__row { flex-direction: column; }
  .waitlist-form__row .btn { width: 100%; }
  .marquee { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__links { gap: 40px; }
}
