* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #00f0ff;
    --neon-pink: #ff006e;
    --neon-purple: #8000ff;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --glass-bg: rgba(15, 15, 25, 0.7);
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--dark-bg);
    color: white;
    overflow-x: hidden;
}

/* ============= LANDING PAGE ============= */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a0f 70%, #000000 100%);
    overflow: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.landing-page.fade-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Animated background stars */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Glowing orb effect */
.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(80px);
    animation: pulse 8s infinite ease-in-out;
}

.glow-orb:nth-child(2) {
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
    animation-delay: 4s;
    top: 50%;
    left: 30%;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.15; }
}

/* Mission text */
.mission-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 40px;
    text-align: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    animation: glow-pulse 3s infinite ease-in-out;
    letter-spacing: 4px;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 20px var(--neon-cyan)); }
    50% { filter: drop-shadow(0 0 40px var(--neon-pink)); }
}

.mission-text {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out;
}

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

/* Start button */
.start-button {
    position: relative;
    padding: 18px 60px;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    letter-spacing: 2px;
    animation: fadeInUp 1.5s ease-out;
}

/* X Icon in top right */
.x-icon {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.x-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.x-icon:hover {
    color: var(--neon-cyan);
    transform: scale(1.1);
}

.x-icon:hover svg {
    filter: drop-shadow(0 0 20px var(--neon-cyan));
}

/* GET CA Button */
.get-ca-button {
    position: relative;
    padding: 18px 60px;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: transparent;
    border: 2px solid var(--neon-pink);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    letter-spacing: 2px;
    margin-top: 20px;
    animation: fadeInUp 1.7s ease-out;
}

.get-ca-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    transition: left 0.5s ease;
}

.get-ca-button:hover::before {
    left: 100%;
}

.get-ca-button:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink), 0 0 60px var(--neon-pink);
    transform: translateY(-3px);
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 2000;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transition: left 0.5s ease;
}

.start-button:hover::before {
    left: 100%;
}

.start-button:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan), 0 0 60px var(--neon-cyan);
    transform: translateY(-3px);
}

/* ============= CHAT PAGE ============= */
.chat-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.chat-page.active {
    display: block;
    opacity: 1;
}

.chat-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.chat-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 10, 15, 0.3) 0%, 
        rgba(10, 10, 15, 0.6) 70%,
        rgba(10, 10, 15, 0.9) 100%
    );
    z-index: 2;
}

/* Chat header */
.chat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 30px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.chat-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Chat messages */
.chat-messages {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 100px;
    z-index: 5;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    animation: messageSlideIn 0.3s ease-out;
}

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

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

/* Chat input */
.chat-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.chat-input-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 15px 25px;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 30px;
    color: white;
    font-size: 15px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: 30px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--neon-cyan);
}

/* ============= POPUP MODAL ============= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.95), rgba(10, 10, 30, 0.95));
    padding: 50px 60px;
    border-radius: 20px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
    max-width: 500px;
    text-align: center;
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-icon {
    font-size: 60px;
    margin-bottom: 25px;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.popup-text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-weight: 300;
}

.popup-button {
    padding: 15px 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-bg);
    background: var(--neon-cyan);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.popup-button:hover {
    background: white;
    box-shadow: 0 0 30px var(--neon-cyan);
    transform: translateY(-3px);
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.5);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 32px;
    }

    .mission-text {
        font-size: 16px;
    }

    .start-button {
        padding: 15px 40px;
        font-size: 18px;
    }

    .message {
        max-width: 85%;
    }

    .popup-content {
        padding: 40px 30px;
        margin: 20px;
    }

    .popup-text {
        font-size: 16px;
    }
}
