/* =========================================================== FITGEN – motion layer */

/* ---------- intro loader */
.fg-loader { position: fixed; inset: 0; z-index: 1000; background: var(--ink); display: grid; place-items: center; pointer-events: none; }
.fg-loader .mark { width: 120px; filter: drop-shadow(0 0 30px rgba(124, 58, 237, .6)); }
.fg-loader .bar { position: absolute; left: 50%; bottom: 18%; width: 160px; height: 3px; margin-left: -80px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fg-loader .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), #c4b5fd); }
.fg-loader .word { position: absolute; bottom: 24%; color: #fff; font-family: var(--head); font-weight: 800; font-style: italic; letter-spacing: .3em; font-size: .9rem; opacity: .7; }
.fg-loader.done { display: none; }
.no-loader .fg-loader { display: none; }

/* page transition curtain */
.fg-curtain { position: fixed; inset: 0; z-index: 999; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.fg-curtain i { background: var(--ink); transform: scaleY(0); transform-origin: bottom; border-right: 1px solid rgba(124, 58, 237, .15); }
.fg-curtain i:nth-child(odd) { background: #140d26; }

/* ---------- scroll progress */
.fg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--purple), #c084fc, #f0abfc); box-shadow: 0 0 12px rgba(168, 85, 247, .7); }

/* ---------- custom cursor (fine pointers only) */
.fg-cursor, .fg-cursor-dot { position: fixed; top: 0; left: 0; z-index: 2000; pointer-events: none; border-radius: 50%; opacity: 0; }
.fg-cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(139, 92, 246, .75); transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s; }
.fg-cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--purple-400); }
.fg-cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(124, 58, 237, .12); border-color: rgba(139, 92, 246, .35); }
.fg-cursor .lbl { position: absolute; inset: 0; display: grid; place-items: center; font: 600 .62rem var(--body); color: #fff; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.fg-cursor.view .lbl { opacity: 1; }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; } html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; } }

/* ---------- header behaviour */
.site-header { transition: transform .45s var(--ease), background .3s, box-shadow .3s; }
.site-header.hide { transform: translateY(-100%); }
.site-header.scrolled { background: rgba(13, 10, 23, .82); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.nav-links a, .nav-links button { position: relative; }
.nav-links > li > a::after, .nav-links > li > button::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--purple-400); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links > li > a:hover::after, .nav-links > li > button:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- split text */
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word > span { display: inline-block; will-change: transform; }
.split-char { display: inline-block; will-change: transform; }

/* ---------- buttons: shine + magnetic */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before, .btn-wa::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); z-index: -1; transition: left .7s var(--ease); }
.btn-primary:hover::before, .btn-wa:hover::before { left: 130%; }
.btn-primary { background-size: 200% 100%; background-image: linear-gradient(110deg, var(--purple) 0%, #9333ea 50%, var(--purple) 100%); }
.btn-primary:hover { background-position: 100% 0; }
[data-magnetic] { will-change: transform; }

/* ---------- hero extras */
/* hero sized like the design: content + search card visible on the first screen */
.hero { min-height: 0; padding-bottom: 96px; }
.hero-inner { padding: clamp(3rem, 4.5vw, 4.25rem) 0 2.25rem; max-width: 560px; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3vw, 3.9rem); }
.hero p.lead { margin-bottom: 1.5rem; }
.hero-bg img { width: 62%; object-position: 45% 28%; }
@media (min-width: 861px) { .hero { min-height: clamp(520px, 62vh, 620px); } }
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-orbs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-orbs i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -80px; background: radial-gradient(circle, #7c3aed, transparent 70%); }
.hero-orbs i:nth-child(2) { width: 320px; height: 320px; left: 35%; bottom: -120px; background: radial-gradient(circle, #a855f7, transparent 70%); opacity: .35; }
.hero-orbs i:nth-child(3) { width: 220px; height: 220px; right: 8%; top: 18%; background: radial-gradient(circle, #f0abfc, transparent 70%); opacity: .25; }
.hero-bg, .hero .wrap, .hero-badge { z-index: 1; }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(167, 139, 250, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .35) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 20% 40%, #000 10%, transparent 60%); mask-image: radial-gradient(ellipse at 20% 40%, #000 10%, transparent 60%); }
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero h1 .accent { background: linear-gradient(90deg, #a78bfa, #e879f9, #a78bfa); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }
.hero h1 .accent[data-split], .hero h1 .accent:has(.split-char) { background: none; animation: none; color: var(--purple-400); }
.hero h1 .accent .split-char { background: linear-gradient(90deg, #a78bfa, #e879f9, #a78bfa); background-size: 400% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
/* badge: one owner for its transform (GSAP); sits above the particle canvas */
.hero-badge { z-index: 3; will-change: transform; backface-visibility: hidden; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.scroll-cue { display: none; position: absolute; left: 50%; bottom: 96px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero-stats { display: flex; gap: 2rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--head); font-size: 1.9rem; color: #fff; line-height: 1; }
.hero-stats div span { font-size: .8rem; color: #b8b0d4; }

/* ---------- marquee */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: 1.1rem 0; margin-top: clamp(2.5rem, 5vw, 4rem); transform: rotate(-1.5deg) scale(1.03); border-block: 1px solid rgba(167, 139, 250, .25); }
.marquee.alt { background: var(--purple); transform: rotate(1.5deg) scale(1.03); margin-top: -2.4rem; position: relative; z-index: -1; }
.marquee-track { display: flex; width: max-content; gap: 2.5rem; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; font-family: var(--head); font-weight: 800; font-size: clamp(1.2rem, 1rem + 1.4vw, 2.2rem); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--purple-400); font-size: .7em; }
.marquee.alt .marquee-track span::after { color: #fff; }
.marquee .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7); }
.marquee-wrap { position: relative; overflow: hidden; padding-bottom: 1.5rem; }

/* ---------- cards: 3D tilt + glare */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.tilt-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; z-index: 3; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 55%); transition: opacity .3s; mix-blend-mode: soft-light; }
[data-tilt]:hover .tilt-glare { opacity: 1; }
.t-card, .pk-card { position: relative; }
.t-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, #a78bfa, #e879f9, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-ang 3s linear infinite; }
.t-card:hover::before { opacity: 1; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }
.pk-card.featured { box-shadow: 0 0 0 0 rgba(124, 58, 237, .5); animation: glowpulse 2.6s ease-in-out infinite; }
@keyframes glowpulse { 50% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0), 0 20px 50px rgba(124, 58, 237, .25); } }
.pk-card .pk-badge { position: absolute; top: -12px; right: 18px; background: linear-gradient(90deg, var(--purple), #c026d3); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(124, 58, 237, .4); }
.cat-card .cat-body h3 { transition: transform .4s var(--ease); }
.cat-card:hover .cat-body h3 { transform: translateY(-4px); }
.city-card img, .cat-card img, .join img { will-change: transform; }

/* ---------- steps line */
.steps-line { position: absolute; top: 28px; left: 28px; right: 28px; height: 3px; border-radius: 3px; background: rgba(124, 58, 237, .15); overflow: hidden; }
.steps-line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--purple), #e879f9); transform: scaleX(0); transform-origin: left; }
.steps .step::after { display: none !important; }
.step-ico { transition: transform .4s var(--ease), box-shadow .4s; }
.step:hover .step-ico { transform: translateY(-6px) rotate(-6deg); box-shadow: 0 14px 30px rgba(124, 58, 237, .3); }

/* ---------- mock dashboard live demo */
.mock-slots span { transition: background .35s, color .35s, border-color .35s; }
.mock-tabs span { transition: background .35s, color .35s; }

/* ---------- payment logos float */
.pay-logo { transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.pay-logo:hover { transform: translateY(-6px); border-color: var(--purple-400); box-shadow: 0 14px 30px rgba(124, 58, 237, .18); }

/* ---------- faq smooth */
.faq .ans { overflow: hidden; }
.faq { transition: border-color .3s, box-shadow .3s; }
.faq[open] { border-color: var(--purple-400); box-shadow: 0 12px 30px rgba(124, 58, 237, .12); }

/* ---------- forms */
.field input:focus, .field select:focus, .field textarea:focus { transform: translateY(-1px); }
.check { transition: transform .25s var(--ease), border-color .25s, background .25s; }
.check:hover { transform: translateY(-2px); border-color: var(--purple-400); }
.fs-title .ico { transition: transform .5s var(--ease); }
.fs-title.in .ico { transform: rotate(360deg); }
.form-progress { position: sticky; top: 72px; z-index: 20; height: 4px; background: var(--purple-100); border-radius: 4px; overflow: hidden; margin: -0.5rem 0 1rem; }
.form-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), #e879f9); transition: width .4s var(--ease); }

/* ---------- page hero extras */
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; left: -140px; bottom: -220px; background: radial-gradient(circle, rgba(232, 121, 249, .35), transparent 65%); z-index: -1; }

/* ---------- under development page */
.dev-orbit { position: relative; width: 140px; height: 140px; margin: 0 auto 1.6rem; }
.dev-orbit .core { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #a78bfa, var(--purple) 60%, #3b0a7a); box-shadow: 0 0 60px rgba(124, 58, 237, .7); display: grid; place-items: center; }
.dev-orbit .core img { width: 48px; }
.dev-orbit .ring { position: absolute; inset: 0; border: 1.5px dashed rgba(167, 139, 250, .5); border-radius: 50%; animation: spin 14s linear infinite; }
.dev-orbit .ring::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #e879f9; box-shadow: 0 0 16px #e879f9; }
.dev-orbit .ring.r2 { inset: -18px; animation-duration: 22s; animation-direction: reverse; opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer */
.site-footer { position: relative; overflow: hidden; }
.foot-giant { font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(4rem, 2rem + 13vw, 15rem); line-height: .8; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(167, 139, 250, .22); text-align: center; margin: 2.5rem 0 -1.2rem; user-select: none; white-space: nowrap; }
.wa-float { animation: wa-pulse 2.4s infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- initial hidden states (only when JS animations run) */
.js.anim-on .reveal, .js.anim-on [data-anim] { opacity: 0; }
.js.anim-on .h-anim { opacity: 0; }

/* ---------- mobile */
@media (max-width: 860px) {
  .hero { min-height: auto; }
  .scroll-cue, .hero-grid { display: none; }
  .hero-orbs i:nth-child(1) { width: 280px; height: 280px; }
  .steps-line { display: none; }
  .marquee { transform: rotate(-1.5deg) scale(1.06); }
  .foot-giant { margin-top: 1.5rem; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 1.2rem; }
  .hero-stats div b { font-size: 1.5rem; }
  .fg-loader .mark { width: 90px; }
}

/* ---------- calm mode (device asks for reduced motion): JS adds .motion-lite */
.motion-lite .fg-loader, .motion-lite .fg-curtain, .motion-lite .fg-cursor, .motion-lite .fg-cursor-dot, .motion-lite .hero-particles, .motion-lite .scroll-cue { display: none !important; }
.motion-lite .hero-badge, .motion-lite .pk-card.featured, .motion-lite .t-card::before { animation: none !important; }

/* keep the floating WhatsApp button off the footer links */
.foot-bottom { padding-right: 72px; }
@media (max-width: 600px) { .foot-bottom { padding-right: 0; padding-bottom: 64px; } }

/* desktop: GSAP owns transforms of magnetic / tilt elements, so CSS must not animate them too (prevents flicker) */
.has-cursor [data-tilt], .has-cursor .btn, .has-cursor .wa-float, .has-cursor .socials a { transition-property: background, background-position, color, box-shadow, border-color !important; }
.has-cursor .t-card:hover, .has-cursor .pk-card:hover, .has-cursor .btn-primary:hover, .has-cursor .wa-float:hover { transform: none; }
