@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;400;700&display=swap');

:root {
    /* Color Palette - Cyber Gold Master */
    --bg-deep: #050507;
    --bg-surface: #0a0b12;
    --bg-card: rgba(16, 17, 26, 0.7);
    --accent-cyan: #00f2ff;
    --accent-purple: #9d50bb;
    --accent-magenta: #e022f5;
    --accent-gold: #ffcc33;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #62627a;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 242, 255, 0.2);
    
    /* Effects */
    --glass-blur: blur(16px);
    --shadow-glow: 0 0 30px rgba(0, 242, 255, 0.2);
    --shadow-magenta: 0 0 30px rgba(224, 34, 245, 0.2);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .logo {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-accent {
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.glass:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    background: rgba(20, 21, 30, 0.85);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 242, 255, 0.2);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 242, 255, 0.4);
}

.btn-outline {
    border: 1.5px solid var(--border-glass);
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

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

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

/* Sections */
section {
    padding: 140px 0;
}

.section-tag {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-tag::before {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--accent-cyan);
}

.section-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
    color: #fff;
}

/* Background Effects */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #050507;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    opacity: 0.5;
}

/* Navigation */
nav {
    transition: var(--transition-smooth);
}

nav.scrolled {
    padding: 10px 30px !important;
    background: rgba(10, 11, 18, 0.85) !important;
    border-color: var(--border-accent) !important;
}

/* Feature Matrix */
.feature-card {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    color: var(--text-secondary);
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.feature-list li::before {
    content: "•";
    color: var(--accent-cyan);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

[data-aos].active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design - Extended Mobile Support */
@media (max-width: 1200px) {
    .container { max-width: 1000px; }
    .section-title { font-size: 3.5rem; }
}

@media (max-width: 1024px) {
    .section-title { font-size: 3rem; }
    .container { padding: 0 30px; }
    
    /* Adapt Grids */
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .node-list { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .section-tag { font-size: 0.7rem; letter-spacing: 2px; }
    
    header.container { 
        padding-top: 40px !important;
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 40px !important;
    }
    
    header h1 { font-size: 3rem !important; }
    
    /* Stack Grids to 1 column */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .module-matrix {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .node-list {
        grid-template-columns: 1fr !important;
    }
    
    /* Navigation Stack Fix */
    nav {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px !important;
        top: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        margin-bottom: 20px;
    }
    
    nav img {
        height: 35px !important;
    }
    
    .nav-links {
        gap: 10px !important;
        font-size: 0.65rem !important;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-links a {
        padding: 5px 10px;
        background: rgba(255,255,255,0.03);
        border-radius: 8px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    section {
        padding: 80px 0 !important;
    }
    
    /* Flex stacking */
    div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    header h1 { font-size: 2.5rem !important; }
    .module-matrix {
        grid-template-columns: 1fr !important;
    }
    .glass { padding: 30px !important; }
}


