:root {
    --bg-dark: #000000;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --accent-blue: #29fd53; /* Cyber Green updated */
    --accent-glow: #00ff41;
    --text-main: #ffffff;
    --text-muted: #888888;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-stack);
    overflow-x: hidden;
    max-width: 100vw;
}

/* --- Background Dynamics --- */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

.glow-spot {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 253, 83, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -50px); }
}

/* --- Typography --- */
h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
}

p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* --- Liquid Glass Buttons --- */
.btn-glass {
    position: relative;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px; /* Pill shape */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-glass::before {
    content: '';
    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;
}

.btn-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.btn-glass:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-blue);
    color: black;
    border: none;
    box-shadow: 0 0 30px rgba(41, 253, 83, 0.3);
}

.btn-primary:hover {
    background: #5eff7d;
    box-shadow: 0 0 50px rgba(41, 253, 83, 0.6);
    transform: translateY(-5px) scale(1.02);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5% 0; /* Added top padding to prevent nav overlap */
    position: relative;
    perspective: 1000px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding-right: 5rem;
}

.hero-visual {
    flex: 1;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Tech Visual Simulation with CSS */
.tech-cube {
    width: 300px;
    height: 400px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    position: relative;
    transform: rotateY(-20deg) rotateX(10deg);
    box-shadow: -50px 50px 100px rgba(0,0,0,0.5);
    animation: floatingCard 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.tech-cube::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 30px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent, var(--accent-blue));
    z-index: -1;
    opacity: 0.3;
}

@keyframes floatingCard {
    0%, 100% { transform: rotateY(-20deg) rotateX(10deg) translateY(0); }
    50% { transform: rotateY(-15deg) rotateX(5deg) translateY(-20px); }
}

/* --- Navbar --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* --- Features (Grid) --- */
.features-section {
    padding: 100px 5%;
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

/* --- Pricing --- */
.pricing-section {
    padding: 100px 5%;
    text-align: center;
}

.pricing-card {
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 40px;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(41, 253, 83, 0.2);
    color: var(--accent-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(41, 253, 83, 0.3);
}

.price-big {
    font-size: 4rem;
    font-weight: bold;
    color: white;
}

/* --- Footer --- */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

/* --- Responsive --- */
/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Responsive & Mobile Menu --- */
@media (max-width: 968px) {
    /* Force all content to stay within viewport */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .hamburger { display: flex; }
    
    .mobile-hide { display: none !important; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 15px 0;
    }

    nav {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        transform: none;
        top: 10px;
        padding: 12px 15px;
        border-radius: 50px;
    }
    
    /* Hero section adjustments */
    .hero-section {
        height: auto;
        min-height: 90vh;
        padding: 100px 5% 50px;
    }

    .hero-container { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 0;
        max-width: 100%;
    }
    
    .hero-text { 
        padding-right: 0; 
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    /* CRITICAL: Hide ALL hero-visual content to prevent overflow */
    .hero-visual,
    .hero-visual *,
    .tech-cube,
    .tech-cube * { 
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2rem; line-height: 1.2; }
    h2 { font-size: 1.6rem; }
    
    /* Ensure grid items don't overflow */
    .bento-grid { 
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .glass-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Guide Sidebar Hide */
    .guide-container { grid-template-columns: 1fr; }
    .guide-sidebar { display: none; }
    
    /* Ensure sections don't overflow */
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }
}
