:root {
    /* --- NEW PALETTE : DARK / GREY / NEON GREEN --- */
    --primary: #39ff14;
    /* Neon Green (Key Brand Color) */
    --primary-dim: rgba(57, 255, 20, 0.3);
    --secondary: #808080;
    /* Neutral Grey */

    --bg-dark: #050505;
    /* Deep Black */
    --bg-card: rgba(20, 20, 20, 0.6);
    /* Darker Glass */

    --text-main: #ffffff;
    --text-muted: #b0b0b0;

    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-glow: 0 0 20px rgba(57, 255, 20, 0.15);
    /* Green Glow */

    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- BACKGROUND ANIMATION (REFINED) --- */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, rgba(57, 255, 20, 0.08) 0%, transparent 40%),
        /* Subtle Green Top-Left */
        radial-gradient(circle at 85% 80%, rgba(100, 100, 100, 0.1) 0%, transparent 40%);
    /* Grey Bottom-Right */
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    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: 60px 60px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
    /* Neon Green Text */
    text-shadow: 0 0 15px var(--primary-dim);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.btn-cta {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 4px;
    /* More tech/sharp look */
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.05);
}

.btn-cta:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 25px var(--primary-dim);
    transform: translateY(-2px);
}

.btn-cta.secondary {
    border-color: var(--secondary);
    color: white;
    box-shadow: none;
}

.btn-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}


/* --- HERO SECTION --- */
.hero-section {
    padding: 180px 0 100px;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-title .highlight {
    color: var(--primary);
    text-shadow: 0 0 40px rgba(57, 255, 20, 0.4);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
    font-weight: 300;
}

.mockup-container {
    margin-top: 80px;
    position: relative;
    perspective: 1500px;
}

.app-mockup {
    width: 85%;
    max-width: 1000px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.8),
        /* Deep Shadow */
        0 0 120px rgba(57, 255, 20, 0.1);
    /* Ambient Green Glow */
    transform: rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Image Handling */
    display: block;
    margin: 0 auto;
}

.app-mockup:hover {
    transform: rotateX(0deg) scale(1.02);
}

/* --- FEATURES --- */
.features-section {
    padding: 80px 0 120px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(57, 255, 20, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-dim);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-dim));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

/* --- TUTORIAL STEPS --- */
.step-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.code-block {
    background: #000;
    padding: 20px 30px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--primary);
    display: inline-block;
    margin-top: 15px;
    border: 1px solid var(--primary-dim);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    background: linear-gradient(to top, #000, transparent);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links-row a:hover {
    color: var(--primary);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    .app-mockup {
        width: 100%;
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* Hero Buttons (Stack them) */
    .hero-section .btn-cta,
    .container>.btn-cta {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }

    /* Header Button (Keep compact) */
    header .btn-cta {
        width: auto;
        display: inline-block;
        padding: 8px 15px;
        font-size: 0.85rem;
        margin-bottom: 0;
    }
}