body.lavi-live *,
body.lavi-live *::before,
body.lavi-live *::after {
    box-sizing: border-box;
}

/* ===========================
   MOON BACKGROUND UPGRADE
=========================== */

body.lavi-live {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #e6f1ff;

    background: 
        linear-gradient(rgba(0, 5, 20, 0.85), rgba(0, 5, 20, 0.95)),
        url("/assets/moonlive.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    min-height: 100vh;
}

body.lavi-live::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0,255,255,0.05), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0,150,255,0.05), transparent 40%);
    pointer-events: none;
    animation: spaceDrift 40s linear infinite alternate;
}

@keyframes spaceDrift {
    from { transform: translate(0px, 0px); }
    to { transform: translate(-30px, -20px); }
}


/* ===========================
   PERFECT CENTER HERO FIX
=========================== */

body.lavi-live .hero {
    position: relative;
    min-height: 100vh; /* full screen */
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

/* Dark overlay for readability */

body.lavi-live .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 5, 20, 0.85),
        rgba(0, 5, 20, 0.6)
    );
    z-index: 0;
}

/* Subtle stars */

body.lavi-live .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 90px 90px;
    opacity: 0.05;
    animation: moveStars 180s linear infinite;
    z-index: 0;
}

@keyframes moveStars {
    from { transform: translate(0,0); }
    to { transform: translate(-300px, -300px); }
}

/* Content wrapper */

body.lavi-live .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Heading */

body.lavi-live .hero h1 {
    font-size: 64px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: #ffffff;
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 15px #00f0ff;
    }
    50% {
        text-shadow: 0 0 40px #00ccff;
    }
    100% {
        text-shadow: 0 0 15px #00f0ff;
    }
}

/* Subtitle */

body.lavi-live .hero p {
    font-size: 20px;
    opacity: 0.85;
    margin-bottom: 30px;
}

/* Live Badge */

body.lavi-live .live-badge {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    letter-spacing: 2px;
    border-radius: 40px;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    animation: blinkLive 1.2s infinite;
}

@keyframes blinkLive {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ===========================
   LIVE CONTAINER UPGRADE
=========================== */

body.lavi-live .live-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(10, 20, 40, 0.6);
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0, 170, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.2);
    overflow: hidden;
}

/* Animated energy border */

body.lavi-live .live-container::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(90deg, #00f0ff, transparent, #00f0ff);
    background-size: 200% 200%;
    animation: borderFlow 6s linear infinite;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Timeline vertical line */

body.lavi-live #updates {
    position: relative;
    padding-left: 30px;
}

body.lavi-live #updates::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #00f0ff, transparent);
    opacity: 0.4;
}

/* Update card redesign */

body.lavi-live .update-card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0, 200, 255, 0.15);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 14px;
    transition: 0.3s ease;
}

/* Timeline dot */

body.lavi-live .update-card::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 22px;
    width: 12px;
    height: 12px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f0ff;
}

/* Hover glow */

body.lavi-live .update-card:hover {
    transform: translateY(-4px);
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Time style */

body.lavi-live .update-time {
    font-size: 12px;
    letter-spacing: 1px;
    color: #00f0ff;
    margin-bottom: 6px;
}

/* Title style */

body.lavi-live .update-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

/* Content */

body.lavi-live .update-content {
    line-height: 1.6;
    opacity: 0.85;
}

/* ===== L-AVI MODEL SECTION ===== */
body.lavi-live .model-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(10, 20, 40, 0.55);
    border-radius: 22px;
    border: 1px solid rgba(0, 200, 255, 0.18);
    box-shadow: 0 0 40px rgba(0, 170, 255, 0.08);
    backdrop-filter: blur(12px);
}

body.lavi-live .model-header h2 {
    font-size: 28px;
    margin-bottom: 14px;
    color: #ffffff;
}

body.lavi-live .model-header p {
    color: #c7d7f0;
    line-height: 1.6;
}

body.lavi-live .model-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

body.lavi-live .model-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(0, 200, 255, 0.16);
}

body.lavi-live .model-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
}

body.lavi-live .model-card p {
    color: #c7d7f0;
    line-height: 1.5;
    font-size: 14px;
}

body.lavi-live .cta-bar {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

body.lavi-live .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #00f0ff;
    color: #00121a;
    text-decoration: none;
    font-weight: 600;
}

body.lavi-live .ghost-link {
    color: #8bdfff;
    text-decoration: none;
    font-weight: 500;
}

body.lavi-live .ghost-link:hover {
    color: #ffffff;
}

/* ===== DEMO PAGE ===== */
body.lavi-live .demo-hero h1 {
    font-size: 56px;
}

body.lavi-live .demo-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(10, 20, 40, 0.55);
    border-radius: 22px;
    border: 1px solid rgba(0, 200, 255, 0.18);
    box-shadow: 0 0 40px rgba(0, 170, 255, 0.08);
    backdrop-filter: blur(12px);
}

body.lavi-live .pipeline-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

body.lavi-live .connector-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
}

body.lavi-live .metrics-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

body.lavi-live .metric-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(0, 200, 255, 0.16);
    text-align: center;
}

body.lavi-live .metric-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
}

body.lavi-live .metric-card p {
    font-size: 24px;
    font-weight: 600;
    color: #00f0ff;
}

body.lavi-live .metric-card span {
    display: block;
    margin-top: 6px;
    color: #c7d7f0;
    font-size: 13px;
}

body.lavi-live .demo-timeline {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}

body.lavi-live .demo-event {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 200, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

body.lavi-live .demo-event span {
    font-size: 12px;
    letter-spacing: 2px;
    color: #00f0ff;
    text-transform: uppercase;
}

body.lavi-live .demo-event p {
    margin-top: 8px;
    color: #c7d7f0;
}

body.lavi-live .sample-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

body.lavi-live .sample-card {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 200, 255, 0.16);
}

body.lavi-live .sample-card img {
    width: 100%;
    display: block;
}

body.lavi-live .sample-card h4 {
    padding: 12px 14px 16px;
    font-size: 14px;
    color: #c7d7f0;
}

@media (max-width: 768px) {
    body.lavi-live .demo-hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 900px) {
    body.lavi-live {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.lavi-live *,
    body.lavi-live *::before,
    body.lavi-live *::after {
        animation: none !important;
        transition: none !important;
    }

    body.lavi-live {
        background-attachment: scroll;
    }
}
