/* ==========================================================================
   Gusa Events - Home page upgrade (hero, marquee, how-it-works, final CTA,
   scroll-reveal motion system). Loaded on the home page only.
   ========================================================================== */

:root {
    --hx-pink: #e11975;
    --hx-pink-2: #ff3d8b;
    --hx-gold: #f59e0b;
    --hx-violet: #7c3aed;
    --hx-ink: #0f172a;
    --hx-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- HERO ---------- */
.hx-hero.hero-modern {
    min-height: auto;
    padding: 168px 0 110px;
    background:
        radial-gradient(1200px 600px at 85% 20%, rgba(124, 58, 237, .28), transparent 60%),
        radial-gradient(900px 500px at 10% 90%, rgba(225, 25, 117, .30), transparent 60%),
        linear-gradient(180deg, rgba(11, 14, 32, .86) 0%, rgba(15, 23, 42, .94) 100%),
        url('../images/background/b5.jpg') center/cover no-repeat;
    background-attachment: scroll;
    isolation: isolate;
}
.hx-hero.hero-modern::after { height: 90px; }

.hx-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hx-aurora span {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
    animation: hx-drift 16s ease-in-out infinite alternate;
}
.hx-aurora span:nth-child(1) { width: 520px; height: 520px; left: -120px; top: 10%; background: #e11975; }
.hx-aurora span:nth-child(2) { width: 460px; height: 460px; right: -80px; top: -60px; background: #7c3aed; animation-duration: 20s; animation-delay: -6s; }
.hx-aurora span:nth-child(3) { width: 380px; height: 380px; left: 45%; bottom: -160px; background: #f59e0b; opacity: .35; animation-duration: 18s; animation-delay: -3s; }
@keyframes hx-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(60px, 40px, 0) scale(1.12); }
    100% { transform: translate3d(-40px, 70px, 0) scale(.95); }
}
.hx-sparkles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hx-sparkles i {
    position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, .7); opacity: 0;
    animation: hx-twinkle 4s ease-in-out infinite;
}
@keyframes hx-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }

.hx-hero .hero-badge { text-transform: none; letter-spacing: .2px; font-size: 14px; color: #ffd1e6; }
.hx-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #22c55e; position: relative;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: hx-ping 1.8s infinite;
}
@keyframes hx-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 100% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); } }

.hx-hero .hero-title {
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}
.hx-hero .hero-title .text-gradient { min-height: 1.1em; }
.hx-hero .hero-title .typed-cursor { color: var(--hx-gold); font-weight: 300; }
.hx-hero .hero-sub { font-size: 1.15rem; max-width: 560px; color: #d5dbe7; margin-bottom: 32px; }
.hx-hero .hero-sub strong { color: #fff; }

.hx-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hx-btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.hx-btn-shine::after {
    content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: -1;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg); animation: hx-shine 3.6s ease-in-out infinite;
}
@keyframes hx-shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }
.hx-wa-link {
    display: inline-flex; align-items: center; gap: 8px; color: #b7f5cb !important; font-weight: 600;
    text-decoration: none !important; padding: 10px 4px; transition: color .2s, transform .2s;
}
.hx-wa-link i { font-size: 20px; color: #25d366; }
.hx-wa-link:hover { color: #fff !important; transform: translateX(3px); }

.hx-trust { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hx-avatars { display: flex; }
.hx-avatars span {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 800; font-size: 13px; color: #fff; border: 2px solid #121a33; margin-left: -10px;
}
.hx-avatars span:first-child { margin-left: 0; }
.hx-trust-text { color: #cbd5e1; font-size: 14px; line-height: 1.35; }
.hx-trust-text .stars { color: #fbbf24; letter-spacing: 2px; margin-right: 6px; }
.hx-trust-text b { color: #fff; }

/* hero entrance (CSS only, no JS needed) */
.hx-in { opacity: 0; transform: translateY(26px); animation: hx-rise .9s var(--hx-ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes hx-rise { to { opacity: 1; transform: none; } }

/* card stack */
.hx-stage { position: relative; height: 560px; perspective: 1400px; }
.hx-stack {
    position: absolute; inset: 0; transform-style: preserve-3d;
    transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
    transition: transform .5s var(--hx-ease);
}
.hx-card {
    position: absolute; width: 250px; border-radius: 22px; overflow: hidden; background: #fff;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .12);
    opacity: 0; animation: hx-card-in 1.1s var(--hx-ease) forwards;
}
.hx-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hx-card-1 { height: 420px; left: 2%; top: 70px; --r: -11deg; animation-delay: .35s; }
.hx-card-2 { height: 430px; right: 0; top: 50px; --r: 10deg; animation-delay: .5s; }
.hx-card-3 { height: 470px; left: 50%; top: 20px; margin-left: -135px; width: 270px; --r: 0deg; z-index: 3; animation-delay: .7s; }
@keyframes hx-card-in {
    from { opacity: 0; transform: translateY(60px) rotate(var(--r)) scale(.92); }
    to { opacity: 1; transform: translateY(0) rotate(var(--r)) scale(1); }
}
.hx-card-float { animation: hx-card-in 1.1s var(--hx-ease) forwards, hx-bob 6s ease-in-out 1.8s infinite; }
@keyframes hx-bob {
    0%, 100% { transform: translateY(0) rotate(var(--r)); }
    50% { transform: translateY(-14px) rotate(var(--r)); }
}
.hx-card-3::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
    transform: translateX(-120%); animation: hx-gloss 5s ease-in-out 2.4s infinite;
}
@keyframes hx-gloss { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.hx-chip {
    position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; color: #0f172a;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
    opacity: 0; animation: hx-pop .7s var(--hx-ease) forwards, hx-bob2 5s ease-in-out infinite;
}
.hx-chip small { display: block; font-weight: 500; color: #64748b; font-size: 11px; }
.hx-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 15px; flex: none; }
.hx-chip-1 { left: -18px; top: 120px; animation-delay: 1.2s, 2s; }
.hx-chip-2 { right: -14px; top: 300px; animation-delay: 1.45s, 2.4s; }
.hx-chip-3 { left: 30px; bottom: 18px; animation-delay: 1.7s, 2.8s; }
@keyframes hx-pop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hx-bob2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.hx-scroll-cue {
    position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px;
}
.hx-scroll-cue::before {
    content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
    border-radius: 2px; background: #fff; animation: hx-wheel 1.8s ease-in-out infinite;
}
@keyframes hx-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- MARQUEE ---------- */
.hx-marquee {
    position: relative; overflow: hidden; padding: 22px 0; background: #fff;
    border-bottom: 1px solid #f1f5f9;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hx-marquee-track { display: flex; gap: 14px; width: max-content; animation: hx-marquee 38s linear infinite; }
.hx-marquee:hover .hx-marquee-track { animation-play-state: paused; }
.hx-marquee-item {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #1e293b;
    background: #f8fafc; border: 1px solid #eef2f7;
}
.hx-marquee-item i { color: var(--c, var(--hx-pink)); font-size: 16px; }
@keyframes hx-marquee { to { transform: translateX(-50%); } }

/* ---------- HOW IT WORKS ---------- */
.hx-how { position: relative; padding: 100px 0 90px; background: linear-gradient(180deg, #fff 0%, #fff7fb 100%); overflow: hidden; }
.hx-how::before {
    content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 25, 117, .10), transparent 65%);
}
.hx-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hx-steps-line {
    position: absolute; top: 46px; left: 16%; right: 16%; height: 3px; border-radius: 3px;
    background: #f1dbe7; overflow: hidden;
}
.hx-steps-line::after {
    content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, var(--hx-pink), var(--hx-gold));
    transition: transform 1.6s var(--hx-ease) .3s;
}
.hx-steps.is-in .hx-steps-line::after { transform: scaleX(1); }
.hx-step {
    position: relative; background: #fff; border-radius: 24px; padding: 30px 28px 28px; text-align: center;
    border: 1px solid #f3e8ef; box-shadow: 0 20px 45px -25px rgba(225, 25, 117, .35);
    transition: transform .4s var(--hx-ease), box-shadow .4s;
}
.hx-step:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -25px rgba(225, 25, 117, .5); }
.hx-step-num {
    position: relative; z-index: 2; width: 64px; height: 64px; margin: -2px auto 18px; border-radius: 20px;
    display: grid; place-items: center; color: #fff; font-size: 24px;
    background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 14px 30px -10px var(--a);
}
.hx-step-num b {
    position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%;
    background: #0f172a; color: #fff; font-size: 13px; display: grid; place-items: center; border: 3px solid #fff;
}
.hx-step h3 { font-size: 1.3rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.hx-step p { color: #64748b; margin: 0; line-height: 1.6; }
.hx-how-cta { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 46px; }
.hx-link-dark { color: #0f172a !important; font-weight: 700; text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px; }
.hx-link-dark i { color: #25d366; font-size: 20px; }
.hx-link-dark:hover { color: var(--hx-pink) !important; }

/* ---------- GALLERY CTA ---------- */
.hx-gallery-cta { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 48px; }

/* ---------- FINAL CTA ---------- */
.hx-final {
    position: relative; overflow: hidden; padding: 90px 0; color: #fff; text-align: center;
    background: linear-gradient(120deg, #b0105a 0%, #e11975 40%, #7c3aed 100%);
    background-size: 200% 200%; animation: hx-grad 12s ease infinite;
}
@keyframes hx-grad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hx-final::before, .hx-final::after {
    content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18);
    animation: hx-spin 30s linear infinite;
}
.hx-final::before { width: 420px; height: 420px; left: -140px; top: -180px; border-style: dashed; }
.hx-final::after { width: 300px; height: 300px; right: -90px; bottom: -150px; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-final h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; color: #fff; }
.hx-final p { font-size: 1.15rem; color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 30px; }
.hx-final .hx-cta-row { justify-content: center; }
.hx-btn-white {
    background: #fff; color: var(--hx-pink) !important; font-weight: 800; padding: 15px 32px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important;
    box-shadow: 0 16px 35px -12px rgba(0, 0, 0, .45); transition: transform .3s var(--hx-ease), box-shadow .3s;
}
.hx-btn-white:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 22px 40px -12px rgba(0, 0, 0, .5); }
.hx-btn-ghost {
    color: #fff !important; font-weight: 700; padding: 14px 28px; border-radius: 999px; text-decoration: none !important;
    border: 2px solid rgba(255, 255, 255, .6); display: inline-flex; align-items: center; gap: 10px; transition: background .3s, border-color .3s;
}
.hx-btn-ghost:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.hx-final-note { margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.hx-final-note i { margin: 0 4px 0 12px; }

/* ---------- SCROLL REVEAL ---------- */
.hx-reveal-on .hx-reveal {
    opacity: 0; transform: translateY(34px) scale(.98);
    transition: opacity .8s var(--hx-ease), transform .8s var(--hx-ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.hx-reveal-on .hx-reveal.is-in { opacity: 1; transform: none; }

/* ---------- PROGRESS BAR + BACK TO TOP ---------- */
#hxProgress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 3000; pointer-events: none;
    transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, var(--hx-pink), var(--hx-gold), var(--hx-violet));
}
#hxTop {
    position: fixed; right: 22px; bottom: 96px; z-index: 2000; width: 46px; height: 46px; border-radius: 50%; border: 0;
    color: #fff; background: linear-gradient(135deg, var(--hx-pink), #b0105a); box-shadow: 0 12px 28px -8px rgba(225, 25, 117, .6);
    opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: all .35s var(--hx-ease);
}
#hxTop.show { opacity: 1; transform: none; pointer-events: auto; }
#hxTop:hover { transform: translateY(-3px); }

/* ---------- small polish on existing sections ---------- */
.stat-strip { padding-top: 70px !important; padding-bottom: 40px !important; background: #fff; }
.stat-card { transition: transform .4s var(--hx-ease), box-shadow .4s; }
.stat-card:hover { transform: translateY(-6px); }
.category-card img { transition: transform 1.2s var(--hx-ease); }
.category-card:hover img { transform: scale(1.08); }
.platform-feature-card { transition: transform .4s var(--hx-ease), box-shadow .4s, border-color .4s; }
.platform-feature-card:hover { transform: translateY(-6px); }
.pricing-card { transition: transform .4s var(--hx-ease), box-shadow .4s; }
.pricing-card:hover { transform: translateY(-8px); }

.faq-accordion .accordion-button { width: 100%; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .hx-hero.hero-modern { padding: 190px 0 80px; text-align: left; }
    .hx-stage { height: 440px; margin-top: 10px; }
    .hx-card { width: 190px; }
    .hx-card-1 { height: 320px; left: 0; top: 60px; }
    .hx-card-2 { height: 330px; top: 50px; }
    .hx-card-3 { width: 210px; height: 370px; margin-left: -105px; top: 20px; }
    .hx-chip-1 { left: 0; top: 30px; }
    .hx-chip-2 { right: 0; top: 260px; }
    .hx-chip-3 { left: 10px; bottom: 0; }
    .hx-steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .hx-steps-line { top: 0; bottom: 0; left: 50%; right: auto; width: 3px; height: auto; }
    .hx-steps-line::after { transform-origin: top; transform: scaleY(0); }
    .hx-steps.is-in .hx-steps-line::after { transform: scaleY(1); }
    .hx-scroll-cue { display: none; }
}
@media (max-width: 575.98px) {
    .hx-hero.hero-modern { padding-top: 215px; }
    .hx-hero .hero-title { letter-spacing: -1px; }
    .hx-cta-row .btn-gusa-primary, .hx-cta-row .btn-gusa-outline { width: 100%; justify-content: center; }
    .hx-stage { height: 380px; }

    /* stats: keep big numbers on one line */
    .stat-card .stat-number-wrapper { font-size: 1.65rem !important; }
    .stat-card .stat-suffix { font-size: 1.25rem !important; }

    /* sample cards: two per row */
    #cardsGridContainer { --bs-gutter-x: .75rem; }
    #cardsGridContainer .luxury-phone-frame { border-width: 4px; border-radius: 20px; }
    #cardsGridContainer .phone-screen { border-radius: 16px; }
    #cardsGridContainer .card-status-pill, #cardsGridContainer .phone-notch { display: none; }
    #cardsGridContainer .card-title-text { font-size: .9rem; }
    #cardsGridContainer .card-subtitle-text { font-size: .72rem; }
    #cardsGridContainer .feature-chip { font-size: .62rem; padding: 2px 6px; }

    /* event types: shorter tiles */
    .category-card { height: 230px; }

    /* platform features: two per row, flagship full width */
    #platform .row > .col-lg-3 { flex: 0 0 50%; max-width: 50%; }
    #platform .row { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
    #platform .platform-feature-card { padding: 18px 14px; }
    #platform .platform-feature-card h3 { font-size: .95rem; }
    #platform .platform-feature-card p { font-size: .8rem; }
    #platform .feature-status-badge { font-size: .58rem; }

    .hx-card { width: 150px; }
    .hx-card-1 { height: 260px; }
    .hx-card-2 { height: 270px; }
    .hx-card-3 { width: 180px; height: 320px; margin-left: -90px; }
    .hx-chip { font-size: 12px; padding: 8px 10px; }
    .hx-chip .ic { width: 28px; height: 28px; font-size: 13px; }
    .hx-chip small { display: none; }
    .hx-how { padding: 70px 0; }
    .hx-final { padding: 70px 0; }
    #hxTop { right: 14px; bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    .hx-aurora span, .hx-sparkles i, .hx-marquee-track, .hx-final, .hx-final::before, .hx-final::after,
    .hx-btn-shine::after, .hx-card-3::after, .hx-pulse, .hx-scroll-cue::before { animation: none !important; }
    .hx-in, .hx-card, .hx-chip { animation: none !important; opacity: 1 !important; transform: none; }
    .hx-card { transform: rotate(var(--r)); }
    .hx-reveal-on .hx-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .hx-steps-line::after { transform: none !important; transition: none !important; }
}

/* register form CTA in brand colour on the home page */
#contact .btn-action-primary { background: linear-gradient(135deg, #e11975 0%, #b0105a 100%); box-shadow: 0 12px 26px -10px rgba(225, 25, 117, .6); }
