:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --border: rgba(255,255,255,0.08);
  --text: #f2f2f5;
  --text-dim: #9a9aa8;
  --accent-1: #a855f7;
  --accent-2: #ec4899;
  --accent-3: #6366f1;
  --gradient: linear-gradient(120deg, var(--accent-3), var(--accent-1), var(--accent-2));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ambient glow blobs */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: var(--accent-1);
  top: -200px; left: -150px;
  animation: drift-1 22s ease-in-out infinite;
}
.glow-2 {
  width: 500px; height: 500px;
  background: var(--accent-3);
  top: 300px; right: -200px;
  animation: drift-2 26s ease-in-out infinite;
}
@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.15); }
  66% { transform: translate(-40px, 100px) scale(0.9); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-70px, -50px) scale(0.9); }
  66% { transform: translate(50px, 70px) scale(1.2); }
}

/* nav */
.nav {
  position: static;
  z-index: 50;
  padding: 16px 24px 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-1); }

/* buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 24px rgba(168,85,247,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(168,85,247,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-small { padding: 9px 18px; font-size: 0.875rem; }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { display: block; text-align: center; width: 100%; margin-top: 24px; }

/* layout helpers */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}
.section-inner h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 16px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 120px 24px 70px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.checks {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.checks span { display: inline-flex; align-items: center; gap: 6px; }
.checks svg { width: 14px; height: 14px; stroke: var(--accent-1); flex-shrink: 0; }

/* problem */
.problem { position: relative; }
.problem-glass {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  clip-path: polygon(0% 8%, 100% 0%, 100% 92%, 0% 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 0;
  pointer-events: none;
}
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.problem-text { text-align: left; }
.problem-text h2 {
  font-size: 2.6rem;
  line-height: 1.1;
  max-width: none;
  text-align: left;
  margin: 0 0 20px;
}
.problem-text .section-sub {
  text-align: left;
  max-width: none;
  margin: 0;
  font-size: 1.15rem;
}
.coin-flip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  perspective: 1200px;
}
.coin {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: coin-spin 4.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  backface-visibility: hidden;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  padding: 20px;
  border: 3px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 50px rgba(168,85,247,0.3), inset 0 0 30px rgba(255,255,255,0.08);
}
.coin-face svg { width: 40px; height: 40px; }
.coin-front { background: linear-gradient(135deg, var(--accent-3), var(--accent-1)); }
.coin-back {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  transform: rotateY(180deg);
}
@keyframes coin-spin {
  0%, 38% { transform: rotateY(0deg); }
  50%, 88% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

.reveal-gradient {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: gradient-shift 5s linear infinite;
}
.reveal-gradient.in-view {
  clip-path: inset(0 0% 0 0);
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* how it works */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.card-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 16px;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* how it works: mock widget + connected steps */
.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-mock {
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 48px rgba(168,85,247,0.18);
}
.mock-browser-bar {
  display: flex;
  gap: 6px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mock-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.mock-msg-bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.mock-msg-user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 44px;
  width: 2px;
  background: linear-gradient(var(--accent-3), var(--accent-2));
  opacity: 0.35;
}
.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}
.how-step .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.how-step h3 { font-size: 1.1rem; margin-bottom: 6px; font-weight: 700; }
.how-step p { color: var(--text-dim); font-size: 0.9rem; }

/* pricing */
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.2s ease;
}
.price-card:hover {
  transform: translateY(-6px);
}
.price-card-featured {
  border-color: var(--accent-1);
  box-shadow: 0 0 40px rgba(168,85,247,0.15);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dim); margin-bottom: 12px; }
.price { font-size: 2.5rem; font-weight: 800; margin-bottom: 4px; }
.price span { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.price-setup { color: var(--text-dim); font-size: 0.875rem; margin-bottom: 24px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.price-card li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: 700;
}
.price-addon {
  border-top: 1px dashed var(--border);
  margin-top: 16px;
  padding-top: 16px;
}
.price-addon-label {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.price-addon label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
}
.price-addon input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent-1);
  flex-shrink: 0;
}

/* faq */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 28px;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(168,85,247,0.4); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 24px 0;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-1);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-wrap .faq-a { overflow: hidden; min-height: 0; padding-bottom: 0; }
.faq-item.open .faq-a-wrap .faq-a { padding-bottom: 24px; }
.faq-a { color: var(--text-dim); font-size: 0.95rem; }

/* checkout modal */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5,5,8,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.checkout-modal:not([hidden]) {
  display: flex;
}
.checkout-modal-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 32px rgba(168,85,247,0.25);
  padding: 20px;
}
.checkout-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.checkout-modal-close:hover { background: rgba(255,255,255,0.12); }

/* demo */
.demo-inner { text-align: center; }
.ad-launcher-attention::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-2, #ec4899);
  opacity: 0;
  pointer-events: none;
}
.ad-launcher-attention.visible::after {
  animation: launcher-ring 1.6s ease-out infinite;
}
@keyframes launcher-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer p { color: var(--text-dim); font-size: 0.875rem; }

/* fade-in on scroll */
.section-inner, .hero-inner {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* responsive */
@media (max-width: 860px) {
  .nav-inner { padding: 12px 18px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.82rem; }
  .hero h1 { font-size: 2.75rem; }
  .cards, .price-cards { grid-template-columns: 1fr; }
  .problem-layout { grid-template-columns: 1fr; gap: 32px; }
  .problem-text { text-align: center; }
  .problem-text h2 { text-align: center; margin: 0 auto 16px; }
  .problem-text .section-sub { text-align: center; margin: 0 auto; }
  .coin-flip { height: 220px; }
  .coin { width: 160px; height: 160px; }
  .how-layout { grid-template-columns: 1fr; gap: 32px; }
  .price-card .btn-full {
    max-width: calc(100% - 56px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 420px) {
  .nav-inner { padding: 10px 14px; }
  .logo { font-size: 1.05rem; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.72rem; }
}
