/* ============================================================
   SmokeTrack by Alvy — landing page
   ============================================================ */

:root {
  --purple:        #7B1FA2;
  --purple-bright: #9C27B0;
  --purple-dark:   #4A148C;
  --purple-soft:   #F3E5F5;
  --green:         #2E7D32;
  --green-bright:  #43A047;
  --yellow:        #F9A825;
  --red:           #E53935;

  --ink:    #1d1726;
  --body:   #4a4458;
  --muted:  #837d92;
  --line:   #ece8f1;

  --bg:      #ffffff;
  --bg-alt:  #faf7fc;
  --bg-deep: #2a1140;

  --radius:    20px;
  --radius-sm: 13px;
  --shadow:    0 18px 50px -22px rgba(74, 20, 140, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(74, 20, 140, 0.28);
  --maxw:      1140px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; }

::selection { background: var(--purple-bright); color: #fff; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 760px; }
.center    { text-align: center; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn--primary {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-dark));
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(123, 31, 162, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(123, 31, 162, 0.8); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn--ghost {
  background: #fff; color: var(--purple-dark);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--purple-bright); color: var(--purple); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -20px rgba(74,20,140,.6); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { border-radius: 9px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 18px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.brand__text small { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #c9b8db; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) { font-weight: 600; font-size: 15px; color: var(--body); transition: color .15s ease; }
.nav__links > a:not(.btn):hover { color: var(--purple); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--ink); transition: transform .25s ease, opacity .2s ease;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: .5; z-index: 0; pointer-events: none;
}
.hero__glow--1 { width: 460px; height: 460px; background: #E1BEE7; top: -150px; right: -120px; }
.hero__glow--2 { width: 380px; height: 380px; background: #D1C4E9; bottom: -160px; left: -130px; }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--purple);
  background: var(--purple-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow--light { background: rgba(255,255,255,.16); color: #fff; }

.hero__title { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 22px; }
.grad {
  background: linear-gradient(120deg, var(--purple-bright), var(--purple-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 19px; max-width: 540px; margin-bottom: 30px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px;
}
.trust li { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- phone mockup ---------- */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 290px; padding: 13px;
  background: linear-gradient(160deg, #2a1140, #160622);
  border-radius: 44px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone__notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 22px; background: #160622;
  border-radius: 0 0 16px 16px; z-index: 2;
}
.phone__screen {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #faf6fd);
  border-radius: 33px; padding: 30px 20px 26px;
  min-height: 530px; overflow: hidden;
}

.mk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mk-context {
  font-size: 12.5px; font-weight: 700; color: var(--purple-dark);
  background: var(--purple-soft); padding: 6px 11px; border-radius: 999px;
}
.mk-toggle {
  width: 42px; height: 24px; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-dark));
  position: relative;
}
.mk-toggle::after {
  content: ""; position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
}
.mk-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mk-big { font-size: 52px; font-weight: 800; color: var(--purple-dark); line-height: 1.05; margin-bottom: 14px; }
.mk-big span { font-size: 15px; font-weight: 600; color: var(--muted); }

.mk-pills { display: flex; gap: 8px; margin-bottom: 24px; }
.mk-pill { font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.mk-pill--win  { background: #E8F5E9; color: var(--green); }
.mk-pill--wait { background: #FFF8E1; color: #B7791F; }

.mk-section { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.mk-timeline {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 18px;
}
.mk-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.mk-dot.red    { background: var(--red); }
.mk-dot.green  { background: var(--green-bright); }
.mk-dot.yellow { background: var(--yellow); }

.mk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 14px;
}
.mk-stat strong { display: block; font-size: 21px; color: var(--purple-dark); font-weight: 800; }
.mk-stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.mk-fab {
  position: absolute; bottom: 22px; right: 22px;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-dark));
  color: #fff; font-size: 30px; font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px -8px rgba(123,31,162,.8);
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }

.section__head { margin-bottom: 54px; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section__lead { font-size: 18px; color: var(--body); }
.center .section__lead { margin-left: auto; margin-right: auto; max-width: 620px; }

.problem .section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-dark));
  color: #fff; font-size: 21px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 16px; }

/* ---------- features ---------- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #e3d6ee; }
.feature__icon {
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--purple-soft); font-size: 27px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 18.5px; margin-bottom: 8px; }
.feature p { font-size: 15.5px; }

/* ---------- privacy ---------- */
.privacy {
  display: grid; grid-template-columns: 1.4fr 0.85fr; gap: 44px;
  align-items: center;
  background: linear-gradient(150deg, var(--purple-dark), #2a1140);
  border-radius: 28px; padding: 56px 52px; color: #f1e9f7;
  position: relative; overflow: hidden;
}
.privacy::before {
  content: ""; position: absolute; width: 320px; height: 320px;
  background: rgba(156,39,176,.4); filter: blur(80px);
  top: -120px; right: -80px; border-radius: 50%;
}
.privacy__copy { position: relative; z-index: 1; }
.privacy .section__title { color: #fff; }
.privacy .section__lead { color: #ddd0e8; }
.privacy .section__lead strong { color: #fff; }

.checklist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checklist li {
  position: relative; padding-left: 32px;
  font-weight: 600; color: #f1e9f7; font-size: 16px;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-bright); color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.privacy__badge {
  position: relative; z-index: 1; text-align: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 36px 24px;
}
.privacy__badge .lock { font-size: 56px; margin-bottom: 12px; }
.privacy__badge p { font-weight: 700; color: #fff; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: #e3d6ee; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer;
  font-weight: 700; color: var(--ink); font-size: 17px;
  padding: 16px 30px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 24px; font-weight: 400;
  color: var(--purple); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: 16px; }

/* ---------- waitlist ---------- */
.waitlist { background: var(--bg-alt); }
.waitlist__card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 28px; padding: 56px 48px;
  box-shadow: var(--shadow);
}
.waitlist__card .eyebrow--light { background: var(--purple-soft); color: var(--purple); }

.price {
  display: inline-flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap; justify-content: center;
  background: var(--purple-soft); border-radius: 14px;
  padding: 14px 24px; margin-top: 24px;
}
.price__amount { font-size: 30px; font-weight: 800; color: var(--purple-dark); letter-spacing: -0.02em; }
.price__detail { font-size: 14px; font-weight: 600; color: var(--purple); }

.wl-form { margin-top: 24px; }
.wl-form__row {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
}
.wl-form input[type="email"] {
  flex: 1; font-family: var(--font); font-size: 16px;
  padding: 14px 18px; border: 1.5px solid var(--line);
  border-radius: 999px; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-width: 0;
}
.wl-form input[type="email"]::placeholder { color: #b3acbf; }
.wl-form input[type="email"]:focus {
  outline: none; border-color: var(--purple-bright);
  box-shadow: 0 0 0 4px rgba(156,39,176,.12);
}
.wl-form input.is-error { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,57,53,.1); }

.wl-form__note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.wl-form__msg { font-size: 15px; font-weight: 700; margin-top: 14px; min-height: 22px; }
.wl-form__msg.is-ok    { color: var(--green); }
.wl-form__msg.is-error { color: var(--red); }

/* ---------- footer ---------- */
.footer { background: var(--bg-deep); color: #c9bcd7; padding: 60px 0 30px; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__tagline { margin-top: 16px; font-size: 15px; color: #9d8fae; max-width: 280px; }
.footer h3 {
  color: #fff; font-size: 14px; text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 16px;
}
.footer__contact, .footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__contact a, .footer__nav a {
  font-size: 15px; color: #c9bcd7; transition: color .15s ease; width: fit-content;
}
.footer__contact a:hover, .footer__nav a:hover { color: #fff; }

.footer__bottom {
  padding-top: 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.footer__bottom p { font-size: 13px; color: #897a9b; }
.footer__disclaimer { max-width: 640px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .trust { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; padding: 44px 36px; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px;
    box-shadow: 0 24px 40px -28px rgba(74,20,140,.6);
    transform: translateY(-130%); transition: transform .28s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 10px; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .features { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .waitlist__card { padding: 40px 26px; }
  .privacy { padding: 36px 24px; }
  .wl-form__row { flex-direction: column; }
  .wl-form input[type="email"], .wl-form .btn { width: 100%; }
  .container { padding: 0 20px; }
}
