:root {
    --bg-color: #050505;
    --surface: rgba(25, 25, 30, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
    --neon-green: #00FF66;
    --neon-cyan: #00E5FF;
    --text-main: #FFFFFF;
    --text-muted: #8892B0;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- SPLASH SCREEN MATRIX --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: var(--font-mono);
}

.glitch {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-main);
    position: relative;
    text-shadow: 0.05em 0 0 var(--neon-green), -0.025em -0.05em 0 var(--neon-cyan),
                 0.025em 0.05em 0 #ff00ff;
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 var(--neon-green), -0.05em -0.025em 0 var(--neon-cyan), -0.025em 0.05em 0 #ff00ff; }
    14% { text-shadow: 0.05em 0 0 var(--neon-green), -0.05em -0.025em 0 var(--neon-cyan), -0.025em 0.05em 0 #ff00ff; }
    15% { text-shadow: -0.05em -0.025em 0 var(--neon-green), 0.025em 0.025em 0 var(--neon-cyan), -0.05em -0.05em 0 #ff00ff; }
    49% { text-shadow: -0.05em -0.025em 0 var(--neon-green), 0.025em 0.025em 0 var(--neon-cyan), -0.05em -0.05em 0 #ff00ff; }
    50% { text-shadow: 0.025em 0.05em 0 var(--neon-green), 0.05em 0 0 var(--neon-cyan), 0 -0.05em 0 #ff00ff; }
    99% { text-shadow: 0.025em 0.05em 0 var(--neon-green), 0.05em 0 0 var(--neon-cyan), 0 -0.05em 0 #ff00ff; }
    100% { text-shadow: -0.025em 0 0 var(--neon-green), -0.025em -0.025em 0 var(--neon-cyan), -0.025em -0.05em 0 #ff00ff; }
}

.terminal-text {
    color: var(--neon-green);
    margin-top: 1rem;
    font-size: 1.2rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: #222;
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: load 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes load {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 60%; }
    90% { width: 95%; }
    100% { width: 100%; }
}

/* --- MAIN LAYOUT --- */
.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Background Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 255, 102, 0.15);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 229, 255, 0.1);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* --- NAVBAR --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--surface-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.neon-text {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 180px);
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-green);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.features {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.feature i {
    color: var(--neon-cyan);
    font-size: 1.2rem;
}

.cta-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--text-main);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-text .small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-text .large {
    font-size: 1.2rem;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- QR CARD --- */
.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

.glass-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 32px;
    width: 320px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Glowing edge effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.5;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin-bottom: 24px;
    justify-content: center;
}

.qr-container {
    background: #FFF;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

#qrcode {
    display: flex;
    justify-content: center;
}

#qrcode img {
    width: 100%;
    height: auto;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.qr-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hacker-stats {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px dashed var(--surface-border);
    padding-top: 16px;
}

.hacker-stats .stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.hacker-stats span {
    color: var(--neon-green);
}

/* --- FOOTER --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--surface-border);
}

.terminal-prompt {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
}

.cursor {
    animation: blink 1s step-end infinite;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        margin: 0 auto 40px;
    }
    
    .features {
        justify-content: center;
    }
    
    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        justify-content: center;
    }
    
    .footer {
        flex-direction: column;
        gap: 16px;
    }
}
