:root {
    /* Colors - Enhanced Premium Palette */
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #d4ff00; /* Vibrant Neon greenish-yellow */
    --accent-hover: #b8e600;
    --accent-glow: rgba(212, 255, 0, 0.5);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 6rem 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ================= Base Styles & Optimizations ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Optimize rendering */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent layout shift */
    background-image: radial-gradient(circle at 50% 0%, #151515 0%, #050505 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.accent {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #a3cc00 100%);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(212, 255, 0, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #a3cc00 0%, var(--accent) 100%);
    z-index: -1;
    transition: opacity var(--transition-smooth);
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(212, 255, 0, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

/* ================= Header & Navigation ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-smooth);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-nav {
    padding: 0.6rem 1.8rem;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.95rem;
    border-radius: 50px;
}

.btn-nav:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: transform var(--transition-fast);
}

.mobile-menu-btn:hover {
    color: var(--accent);
}

/* ================= Hero Section (Performance Optimized) ================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* We use a high-quality, optimized background image with explicit dimensions if possible, or object-fit */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5) contrast(1.1);
    transform: scale(1.05); /* Avoid edges during potential parallax */
    /* Add subtle continuous animation */
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.3) 50%, rgba(5,5,5,0.8) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 650px;
    /* Glassmorphism backing for better text contrast and premium feel */
    background: rgba(10, 10, 10, 0.4);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* ================= Features Section ================= */
.features {
    position: relative;
    z-index: 3;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Shine effect on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.feature-card:hover::before {
    left: 125%;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 255, 0, 0.1);
    border-color: rgba(212, 255, 0, 0.2);
    background: rgba(30, 30, 30, 0.8);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212,255,0,0.1) 0%, rgba(212,255,0,0) 100%);
    color: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(212, 255, 0, 0.2);
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* ================= CTA Section ================= */
.cta {
    position: relative;
    background: linear-gradient(135deg, rgba(212,255,0,0.05) 0%, rgba(5,5,5,1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.cta::after {
    content: '';
    position: absolute;
    top: 50%; right: -10%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.cta-container {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.cta-form input {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cta-form .btn {
    padding: 1rem 2.5rem;
}

/* ================= Footer ================= */
.footer {
    background-color: #030303;
    padding: 6rem 0 2rem;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
    border-color: var(--accent);
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 0.95rem;
}

/* ================= Animations (Will-change for Performance) ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Performance class for elements to defer transitions until loaded */
.preload * {
    transition: none !important;
}

/* ================= Responsive Design ================= */
@media (max-width: 1024px) {
    .hero-content {
        padding: 2.5rem;
    }
    .footer-container {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: clamp(3rem, 6vw, 4.5rem);
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        margin: 1.5rem 0;
    }
    
    .nav-link {
        font-size: 1.8rem;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }

    .hero-content {
        padding: 2rem;
        text-align: center;
        backdrop-filter: blur(15px);
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    .cta-form input {
        border: 1px solid rgba(255,255,255,0.1);
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}
