/* ─── lx: landing redesign layer (index only) ─────────────────────────────
   Dark video hero with a 3D phone stage, glossy floating orbs, a bento grid of
   video tiles, and 3D-tilt cards. Everything here is scoped to lx-* classes or
   the .lx-hero section so the rest of the site keeps its existing styles. */

:root {
  --lx-night: #0B0A10;
  --lx-ink: #F6F4EF;
  --lx-dim: rgba(246,244,239,.66);
  --lx-glass: rgba(255,255,255,.07);
  --lx-glass-line: rgba(255,255,255,.14);
  --lx-peach: #FFB48A;
  --lx-gold: #FFD27A;
  --lx-grad: linear-gradient(100deg, #FFE0CF 0%, #FFB48A 42%, #FFD27A 100%);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.lx-hero { background: var(--lx-night); color: var(--lx-ink); padding: 72px 0 80px; isolation: isolate; }
.lx-hero > .wrap { position: relative; z-index: 1; }
.lx-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.lx-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(1.15); }
.lx-hero-shade { position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 15% 40%, rgba(11,10,16,.92) 0%, rgba(11,10,16,.55) 55%, rgba(11,10,16,.2) 100%),
    linear-gradient(180deg, rgba(11,10,16,0) 60%, var(--lx-night) 100%); }
.lx-grid-floor { position: absolute; left: -20%; right: -20%; bottom: -30%; height: 60%;
  background-image: linear-gradient(rgba(255,210,122,.16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,180,138,.16) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(600px) rotateX(62deg); transform-origin: top;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  animation: lxFloor 6s linear infinite; }
@keyframes lxFloor { to { background-position: 0 56px, 0 0; } }

/* glossy 3D orbs */
.lx-orb { position: absolute; border-radius: 50%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); animation: lxOrb 9s ease-in-out infinite; }
.lx-orb.o1 { width: 120px; height: 120px; right: 7%; top: 12%;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #FFF1C9 12%, #FFD27A 45%, #8A5A12 100%); }
.lx-orb.o2 { width: 64px; height: 64px; left: 46%; bottom: 14%; animation-delay: -3s;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #FFE6D6 14%, #FFB48A 48%, #8A3F1C 100%); }
.lx-orb.o3 { width: 38px; height: 38px; right: 38%; top: 9%; animation-delay: -6s;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #FFE0CF 14%, #F28C4E 50%, #6B2A0B 100%); }
@keyframes lxOrb { 0%,100% { translate: 0 0; } 50% { translate: 0 -22px; } }

/* type */
.lx-hero .hero-tag { background: var(--lx-glass); color: var(--lx-ink); border: 1px solid var(--lx-glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lx-hero .hero-tag .bubble { background: var(--lx-grad); color: #3B1F0A; }
.lx-hero .h1 { color: var(--lx-ink); text-transform: lowercase; letter-spacing: -2.6px; font-size: clamp(46px, 5.6vw, 84px); line-height: .94; }
.lx-hero .h1 .accent { background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-hero .hero-sub { color: var(--lx-dim); }
.lx-hero .store-btn { background: var(--lx-glass); color: var(--lx-ink); border: 1px solid var(--lx-glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lx-hero .store-btn:first-child { background: var(--lx-ink); color: #0B0A10; border-color: transparent; }
.lx-hero .store-btn:hover { background: rgba(255,255,255,.14); }
.lx-hero .store-btn:first-child:hover { background: #fff; }
.lx-hero .hero-meta { color: var(--lx-dim); }

/* 3D phone stage: JS sets --lx-rx / --lx-ry from pointer + scroll */
.lx-hero .hero-art { perspective: 1400px; }
.lx-hero .hero-art > .phone-main,
.lx-hero .hero-art > .phone-side { transform-style: preserve-3d; }
.lx-hero .lx-stage { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; min-height: inherit;
  transform-style: preserve-3d; transform: rotateX(var(--lx-rx, 6deg)) rotateY(var(--lx-ry, -14deg)); transition: transform .25s ease-out; }
.lx-hero .phone .screen { box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.lx-hero .phone { box-shadow: 0 50px 90px rgba(0,0,0,.55), 0 0 60px rgba(255,180,138,.2); }
.lx-hero .sticker { background: rgba(255,255,255,.92); color: #1B1817; }
.lx-hero .sticker.s-left { transform: rotate(-6deg) translateZ(90px); }
.lx-hero .sticker.s-right { transform: rotate(5deg) translateZ(130px); }
.lx-hero .hero-art .blob-a, .lx-hero .hero-art .blob-b { display: none; }

/* trust strip directly under a dark hero */
.lx-hero + .wrap .trust-strip { margin-top: 0; }

/* ── Section heads ────────────────────────────────────────────────────── */
.lx-head { margin-bottom: 36px; }
.lx-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-dim); }
.lx-title { margin: 12px 0 0; font-size: clamp(38px, 5.6vw, 76px); font-weight: 800; letter-spacing: -2.4px; line-height: .98; text-transform: lowercase; }
.lx-grad { background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Bento ────────────────────────────────────────────────────────────── */
.lx-bento-sec { padding: 96px 0 40px; }
.lx-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; perspective: 1200px; }
.lx-tile { position: relative; overflow: hidden; border-radius: 28px; background: var(--lx-night); color: var(--lx-ink);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; text-decoration: none;
  transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .2s ease-out, box-shadow .3s;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.lx-tile:hover { box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.lx-tile.t-a { grid-column: span 2; grid-row: span 2; }
.lx-tile.t-b { grid-column: span 1; grid-row: span 1; }
.lx-tile.t-c { grid-column: span 1; grid-row: span 1; }
.lx-tile.t-d { grid-column: span 1; grid-row: span 2; }
.lx-tile.t-e { grid-column: span 2; grid-row: span 1; }
.lx-tile.t-f { grid-column: span 1; grid-row: span 1; }
.lx-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lx-tile:has(.lx-vid)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,16,0) 30%, rgba(11,10,16,.82) 100%); }
.lx-tile-copy { position: relative; z-index: 1; transform: translateZ(40px); }
.lx-tile h3 { margin: 10px 0 0; font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -.8px; line-height: 1.05; text-transform: lowercase; }
.lx-tile p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--lx-dim); }
.lx-chip { display: inline-block; align-self: flex-start; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--lx-ink); }
.lx-chip.dark { background: rgba(11,10,16,.08); border-color: rgba(11,10,16,.12); color: #1B1817; }
.lx-stat { background: var(--lx-grad); color: #3B1F0A; justify-content: space-between; }
.lx-stat .lx-big { font-size: clamp(56px, 6vw, 84px); font-weight: 800; letter-spacing: -3px; line-height: 1; }
.lx-stat p { color: rgba(59,31,10,.78); }
.lx-wa { background: #DFF7E9; color: #0E3B24; justify-content: space-between; }
.lx-wa h3 { text-transform: none; }
.lx-wa p { color: rgba(14,59,36,.75); }
.lx-arrow { position: absolute; right: 20px; top: 18px; font-size: 22px; font-weight: 800; transition: transform .2s; }
.lx-wa:hover .lx-arrow { transform: translateX(4px); }
.lx-credit { margin: 14px 0 0; font-size: 11px; color: var(--ink-faint); }

/* 3D tilt for the how-it-works cards */
.steps-grid { perspective: 1200px; }
.step.lx-tilt { transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .2s ease-out, box-shadow .3s; }
.step.lx-tilt:hover { box-shadow: 0 30px 60px rgba(0,0,0,.12); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .lx-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .lx-tile.t-a { grid-column: span 2; }
  .lx-tile.t-e { grid-column: span 2; }
  .lx-tile.t-d { grid-row: span 1; }
}
@media (max-width: 960px) {
  .lx-hero .lx-stage { transform: none; }
}
@media (max-width: 540px) {
  .lx-hero { padding: 40px 0 48px; }
  .lx-hero .h1 { letter-spacing: -2px; }
  .lx-orb.o1 { width: 72px; height: 72px; right: 4%; top: 6%; }
  .lx-orb.o2 { display: none; }
  .lx-bento-sec { padding: 64px 0 24px; }
  .lx-bento { grid-auto-rows: 170px; gap: 10px; }
  .lx-tile { border-radius: 22px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-hero-video, .lx-grid-floor { display: none; }
  .lx-orb { animation: none; }
  .lx-hero .lx-stage, .lx-tile, .step.lx-tilt { transform: none !important; transition: none; }
}

/* ── Motion layer for the whole page (JS adds the classes; all off for
      prefers-reduced-motion, where the script never runs) ─────────────── */

/* scroll progress line */
.lx-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 10060; pointer-events: none;
  background: var(--lx-grad); transform-origin: 0 50%; transform: scaleX(0); }

/* reveal: fade + rise, staggered via --d */
.lx-r { opacity: 0; translate: 0 34px; transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), translate .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.lx-r.lx-in { opacity: 1; translate: 0 0; }

/* headings rise word by word */
.lx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.lx-w > span { display: inline-block; translate: 0 105%; transition: translate .9s cubic-bezier(.2,.8,.2,1) var(--wd, 0s); }
.lx-split.lx-in .lx-w > span { translate: 0 0; }

/* generic 3D tilt for cards (JS sets --tx/--ty) */
.lx-tiltable { transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .25s ease-out, box-shadow .3s; will-change: transform; }
.lx-tiltable:hover { box-shadow: 0 26px 50px rgba(27,24,23,.12); }

/* magnetic buttons (JS sets --mx/--my) */
.lx-mag { translate: var(--mx, 0) var(--my, 0); transition: translate .25s cubic-bezier(.2,.8,.2,1); }

/* smooth FAQ */
.faq-item .a { overflow: hidden; }
.faq-item summary::after { transition: transform .35s cubic-bezier(.2,.8,.2,1); }

/* eyebrow dots breathe */
.eyebrow .dot { animation: lxDot 2.4s ease-in-out infinite; }
@keyframes lxDot { 0%,100% { box-shadow: 0 0 0 0 rgba(255,210,122,.55); } 50% { box-shadow: 0 0 0 6px rgba(255,210,122,0); } }

/* marquee: gradient edge fade for a cleaner, minimal strip */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .lx-r { opacity: 1 !important; translate: none !important; }
  .lx-w > span { translate: none !important; }
  .eyebrow .dot { animation: none; }
}
