/* Landing motion — aurora, spotlight, marquee, hero halo (Phantom theme) */

.page-landing {
    --spot-x: 50%;
    --spot-y: 40%;
}

.page-landing .bg-effects::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--spot-x) var(--spot-y),
        rgba(255, 255, 255, 0.07) 0%,
        transparent 55%
    );
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0.85;
}

.landing-aurora {
    position: absolute;
    width: 140%;
    height: 60%;
    left: -20%;
    top: -15%;
    background: conic-gradient(
        from 200deg at 50% 50%,
        transparent 0deg,
        rgba(148, 163, 184, 0.14) 80deg,
        rgba(255, 255, 255, 0.08) 140deg,
        rgba(100, 116, 139, 0.12) 220deg,
        transparent 300deg
    );
    filter: blur(48px);
    opacity: 0.55;
    animation: landing-aurora-drift 28s ease-in-out infinite;
    pointer-events: none;
}

.landing-aurora-2 {
    top: auto;
    bottom: -25%;
    left: -30%;
    animation-duration: 34s;
    animation-direction: reverse;
    opacity: 0.35;
}

.landing-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
}

.landing-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.025) 48%,
        transparent 100%
    );
    background-size: 100% 220%;
    animation: landing-scan 8s linear infinite;
    opacity: 0.35;
    pointer-events: none;
}

@keyframes landing-aurora-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(4%, 3%) rotate(6deg) scale(1.05); }
    66% { transform: translate(-3%, 2%) rotate(-4deg) scale(0.98); }
}

@keyframes landing-scan {
    0% { background-position: 0% -100%; }
    100% { background-position: 0% 200%; }
}

.landing-nav {
    animation: landing-nav-in 0.9s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes landing-nav-in {
    from { opacity: 0; transform: translateY(-16px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.landing-hero-badge {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
    animation: landing-badge-glow 3.5s ease-in-out infinite;
}

.landing-hero-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: landing-sheen 4.5s ease-in-out infinite;
}

@keyframes landing-sheen {
    0%, 25% { transform: translateX(-120%); }
    55%, 100% { transform: translateX(120%); }
}

@keyframes landing-badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.05); border-color: var(--border); }
    50% { box-shadow: 0 0 32px rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
}

.landing-hero-scene-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-hero-halo {
    position: absolute;
    width: 115%;
    height: 115%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.14),
        rgba(148, 163, 184, 0.1),
        rgba(255, 255, 255, 0.02)
    );
    filter: blur(2px);
    animation: landing-halo-spin 18s linear infinite;
    opacity: 0.7;
    pointer-events: none;
}

.landing-hero-halo::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, var(--bg) 68%);
}

@keyframes landing-halo-spin {
    to { transform: rotate(360deg); }
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.45);
}

.btn-glow::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-130%);
    transition: transform 0.6s ease;
}

.btn-glow:hover::before {
    transform: translateX(130%);
}

.landing-marquee {
    position: relative;
    z-index: 10;
    max-width: 100%;
    margin: -40px 0 48px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.landing-marquee-track {
    display: flex;
    width: max-content;
    gap: 48px;
    animation: landing-marquee 42s linear infinite;
    padding: 14px 0;
}

.landing-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}

.landing-marquee-item i {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
}

@keyframes landing-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.landing-stats {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto 56px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.landing-stat-card {
    padding: 22px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: landing-stat-line 3s ease-in-out infinite;
}

@keyframes landing-stat-line {
    0%, 100% { opacity: 0.35; width: 30%; }
    50% { opacity: 1; width: 55%; }
}

.landing-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.landing-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.landing-features .feature-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.landing-features .feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 45%, rgba(255, 255, 255, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.landing-features .feature-card:hover::after {
    opacity: 1;
}

.landing-reveal {
    opacity: 1;
    transform: translateY(0);
    filter: none;
}

.landing-reveal.reveal-pending {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition:
        opacity 0.85s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.85s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.85s cubic-bezier(0.19, 1, 0.22, 1);
}

.landing-reveal.reveal-pending.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: none;
}

.landing-reveal-delay-1 { transition-delay: 0.08s; }
.landing-reveal-delay-2 { transition-delay: 0.16s; }
.landing-reveal-delay-3 { transition-delay: 0.24s; }
.landing-reveal-delay-4 { transition-delay: 0.32s; }

@media (max-width: 900px) {
    .landing-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .landing-hero-content {
        text-align: center;
    }

    .landing-hero-content h1,
    .landing-hero-content p {
        text-align: center;
    }

    .landing-hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero-actions {
        justify-content: center;
    }

    .landing-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-aurora,
    .landing-marquee-track,
    .landing-hero-halo,
    .landing-scanline,
    .landing-hero-badge::after {
        animation: none !important;
    }

    .landing-reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
