/*
Theme Name: LeadSlot Theme
Theme URI: https://example.com
Author: Your Name
Description: A dark mode, emerald green lead generation landing page theme.
Version: 1.0
License: GNU General Public License v2 or later
*/

/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #10b981;
    /* Emerald Green */
    --primary-hover: #059669;
    /* Darker Emerald for hover */
    --accent: #34d399;
    /* Lighter Emerald accent for gradients */

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    /* overflow-x: hidden; - Disabling as it breaks position: sticky */
}

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

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
}

.container-wide {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 60px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 4rem auto;
    font-size: 1.15rem;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: white;
}

.nav-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* --- HERO SECTION --- */
.hero {
    padding: 180px 0 100px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item h3 {
    font-size: 2rem;
    color: white;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- FEATURES GRID --- */
.features {
    padding: 100px 0;
    background: #0b1120;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- HOW IT WORKS --- */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 20px;
    margin-top: 50px;
}

.steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-weight: 700;
    color: var(--primary);
}

.step-item h4 {
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 10px;
}

/* --- PRICING --- */
.pricing {
    padding: 100px 0;
    background: #0b1120;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    align-items: center;
}

.price-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.price-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    margin: 30px 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

/* --- FOOTER --- */
footer {
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- RESPONSIVE --- */
/* --- IMPROVED RESPONSIVE STYLES --- */
@media (max-width: 991px) {

    /* Adjust Hero spacing for tablets/smaller laptops */
    .hero {
        padding: 140px 0 60px 0;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    /* --- HEADER & NAV --- */
    nav {
        flex-wrap: wrap;
        /* Allows wrapping if content is too wide */
        height: auto;
        padding: 15px 0;
    }

    .logo {
        flex-grow: 1;
        /* Pushes buttons to the right */
    }

    .nav-links {
        display: none;
        /* Still hidden (requires JS for a menu toggle) */
    }

    .nav-cta {
        gap: 10px;
    }

    .nav-cta .btn {
        padding: 8px 16px;
        /* Smaller buttons on mobile */
        font-size: 0.85rem;
    }

    /* --- HERO --- */
    .hero {
        padding: 120px 0 60px 0;
        /* Much less whitespace on top */
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Smaller headline */
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
        /* Prevents text hitting edges */
    }

    .hero-stats {
        flex-direction: column;
        /* Stack stats vertically */
        gap: 20px;
        margin-top: 40px;
        padding-top: 30px;
    }

    /* --- GRIDS & CARDS --- */
    .container {
        padding: 0 25px;
        /* Slightly more edge buffer */
    }

    .feature-grid,
    .pricing-grid {
        /* Fixes "cramped" cards by allowing them to shrink to screen width */
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card,
    .price-card {
        padding: 30px 20px;
        /* Less internal padding */
    }

    /* Fix the specific width issue that causes horizontal scrolling */
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* --- TYPOGRAPHY & SECTIONS --- */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    /* --- FOOTER --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col p {
        padding-right: 0;
        /* Remove right padding on mobile */
    }

    /* --- HOW IT WORKS --- */
    .steps {
        flex-direction: column;
        gap: 40px;
    }

    .steps::before {
        /* Turn the horizontal line into a vertical line connecting steps */
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .step-number {
        background: var(--bg-dark);
        /* Ensure it covers the line behind it */
        position: relative;
        z-index: 2;
    }
}

/* --- STANDARD PAGE STYLES --- */
.page-content p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 100%;
    /* Full width content for wider layouts */
}

.page-content h2,
.page-content h3 {
    color: white;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-content ul {
    list-style: disc;
    /* Bring back bullets for standard lists */
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}