:root {
  --ink: #14141b;
  --muted: #60606d;
  --line: #ececec;
  --bg: #ffffff;
  --bg-tint: #faf9fb;
  --accent: #2783de;
  --c-blue: #2783de;
  --c-green: #46a171;
  --c-gold: #e0a93b;
  --c-red: #e56458;
  --c-purple: #9d6bd6;
  --c-teal: #35b9b0;
  --c-pink: #e97393;
  --maxw: 1120px;
  --radius: 18px;
  --shadow-sm: 0 4px 16px rgba(20,20,27,0.05);
  --shadow-md: 0 18px 44px rgba(20,20,27,0.10);
  --shadow-lg: 0 40px 90px rgba(20,20,27,0.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Horizontal longhand only — a `padding` shorthand here would out-specify
   the vertical padding on `section` (which also carries .wrap). */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  background: linear-gradient(90deg, var(--c-pink), var(--c-gold) 25%, var(--c-green) 50%, var(--c-teal) 75%, var(--c-blue));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- Scroll confetti (fixed layer, parallax) ---------- */
.confetti { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.confetti .cf { position: absolute; top: 0; will-change: transform; }
.confetti .cf i {
  display: block; border-radius: 6px;
  animation: sway 5s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: translateX(-6px) rotate(-6deg); }
  to   { transform: translateX(6px) rotate(6deg); }
}

/* ---------- Sticky topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.stuck {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .party { display: inline-block; transition: transform .35s var(--ease); }
.brand:hover .party { transform: rotate(-18deg) scale(1.18); }
.nav-links { display: flex; align-items: center; }
.nav-links a {
  position: relative; color: var(--muted); font-weight: 500; margin-left: 26px; font-size: 15px;
  white-space: nowrap; transition: color .18s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero (light) ---------- */
.hero { position: relative; text-align: center; padding: 54px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: -60px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 380px at 78% 8%, rgba(39,131,222,0.10), transparent 62%),
    radial-gradient(700px 360px at 16% 26%, rgba(233,115,147,0.10), transparent 62%),
    radial-gradient(620px 320px at 52% 0%, rgba(224,169,59,0.09), transparent 60%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(70,161,113,0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(70,161,113,0); }
}

.hero h1 {
  font-size: clamp(42px, 6.6vw, 78px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.02; margin-top: 24px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #ff2d7e 0%, #f5a01a 28%, #b62ff0 60%, #1a86ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: hue 9s ease-in-out infinite alternate;
}
@keyframes hue { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Typewriter word cycle */
.typer { display: inline-block; white-space: nowrap; }
.caret {
  display: inline-block; width: .055em; height: .74em; margin-left: .07em;
  background: var(--accent); border-radius: 2px; vertical-align: -0.03em;
  animation: blink 1.05s steps(1) infinite;
}
.typer.typing .caret { animation: none; opacity: 1; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero p.sub { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 620px; margin: 22px auto 0; }

.cta-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.cta {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 13px; box-shadow: var(--shadow-md);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.cta:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Black download button carrying a coming-soon badge; clicking fires confetti */
.cta-download { border: 0; cursor: pointer; font-family: inherit; }
.cta-download:active { transform: translateY(0) scale(.98); }
.cta-download .badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #6b4c07; background: var(--c-gold); padding: 4px 9px; border-radius: 999px;
}

.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 500; font-size: 15px;
  padding: 15px 22px; border-radius: 13px; border: 1px solid var(--line); background: #fff;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.cta-ghost .arw { transition: transform .25s var(--ease); }
.cta-ghost:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }
.cta-ghost:hover .arw { transform: translateX(4px); }

.cta-note { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Trust chips */
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 12px; margin: 32px auto 0; max-width: 740px; }
.trust span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.trust span:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Hero screenshot with mouse tilt */
.hero-shot { margin: 50px auto 0; max-width: 940px; perspective: 1400px; }
.hero-shot .tilt {
  transition: transform .5s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.hero-shot img {
  width: 100%; height: auto; border-radius: 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff;
}

/* ---------- Sections ---------- */
section { padding: 120px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
.kicker::after  { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.section-sub { color: var(--muted); margin: 14px auto 0; max-width: 580px; font-size: 17px; }

/* ---------- Workflow steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; counter-reset: step; position: relative; }
.step {
  position: relative; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 11px;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--ink);
  transition: transform .25s var(--ease);
}
.step:hover::before { transform: rotate(-8deg) scale(1.06); }
.step h3 { font-size: 18px; font-weight: 700; margin-top: 18px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feature {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
/* cursor-tracked spotlight */
.feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--fc, var(--accent)) 16%, transparent), transparent 70%);
  transition: opacity .3s var(--ease);
}
.feature:hover::after { opacity: 1; }
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--fc, var(--accent)); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.feature:hover::before { transform: scaleX(1); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature .emoji {
  position: relative; z-index: 1;
  font-size: 26px; width: 54px; height: 54px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--fc, var(--accent)) 13%, #fff);
  transition: transform .3s var(--ease);
}
.feature:hover .emoji { transform: translateY(-2px) rotate(-7deg) scale(1.08); }
.feature h3 { position: relative; z-index: 1; font-size: 18px; font-weight: 700; margin-top: 18px; }
.feature p { position: relative; z-index: 1; color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.shot {
  overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shot img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.shot:hover img { transform: scale(1.03); }

/* ---------- Callout (light) ---------- */
.callout {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line); border-radius: 26px; padding: 64px 32px;
  background: var(--bg-tint);
}
.callout::before {
  content: ""; position: absolute; inset: -30%; pointer-events: none;
  background:
    radial-gradient(340px 260px at 20% 30%, rgba(233,115,147,0.16), transparent 60%),
    radial-gradient(360px 280px at 80% 70%, rgba(39,131,222,0.16), transparent 60%),
    radial-gradient(300px 240px at 60% 15%, rgba(224,169,59,0.14), transparent 60%);
  animation: blob 18s ease-in-out infinite alternate;
}
@keyframes blob {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
.callout > * { position: relative; z-index: 1; }
.callout h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.01em; }
.callout p { color: var(--muted); max-width: 640px; margin: 16px auto 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0; background: #fff; position: relative; z-index: 1; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot .muted { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; }
.foot-links a { color: var(--muted); margin-left: 22px; font-size: 14px; transition: color .18s var(--ease); }
.foot-links a:first-child { margin-left: 0; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Doc pages (privacy / support) ---------- */
.doc { padding: 40px 0 80px; max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); font-size: 15px; margin-top: 10px; }
.doc h2 { font-size: 22px; font-weight: 700; margin-top: 40px; }
.doc h3 { font-size: 17px; font-weight: 600; margin-top: 26px; }
.doc p, .doc li { color: #333; margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc a { font-weight: 500; }
.back { display: inline-block; margin-top: 32px; color: var(--muted); font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 84px 0; }
  .nav-links a { margin-left: 16px; }
  .hero { padding-top: 36px; }
}
@media (max-width: 560px) {
  /* Section anchors are reachable by scrolling; keep the bar uncluttered */
  .nav-links a[href^="#"] { display: none; }
  .brand { font-size: 18px; }
  .cta, .cta-ghost { width: 100%; justify-content: center; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .confetti .cf i { animation: none; }
  .hero h1 .grad { animation: none; }
  .caret { display: none; }
  .callout::before { animation: none; }
  .eyebrow .dot { animation: none; }
  * { transition-duration: .01ms !important; }
}
