/* ---------- Base ---------- */
:root {
  --bg: #0a0e1f;
  --bg-2: #0f1530;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8ecff;
  --muted: #9aa3c7;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --pink: #ff5cab;
  --grad: linear-gradient(90deg, var(--violet), var(--cyan));
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, .logo { font-family: "Space Grotesk", "Inter", sans-serif; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { width: min(1140px, 92%); margin-inline: auto; position: relative; z-index: 2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink)); z-index: 200; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(34, 211, 238, 0.45); }
.btn-ghost { border-color: var(--border); background: var(--card); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-light { background: #fff; color: #1a1340; }
.btn-small { padding: 0.5rem 1.2rem; background: var(--grad); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(10, 14, 31, 0.8); backdrop-filter: blur(14px); border-color: var(--border); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 1.45rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.logo-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px var(--cyan); }
.nav-menu { display: flex; align-items: center; gap: 1.8rem; }
.nav-menu a:not(.btn) { color: var(--muted); font-weight: 500; position: relative; transition: color 0.2s; }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--grad); transition: width 0.3s; }
.nav-menu a:not(.btn):hover { color: #fff; }
.nav-menu a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 3px; background: #fff; border-radius: 3px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 9rem 0 5rem; overflow: hidden; background: radial-gradient(ellipse at top, #151c45 0%, var(--bg) 65%); }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: drift 14s ease-in-out infinite alternate; z-index: 1; }
.blob-1 { width: 380px; height: 380px; background: var(--violet); top: -80px; left: -80px; }
.blob-2 { width: 340px; height: 340px; background: var(--cyan); bottom: -100px; right: 5%; animation-delay: -4s; opacity: 0.4; }
.blob-3 { width: 260px; height: 260px; background: var(--pink); top: 30%; right: -60px; animation-delay: -8s; opacity: 0.35; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 1rem; border-radius: 999px; background: rgba(124, 92, 255, 0.15); border: 1px solid rgba(124, 92, 255, 0.4); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.2rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 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 h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 1.2rem; }
.typed-wrap { display: inline-block; min-height: 1.1em; }
.cursor { color: var(--cyan); -webkit-text-fill-color: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.2rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 1.5rem 0; }
.mock-card { width: min(370px, 100%); border-radius: 24px; padding: 1.3rem 1.5rem 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 92, 255, 0.25); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.mock-top { display: flex; gap: 6px; margin-bottom: 1rem; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.mock-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.8rem; }
.mock-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.9rem; margin-bottom: 0.55rem; background: rgba(255, 255, 255, 0.06); border-radius: 12px; font-size: 0.95rem; }
.mock-item span { width: 18px; height: 18px; border: 2px solid var(--cyan); border-radius: 50%; flex-shrink: 0; }
.mock-item.done { color: var(--muted); text-decoration: line-through; }
.mock-item.done span { background: var(--cyan); }
.mock-item em { margin-left: auto; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.mock-bar { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 99px; margin: 1rem 0 0.4rem; overflow: hidden; }
.mock-bar div { width: 68%; height: 100%; background: var(--grad); border-radius: 99px; animation: grow 2s ease-out; }
@keyframes grow { from { width: 0; } }
.mock-card small { color: var(--muted); }

.float-card { position: absolute; padding: 0.55rem 1rem; border-radius: 14px; font-size: 0.9rem; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); animation: bob 5s ease-in-out infinite; }
.fc-1 { top: 2%; left: -2%; animation-delay: -1s; }
.fc-2 { top: 44%; right: -4%; animation-delay: -2.5s; }
.fc-3 { bottom: 2%; left: 4%; animation-delay: -4s; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); padding: 1rem 0; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { color: var(--muted); font-weight: 500; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.eyebrow { display: inline-block; color: var(--cyan); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 0.7rem; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.5rem; }
.features-grid, .steps, .pricing-grid, .reviews-grid { grid-template-columns: repeat(3, 1fr); }

.card { border-radius: var(--radius); padding: 2rem; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-8px); border-color: rgba(124, 92, 255, 0.6); box-shadow: 0 20px 50px rgba(124, 92, 255, 0.2); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.icon { font-size: 1.7rem; width: 58px; height: 58px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(34, 211, 238, 0.2)); border-radius: 16px; margin-bottom: 1.2rem; transition: transform 0.3s; }
.card:hover .icon { transform: rotate(-8deg) scale(1.1); }

.steps { counter-reset: s; position: relative; }
.step { text-align: center; padding: 1rem; }
.step-num { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem; margin-bottom: 1.2rem; box-shadow: 0 0 0 8px rgba(124, 92, 255, 0.15), 0 10px 30px rgba(124, 92, 255, 0.4); }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); }

/* Reviews */
.stars { color: #fbbf24; letter-spacing: 3px; margin-bottom: 0.8rem; }
blockquote { color: var(--text); margin-bottom: 1.4rem; font-size: 1.02rem; }
figcaption { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.9rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; }

/* Pricing */
.price-card { display: flex; flex-direction: column; text-align: center; position: relative; }
.price-card.featured { border-color: var(--violet); background: linear-gradient(180deg, rgba(124, 92, 255, 0.2), rgba(255, 255, 255, 0.04)); transform: scale(1.05); box-shadow: 0 0 60px rgba(124, 92, 255, 0.3); }
.price-card.featured:hover { transform: scale(1.05) translateY(-8px); }
.pill.pop { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); margin: 0; background: var(--grad); border: 0; color: #fff; }
.price { font-family: "Space Grotesk", sans-serif; font-size: 2.8rem; font-weight: 700; margin: 0.6rem 0 1.2rem; color: #fff !important; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { margin-bottom: 1.8rem; flex: 1; }
.price-card li { padding: 0.5rem 0; color: var(--muted); border-bottom: 1px dashed var(--border); }

/* CTA */
.cta { position: relative; overflow: hidden; padding: 6rem 0; text-align: center; background: linear-gradient(135deg, #3b1fa8, #5b3df5 50%, #0891b2); }
.cta .blob-2 { top: -100px; left: 10%; bottom: auto; right: auto; background: var(--pink); }
.cta-inner { max-width: 680px; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 0.8rem; }
.cta p { opacity: 0.92; }
.cta-form { display: flex; gap: 0.8rem; margin-top: 2rem; justify-content: center; }
.cta-form input { flex: 1; max-width: 340px; padding: 0.9rem 1.3rem; border-radius: 999px; border: 0; font-size: 1rem; font-family: inherit; }
.cta-form input:focus { outline: 3px solid var(--cyan); }
.form-msg { margin-top: 1rem; min-height: 1.5rem; font-weight: 600; }

/* Footer */
.site-footer { background: #060918; padding: 2.5rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; color: var(--muted); }
.footer-links a:hover { color: #fff; }
.footer-inner p { width: 100%; text-align: center; font-size: 0.85rem; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--border); }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; z-index: 150; box-shadow: 0 8px 24px rgba(124, 92, 255, 0.5); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.features-grid .reveal:nth-child(3n+2), .reviews-grid .reveal:nth-child(3n+2), .pricing-grid .reveal:nth-child(3n+2), .steps .reveal:nth-child(3n+2) { transition-delay: 0.12s; }
.features-grid .reveal:nth-child(3n), .reviews-grid .reveal:nth-child(3n), .pricing-grid .reveal:nth-child(3n), .steps .reveal:nth-child(3n) { transition-delay: 0.24s; }
.price-card.featured.reveal.visible { transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .features-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .price-card.featured, .price-card.featured:hover, .price-card.featured.reveal.visible { transform: none; }
  .fc-1 { left: 2%; } .fc-2 { right: 2%; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10, 14, 31, 0.97); border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
  .nav-menu.open { max-height: 480px; }
  .nav-menu li { width: 100%; text-align: center; padding: 0.9rem 0; }
  .site-header { background: rgba(10, 14, 31, 0.85); backdrop-filter: blur(14px); }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .hero { padding: 7rem 0 3.5rem; }
}

@media (max-width: 560px) {
  .features-grid, .reviews-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form input { max-width: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .float-card { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
  .hero-stats { gap: 1.5rem; }
}

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