/* ===== TOKENS ===== */
:root {
  --bg: #070a13;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #eef2ff;
  --text-dim: #9aa4bd;
  --text-mute: #6b7693;
  --primary: #7c3aed;
  --primary-2: #a855f7;
  --primary-glow: rgba(124, 58, 237, 0.55);
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --pink: #ec4899;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
::selection { background: var(--primary-2); color: #fff; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, var(--pink) 120%);
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  padding: 16px 26px;
  font-size: 1rem;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -10px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 18px;
  font-size: 0.92rem;
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.2); }

.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--lg { padding: 19px 34px; font-size: 1.12rem; }
.btn__icon { font-size: 1.15em; }
.btn__price {
  font-weight: 600;
  font-size: 0.82em;
  opacity: 0.9;
  padding-left: 2px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 10, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand__mark {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #c4b5fd);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand__dot { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.orb--1 { width: 480px; height: 480px; background: radial-gradient(circle, var(--primary), transparent 70%); top: -120px; left: -100px; }
.orb--2 { width: 420px; height: 420px; background: radial-gradient(circle, var(--accent), transparent 70%); bottom: -140px; right: -80px; animation-delay: -5s; }
.orb--3 { width: 360px; height: 360px; background: radial-gradient(circle, var(--pink), transparent 70%); top: 40%; left: 55%; opacity: 0.35; animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__title {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero__title .flop {
  color: var(--red);
  position: relative;
}
.hero__title .viral {
  background: linear-gradient(120deg, var(--green), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title .rocket { display: inline-block; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 40px;
}
.hero__sub strong { color: var(--text); font-weight: 700; }

.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 56px; }
.hero__trust { color: var(--text-mute); font-size: 0.9rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}
.stat:hover { border-color: rgba(168, 85, 247, 0.4); transform: translateY(-3px); }
.stat__num { display: block; font-size: 1.7rem; font-weight: 800; background: linear-gradient(120deg, #fff, #a855f7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { display: block; font-size: 0.8rem; color: var(--text-mute); margin-top: 4px; }

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid var(--text-mute);
  border-radius: 14px;
  position: relative;
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  transform: translateX(-50%);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.15;
}
.section__lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
  color: var(--text-dim);
  font-size: 1.1rem;
}
.section__lead strong { color: var(--text); }
.section__lead em { color: var(--amber); font-style: normal; font-weight: 600; }

/* ===== PROBLEM ===== */
.problem { background: linear-gradient(180deg, transparent, rgba(251, 113, 133, 0.04)); }
.problem__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.problem__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s, border-color 0.25s;
}
.problem__card:hover { transform: translateY(-4px); border-color: rgba(251, 113, 133, 0.3); }
.problem__card--highlight {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.12), rgba(124, 58, 237, 0.08));
  border-color: rgba(251, 113, 133, 0.35);
}
.problem__icon { font-size: 2rem; margin-bottom: 14px; }
.problem__card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.problem__card p { color: var(--text-dim); }

/* ===== SOLUTION ===== */
.solution__subhead {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.persona {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 26px 30px;
  text-align: center;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
  overflow: hidden;
}
.persona::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.persona:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, 0.4); box-shadow: var(--shadow); }
.persona:hover::before { opacity: 1; }
.persona__avatar {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  font-size: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}
.persona h4 { font-size: 1.15rem; margin-bottom: 10px; position: relative; }
.persona p { color: var(--text-dim); font-size: 0.95rem; position: relative; }
.persona__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  position: relative;
}

/* ===== HOW IT WORKS ===== */
.how { background: linear-gradient(180deg, rgba(124,58,237,0.04), transparent); }
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
}
.step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, 0.4); }
.step__num {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px -6px var(--primary-glow);
}
.step__icon { font-size: 2.2rem; margin: 10px 0 14px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.96rem; }
.step__arrow {
  display: flex; align-items: center;
  font-size: 1.6rem;
  color: var(--text-mute);
  flex: 0 0 auto;
}

.insight {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(124,58,237,0.08));
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
}
.insight__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.insight p { font-size: 1.15rem; color: var(--text); }
.insight .uplift {
  color: var(--green);
  font-weight: 800;
}

/* ===== FINAL CTA ===== */
.final-cta {
  position: relative;
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, var(--primary-glow), transparent 70%);
  opacity: 0.35;
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.15; }
.final-cta p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 34px; }

/* ===== FOOTER ===== */
.footer { padding: 50px 0 40px; border-top: 1px solid var(--border); text-align: center; }
.brand--footer { font-size: 1.2rem; display: inline-block; margin-bottom: 8px; }
.footer__tagline { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }
.footer__copy { color: var(--text-mute); font-size: 0.85rem; }

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.3s ease;
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(165deg, #121829, #0b1020);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px 34px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(168, 85, 247, 0.15);
  animation: pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  max-height: 92vh;
  overflow-y: auto;
}
.modal__card::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-2), var(--pink), transparent);
  border-radius: 2px;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  color: var(--text-mute);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.modal__close:hover { background: var(--surface-2); color: var(--text); }

.modal__confetti {
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  height: 30px;
}
.modal__confetti span { animation: confetti 2.5s ease-in-out infinite; display: inline-block; }
.modal__confetti span:nth-child(2) { animation-delay: 0.3s; }
.modal__confetti span:nth-child(3) { animation-delay: 0.6s; }
.modal__confetti span:nth-child(4) { animation-delay: 0.9s; }
.modal__confetti span:nth-child(5) { animation-delay: 1.2s; }
@keyframes confetti {
  0%, 100% { transform: translateY(0) rotate(0); opacity: 0.6; }
  50% { transform: translateY(-10px) rotate(12deg); opacity: 1; }
}

.modal__title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.modal__title span { color: var(--primary-2); display: block; font-size: 1.15rem; font-weight: 700; margin-top: 4px; }
.modal__body { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 14px; }
.modal__body--small { font-size: 0.92rem; }
.modal__body strong { color: var(--text); }
.strike {
  text-decoration: line-through;
  color: var(--text-mute);
  font-weight: 400;
  margin-left: 2px;
}

.modal__form { margin-top: 22px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 12px; }
.field input {
  width: 100%;
  padding: 15px 18px;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--text-mute); }
.field input:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.field input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.25); }
.modal__submit { width: 100%; }
.modal__note { margin-top: 12px; font-size: 0.88rem; min-height: 1.2em; text-align: center; }
.modal__note.ok { color: var(--green); }
.modal__note.err { color: var(--red); }

.modal__success {
  margin-top: 24px;
  padding: 8px 0;
  animation: pop 0.4s ease;
}
.modal__success-icon { font-size: 2.6rem; margin-bottom: 10px; }
.modal__success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal__success p { color: var(--text-dim); margin-bottom: 20px; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .personas { grid-template-columns: 1fr; }
  .problem__grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 0; }
  .step__arrow { transform: rotate(90deg); padding: 6px 0; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 70px; }
  .btn--lg { padding: 16px 24px; font-size: 1rem; }
  .btn__price { display: block; width: 100%; margin-top: 2px; }
  .nav__cta { display: none; }
  .modal__card { padding: 34px 22px 28px; }
}

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