/* ======================= 1. CSS VARIABLES & RESET ======================= */
:root {
    /* Brand Colors */
    --red: #F26666;
    --purple: #7366F0;
    --amber: #FDBA3B;
    --lavender: #9B7CF6;
    --cyan-logo: #61E6EA;
    
    /* UI Colors */
    --dark: #0f172a;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    
    /* Dynamic BG Position Variables (Default values, updated by JS) */
    --mouse-x: 50%;
    --mouse-y: 50%;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Font */
    --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    /* Standard box model reset */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* DYNAMIC SPOTLIGHT BACKGROUND EFFECT */
    /* This radial gradient follows the mouse cursor (set by JS) */
    background: radial-gradient(
        700px at var(--mouse-x) var(--mouse-y),
        rgba(115, 102, 240, 0.1) 0%, /* Purple center glow */
        rgba(242, 102, 102, 0.05) 50%, /* Red secondary accent */
        var(--white) 100%
    );
    transition: background 0.3s ease;
}

/* ======================= 2. GLOBAL UTILITIES ======================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 80px 0; /* Standard vertical spacing for all sections */
}

.bg-gray {
    background-color: var(--bg-light); /* Background for alternating sections */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--purple);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(115, 102, 240, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 102, 240, 0.4);
    background-color: #6052d6;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--purple);
    color: var(--purple);
}

.btn-outline:hover {
    background: var(--purple);
    color: var(--white);
}

/* ======================= 3. HEADER & NAVIGATION ======================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo-placeholder {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--purple), var(--cyan-logo));
    display: block;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-cta {
    margin-left: 16px;
}

.hamburger {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* ======================= 4. HERO SECTION ======================= */
.hero {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--dark);
}

.hero p.subhead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tagline Box */
.tagline-box {
    background-color: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    display: inline-block;
    border-radius: var(--radius-sm);
    margin-bottom: 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.highlight-red { color: var(--red); }
.highlight-amber { color: var(--amber); }
.highlight-cyan { color: var(--cyan-logo); }

/* CTA Input Area */
.hero-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-input {
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    width: 300px;
    outline: none;
    transition: border-color 0.2s;
}

.hero-input:focus {
    border-color: var(--purple);
}

.micro-cta {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
    border: none;
    background: none;
}

/* ======================= 5. FEATURES SECTION ======================= */
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 32px; 
}
.feature-card { 
    background: var(--white); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-md); 
    padding: 32px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    position: relative; 
    overflow: hidden; 
}
.feature-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
    border-color: var(--purple); 
}
.feature-icon { 
    width: 48px; 
    height: 48px; 
    background: rgba(115, 102, 240, 0.1); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
    color: var(--purple); 
}
.micro-demo { 
    height: 4px; 
    width: 100%; 
    background: var(--border); 
    border-radius: 2px; 
    overflow: hidden; 
    position: relative; 
    margin-top: 15px;
}
/* Loading animation effect on hover */
.feature-card:hover .micro-demo::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 0; 
    height: 100%; 
    width: 30%; 
    background: var(--purple); 
    animation: loadLine 1.5s infinite; 
}
@keyframes loadLine { 
    0% { left: -30%; } 
    100% { left: 100%; } 
}

/* ======================= 6. HOW IT WORKS SECTION (Stepper) ======================= */
.steps-container { 
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
    max-width: 900px; 
    margin: 0 auto; 
}
.step-nav { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 30px; 
}
.step-btn { 
    background: none; 
    border: none; 
    padding: 10px 20px; 
    font-weight: 600; 
    color: var(--text-light); 
    cursor: pointer; 
    border-bottom: 2px solid transparent; 
    transition: all 0.3s; 
}
.step-btn.active { 
    color: var(--purple); 
    border-bottom-color: var(--purple); 
}
.step-content { 
    background: var(--white); 
    border-radius: var(--radius-lg); 
    padding: 40px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    display: none; 
    animation: fadeIn 0.4s ease; 
}
.step-content.active { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ======================= 7. APP PREVIEW / DEMO ======================= */
.app-preview-wrapper { 
    background: var(--dark); 
    border-radius: var(--radius-lg); 
    padding: 20px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
    color: white; 
    overflow: hidden; 
}
.app-toolbar { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 20px; 
}
.dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
}
.split-view { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2px; 
    background: #334155; 
    border: 1px solid #334155; 
    height: 400px; 
}
.panel { 
    background: #1e293b; 
    padding: 24px; 
    overflow-y: auto; 
}
.selectable-text { 
    color: #cbd5e1; 
    line-height: 1.8; 
    font-family: monospace; 
    font-size: 0.9rem; 
}
.highlight-trigger { 
    background: rgba(115, 102, 240, 0.2); 
    color: var(--lavender); 
    padding: 2px 4px; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: background 0.2s; 
}
.highlight-trigger:hover { 
    background: rgba(115, 102, 240, 0.4); 
}
.ai-output-card { 
    background: #334155; 
    border-radius: 8px; 
    padding: 16px; 
    margin-bottom: 12px; 
    border-left: 3px solid var(--cyan-logo); 
    animation: slideInRight 0.3s ease; 
}
@keyframes slideInRight { 
    from { opacity: 0; transform: translateX(10px); } 
    to { opacity: 1; transform: translateX(0); } 
}

/* ======================= 8. PRICING & TESTIMONIALS ======================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--purple);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 20px;
}

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

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--red);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

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

.features-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.quote {
    font-style: italic;
    margin: 15px 0 20px;
    color: var(--text-main);
}

.author {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

/* ======================= 9. FAQ SECTION ======================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--white);
}

summary {
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

details p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-light);
}

/* ======================= 10. FOOTER ======================= */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid #334155;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-link {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--purple);
}

.privacy-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #475569;
}

/* ======================= 11. MODAL STYLING ======================= */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(4px); 
    z-index: 2000; 
    display: none; /* Controlled by JS */
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}
.modal-overlay.open { 
    display: flex; 
}
.modal { 
    background: white; 
    width: 100%; 
    max-width: 500px; 
    border-radius: var(--radius-md); 
    padding: 40px; 
    position: relative; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
@keyframes modalPop { 
    from { transform: scale(0.9); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}
.close-modal { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--text-light); 
}
.form-group { 
    margin-bottom: 20px; 
    text-align: left; 
}
.form-label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    font-size: 0.9rem; 
}
.form-input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius-sm); 
    font-family: inherit; 
}
.form-input:focus { 
    outline: 2px solid var(--purple); 
    border-color: transparent; 
}
.success-view { 
    text-align: center; 
    display: none; 
}
.success-code { 
    background: var(--bg-light); 
    border: 2px dashed var(--purple); 
    padding: 16px; 
    font-size: 1.5rem; 
    font-weight: 800; 
    margin: 20px 0; 
    color: var(--dark); 
    border-radius: var(--radius-sm); 
}
#confetti-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    pointer-events: none; 
    z-index: 2100; 
}

/* ======================= 12. RESPONSIVE DESIGN ======================= */
@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    /* Mobile Menu Toggle */
    .nav-links {
        position: absolute; 
        top: var(--header-height); 
        left: 0; 
        width: 100%; 
        background: white; 
        flex-direction: column; 
        padding: 20px; 
        border-bottom: 1px solid var(--border); 
        display: none; /* Hidden by default */
    }
    .nav-links.active { 
        display: flex; /* Shown when JS toggles 'active' class */
    }
    .hamburger { 
        display: block; 
    }
    
    .hero-input { 
        width: 100%; 
        max-width: 300px; 
    }
    
    .step-content.active { 
        grid-template-columns: 1fr; /* Single column for steps */
    }
    
    .split-view { 
        grid-template-columns: 1fr; /* Single column for app demo */
        height: auto; 
    }
    
    .pricing-card.featured { 
        transform: scale(1); /* Remove scale effect on small screens */
    }
    
    .section-title { 
        font-size: 2rem; 
    }
    
    .footer-col {
        min-width: 100%; /* Stack footer columns */
    }
}