:root {
  --bg: #faf8ff;
  --surface: #ffffff;
  --soft: #f3eeff;
  --border: #e8e1fb;
  --text: #1d1636;
  --muted: #645d80;
  --primary: #7c5cff;
  --primary-strong: #6243e6;
  --pink: #ff8fcf;
  --mint: #3cc9a8;
  --amber: #f5b742;
  --ink: #120d29;
  --grad: linear-gradient(110deg, #7c5cff 0%, #b46bff 45%, #ff8fcf 100%);
  --shadow: 0 30px 80px -20px rgba(70, 40, 170, 0.35), 0 8px 24px rgba(70, 40, 170, 0.08);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
section { position: relative; padding: 110px 24px; }

/* Background orbs */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: drift 22s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; background: #c9b8ff; top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #ffc6e6; top: 120px; right: -140px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #b9f0e2; top: 900px; left: 30%; opacity: 0.35; animation-delay: -12s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(250, 248, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 6px 24px rgba(60, 35, 140, 0.06); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav nav a:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  background: var(--grad); background-size: 160% 100%;
  color: #fff; font-weight: 700; border: 0;
  box-shadow: 0 12px 30px -8px rgba(124, 92, 255, 0.6);
  transition: transform .2s, box-shadow .2s, background-position .4s;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 36px -10px rgba(124, 92, 255, 0.7); }
.btn svg { width: 18px; height: 18px; }
.btn-ghost { background: var(--surface); color: var(--primary-strong); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { box-shadow: 0 10px 24px -12px rgba(124, 92, 255, 0.5); }
.btn-small { padding: 10px 20px; font-size: .9rem; }

/* Shared */
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--soft); color: var(--primary-strong);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow.light { background: rgba(255,255,255,.1); color: #d9ceff; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 16px 0 0; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot.mint { background: var(--mint); }
.dot.violet { background: var(--primary); }
.dot.pink { background: var(--pink); }
.dot.amber { background: var(--amber); }

/* Hero */
.hero { text-align: center; padding-top: 90px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; }
.lead { max-width: 640px; margin: 26px auto 36px; font-size: 1.2rem; color: var(--muted); }
.hero-shot { position: relative; max-width: 1080px; margin: 80px auto 0; perspective: 1600px; }
.browser {
  border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transform: rotateX(var(--tilt, 14deg)) scale(var(--scale, .96));
  transform-origin: center top; transition: transform .1s linear;
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f6f3ff; border-bottom: 1px solid var(--border); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ddd3fb; }
.browser-bar span:nth-child(1) { background: #ff8b8b; }
.browser-bar span:nth-child(2) { background: #ffd36b; }
.browser-bar span:nth-child(3) { background: #6fdcb3; }
.browser-bar em { margin: 0 auto; padding: 3px 60px; border-radius: 8px; background: #fff; color: var(--muted); font-style: normal; font-size: .78rem; }
.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--border); box-shadow: 0 16px 40px -12px rgba(70, 40, 170, .35);
  font-weight: 700; font-size: .9rem; white-space: nowrap;
}
.chip-a { top: 18%; left: -5%; }
.chip-b { top: 46%; right: -6%; animation-delay: -2s; }
.chip-c { bottom: 12%; left: 4%; animation-delay: -4s; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Demo */
.demo {
  background: radial-gradient(1000px 500px at 50% 0%, #3a2580 0%, var(--ink) 65%);
  color: #fff; border-radius: 48px; margin: 40px 16px;
}
.demo .section-head p:not(.eyebrow) { color: #bfb6e0; }
.video-frame {
  position: relative; max-width: 1040px; margin: 0 auto; padding: 10px;
  border-radius: 26px; background: linear-gradient(135deg, rgba(124,92,255,.7), rgba(255,143,207,.6));
  box-shadow: 0 40px 100px -20px rgba(124, 92, 255, .55);
}
.video-frame video { width: 100%; display: block; border-radius: 18px; background: #000; aspect-ratio: 16 / 9; }
.video-missing { position: absolute; inset: 10px; display: grid; place-items: center; border-radius: 18px; background: rgba(18,13,41,.85); color: #d9ceff; }
.video-missing[hidden] { display: none; }
.demo-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1040px; margin: 44px auto 0; padding: 0; counter-reset: s; }
.demo-steps li { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #cfc7ee; font-size: .92rem; }
.demo-steps b { display: block; margin-bottom: 6px; color: #fff; font-size: 1rem; }
.demo-steps b::before { counter-increment: s; content: "0" counter(s) "  "; color: var(--pink); }

/* Features */
.showcase { display: grid; grid-template-columns: 380px 1fr; gap: 32px; max-width: var(--max); margin: 0 auto; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 10px; }
.tabs button {
  display: flex; gap: 16px; align-items: flex-start; text-align: left;
  padding: 18px 20px; border-radius: 18px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: inherit; font: inherit;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.tabs button:hover { background: rgba(255,255,255,.6); }
.tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--border); box-shadow: 0 14px 36px -16px rgba(70, 40, 170, .35); }
.tabs button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.tab-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--soft); font-size: 1.3rem; }
.tabs b { display: block; font-size: 1.05rem; }
.tabs small { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s, opacity .35s; }
.tabs [aria-selected="true"] small { max-height: 120px; opacity: 1; }
.panel { position: sticky; top: 100px; margin: 0; padding: 12px; border-radius: 26px; background: linear-gradient(135deg, #e4dbff, #ffe0f1); box-shadow: var(--shadow); }
.panel img { border-radius: 16px; transition: opacity .25s, transform .25s; }
.panel img.swap { opacity: 0; transform: scale(.985); }
.labels { max-width: var(--max); margin: 64px auto 0; text-align: center; }
.labels p { font-weight: 700; margin: 0 0 18px; }
.labels ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; }
.labels li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; }

/* How it works */
.sub { max-width: var(--max); margin: 90px auto 0; text-align: center; font-size: 1.6rem; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: var(--max); margin: 0 auto; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--primary), var(--pink)); opacity: .35; }
.flow li { position: relative; padding: 0 10px; text-align: center; }
.flow .n { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.4rem; box-shadow: 0 14px 30px -10px rgba(124, 92, 255, .6); }
.flow h3 { font-size: 1.15rem; }
.flow p { color: var(--muted); font-size: .93rem; margin: 8px 0 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: var(--max); margin: 32px auto 0; }
.gallery figure { margin: 0; padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 50px -24px rgba(70, 40, 170, .35); }
.gallery img { border-radius: 14px; }
.gallery figcaption { padding: 14px 8px 4px; color: var(--muted); font-size: .95rem; }
.stack { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 56px auto 0; padding: 0; }
.stack li { padding: 8px 16px; border-radius: 10px; background: var(--soft); color: var(--primary-strong); font-weight: 600; font-size: .88rem; }

/* Closing CTA */
.cta-card {
  max-width: var(--max); margin: 0 auto; padding: 80px 32px; text-align: center;
  border-radius: 40px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background-image: radial-gradient(600px 260px at 15% 0%, #efe7ff, transparent 70%), radial-gradient(600px 260px at 85% 100%, #ffe6f3, transparent 70%);
}
.cta-card h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-card p { max-width: 560px; margin: 20px auto 34px; color: var(--muted); font-size: 1.1rem; }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 28px max(24px, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

/* Lightbox */
.zoomable { cursor: zoom-in; }
.lightbox { width: min(1400px, 94vw); padding: 0; border: 0; border-radius: 18px; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(18, 13, 41, .75); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; border-radius: 18px; }
.lightbox .close { position: absolute; top: -18px; right: -18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--text); font-size: 1rem; cursor: pointer; box-shadow: var(--shadow); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .showcase { grid-template-columns: 1fr; }
  .panel { position: static; order: -1; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { display: none; }
  .stats, .demo-steps { grid-template-columns: 1fr 1fr; }
  .chip { display: none; }
}
@media (max-width: 680px) {
  section { padding: 80px 18px; }
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .gallery, .stats, .demo-steps { grid-template-columns: 1fr; }
  .demo { border-radius: 28px; margin: 20px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .browser { transform: none; }
}
