/* ============================================================
   MREXX WORK — lp-modern.css · V5 "Nebula" (2026-09-02)
   The showcase layer: cinematic landing page that still holds
   60fps on a budget Android phone.

   Perf contract (inherited from V4 "Aurora Lite", tightened):
   · every looping animation is transform/opacity only → compositor
   · continuous scroll effects use native scroll-driven timelines,
     which run OFF the main thread; JS only flips state classes
   · one shared rAF loop drives the cursor glow — nothing else
     writes style on pointermove outside a hover scope
   · the 3 legacy .lp-orb blur layers are retired (auroras cover it),
     buying back the budget the new effects spend
   · mobile / .lp-lite / hidden-tab / reduced-motion all degrade

   Loaded AFTER the inline <style> so it can override safely.
   Landing page only — app/tool/auth CSS is never touched.
   ============================================================ */

/* ══════════════ 0. LOCAL TOKENS ══════════════ */
#landing-page{
  --lp-c1:#7c5cff;                      /* brand violet   */
  --lp-c2:#c04bff;                      /* brand magenta  */
  --lp-c3:#22d3ee;                      /* cyan accent    */
  --lp-ease:cubic-bezier(.22,.68,.32,1);
  --lp-spring:cubic-bezier(.34,1.56,.64,1);
}
@property --lp-ang{syntax:'<angle>'; initial-value:0deg; inherits:false}

/* Legacy ambient orbs retired: 3 fewer blur(90px) layers to composite.
   The aurora blobs below already own the background wash. */
.lp-orb{display:none !important}

/* ══════════════ 1. BACKDROP — grain ══════════════ */
/* Static fractal-noise tile. Painted once, then just composited;
   it's what makes flat gradients read as "expensive". */
.lp-grain{
  position:fixed; inset:0; z-index:2; pointer-events:none;
  opacity:.038;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .lp-grain{opacity:.05}

/* ══════════════ 2. BACKDROP — aurora blobs ══════════════ */
/* Keyframes are TRANSLATE-ONLY: the blur raster is computed once and
   cached, so the compositor only moves a finished texture around.
   (Animating scale here re-rasters the blur every frame. Never again.) */
.lp-aurora{
  position:fixed; pointer-events:none; z-index:0;
  border-radius:50%; filter:blur(80px); opacity:.58;
}
.lp-aurora-a{
  width:48vmax; height:48vmax; top:-22vmax; left:-12vmax;
  background:radial-gradient(circle at 30% 30%, rgba(124,92,255,.36), transparent 65%);
  animation:lpAuroraA 26s ease-in-out infinite alternate;
}
.lp-aurora-b{
  width:44vmax; height:44vmax; top:20vh; right:-16vmax;
  background:radial-gradient(circle at 70% 40%, rgba(192,75,255,.28), transparent 65%);
  animation:lpAuroraB 32s ease-in-out infinite alternate;
}
.lp-aurora-c{
  width:40vmax; height:40vmax; bottom:-18vmax; left:22vw;
  background:radial-gradient(circle at 50% 60%, rgba(34,211,238,.18), transparent 65%);
  animation:lpAuroraC 38s ease-in-out infinite alternate;
}
@keyframes lpAuroraA{
  0%  {transform:translate(0,0)}
  50% {transform:translate(8vw,6vh)}
  100%{transform:translate(-4vw,10vh)}
}
@keyframes lpAuroraB{
  0%  {transform:translate(0,0)}
  50% {transform:translate(-7vw,-8vh)}
  100%{transform:translate(5vw,-4vh)}
}
@keyframes lpAuroraC{
  0%  {transform:translate(0,0)}
  50% {transform:translate(6vw,-7vh)}
  100%{transform:translate(-6vw,-3vh)}
}
[data-theme="light"] .lp-aurora{opacity:.34}

/* Static grid wash over the aurora — painted once, masked to the top */
#landing-page::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(124,92,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,255,.055) 1px, transparent 1px);
  background-size:54px 54px;
  -webkit-mask-image:radial-gradient(ellipse 90% 55% at 50% -5%, #000 25%, transparent 78%);
          mask-image:radial-gradient(ellipse 90% 55% at 50% -5%, #000 25%, transparent 78%);
}

/* ══════════════ 3. HERO LIGHT BEAM + STARFIELD ══════════════ */
/* One slowly rotating conic fan behind the hero copy. Rotation is a
   compositor transform; the gradient itself is rasterised once. */
.lp-beam{
  position:absolute; left:50%; top:-32%; z-index:-2;
  width:150vmax; height:150vmax; margin-left:-75vmax;
  pointer-events:none; opacity:.5;
  background:conic-gradient(from 0deg at 50% 50%,
    transparent 0deg,   rgba(124,92,255,.16) 8deg,  transparent 20deg,
    transparent 74deg,  rgba(34,211,238,.11) 84deg, transparent 96deg,
    transparent 168deg, rgba(192,75,255,.13) 178deg,transparent 192deg,
    transparent 360deg);
  -webkit-mask-image:radial-gradient(circle at 50% 50%, #000 0%, transparent 46%);
          mask-image:radial-gradient(circle at 50% 50%, #000 0%, transparent 46%);
  animation:lpBeamSpin 70s linear infinite;
}
@keyframes lpBeamSpin{to{transform:rotate(360deg)}}
[data-theme="light"] .lp-beam{opacity:.3}

/* Constellation canvas — behind hero copy, above the beam */
.lp-stars{
  position:absolute; inset:0; z-index:-1;
  width:100%; height:100%; pointer-events:none;
}

/* ══════════════ 4. CURSOR SPOTLIGHT (desktop only) ══════════════ */
/* A single fixed blob that trails the pointer, moved by ONE shared rAF
   loop with translate3d. Sits above the aurora, below all content. */
.lp-cursor{
  position:fixed; top:0; left:0; z-index:0;
  width:520px; height:520px; margin:-260px 0 0 -260px;
  pointer-events:none; border-radius:50%;
  background:radial-gradient(circle at 50% 50%,
    rgba(124,92,255,.15), rgba(34,211,238,.06) 42%, transparent 68%);
  opacity:0; transition:opacity .5s ease;
  will-change:transform;
}
.lp-cursor.on{opacity:1}
[data-theme="light"] .lp-cursor{
  background:radial-gradient(circle at 50% 50%,
    rgba(124,92,255,.13), rgba(34,211,238,.05) 42%, transparent 68%);
}

/* ══════════════ 5. SCROLL PROGRESS BAR + GLOW HEAD ══════════════ */
.lp-progress{
  position:fixed; top:0; left:0; right:0; height:3px; z-index:1200;
  background:linear-gradient(90deg, var(--lp-c1), var(--lp-c3) 45%, var(--lp-c2));
  transform-origin:0 50%; transform:scaleX(0);
  pointer-events:none;
  box-shadow:0 0 12px rgba(124,92,255,.7);
}

/* ══════════════ 6. SCROLL-REVEAL ENGINE (driven by lp-modern.js) ══════════════ */
/* One-shot transitions — after they run the element costs nothing.
   blur is 4px (V4 used 6px): same softness read, cheaper filter pass. */
.lp-js .lp-fade{
  animation:none;
  opacity:0; transform:translateY(28px) scale(.985);
  filter:blur(4px);
  transition:opacity .75s var(--lp-ease) var(--lpd,0ms),
             transform .75s var(--lp-ease) var(--lpd,0ms),
             filter .75s var(--lp-ease) var(--lpd,0ms);
}
.lp-js .lp-fade.lp-in{opacity:1; transform:none; filter:blur(0)}
.lp-js .lp-fade-d1{--lpd:110ms}
.lp-js .lp-fade-d2{--lpd:220ms}
.lp-js .lp-fade-d3{--lpd:330ms}
.lp-js .lp-fade-d4{--lpd:440ms}

/* Section headings get a light wipe across the title once, on reveal */
.lp-js .lp-section-title{position:relative}
.lp-js .lp-section-hd.lp-in .lp-section-title::after{
  content:""; position:absolute; inset:-6% -4%;
  pointer-events:none;
  background:linear-gradient(100deg, transparent 38%,
    rgba(255,255,255,.16) 50%, transparent 62%);
  animation:lpTitleWipe 1.1s var(--lp-ease) .25s both;
}
@keyframes lpTitleWipe{
  from{transform:translateX(-45%); opacity:0}
  35% {opacity:1}
  to  {transform:translateX(45%);  opacity:0}
}

/* Chips pop in with a spring instead of a plain fade */
.lp-js .lp-section-hd.lp-in .lp-chip{
  animation:lpChipPop .6s var(--lp-spring) both;
}
@keyframes lpChipPop{
  from{opacity:0; transform:translateY(-10px) scale(.86)}
  to  {opacity:1; transform:none}
}

/* ══════════════ 7. HERO HEADLINE — per-word 3D reveal ══════════════ */
/* lp-modern.js wraps each word (and the gradient span as a whole unit)
   in a .lp-w and sets --i. Pure transform/opacity, one-shot, no layout
   reads. The gradient span is wrapped, never split, so its
   background-clip:text keeps working exactly as before. */
.lp-words{perspective:640px}
.lp-words .lp-w{
  display:inline-block; white-space:pre;
  opacity:0; transform:translateY(.5em) rotateX(-55deg);
  transform-origin:50% 100%;
  animation:lpWordIn .78s var(--lp-ease) both;
  animation-delay:calc(var(--i,0) * 62ms + 120ms);
}
@keyframes lpWordIn{
  from{opacity:0; transform:translateY(.5em) rotateX(-55deg)}
  to  {opacity:1; transform:none}
}

/* ══════════════ 8. NAVBAR — frosted glass + brand hairline ══════════════ */
/* blur(12px) reads nearly identical to 18px on a 64px bar and is ~2×
   cheaper to re-filter on every scroll frame.
   Height is deliberately NOT animated: the bar is sticky, so resizing it
   reflows the document and makes the scroll jump at the threshold. */
.lp-nav{
  transition:box-shadow .3s, background .3s;
  backdrop-filter:blur(12px) saturate(1.3);
  -webkit-backdrop-filter:blur(12px) saturate(1.3);
}
.lp-nav::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px;
  pointer-events:none; opacity:0; transition:opacity .35s;
  background:linear-gradient(90deg, transparent, var(--lp-c1) 22%,
    var(--lp-c3) 50%, var(--lp-c2) 78%, transparent);
}
.lp-nav.scrolled{box-shadow:0 10px 34px -14px rgba(0,0,0,.55)}
.lp-nav.scrolled::after{opacity:.7}
.lp-nav.scrolled .lp-logo-icon{
  box-shadow:0 0 26px var(--brand-ring);
  animation:lpLogoPop .45s var(--lp-spring);
}
@keyframes lpLogoPop{0%{transform:scale(.82)}100%{transform:scale(1)}}

/* menu underline grow — also used as the active-section indicator */
.lp-menu-link{position:relative}
.lp-menu-link::after{
  content:""; position:absolute; left:14px; right:14px; bottom:1px; height:2px;
  border-radius:2px; background:linear-gradient(90deg, var(--lp-c1), var(--lp-c2));
  transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.lp-menu-link:hover::after,
.lp-menu-link.active::after{transform:scaleX(1)}
.lp-menu-link.active{color:var(--text)}

/* ══════════════ 9. BUTTONS — shine sweep, magnet, ripple ══════════════ */
/* The shine animates transform only: `left` is fixed, translateX sweeps.
   Glow is a static shadow — animating box-shadow repaints every frame. */
.lp-btn-signup{
  position:relative; overflow:hidden;
  box-shadow:0 0 22px var(--brand-ring);
}
.lp-btn-signup::before,
.lp-cta-primary::before{
  content:""; position:absolute; top:0; bottom:0; left:-80%; width:50%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform:skewX(-20deg) translateX(0);
  animation:lpShine 3.8s ease-in-out infinite; pointer-events:none;
}
/* 430% of its own 50% width = 215% of the button — full sweep, no `left` */
@keyframes lpShine{
  0%      {transform:skewX(-20deg) translateX(0)}
  55%,100%{transform:skewX(-20deg) translateX(430%)}
}

.lp-cta-primary{position:relative; overflow:hidden}
.lp-cta-primary svg{transition:transform .25s ease}
.lp-cta-primary:hover svg{transform:translateX(4px)}
/* Magnetic hover offset — lp-modern.js writes --mtx/--mty on the button.
   Deliberately NOT a shared `.lp-magnetic:hover{transform:...}` rule: each
   target already owns a hover transform (lift/scale), and a second rule at
   the same specificity would just clobber whichever lost the cascade. So the
   vars get folded into each element's own transform instead. */
.lp-magnetic{transition:transform .18s ease-out}
.lp-cta-primary:hover{transform:translate(var(--mtx,0), var(--mty,0)) translateY(-2px)}

/* click ripple (span injected by lp-modern.js) */
.lp-cta-primary, .lp-btn-signup, .lp-banner-btn, .lp-pc-btn{position:relative; overflow:hidden}
.lp-ripple{
  position:absolute; border-radius:50%; background:rgba(255,255,255,.35);
  transform:scale(0); animation:lpRip .6s ease-out forwards; pointer-events:none;
}
@keyframes lpRip{to{transform:scale(2.6); opacity:0}}

/* Secondary CTA gets a quiet arrow nudge + brand ring on hover */
.lp-cta-secondary{transition:border-color .25s, background .25s, color .25s, transform .25s var(--lp-ease)}
.lp-cta-secondary:hover{transform:translateY(-2px)}

/* ══════════════ 10. HERO DETAILS ══════════════ */
.lp-hero-eyebrow{
  animation:lpEyebrowIn .7s var(--lp-ease) both .1s;
}
@keyframes lpEyebrowIn{
  from{opacity:0; transform:translateY(-12px) scale(.92)}
  to  {opacity:1; transform:none}
}
/* live-dot ping — a ring pseudo scaling out (never an animated box-shadow) */
.lp-hero-eyebrow-icon{position:relative}
.lp-hero-eyebrow-icon::after{
  content:""; position:absolute; inset:0; border-radius:inherit;
  border:2px solid rgba(124,92,255,.55);
  animation:lpPing 2.6s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes lpPing{
  0%       {transform:scale(1); opacity:.8}
  70%,100% {transform:scale(2.3); opacity:0}
}
.lp-grad-text{
  background-size:200% auto;
  animation:lpGradShift 6s linear infinite;
}
@keyframes lpGradShift{to{background-position:200% center}}

/* Soft glow beam under the hero — opacity-only pulse, blur raster cached */
.lp-hero::after{
  content:""; position:absolute; left:50%; bottom:-30px;
  transform:translateX(-50%);
  width:min(680px,80%); height:60px; pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(124,92,255,.24), transparent 70%);
  filter:blur(8px);
  animation:lpBeam 5s ease-in-out infinite;
}
@keyframes lpBeam{0%,100%{opacity:.65}50%{opacity:1}}

/* Trust row — staggered pulse rings on the four dots */
.lp-trust-dot{position:relative}
.lp-trust-dot::after{
  content:""; position:absolute; inset:-2px; border-radius:50%;
  border:1.5px solid rgba(124,92,255,.5);
  animation:lpPing 3s cubic-bezier(0,0,.2,1) infinite;
}
.lp-trust-item:nth-child(2) .lp-trust-dot::after{animation-delay:.4s}
.lp-trust-item:nth-child(3) .lp-trust-dot::after{animation-delay:.8s}
.lp-trust-item:nth-child(4) .lp-trust-dot::after{animation-delay:1.2s}
.lp-trust-item{transition:color .25s}
.lp-trust-item:hover{color:var(--text-2)}

/* ══════════════ 11. MOCKUP — float, tilt, cursor sweep, tile stagger ══════════════ */
/* The idle float animates the `translate` PROPERTY, not `transform`.
   That matters: a running (or paused) animation outranks any `transform`
   in a hover rule, so a transform-based float would silently eat the
   pointer tilt below. Separate properties compose instead of fighting. */
.lp-mockup-frame{
  transition:transform .5s var(--lp-ease);
  animation:lpFloat 7s ease-in-out infinite;
}
@keyframes lpFloat{
  0%,100%{translate:0 0}
  50%{translate:0 -12px}
}
/* Pointer tilt (desktop): JS writes --tx/--ty. The float freezes where it
   is so the frame holds steady under the cursor. */
.lp-mockup-wrap:hover .lp-mockup-frame{
  animation-play-state:paused;
  transform:perspective(1400px)
            rotateX(var(--ty,0deg)) rotateY(var(--tx,0deg))
            translateY(-6px);
}
.lp-mockup-glow{transition:opacity .4s}
.lp-mockup-wrap:hover .lp-mockup-glow{opacity:.34}

/* the 8 preview tiles lift in a wave when the frame is hovered */
.lp-mockup-tool{transition:transform .35s var(--lp-spring), border-color .25s, background .25s}
.lp-mockup-wrap:hover .lp-mockup-tool{transform:translateY(-3px)}
.lp-mockup-tool:nth-child(2){transition-delay:.03s}
.lp-mockup-tool:nth-child(3){transition-delay:.06s}
.lp-mockup-tool:nth-child(4){transition-delay:.09s}
.lp-mockup-tool:nth-child(5){transition-delay:.12s}
.lp-mockup-tool:nth-child(6){transition-delay:.15s}
.lp-mockup-tool:nth-child(7){transition-delay:.18s}
.lp-mockup-tool:nth-child(8){transition-delay:.21s}
/* the hovered tile jumps the queue — higher specificity than the wave rule
   above, so no !important is needed */
.lp-mockup-wrap:hover .lp-mockup-tool:hover{
  transform:translateY(-6px) scale(1.03); transition-delay:0s;
}
.lp-mockup-tool-icon{transition:transform .25s var(--lp-spring)}
.lp-mockup-tool:hover .lp-mockup-tool-icon{transform:scale(1.18) rotate(-6deg)}

/* typing cursor sweep in the URL bar — a 22%-wide sliver translated
   across (V3 animated `left`, which relayouts every single frame) */
.lp-mockup-urlbar{position:relative; overflow:hidden}
.lp-mockup-urlbar::after{
  content:""; position:absolute; top:15%; bottom:15%; left:8%; width:22%;
  border-left:2px solid rgba(124,92,255,.85);
  box-shadow:-2px 0 8px rgba(124,92,255,.7);
  animation:lpCursorSweep 4.5s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes lpCursorSweep{
  0%  {transform:translateX(0); opacity:1}
  42% {transform:translateX(360%); opacity:1}
  44% {opacity:0}
  46% {transform:translateX(15%); opacity:0}
  52% {opacity:1}
  70% {transform:translateX(30%); opacity:1}
  100%{transform:translateX(30%); opacity:0}
}

/* ══════════════ 12. TOOLS MARQUEE ══════════════ */
.lp-marquee{
  position:relative; z-index:1; overflow:hidden;
  margin:56px 0 0; padding:14px 0;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:color-mix(in srgb, var(--surface) 55%, transparent);
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lp-marquee-track{
  display:flex; gap:44px; width:max-content;
  animation:lpMarquee 34s linear infinite;
}
.lp-marquee:hover .lp-marquee-track{animation-play-state:paused}
.lp-marquee-item{
  display:inline-flex; align-items:center; gap:10px; white-space:nowrap;
  color:var(--text-2); font-size:.86rem; font-weight:700;
  letter-spacing:.4px; text-transform:uppercase;
  transition:color .25s;
}
.lp-marquee-item:hover{color:var(--lp-c1)}
.lp-marquee-item .lp-marquee-star{
  color:var(--lp-c1); font-size:.7rem;
  animation:lpStarSpin 6s linear infinite;
}
@keyframes lpMarquee{to{transform:translateX(-50%)}}
@keyframes lpStarSpin{to{transform:rotate(360deg)}}

/* ══════════════ 13. STATS STRIP ══════════════ */
.lp-stat{position:relative; transition:background .3s, transform .3s var(--lp-ease)}
.lp-stat:hover{background:var(--surface-2); transform:translateY(-3px)}
.lp-stat::after{
  content:""; position:absolute; left:22%; right:22%; bottom:0; height:2px;
  border-radius:2px; background:linear-gradient(90deg, var(--lp-c1), var(--lp-c3));
  transform:scaleX(0); transform-origin:50%; transition:transform .35s var(--lp-ease);
}
.lp-stat:hover::after{transform:scaleX(1)}
.lp-stat-val{
  background:linear-gradient(120deg, var(--lp-c1), var(--lp-c3) 50%, var(--lp-c2));
  background-size:200% auto;
  animation:lpGradShift 8s linear infinite;
  -webkit-background-clip:text; background-clip:text;
}

/* ══════════════ 14. TOOL CARDS — spotlight, border beam, tilt ══════════════ */
.lp-tc{
  transition:transform .15s ease-out, border-color .25s, box-shadow .3s;
  background:linear-gradient(var(--surface), var(--surface));
}
/* cursor spotlight inside the card (JS writes --mx/--my) */
.lp-tc::before{
  content:""; position:absolute; inset:0; border-radius:inherit; z-index:0;
  pointer-events:none; opacity:0; transition:opacity .3s;
  background:radial-gradient(240px circle at var(--mx,50%) var(--my,50%),
    rgba(124,92,255,.2), transparent 65%);
}
.lp-tc:hover::before{opacity:1}
/* Travelling border beam: a narrow bright arc in a conic gradient, masked
   to a 1.5px ring. Spins ONLY while hovered — V3 ran a full ring on all 13
   cards forever, i.e. 13 permanent repaint layers. */
.lp-tc::after{
  content:""; position:absolute; inset:0; border-radius:inherit; z-index:1;
  padding:1.5px; pointer-events:none; opacity:0; transition:opacity .35s;
  background:conic-gradient(from var(--lp-ang),
    transparent 0deg, transparent 232deg,
    rgba(124,92,255,.45) 272deg, var(--lp-c3) 320deg,
    var(--lp-c2) 344deg, transparent 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
.lp-tc:hover::after{opacity:1; animation:lpBorderSpin 2.6s linear infinite}
.lp-tc:hover{
  border-color:rgba(124,92,255,.35);
  box-shadow:0 22px 48px -20px var(--brand-ring);
}
.lp-tc-icon{
  transition:transform .3s var(--lp-spring), background .3s, box-shadow .3s;
}
.lp-tc:hover .lp-tc-icon{
  transform:scale(1.12) rotate(-6deg);
  background:linear-gradient(135deg, var(--lp-c1), var(--lp-c2));
  box-shadow:0 8px 22px -6px var(--brand-ring);
}
.lp-tc-badge{transition:transform .3s var(--lp-spring)}
.lp-tc:hover .lp-tc-badge{transform:translateY(-2px) scale(1.05)}
.lp-tc-cta span:last-child{display:inline-block; transition:transform .25s ease}
.lp-tc:hover .lp-tc-cta span:last-child{transform:translateX(5px)}
.lp-tc-cta span:first-child{
  background:linear-gradient(90deg, var(--lp-c1), var(--lp-c2));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
@keyframes lpBorderSpin{to{--lp-ang:360deg}}
/* On hover the CTA row itself fills with the brand gradient (inline CSS),
   so the label has to drop its gradient clip or it renders invisible. */
.lp-tc:hover .lp-tc-cta span:first-child{
  background:none; -webkit-text-fill-color:#fff; color:#fff;
}

/* ══════════════ 15. HOW IT WORKS — scroll-linked rail + steps ══════════════ */
.lp-how-strip{position:relative}
/* rail injected by lp-modern.js at the top edge of the strip */
.lp-rail{
  position:absolute; left:0; right:0; top:0; height:2px;
  overflow:hidden; pointer-events:none; z-index:2;
}
.lp-rail-fill{
  position:absolute; inset:0;
  transform:scaleX(0); transform-origin:0 50%;
  background:linear-gradient(90deg, var(--lp-c1), var(--lp-c3) 50%, var(--lp-c2));
  box-shadow:0 0 10px rgba(124,92,255,.6);
  transition:transform 1.5s var(--lp-ease);
}
.lp-rail-fill.lp-in{transform:scaleX(1)}

.lp-how-step{transition:background .3s}
.lp-how-step:hover{background:var(--surface)}
.lp-how-num{
  position:relative; transition:color .3s; width:max-content; margin:0 auto 12px;
}
.lp-how-num::after{
  content:""; position:absolute; inset:-10px -18px; border-radius:var(--r-full);
  border:1.5px dashed rgba(124,92,255,.35);
  animation:lpNumSpin 14s linear infinite;
  pointer-events:none;
}
@keyframes lpNumSpin{to{transform:rotate(360deg)}}
.lp-how-step:hover .lp-how-num{
  color:transparent;
  background:linear-gradient(135deg, var(--lp-c1), var(--lp-c2));
  -webkit-background-clip:text; background-clip:text;
}
.lp-how-icon{display:inline-block}
.lp-how-step:hover .lp-how-icon{animation:lpBob .6s ease}
@keyframes lpBob{0%{transform:translateY(0)}40%{transform:translateY(-8px)}100%{transform:translateY(0)}}

/* ══════════════ 16. WHY CARDS ══════════════ */
.lp-wc{transition:transform .25s var(--lp-ease), border-color .25s, box-shadow .25s}
.lp-wc:hover{
  transform:translateY(-6px);
  border-color:rgba(124,92,255,.4);
  box-shadow:0 20px 44px -18px var(--brand-ring);
}

.lp-wc-icon{
  position:relative;
  transition:transform .25s ease, box-shadow .3s;
}
.lp-wc:hover .lp-wc-icon{
  animation:lpBob .6s ease;
  box-shadow:0 0 30px var(--brand-ring);
}
/* a small satellite dot orbits the icon while the card is hovered */
.lp-wc-icon::after{
  content:""; position:absolute; top:50%; left:50%;
  width:6px; height:6px; margin:-3px; border-radius:50%;
  background:var(--lp-c3); box-shadow:0 0 10px var(--lp-c3);
  opacity:0; transition:opacity .3s;
}
.lp-wc:hover .lp-wc-icon::after{
  opacity:1; animation:lpOrbit 2.4s linear infinite;
}
@keyframes lpOrbit{
  from{transform:rotate(0deg) translateX(34px)}
  to  {transform:rotate(360deg) translateX(34px)}
}

/* ══════════════ 17. PRICING ══════════════ */
.lp-pc{transition:transform .25s var(--lp-ease), border-color .25s, box-shadow .25s}
.lp-pc:hover{transform:translateY(-6px)}
.lp-pc.hot{position:relative; box-shadow:0 14px 44px -18px var(--brand-ring)}
/* The one always-on animated ring on the whole page — the signature
   plan card earns it; everything else is hover-gated. */
.lp-pc.hot::before{
  content:""; position:absolute; inset:-1.5px; border-radius:calc(var(--r-xl) + 1.5px);
  padding:1.5px; pointer-events:none;
  background:conic-gradient(from var(--lp-ang),
    var(--lp-c1), var(--lp-c3) 30%, var(--lp-c2) 60%, var(--lp-c1));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  animation:lpBorderSpin 5s linear infinite;
}
.lp-pc-feat{transition:transform .25s var(--lp-ease), color .25s}
.lp-pc:hover .lp-pc-feat{color:var(--text)}
.lp-pc-check{transition:transform .3s var(--lp-spring), box-shadow .3s}
.lp-pc-feat:hover .lp-pc-check{transform:scale(1.15) rotate(-8deg)}
.lp-pc-btn{transition:filter .2s, transform .25s var(--lp-ease), box-shadow .25s}
.lp-pc-btn.grad:hover{transform:translateY(-2px); box-shadow:0 12px 30px -6px var(--brand-ring)}

/* ══════════════ 18. BOTTOM BANNER ══════════════ */
.lp-banner{position:relative; overflow:hidden}
.lp-banner::after{
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:40%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  transform:skewX(-20deg);
  animation:lpBannerShine 4.2s ease-in-out infinite; pointer-events:none;
}
@keyframes lpBannerShine{
  0%      {transform:skewX(-20deg) translateX(0)}
  55%,100%{transform:skewX(-20deg) translateX(400%)}
}
.lp-banner-btn{
  transition:transform .25s var(--lp-ease), box-shadow .25s;
  animation:lpBannerBtn 3s ease-in-out infinite;
}
/* `translate` again, so the idle bob leaves `transform` free for the hover
   lift + magnetic offset below (see the note in §9) */
@keyframes lpBannerBtn{
  0%,100%{translate:0 0}
  50%{translate:0 -3px}
}
.lp-banner-btn:hover{
  transform:translate(var(--mtx,0), var(--mty,0)) translateY(-4px) scale(1.03);
}

/* ══════════════ 19. FOOTER ══════════════ */
.lp-footer{position:relative}
.lp-footer::before{
  content:""; position:absolute; left:0; right:0; top:-1px; height:1px;
  pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(124,92,255,.55) 30%,
    rgba(34,211,238,.55) 50%, rgba(192,75,255,.55) 70%, transparent);
  opacity:.65;
}
.lp-footer-link{position:relative; transition:color .2s}
.lp-footer-link::after{
  content:""; position:absolute; left:0; right:0; bottom:-3px; height:1.5px;
  background:linear-gradient(90deg, var(--lp-c1), var(--lp-c2));
  transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.lp-footer-link:hover::after{transform:scaleX(1)}

/* ══════════════ 20. BACK TO TOP — with scroll progress ring ══════════════ */
.lp-top{
  position:fixed; right:clamp(16px,3vw,32px); bottom:clamp(16px,3vw,32px);
  width:48px; height:48px; border-radius:var(--r-full); border:none; cursor:pointer;
  display:grid; place-items:center; z-index:1100;
  color:#fff; font-size:18px; font-family:var(--font);
  background:linear-gradient(135deg, var(--lp-c1), var(--lp-c2));
  box-shadow:0 10px 28px -8px var(--brand-ring);
  opacity:0; transform:translateY(18px) scale(.85); pointer-events:none;
  transition:opacity .35s ease, transform .35s var(--lp-spring), box-shadow .25s;
}
.lp-top.show{opacity:1; transform:none; pointer-events:auto}
.lp-top:hover{transform:translateY(-4px) scale(1.06); box-shadow:0 14px 34px -8px var(--brand-ring)}
.lp-top svg{transition:transform .25s}
.lp-top:hover svg{transform:translateY(-2px)}

/* progress ring around the button — --lp-p (0…1) is already being written
   once per scroll frame for the top bar, so this rides along for free */
.lp-top::before{
  content:""; position:absolute; inset:-4px; border-radius:50%;
  pointer-events:none;
  background:conic-gradient(var(--lp-c3) calc(var(--lp-p,0) * 360deg),
    rgba(255,255,255,.16) 0);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

/* ══════════════ 21. SCROLL-DRIVEN PARALLAX (off the main thread) ══════════════ */
/* Native scroll timelines run on the compositor: no scroll listener, no
   rAF, no jank. Unsupported browsers simply get the static layout. */
@supports (animation-timeline: scroll()){
  @media (prefers-reduced-motion: no-preference) and (min-width:769px){
    /* hero copy drifts up and dims as it leaves — cinematic, not jarring */
    .lp-hero{
      animation:lpHeroPar linear both;
      animation-timeline:scroll(root);
      animation-range:0px 92vh;
    }
    @keyframes lpHeroPar{
      0%,22%{transform:translateY(0); opacity:1}
      100%  {transform:translateY(-38px); opacity:.6}
    }
    /* the mockup rises into place slightly faster than the page scrolls */
    .lp-mockup-wrap{
      animation:lpMockPar linear both;
      animation-timeline:scroll(root);
      animation-range:0px 80vh;
    }
    @keyframes lpMockPar{
      from{transform:translateY(28px) scale(.985)}
      to  {transform:translateY(-22px) scale(1)}
    }
    /* deep-background aurora drifts at half speed for depth */
    .lp-aurora-b{
      animation:lpAuroraB 32s ease-in-out infinite alternate,
                lpAuroraPar linear both;
      animation-timeline:auto, scroll(root);
      animation-range:normal, 0px 100%;
    }
    @keyframes lpAuroraPar{to{translate:0 -14vh}}
  }
}

/* ══════════════ 22. OFFSCREEN PAINT SKIP — content-visibility ══════════════ */
/* Below-fold sections aren't painted until they approach the viewport.
   Single-value contain-intrinsic-size (not the `auto X` form) so every
   engine that supports content-visibility keeps a stable scrollbar. */
#lp-tools{content-visibility:auto; contain-intrinsic-size:1760px}
#lp-how  {content-visibility:auto; contain-intrinsic-size:540px}
#lp-why  {content-visibility:auto; contain-intrinsic-size:900px}
#lp-pricing{content-visibility:auto; contain-intrinsic-size:880px}
.lp-banner{content-visibility:auto; contain-intrinsic-size:320px}
.lp-footer{content-visibility:auto; contain-intrinsic-size:120px}

/* ══════════════ 23. LOW-POWER DEVICES (.lp-lite, set by lp-modern.js) ══════════════ */
.lp-lite .lp-aurora-c,
.lp-lite .lp-stars,
.lp-lite .lp-grain,
.lp-lite .lp-cursor,
.lp-lite .lp-beam,
.lp-lite .lp-hero::after,
.lp-lite .lp-mockup-urlbar::after{display:none}
.lp-lite .lp-grad-text,
.lp-lite .lp-stat-val,
.lp-lite .lp-marquee-star,
.lp-lite .lp-trust-dot::after,
.lp-lite .lp-how-num::after,
.lp-lite .lp-pc.hot::before{animation:none}
.lp-lite .lp-words .lp-w{animation-duration:.5s}

/* ══════════════ 24. HIDDEN TAB — pause everything (battery) ══════════════ */
.lp-tab-hidden .lp-marquee-track,
.lp-tab-hidden .lp-aurora,
.lp-tab-hidden .lp-beam,
.lp-tab-hidden .lp-mockup-frame,
.lp-tab-hidden .lp-pc.hot::before,
.lp-tab-hidden .lp-btn-signup::before,
.lp-tab-hidden .lp-cta-primary::before,
.lp-tab-hidden .lp-banner::after,
.lp-tab-hidden .lp-banner-btn,
.lp-tab-hidden .lp-hero-eyebrow-icon::after,
.lp-tab-hidden .lp-trust-dot::after,
.lp-tab-hidden .lp-how-num::after,
.lp-tab-hidden .lp-marquee-star{animation-play-state:paused}

/* ══════════════ 25. RESPONSIVE — mobile gets the cheap half ══════════════ */
@media (max-width:768px){
  /* 2 aurora layers instead of 3, softer blur radius */
  .lp-aurora{filter:blur(56px); opacity:.42}
  .lp-aurora-c{display:none}
  /* full-viewport extras a phone GPU shouldn't have to composite */
  .lp-grain{display:none}
  .lp-cursor{display:none}
  .lp-beam{display:none}
  .lp-nav{
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
  /* per-frame text repaints → off */
  .lp-grad-text, .lp-stat-val{animation:none}
  /* 26 rotating glyph layers → 0 */
  .lp-marquee-star{animation:none}
  /* the one always-on repaint loop → static ring */
  .lp-pc.hot::before{animation:none}
  .lp-hero::after{display:none}
  .lp-tc::after{display:none}
  .lp-mockup-frame{animation:none}
  .lp-mockup-wrap:hover .lp-mockup-frame{transform:none}
  .lp-marquee-track{gap:28px}
  .lp-how-num::after{inset:-6px -12px}
  /* faster, shorter word reveal so the headline lands quickly on 3G */
  .lp-words .lp-w{
    animation-duration:.55s;
    animation-delay:calc(var(--i,0) * 45ms + 80ms);
  }
  .lp-words{perspective:420px}
  .lp-trust-dot::after{animation-duration:4s}
}
@media (max-width:480px){
  .lp-marquee{margin-top:40px}
  .lp-top{width:44px; height:44px}
}

/* ══════════════ 26. ACCESSIBILITY — honour prefers-reduced-motion ══════════════ */
@media (prefers-reduced-motion:reduce){
  #landing-page *, #landing-page *::before, #landing-page *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .lp-js .lp-fade{opacity:1 !important; transform:none !important; filter:none !important}
  .lp-words .lp-w{opacity:1 !important; transform:none !important}
  .lp-rail-fill{transform:scaleX(1) !important}
  .lp-stars, .lp-cursor, .lp-beam{display:none}
}



/* ============================================================
   CWORK STUDIO — FAQ & GUIDES PREMIUM DESIGN
   ============================================================ */
.lp-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.lp-guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.lp-guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 16px 36px -12px rgba(124, 92, 255, 0.2);
}
.lp-guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lp-guide-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 6px;
}
.lp-guide-badge.ssc { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.lp-guide-badge.upsc { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.lp-guide-badge.neet { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.lp-guide-badge.visa { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.lp-guide-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.lp-guide-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.lp-spec-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.lp-guide-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}
.lp-guide-action {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: gap 0.2s;
}
.lp-guide-action:hover { gap: 8px; }

/* FAQ Section */
.lp-faq-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
.lp-faq-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.lp-faq-tab {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lp-faq-tab:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-strong);
}
.lp-faq-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}
.lp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-faq-card:hover {
  border-color: rgba(124, 92, 255, 0.35);
}
.lp-faq-card[open] {
  border-color: rgba(124, 92, 255, 0.55);
  background: var(--surface) !important;
  box-shadow: 0 4px 20px -4px rgba(124, 92, 255, 0.12);
}
.lp-faq-summary {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.lp-faq-summary:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: -2px;
}
.lp-faq-summary::-webkit-details-marker { display: none; }
.lp-faq-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.lp-faq-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.lp-faq-q-text {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.lp-faq-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s;
}
.lp-faq-chevron svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-faq-card[open] .lp-faq-chevron {
  transform: rotate(180deg);
  background: var(--brand-1);
  border-color: var(--brand-1);
  color: #fff;
}
.lp-faq-answer {
  padding: 0 22px 20px 74px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  background: transparent;
}
@media (max-width: 640px) {
  .lp-faq-answer { padding-left: 20px; }
  .lp-faq-summary { padding: 14px 16px; }
  .lp-faq-q-text { font-size: 14px; }
  .lp-faq-icon-pill { width: 32px; height: 32px; font-size: 15px; }
}
[data-theme="light"] .lp-faq-card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: none;
}
[data-theme="light"] .lp-faq-card[open] {
  background: #ffffff !important;
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 4px 20px -4px rgba(124, 92, 255, 0.12);
}
[data-theme="light"] .lp-faq-answer {
  color: var(--text-2);
  border-top-color: var(--line);
  background: transparent;
}
[data-theme="light"] .lp-faq-summary {
  color: var(--text);
}
[data-theme="light"] .lp-faq-tab {
  background: #ffffff;
  color: var(--text-2);
  border-color: var(--line);
}
[data-theme="light"] .lp-faq-tab.active {
  background: var(--brand-1);
  border-color: var(--brand-1);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.25);
}
.lp-faq-help-card {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-faq-help-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lp-faq-help-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.lp-faq-help-left h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.lp-faq-help-left p {
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 0;
}
.lp-faq-help-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-btn-help-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s;
}
.lp-btn-help-primary:hover { transform: translateY(-1px); }
.lp-btn-help-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
