:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.4);
    --card-hover: rgba(30, 30, 30, 0.6);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --accent: #43B581;
    --accent-dark: #2f805a;
    --accent-glow: rgba(67, 181, 129, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: 1px solid rgba(255, 255, 255, 0.15);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(67, 181, 129, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(67, 181, 129, 0.05) 0%, transparent 25%);
}

/* Ambient Background */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% -20%, rgba(67, 181, 129, 0.15), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(67, 181, 129, 0.05), transparent 30%);
    z-index: -2;
    pointer-events: none;
    animation: pulse-glow 10s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Background Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(67, 181, 129, 0.02) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(3, 3, 3, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent), #2a7a55);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(67, 181, 129, 0.3);
}

.links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.links a:not(.discord-btn):not(.status-link)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: 0.3s;
}

.links a:not(.discord-btn):not(.status-link):hover {
    color: var(--text-main);
}

.links a:not(.discord-btn):not(.status-link):hover::after {
    width: 100%;
}

.status-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(67, 181, 129, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--accent) !important;
    font-size: 0.8rem !important;
    border: 1px solid rgba(67, 181, 129, 0.2);
}

.status-link .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.4); }
    70% { opacity: 1; box-shadow: 0 0 0 5px rgba(67, 181, 129, 0); }
    100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(67, 181, 129, 0); }
}

.discord-btn {
    background: #5865F2;
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: 0.3s;
}
.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

/* Hero Section */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10% 50px 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.badge-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge {
    background: rgba(67, 181, 129, 0.1);
    color: var(--accent);
    border-color: rgba(67, 181, 129, 0.2);
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(120deg, #fff, var(--accent), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 45px;
    max-width: 500px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 30px rgba(67, 181, 129, 0.2);
}

.primary .btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.primary .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(67, 181, 129, 0.4);
}

.primary:hover .btn-glow {
    left: 100%;
}

.secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    gap: 10px;
    backdrop-filter: blur(5px);
}

.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.stats {
    display: flex;
    gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 5px;
}

.label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Hero Image Area */
.hero-image-container {
    position: relative;
    width: 50%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 600px;
    perspective: 1000px;
}

.app-window {
    background: #141414;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.5),
        0 30px 60px rgba(0,0,0,0.7),
        0 0 100px rgba(67, 181, 129, 0.1);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.1s ease-out;
    position: relative;
    z-index: 10;
}

.app-titlebar {
    background: #1f1f1f;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
}

.app-controls {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.app-tabs {
    display: flex;
    gap: 5px;
}

.tab {
    background: transparent;
    color: #888;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    background: #2a2a2a;
    color: var(--accent);
}

.tab i { font-size: 0.7rem; }
.add-tab { padding: 5px 10px; font-weight: bold; }

.app-content {
    background: #141414;
    padding: 20px;
    height: 300px;
    display: flex;
    gap: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.line-numbers {
    color: #444;
    display: flex;
    flex-direction: column;
    text-align: right;
    user-select: none;
}

.code-area {
    color: #d4d4d4;
    flex-grow: 1;
}

.code-line { margin-bottom: 4px; }
.k { color: #cc7832; }
.s { color: #6a8759; }
.f { color: #ffc66d; }
.v { color: #9876aa; }
.c { color: #808080; font-style: italic; }

.app-footer {
    background: #1f1f1f;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #2a2a2a;
}

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

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.app-footer .buttons {
    display: flex;
    gap: 10px;
}

.btn-small {
    background: #2a2a2a;
    color: #ccc;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-small:first-child {
    background: rgba(67, 181, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(67, 181, 129, 0.2);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(15px);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 20;
    animation: float 6s ease-in-out infinite;
}

.floating-card i { color: var(--accent); }

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    left: -20px;
    animation-delay: 3s;
}

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

/* Showcase Section */
.showcase {
    padding: 100px 10%;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.8));
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.5);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.showcase-video {
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(67, 181, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(67, 181, 129, 0.5);
    color: var(--accent);
    font-size: 2rem;
}

.play-button:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(67, 181, 129, 0.4);
}

/* Features Section */
.features {
    padding: 120px 10%;
    background: linear-gradient(to bottom, transparent, rgba(67, 181, 129, 0.03) 30%, transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--card-hover);
    border: var(--glass-highlight);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(67, 181, 129, 0.1);
}

.feature-card:hover .card-glow {
    opacity: 1;
}

.feature-card .icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 25px;
    background: rgba(67, 181, 129, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: 0.4s;
}

.feature-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 80px 10% 40px 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: rgba(10, 10, 10, 0.5);
}

.footer-content p {
    font-size: 0.9rem;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

/* Mobile */
@media (max-width: 968px) {
    nav {
        padding: 20px 30px;
    }
    
    header {
        flex-direction: column;
        padding-top: 140px;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 80px;
        max-width: 100%;
    }

    .badge-container {
        justify-content: center;
    }

    h1 {
        font-size: 3rem;
    }

    p {
        margin: 0 auto 40px auto;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }

    .stats {
        justify-content: center;
        gap: 30px;
    }

    .hero-image-container {
        width: 100%;
        height: 400px;
    }

    .links {
        display: none;
    }

    .app-window {
        transform: none !important;
    }
}
