/* SYNC'D landing — "Aurora in Motion" (design concept 06).
   Scoped under .mo-* so nothing here collides with site.css. Brand vars come
   from tokens.css. Motion is progressive: hidden states only apply when JS is on
   (html.mo-js) and are fully disabled under prefers-reduced-motion. */

/* reveal-on-scroll — only hide when JS is present, so no-JS users see everything */
.mo-js .reveal { opacity: 0; transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.mo-js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Hero ---------- */
/* Clip only horizontally (contain the side blobs → no sideways scroll); keep the
   vertical axis visible so the bottom glow + phone shadow fade out smoothly into
   the next section instead of being sliced off at a hard edge. */
.mo-hero { position: relative; padding: 64px 0 90px; text-align: center; overflow-x: clip; overflow-y: visible; }
.mo-hero .container { position: relative; z-index: 2; }
.mo-blob { position: absolute; border-radius: 50%; filter: blur(75px); z-index: 0; will-change: transform; pointer-events: none; }
.mo-b1 { width: 540px; height: 540px; background: var(--g1); opacity: .5;  top: -160px; left: -120px; }
.mo-b2 { width: 460px; height: 460px; background: var(--g2); opacity: .34; top: -90px;  right: -110px; }
.mo-b3 { width: 360px; height: 360px; background: #FFB45E;    opacity: .26; bottom: -130px; left: 42%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mo-b1 { opacity: .32; }
  :root:not([data-theme="light"]) .mo-b2 { opacity: .24; }
  :root:not([data-theme="light"]) .mo-b3 { opacity: .18; }
}
:root[data-theme="dark"] .mo-b1 { opacity: .32; }
:root[data-theme="dark"] .mo-b2 { opacity: .24; }
:root[data-theme="dark"] .mo-b3 { opacity: .18; }

.mo-hero-inner { max-width: 880px; margin: 0 auto; }
.mo-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card);
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.15); }
.mo-pill .ping { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(47,169,104,.5); animation: mo-ping 2s infinite; }
@keyframes mo-ping { 0%{box-shadow:0 0 0 0 rgba(47,169,104,.5)} 70%{box-shadow:0 0 0 10px rgba(47,169,104,0)} 100%{box-shadow:0 0 0 0 rgba(47,169,104,0)} }

.mo-hero h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.03; font-weight: 800;
  letter-spacing: -2px; margin: 26px 0 20px; }
.mo-shimmer { background: linear-gradient(120deg, var(--g1), var(--g2), #FFE39A, var(--g2), var(--g1));
  background-size: 280% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; animation: mo-shimmer 6s linear infinite; }
@keyframes mo-shimmer { to { background-position: 280% 0; } }

.mo-hero .mo-lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); font-weight: 500;
  max-width: 620px; margin: 0 auto 30px; line-height: 1.5; }
.mo-cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.mo-cta-row .badges { justify-content: center; }
.mo-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); }
.mo-link svg { width: 18px; height: 18px; transition: transform .15s ease; }
.mo-link:hover svg { transform: translateX(3px); }

.mo-trust { margin-top: 22px; font-size: 13.5px; color: var(--muted);
  display: flex; gap: 8px; justify-content: center; align-items: center; }
.mo-avatars { display: flex; }
.mo-avatars span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card); margin-left: -8px; }
.mo-ta { background: linear-gradient(135deg,#8B5E3C,#5E3A21); }
.mo-tb { background: linear-gradient(135deg,#6D4F8A,#43305C); }
.mo-tc { background: linear-gradient(135deg,#2F7D6B,#1E5247); }
.mo-td { background: linear-gradient(135deg,#3D6FB0,#274C82); }

/* hero phone + floating cards (mouse parallax) */
.mo-stage { position: relative; z-index: 2; width: 320px; margin: 56px auto 0; }
/* Screenshots already have their own rounded corners (transparent), so no clip here;
   drop-shadow traces the rounded alpha instead of a rectangular box-shadow. */
.mo-stage .mo-shot { filter: drop-shadow(0 26px 44px rgba(20,30,45,.42)); will-change: transform; }
.mo-stage .mo-shot img { width: 100%; height: auto; display: block; }
.mo-float { position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 16px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.28);
  z-index: 3; will-change: transform; text-align: left; }
.mo-float .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.mo-float .v { font-size: 16px; font-weight: 800; }
.mo-f1 { left: -150px; top: 70px; } .mo-f2 { right: -140px; top: 200px; } .mo-f3 { left: -120px; bottom: 40px; }
@media (max-width: 720px) { .mo-float { display: none; } }

/* ---------- Logo marquee ---------- */
.mo-marquee { padding: 44px 0 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mo-marquee p { text-align: center; font-size: 13px; letter-spacing: .14em; color: var(--muted);
  font-weight: 700; margin-bottom: 22px; }
.mo-track { display: flex; gap: 64px; width: max-content; animation: mo-scrollx 28s linear infinite; }
.mo-track span { font-weight: 800; color: var(--ink); opacity: .5; font-size: 22px; white-space: nowrap; }
@keyframes mo-scrollx { to { transform: translateX(-50%); } }

/* ---------- Scrollytelling "how it works" ---------- */
.mo-scrolly-head { text-align: center; max-width: 700px; margin: 0 auto; padding: 90px 24px 10px; }
.mo-scrolly-head .eyebrow { color: var(--accent); }
.mo-scrolly-head h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -1.2px;
  line-height: 1.1; margin: 14px 0; }
.mo-scrolly-head p { font-size: clamp(16px, 2.2vw, 18px); color: var(--muted); font-weight: 500; }

.mo-scrolly { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 24px 60px;
  display: grid; grid-template-columns: 1fr 380px; gap: 60px; }
.mo-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.mo-visual { position: relative; width: 320px; aspect-ratio: 1206 / 2622; }
.mo-visual .mo-shot { position: absolute; inset: 0; opacity: 0;
  transform: scale(.96) translateY(12px); transition: opacity .6s, transform .6s;
  filter: drop-shadow(0 26px 44px rgba(20,30,45,.4)); }
.mo-visual .mo-shot.active { opacity: 1; transform: none; }
/* Screenshots carry their own rounded corners; container ratio matches them, so no clip or crop. */
.mo-visual .mo-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }

.mo-steps { display: flex; flex-direction: column; }
.mo-step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
.mo-step .n { width: 42px; height: 42px; border-radius: 12px; background: var(--gradient); color: var(--on-gradient);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 18px; }
.mo-step h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.6px; margin-bottom: 12px; }
.mo-step > p { font-size: clamp(15px, 2vw, 17px); color: var(--muted); font-weight: 500; line-height: 1.55; max-width: 400px; }
.mo-step ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mo-step li { display: flex; gap: 10px; font-size: 15px; font-weight: 500; }
.mo-step li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }

/* ---------- Stats count-up ---------- */
.mo-stats-wrap { padding: 16px 0 8px; }
.mo-stats { background: #1C140A; color: #fff; border-radius: 28px; padding: 54px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; overflow: hidden; }
.mo-stats .glow { position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,147,30,.4), transparent 65%); top: -160px; left: 50%; transform: translateX(-50%); }
.mo-stat { position: relative; text-align: center; }
.mo-stat .num { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.mo-stat .lab { font-size: 14px; color: #cdbfa9; margin-top: 8px; line-height: 1.45; }
.mo-stat .lab sup { color: var(--g1); font-weight: 700; padding-left: 1px; }
.mo-statcite { text-align: center; margin-top: 22px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.mo-statcite sup { color: var(--accent); font-weight: 700; }

/* ---------- CTA ---------- */
.mo-final { padding: 90px 0 100px; text-align: center; }
.mo-final-card { position: relative; max-width: 880px; margin: 0 auto; border-radius: 30px;
  padding: 64px 40px; overflow: hidden; background: var(--gradient); color: var(--on-gradient); }
.mo-final-card::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.4), transparent 50%); }
.mo-final-card > * { position: relative; z-index: 2; }
.mo-final-card h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -1.2px; color: var(--on-gradient); }
.mo-final-card p { font-size: clamp(16px, 2.2vw, 19px); margin: 14px auto 28px; color: #5a3c08; max-width: 46ch; }
.mo-final-card .badges { justify-content: center; }
.mo-final-card .badge { background: #1C140A; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .mo-scrolly { grid-template-columns: 1fr; }
  .mo-sticky { display: none; }
  .mo-step { min-height: auto; padding: 26px 0; }
  .mo-stats { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* ---------- Reduced motion: kill all movement, show everything ---------- */
@media (prefers-reduced-motion: reduce) {
  .mo-js .reveal { opacity: 1; transform: none; transition: none; }
  .mo-shimmer { animation: none; }
  .mo-pill .ping { animation: none; }
  .mo-track { animation: none; }
  .mo-visual .mo-shot { transition: opacity .2s; }
}
