:root {
    --bg-color: #1E1E1E;
    --text-color: #ffffff;
    --primary-gradient: linear-gradient(135deg, #3399DB 0%, #2ECC70 100%);
    /* Removed duplicate --bg-color */

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Ambient Glow */
.ambient-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.2), transparent 70%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Nav */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.links a:hover {
    color: white;
}

.links .btn-primary {
    background: var(--primary-gradient);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    /* Reduced padding */
    min-height: 80vh;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-primary.glass-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    /* Solid white for better readability */
    color: #000;
    /* Dark text */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 1);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    margin-right: 1rem;
    font-weight: 700;
}

.btn-primary.glass-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Mockup */
.hero-image {
    flex: 1;
    height: 400px;
    position: relative;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.screen-mockup {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 60px;
    /* Space for stand */
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') center/cover;
    border-radius: 4px;
    /* Monitor sharp corners */
    border: 12px solid #1a1a1a;
    /* Bezel */
    border-bottom-width: 30px;
    /* Chin */
    box-shadow: 0 0 0 1px #333;
}

/* Monitor Stand - Sleek Aluminum Style */
.screen-mockup::after {
    content: '';
    position: absolute;
    bottom: -40px;
    /* Position below chin */
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 40px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    /* Dark Aluminum */
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0% 100%);
    /* Trapezoid */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.screen-mockup::before {
    /* Base of stand */
    content: '';
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.window {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 200px;
    height: 150px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.window.offset {
    top: 100px;
    left: 150px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features */
.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
    transition: transform 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.glass-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #a78bfa;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4rem;
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}