/* =====================================================
   landing.css — Bridge-AI Premium Loader Page
===================================================== */

body.landing-page {
    margin: 0;
    overflow: hidden;
    min-height: 100vh;
    background: #050505;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

.landing-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
}


/* ===== Background Video ===== */

.landing-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #050505;
}

.landing-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: grayscale(1) contrast(1.15) brightness(0.55);
}

.landing-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12), transparent 32%), linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.86)), linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.82));
}

.landing-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.22;
    pointer-events: none;
}


/* ===== Content ===== */

.landing-content {
    position: relative;
    z-index: 3;
    width: min(100%, 980px);
    padding: 0 24px;
    text-align: center;
}

.bridge-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: clamp(34px, 5vw, 64px);
    opacity: 0;
    animation: landingFadeUp 0.8s ease forwards;
}

.bridge-node {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.055);
    display: grid;
    place-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bridge-node span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.bridge-line {
    position: relative;
    width: clamp(110px, 20vw, 240px);
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.bridge-line span {
    position: absolute;
    inset: 0;
    width: 45%;
    background: #ffffff;
    animation: bridgeMove 1.4s ease-in-out infinite;
}

.landing-logo {
    color: #ffffff;
    font-size: clamp(58px, 12vw, 176px);
    font-weight: 400;
    letter-spacing: -0.08em;
    line-height: 0.86;
    opacity: 0;
    animation: landingFadeUp 0.9s ease 0.25s forwards;
}

.landing-tagline {
    max-width: 680px;
    margin: clamp(24px, 3vw, 38px) auto 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.75;
    opacity: 0;
    animation: landingFadeUp 0.9s ease 0.45s forwards;
}

.landing-loading-text {
    margin-top: clamp(34px, 4vw, 52px);
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0;
    animation: landingFadeUp 0.9s ease 0.65s forwards, pulseText 1.2s ease-in-out 1.2s infinite;
}


/* ===== Skip Button ===== */

.landing-skip {
    position: fixed;
    right: clamp(18px, 3vw, 42px);
    bottom: clamp(18px, 3vw, 42px);
    z-index: 4;
    opacity: 0;
    animation: landingFadeIn 0.8s ease 1s forwards;
}

.landing-skip a {
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.landing-skip a:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: #050505;
    border-color: #ffffff;
}


/* ===== Animations ===== */

@keyframes bridgeMove {
    0% {
        transform: translateX(-110%);
    }
    50% {
        transform: translateX(75%);
    }
    100% {
        transform: translateX(240%);
    }
}

@keyframes landingFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landingFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulseText {
    0%,
    100% {
        opacity: 0.42;
    }
    50% {
        opacity: 0.86;
    }
}


/* ===== Responsive ===== */

@media (max-width: 768px) {
    .bridge-node {
        width: 62px;
        height: 62px;
    }
    .bridge-line {
        width: 90px;
    }
    .landing-logo {
        font-size: clamp(52px, 18vw, 92px);
    }
    .landing-skip {
        left: 18px;
        right: 18px;
    }
    .landing-skip a {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bridge-loader {
        gap: 12px;
    }
    .bridge-node {
        width: 54px;
        height: 54px;
    }
    .bridge-node span {
        font-size: 9px;
        letter-spacing: 0.14em;
    }
    .bridge-line {
        width: 64px;
    }
    .landing-tagline {
        font-size: 14px;
    }
}