:root {
    --accent-light: #d8b4fe;
    --accent-main: #a855f7;
    --accent-dark: #7e22ce;
    --bg-dark: #0f0720;
    --glass-bg: rgba(20, 10, 35, 0.7);
    --glass-border: rgba(168, 85, 247, 0.3);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --container-width: 1200px;
    --hacker-green: #00ff41;
}

* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(126, 34, 206, 0.2), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.2), transparent 30%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

#particle-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; pointer-events: none;
}

.bg-blob {
    position: fixed; filter: blur(100px); z-index: -3; opacity: 0.5;
    animation: move 25s infinite alternate;
}
.blob-1 { top: -10%; left: -5%; width: 500px; height: 500px; background: #7e22ce; border-radius: 50%; }
.blob-2 { bottom: -10%; right: -5%; width: 600px; height: 600px; background: #4c1d95; border-radius: 50%; animation-delay: -7s; }

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.header-btn {
    position: absolute;
    top: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 18px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
}

.header-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(216, 180, 254, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.header-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 1));
}

.tg-btn { right: 24px; animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) both; }
.dl-btn { left: 24px; animation: slideInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) both; }
.console-btn { 
    right: 24px; 
    top: 85px; 
    animation: slideInRight 1s cubic-bezier(0.25, 1, 0.5, 1) both;
}

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

@media (max-width: 450px) {
    .header-btn span { display: none; }
    .header-btn { padding: 12px; }
    .console-btn { top: 80px; }
}

.hero {
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 100px 24px 20px; position: relative;
}

.hero-content { max-width: 900px; animation: dropIn 1s cubic-bezier(0.25, 1, 0.5, 1); }

.phone-showcase {
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 30px; perspective: 1200px;
}

.phone {
    width: 100%; max-width: 550px; aspect-ratio: 18 / 9;
    background: #050505;
    
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 
        -1px 1px 0 #444,
        -2px 2px 0 #333,
        -3px 3px 0 #2a2a2a,
        -4px 4px 0 #222,
        -5px 5px 0 #1a1a1a,
        -6px 6px 0 #111,
        0 40px 100px rgba(0,0,0,0.9), 
        0 0 60px rgba(168, 85, 247, 0.2);
    
    border-radius: 28px;
    overflow: hidden; position: relative;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-12deg) rotateZ(1deg);
    animation: floating3D 6s ease-in-out infinite;
}

.phone::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 20%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
    z-index: 10;
}

.punch-hole {
    position: absolute; top: 50%; left: 8px; transform: translateY(-50%) translateZ(15px);
    width: 16px; height: 16px; background: #000; border-radius: 50%;
    z-index: 25; border: 2px solid #222;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
}

.phone-screen {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; border-radius: 24px; position: relative;
    padding: 0; 
    overflow: hidden;
    transform: translateZ(2px);
    background: #000;
}

.phone-screen img {
    width: 100%; height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 24px;
}

@keyframes floating3D {
    0%, 100% { transform: translateY(0) rotateX(10deg) rotateY(-12deg) rotateZ(1deg); }
    50% { transform: translateY(-20px) rotateX(12deg) rotateY(-8deg) rotateZ(2deg); }
}

.hero h1 {
    font-size: clamp(48px, 8vw, 84px); font-weight: 900; text-transform: uppercase;
    margin-bottom: 16px; background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; max-width: 700px; margin-inline: auto; }

.hero-btns { display: flex; gap: 20px; justify-content: center; }

.btn {
    padding: 16px 36px; border-radius: 14px; font-size: 16px; font-weight: 800;
    text-transform: uppercase; text-decoration: none; transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #a855f7, #6b21a8); color: white;
    box-shadow: 0 10px 30px rgba(126, 34, 206, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6); }

.btn-secondary { background: rgba(168, 85, 247, 0.1); border: 1px solid var(--glass-border); color: white; }
.btn-secondary:hover { background: rgba(168, 85, 247, 0.2); }

.section { padding: 60px 0; text-align: center; }

.download-card {
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 32px;
    padding: 40px; max-width: 600px; margin: 0 auto 30px;
}

footer {
    padding: 40px 0; text-align: center; border-top: 1px solid var(--glass-border);
    background: rgba(10, 5, 20, 0.5);
}

.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; }

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

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-btns { flex-direction: column; }
    .phone { 
        max-width: 96vw;
        transform: rotateX(8deg) rotateY(-8deg); 
        border-radius: 20px;
    }
    .phone-screen { border-radius: 20px; } 
    .phone-screen img { border-radius: 20px; } 
}

/* Console Styles */
.console-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.console-container {
    width: 100%;
    max-width: 800px;
    height: 500px;
    background: #0a0a0a;
    border: 1px solid var(--hacker-green);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    overflow: hidden;
}

.console-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--hacker-green);
}

.console-title {
    color: var(--hacker-green);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 14px;
}

.close-console {
    color: var(--hacker-green);
    cursor: pointer;
    font-size: 20px;
}

.console-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    color: var(--hacker-green);
    font-size: 14px;
}

.console-line {
    margin-bottom: 5px;
}

.console-input-area {
    display: flex;
    padding: 10px 15px;
    background: #050505;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.console-prompt {
    color: var(--hacker-green);
    margin-right: 10px;
}

.console-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--hacker-green);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}
