/*
 * Landing page. Brand colours: purple #521cb5, orange #f65904. Orange buttons carry DARK text (5.3:1);
 * white on that orange would only reach 3.3:1.
 *
 * A few effects are ported to plain CSS from component collections that are normally React-only:
 *   Magic UI: shimmer button, marquee      Aceternity UI: spotlight card, bento grid
 *   UIverse: the pure-CSS button/loader style    React Bits: split-text and count-up (done in home.js)
 */
:root { --deep: #1b0a3d; --purple: #521cb5; --orange: #f65904; --lilac: #e9e2fb; --ink: #1a1033; }

.section { padding: 4rem 0; }
.section-alt { background: #f8f9fa; }
.section-kicker { color: var(--orange); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.4rem; color: #b13d00; }
.section-heading { font-weight: 700; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

/* scroll progress */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 2000; pointer-events: none; }
.scroll-progress-bar { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--orange); }

/* hero */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1100px 520px at 82% -8%, rgba(246,89,4,0.38), transparent 60%),
                linear-gradient(135deg, var(--deep) 0%, #34108a 55%, var(--purple) 100%);
    padding: 4.5rem 0 7rem;
}
/* The liquid canvas is added by script behind the content; without it (no WebGL) the gradient above stays. */
.liquid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.has-liquid .hero-blob { opacity: 0.22; mix-blend-mode: screen; } /* soft depth glows (Rellax parallax) above the liquid */
.final-cta { position: relative; overflow: hidden; }
.final-cta > .container { position: relative; z-index: 1; }
.hero-particles { position: absolute; inset: 0; z-index: 0; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.45; z-index: 0; pointer-events: none; }
.hero-blob-1 { width: 360px; height: 360px; background: var(--orange); right: -90px; top: 40px; }
.hero-blob-2 { width: 300px; height: 300px; background: #8a5cff; left: -80px; bottom: 30px; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 920px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-size: 0.85rem; color: #ffd9c2; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.2rem, 6.2vw, 4.4rem); font-weight: 700; line-height: 1.08; margin-bottom: 1.1rem; letter-spacing: -0.01em; text-wrap: balance; }
.hero-title .word { display: inline-block; }
/* Hidden only while the headline animation is about to run (the page script removes this class). */
.anim .hero-title { visibility: hidden; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--lilac); max-width: 720px; margin: 0 auto 1.8rem; line-height: 1.55; }
.hero-date { font-weight: 700; color: #fff; white-space: nowrap; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-bottom: 1.4rem; }
.hero-trust { list-style: none; padding: 0; margin: 0 0 2.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; color: var(--lilac); font-size: 0.95rem; }
.hero-trust i { color: #ffb184; margin-right: 0.35rem; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; z-index: 1; display: block; }

/* buttons */
.btn-cta { background: var(--orange); border: 2px solid var(--orange); color: var(--ink); font-weight: 700; padding: 0.8rem 1.7rem; border-radius: 0.6rem; box-shadow: 0 10px 28px rgba(246,89,4,0.35); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn-cta:hover, .btn-cta:focus-visible { background: #ff7a2e; border-color: #ff7a2e; color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(246,89,4,0.45); }
.btn-cta:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,0.7); color: #fff; font-weight: 700; padding: 0.8rem 1.7rem; border-radius: 0.6rem; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); border-color: #fff; }
.hvr-sweep-to-right:before { background: #fff; }

/* Magic UI style shimmer */
.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent); transform: skewX(-20deg); animation: shimmer 3.2s ease-in-out infinite; }
@keyframes shimmer { 0%, 55% { left: -120%; } 100% { left: 160%; } }

/* countdown */
.countdown { display: flex; justify-content: center; gap: clamp(0.5rem, 2vw, 1rem); }
.cd-tile { min-width: clamp(64px, 14vw, 104px); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: 0.8rem; padding: 0.7rem 0.4rem; backdrop-filter: blur(6px); }
.cd-num { display: block; font-size: clamp(1.7rem, 5vw, 2.8rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lilac); margin-top: 0.35rem; }
.countdown-note { margin: 1rem 0 0; color: var(--lilac); min-height: 1.5em; }

/* pulse tiles */
.pulse-tile { background: #fff; border-radius: 0.8rem; box-shadow: 0 4px 18px rgba(82,28,181,0.1); padding: 1.1rem 1rem; text-align: center; height: 100%; border-top: 4px solid var(--purple); }
.pulse-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--purple); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pulse-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: rgba(33,37,41,0.75); margin-top: 0.3rem; }

/* marquee (Magic UI) */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0.8rem; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chip { white-space: nowrap; background: #f1ecfc; color: var(--purple); font-weight: 700; padding: 0.45rem 1.1rem; border-radius: 999px; font-size: 0.95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* steps */
.steps { position: relative; display: flow-root; padding-top: 20px; }
.steps-line { position: absolute; left: 0; top: -19px; width: 100%; height: 80px; z-index: 0; overflow: visible; }
.steps-line path { vector-effect: non-scaling-stroke; }
.step-card { position: relative; z-index: 1; background: #fff; border-radius: 1rem; padding: 2.2rem 1.5rem 1.6rem; box-shadow: 0 6px 24px rgba(33,37,41,0.08); height: 100%; text-align: center; }
.step-card h3 { font-weight: 700; font-size: 1.25rem; margin: 0.6rem 0 0.5rem; }
.step-card p { color: rgba(33,37,41,0.8); margin: 0; }
.step-num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 5px #fff; }
@media (min-width: 768px) { .steps { padding-top: 32px; } .step-num { top: -30px; } }
.step-icon { font-size: 2.4rem; color: var(--purple); display: block; }

/* spotlight (Aceternity) */
.spotlight { position: relative; overflow: hidden; --mx: 50%; --my: 50%; }
.step-card.spotlight { overflow: visible; }
.spotlight::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(82,28,181,0.13), transparent 70%); }
.spotlight:hover::before { opacity: 1; }

/* bento */
.bento-card { background: #fff; border-radius: 1rem; padding: 1.6rem; box-shadow: 0 6px 24px rgba(33,37,41,0.08); border: 1px solid #eee; }
.bento-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.bento-head i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 0.6rem; background: #f1ecfc; color: var(--purple); font-size: 1.2rem; }
.bento-head h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.bento-card > p { color: rgba(33,37,41,0.8); }

.demo-form { background: #f8f9fa; border-radius: 0.7rem; padding: 1rem; font-size: 0.95rem; }
.demo-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px dashed #dee2e6; min-height: 2.4rem; }
.demo-row:last-of-type { border-bottom: 0; }
.demo-row span { width: 8.6rem; flex: 0 0 auto; color: rgba(33,37,41,0.75); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.demo-row b { font-weight: 700; color: var(--ink); }
.demo-caret { width: 2px; height: 1.1em; background: var(--purple); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chip { border: 1.5px solid #d6c8f5; background: #fff; color: var(--purple); font-weight: 700; border-radius: 999px; padding: 0.4rem 0.95rem; font-size: 0.85rem; min-height: 40px; }
.chip.is-on, .chip:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.match-list { list-style: none; padding: 0; margin: 0; }
.match-list li { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; border-radius: 0.6rem; background: #f8f9fa; margin-bottom: 0.45rem; }
.match-list .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e5dcf9; color: var(--purple); font-weight: 700; font-size: 0.85rem; flex: 0 0 auto; }
.match-list .who { font-weight: 700; line-height: 1.2; }
.match-list .meta { font-size: 0.8rem; color: rgba(33,37,41,0.75); }
.match-list .why { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--purple); background: #ece6fb; padding: 0.2rem 0.5rem; border-radius: 0.4rem; white-space: nowrap; }

.route-map { width: 100%; height: auto; background: #f8f9fa; border-radius: 0.7rem; }
.city-bars .bar-row { margin-bottom: 0.55rem; }
.city-bars .bar-fill { width: 0; }

/* FAQ */
.accordion-button { font-weight: 700; }
.accordion-button:not(.collapsed) { color: var(--purple); background: #f6f2fe; }

/* final CTA */
.final-cta { background: linear-gradient(135deg, var(--deep), var(--purple)); color: #fff; padding: 4.5rem 0; }
.final-title { font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); }
#rnSeat { display: inline-block; margin: 0 0.2em; }
.final-sub { color: var(--lilac); font-size: 1.15rem; margin-bottom: 1.6rem; }

/* sticky call-to-action (phones) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); box-shadow: 0 -6px 18px rgba(0,0,0,0.12); z-index: 1040; }
.sticky-cta .btn-cta { padding: 0.85rem 1rem; }
#go-top { bottom: 84px; }
@media (min-width: 768px) { #go-top { bottom: 30px; } }

@media (max-width: 768px) {
    .hero { padding: 2.5rem 0 5rem; }
    .section { padding: 3rem 0; }
    .btn-cta, .btn-ghost { width: 100%; }
    .hero-cta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .shimmer-btn::after, .demo-caret { animation: none; }
    .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
    .marquee-track { animation: none; }
    .hero-blob { display: none; }
}

/* Sections have solid backgrounds, so the fixed picture behind the page is hidden everywhere except in the window band below. */
.section { background: #fff; }
.section-alt { background: #f8f9fa; }
body[data-page="home"] footer { position: relative; z-index: 1; }

/* ---- The window: a see-through band just before the FAQ, full width ---------------------------------------------
 * Behind the page a full-screen copy of the collage is fixed in place. The sections are solid, so it shows only through this band,
 * and as you scroll the band slides over the fixed picture. */
.reveal-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--deep); opacity: 0; transition: opacity 0.5s ease; }
.reveal-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reveal-layer.is-on { opacity: 1; }
.reveal-band { position: relative; padding: 0; background: transparent; }   /* edge to edge: white shows only above and below */
.reveal-hole { position: relative; height: clamp(260px, 60vh, 560px); }
.reveal-caption {
    position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); margin: 0; padding: 0.4rem 0.8rem; border-radius: 999px;
    background: rgba(19, 7, 55, 0.82); color: #fff; font-size: 0.8rem;
}
@media (max-width: 767px) { .reveal-hole { height: clamp(220px, 44vh, 440px); } }
