[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }
body { background: #fffaf0; }

/* ── Nav link hover glow ── */
.nav-link {
    position: relative;
}
.nav-link:hover {
    background: rgba(99,102,241,0.08);
    box-shadow: 0 10px 28px rgba(99,102,241,0.12);
}


/* ═══════════════════════════════════════════════════
   GLOWING GRID: brighter, animated futuristic lines
   ═══════════════════════════════════════════════════ */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(99,102,241,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.65;
}

@keyframes gridPulse {
    0%   { opacity: 0.7; }
    50%  { opacity: 1; }
    100% { opacity: 0.7; }
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 520px 380px at 8% 8%, rgba(99,102,241,0.10), transparent),
        radial-gradient(ellipse 460px 330px at 92% 8%, rgba(34,211,238,0.10), transparent),
        radial-gradient(ellipse 520px 360px at 50% 20%, rgba(245,158,11,0.08), transparent);
}

header, main, section, footer { position: relative; z-index: 1; }


/* ═══════════════════════════════════════════════════
   TWINKLING STARS: night sky atmosphere
   ═══════════════════════════════════════════════════ */

.star {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: white;
    animation: twinkle var(--star-dur, 3s) ease-in-out infinite;
    animation-delay: var(--star-delay, 0s);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; }
    50%      { opacity: 0.45; }
}


/* ═══════════════════════════════════════════════════
   SPARKS: flashing electrical sparks
   ═══════════════════════════════════════════════════ */

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    animation: sparkFlash var(--spark-dur, 2.5s) ease-in-out infinite;
    animation-delay: var(--spark-delay, 0s);
}

@keyframes sparkFlash {
    0%, 100% { opacity: 0; transform: scale(0); }
    15%      { opacity: 0.6; transform: scale(1); box-shadow: 0 0 4px 2px rgba(255,255,255,0.5), 0 0 10px 4px rgba(99,102,241,0.3); }
    30%      { opacity: 0.3; transform: scale(0.6); box-shadow: 0 0 2px 1px rgba(255,255,255,0.2); }
    45%      { opacity: 0; transform: scale(0); }
}


/* ═══════════════════════════════════════════════════
   HERO: concentrated aurora beam (deeper sky)
   ═══════════════════════════════════════════════════ */

.hero-mesh {
    position: relative;
    overflow: hidden;
}
.hero-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% -5%, rgba(30,58,138,0.60), transparent 70%),
        radial-gradient(ellipse 45% 40% at 50% -8%, rgba(88,28,135,0.50), transparent 65%),
        radial-gradient(ellipse 35% 30% at 50% 0%, rgba(34,211,238,0.15), transparent 55%),
        radial-gradient(ellipse 20% 15% at 50% 0%, rgba(255,255,255,0.06), transparent 40%),
        radial-gradient(ellipse 80% 50% at 25% 20%, rgba(30,58,138,0.14), transparent),
        radial-gradient(ellipse 80% 50% at 75% 20%, rgba(88,28,135,0.12), transparent);
    animation: beamPulse 8s ease-in-out infinite alternate;
    z-index: 1;
}
.hero-mesh::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg, transparent 3%, rgba(99,102,241,0.9) 20%, rgba(139,92,246,1) 50%, rgba(99,102,241,0.9) 80%, transparent 97%);
    filter: blur(1px);
    z-index: 2;
}
@keyframes beamPulse {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.85; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}


/* ═══════════════════════════════════════════════════
   FLOATING PARTICLES
   ═══════════════════════════════════════════════════ */

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(99,102,241,0.8);
    border-radius: 50%;
    animation: floatUp linear infinite;
    box-shadow: 0 0 10px rgba(99,102,241,0.5);
}
.particle:nth-child(2) { left: 15%; width: 1.5px; height: 1.5px; animation-duration: 18s; animation-delay: 2s; background: rgba(139,92,246,0.7); box-shadow: 0 0 10px rgba(139,92,246,0.4); }
.particle:nth-child(3) { left: 35%; animation-duration: 22s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; width: 1.5px; height: 1.5px; animation-duration: 16s; animation-delay: 1s; background: rgba(34,211,238,0.7); box-shadow: 0 0 10px rgba(34,211,238,0.4); }
.particle:nth-child(5) { left: 75%; animation-duration: 20s; animation-delay: 3s; }
.particle:nth-child(6) { left: 90%; width: 1.5px; height: 1.5px; animation-duration: 24s; animation-delay: 5s; background: rgba(139,92,246,0.6); }
.particle:nth-child(1) { left: 5%; animation-duration: 20s; }
@keyframes floatUp {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}


/* ═══════════════════════════════════════════════════
   GRADIENT TEXT
   ═══════════════════════════════════════════════════ */

.gradient-text {
    background: linear-gradient(135deg, #818CF8 0%, #C084FC 40%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #4F46E5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.section-kicker::before {
    content: '';
    width: 1.75rem;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22D3EE, #A855F7);
    box-shadow: 0 0 18px rgba(99,102,241,0.22);
}

.quest-orbit {
    background:
        radial-gradient(circle at 50% 50%, rgba(34,211,238,0.18), transparent 32%),
        conic-gradient(from 90deg, rgba(34,211,238,0), rgba(34,211,238,0.22), rgba(168,85,247,0.35), rgba(34,211,238,0));
    filter: blur(12px);
    animation: questOrbit 12s linear infinite;
}

@keyframes questOrbit {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1); }
}

.quest-device {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03)),
        radial-gradient(circle at 20% 0%, rgba(34,211,238,0.18), transparent 36%),
        radial-gradient(circle at 80% 100%, rgba(168,85,247,0.22), transparent 40%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        0 30px 100px rgba(0,0,0,0.45),
        0 0 80px rgba(99,102,241,0.16),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.quest-world-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.quest-world-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -35% -20%;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12));
    transform: rotate(-4deg);
}


/* ═══════════════════════════════════════════════════
   GLASSMORPHISM CARDS
   ═══════════════════════════════════════════════════ */

.glass-card {
    background: rgba(6,6,30,0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99,102,241,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(12,12,40,0.80);
    border-color: rgba(99,102,241,0.6);
    box-shadow:
        0 0 20px rgba(99,102,241,0.35),
        0 0 50px rgba(99,102,241,0.22),
        0 0 100px rgba(139,92,246,0.15),
        0 0 160px rgba(139,92,246,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-6px);
}


/* ═══════════════════════════════════════════════════
   GLOW BUTTON
   ═══════════════════════════════════════════════════ */

.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-glow::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #6366F1, #A855F7, #22D3EE);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(16px);
}
.btn-glow:hover::before {
    opacity: 0.8;
}
.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99,102,241,0.4);
}


/* ═══════════════════════════════════════════════════
   SECTION GLOW DIVIDER
   ═══════════════════════════════════════════════════ */

.section-glow {
    position: relative;
    overflow: hidden;
}
.section-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.8), rgba(139,92,246,0.8), transparent);
}
.section-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 160px;
    background: radial-gradient(ellipse at top, rgba(99,102,241,0.14), transparent);
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════
   DOT GRID (subtle extra texture)
   ═══════════════════════════════════════════════════ */

.dot-grid {
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}


/* ═══════════════════════════════════════════════════
   SECTION GLOW ORBS
   ═══════════════════════════════════════════════════ */

.glow-orb-left { position: relative; }
.glow-orb-left::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30,58,138,0.16), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-right { position: relative; }
.glow-orb-right::before {
    content: '';
    position: absolute;
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(88,28,135,0.14), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-center { position: relative; }
.glow-orb-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(30,58,138,0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}


@keyframes shimmer {
    0%   { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ═══════════════════════════════════════════════════
   MISC UI
   ═══════════════════════════════════════════════════ */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
    max-height: 500px;
}

.pathway-line { position: relative; }
.pathway-line::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #6366F1, #A855F7);
    opacity: 0.3;
}

.status-confirmed { background: rgba(34,197,94,0.1); color: #22c55e; }
.status-pending   { background: rgba(245,158,11,0.1); color: #f59e0b; }
.status-refunded  { background: rgba(239,68,68,0.1); color: #ef4444; }

.counter-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.showcase-image-card {
    background: rgba(6,6,30,0.70);
    border: 1px solid rgba(99,102,241,0.2);
    box-shadow: 0 12px 40px rgba(2,6,23,0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.showcase-image-card img {
    transition: transform 0.45s ease;
}

.showcase-image-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.6);
    box-shadow:
        0 0 20px rgba(99,102,241,0.35),
        0 0 50px rgba(99,102,241,0.22),
        0 0 100px rgba(139,92,246,0.15),
        0 0 160px rgba(139,92,246,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.showcase-image-card:hover img {
    transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════
   THEMED SCROLLBAR
   ═══════════════════════════════════════════════════ */

.themed-scroll::-webkit-scrollbar {
    width: 5px;
}
.themed-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
}
.themed-scroll::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.35);
    border-radius: 999px;
}
.themed-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(99,102,241,0.55);
}
.themed-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.35) rgba(255,255,255,0.03);
}
