/* =================================================================
   LUMEN — landing polish (loaded AFTER style.css to override).
   - Space Grotesk for body, richer typography
   - 2-column hero with gameplay video pane on the right
   - Aurora canvas background (GPU)
   - Scroll-reveal + tilt for game/feature cards
   - 60fps hover transforms (transform/opacity only)
   ================================================================= */

:root {
    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.6);
    --bg-base: #05070a;
    --card-bg: rgba(12, 18, 26, 0.55);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(0, 255, 136, 0.35);
}

body {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.description {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    letter-spacing: 0.1px;
    font-size: 1.08rem;
    max-width: 520px;
}

.brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

.product-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
}

/* =========== Aurora canvas background =========== */
.aurora-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: screen;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: block;
    padding: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0;
    /* Left padding matches .top-header (1.2rem 3rem) so LUMEN in the hero
       sits directly under LUMEN in the navbar; small top padding so it
       starts right below the header. */
    padding: 32px 3rem 80px;
}

.hero-content {
    min-width: 0;
    animation: heroSlideIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes heroSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* =========== Gameplay video pane =========== */
.hero-media {
    position: relative;
    width: 100%;
    min-width: 0;
    animation: heroSlideIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s backwards;
}

.media-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid rgba(0, 255, 136, 0.22);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 60px rgba(0, 255, 136, 0.1);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.media-frame:hover {
    transform: translateY(-4px);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 90px rgba(0, 255, 136, 0.18);
}

.media-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.35) 0%, transparent 45%);
    pointer-events: none;
    animation: mediaGlowDrift 14s ease-in-out infinite alternate;
    filter: blur(30px);
    opacity: 0.55;
}

@keyframes mediaGlowDrift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(20%, 10%); }
}

.media-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.media-placeholder svg {
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.4));
    color: rgba(0, 255, 136, 0.5);
}

.media-controls {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s;
}

.media-frame:hover .media-controls,
.media-controls:focus-within {
    opacity: 1;
    transform: translateY(0);
}

.mc-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
}

.mc-btn:hover { color: var(--accent); background: rgba(0, 255, 136, 0.1); }

.mc-spacer { flex: 1; }

.mc-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mc-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.9);
    animation: mcPulse 1.8s ease-in-out infinite;
}

@keyframes mcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* =========== Mobile hero =========== */
@media (max-width: 960px) {
    .hero-grid { padding: 60px 22px 40px; }
}

/* =========== Game/Feature cards polish =========== */
.game-card,
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateZ(0);
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.game-card:hover,
.feature-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--card-border-hover);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 0 36px rgba(0, 255, 136, 0.12);
}

/* tilt effect variables (populated by card-fx.js) */
.card-tilt {
    transform: perspective(900px)
               rotateX(var(--tilt-x, 0deg))
               rotateY(var(--tilt-y, 0deg))
               translateY(-6px) scale(1.015) !important;
}

/* =========== Scroll reveal =========== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* =========== Section titles =========== */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.55) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========== Buttons — subtle shimmer on primary =========== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.btn-primary:hover::before { left: 140%; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.25);
}

/* =========== Reduced motion =========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .aurora-canvas { display: none; }
}
