/* ═══════════════════════════════════════════════════════════════
   LUMINA — Landing Page (Enter The Future)
   Immersive intro experience
   ═══════════════════════════════════════════════════════════════ */

/* ── Landing Overlay ───────────────────────────────────────── */
.landing-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 1.2s var(--ease-out), visibility 1.2s;
}

.landing-overlay.dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── 3D Scene Container ───────────────────────────────────── */
.landing-3d-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#landing-3d {
    width: 100%;
    height: 100%;
}

/* ── Landing Content ───────────────────────────────────────── */
.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

/* Intro Text */
.landing-tagline {
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    opacity: 0;
    transform: translateY(20px);
    animation: landingFadeUp 1s var(--ease-out) 0.5s forwards;
}

.landing-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(30px);
    animation: landingFadeUp 1s var(--ease-out) 0.8s forwards;
}

.landing-title .title-glow {
    background: linear-gradient(135deg, var(--accent) 0%, #c084fc 50%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.landing-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-tertiary);
    max-width: 480px;
    opacity: 0;
    transform: translateY(20px);
    animation: landingFadeUp 1s var(--ease-out) 1.1s forwards;
}

/* Activate Button */
.landing-btn {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: landingFadeUp 1s var(--ease-spring) 1.5s forwards;
}

.btn-activate {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-bright) 0%, #8b5cf6 100%);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.btn-activate::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-bright), #c084fc, var(--accent));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s;
}

.btn-activate:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-activate:hover::before {
    opacity: 1;
}

.btn-activate:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-activate-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: btnPulseRing 2s ease-out infinite;
    border: 2px solid var(--accent);
    pointer-events: none;
}

/* Scroll hint */
.landing-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: landingFadeUp 1s var(--ease-out) 2.5s forwards;
}

.scroll-hint-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* Ambient glow behind content */
.landing-ambient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: ambientFloat 8s ease-in-out infinite;
}

/* ── Sound Toggle ──────────────────────────────────────────── */
.landing-sound-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
    opacity: 0;
    animation: landingFadeUp 1s var(--ease-out) 2s forwards;
}

.landing-sound-toggle:hover {
    background: var(--accent-dim);
    border-color: var(--accent-border);
    color: var(--accent);
}

.landing-sound-toggle svg {
    width: 16px;
    height: 16px;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes landingFadeUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes btnPulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 0.8; transform: scaleY(1); }
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* ── House Activation Sequence ─────────────────────────────── */
.landing-overlay.activating .landing-content {
    animation: contentFadeOut 0.8s var(--ease-out) forwards;
}

@keyframes contentFadeOut {
    to {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
}
/* ═══════════════════════════════════════════════════════════════
   LUMINA — Landing Page (REFINED COLORS)
   Champagne gold + obsidian
   ═══════════════════════════════════════════════════════════════ */

.landing-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 1.2s var(--ease-out), visibility 1.2s;
}

.landing-overlay.dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-3d-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#landing-3d {
    width: 100%;
    height: 100%;
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 20px;
}

.landing-tagline {
    font-size: clamp(0.7rem, 1.1vw, 0.82rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0;
    transform: translateY(20px);
    animation: landingFadeUp 1s var(--ease-out) 0.5s forwards;
    font-weight: 500;
}

.landing-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(30px);
    animation: landingFadeUp 1s var(--ease-out) 0.8s forwards;
}

.landing-title .title-glow {
    background: linear-gradient(135deg, var(--accent) 0%, #e8d5a8 50%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.landing-subtitle {
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    color: var(--text-tertiary);
    max-width: 460px;
    opacity: 0;
    transform: translateY(20px);
    animation: landingFadeUp 1s var(--ease-out) 1.1s forwards;
    line-height: 1.7;
}

/* Activate Button — gold gradient */
.landing-btn {
    margin-top: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: landingFadeUp 1s var(--ease-spring) 1.5s forwards;
}

.btn-activate {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #09090b;
    background: linear-gradient(135deg, var(--accent) 0%, #d4b87a 50%, #e0c88a 100%);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.btn-activate::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), #e8d5a8, var(--accent2));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(18px);
    transition: opacity 0.4s;
}

.btn-activate:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(200, 169, 110, 0.3);
}

.btn-activate:hover::before {
    opacity: 1;
}

.btn-activate:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-activate-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: btnPulseRing 2.5s ease-out infinite;
    border: 1.5px solid var(--accent);
    pointer-events: none;
}

/* Scroll hint */
.landing-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: landingFadeUp 1s var(--ease-out) 2.5s forwards;
}

.scroll-hint-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-hint-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.landing-ambient {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: ambientFloat 8s ease-in-out infinite;
}

/* Sound Toggle */
.landing-sound-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
    opacity: 0;
    animation: landingFadeUp 1s var(--ease-out) 2s forwards;
}

.landing-sound-toggle:hover {
    background: var(--accent-dim);
    border-color: var(--accent-border);
    color: var(--accent);
}

.landing-sound-toggle svg {
    width: 14px;
    height: 14px;
}

/* Animations */
@keyframes landingFadeUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes btnPulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 0.7; transform: scaleY(1); }
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

.landing-overlay.activating .landing-content {
    animation: contentFadeOut 0.8s var(--ease-out) forwards;
}

@keyframes contentFadeOut {
    to {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
}