/* ============== VARIABLES & GLOBAL RESET ============== */
:root {
    /* Brand Colors */
    --brand-orange: #F9A825;
    --brand-red-orange: #EF6C00;
    --brand-pink: #D81B60;
    --brand-gradient: linear-gradient(45deg, var(--brand-orange), var(--brand-pink));

    /* Neutrals & Secondaries */
    --neutral-white: #FFFFFF;
    --neutral-black: #000000;
    --neutral-light-gray: #E0E0E0;
    --neutral-charcoal: #424242;

    /* Default theme is Dark Mode */
    --bg-color: var(--neutral-black);
    --text-primary: var(--neutral-light-gray);
    --text-headings: var(--neutral-white);
    --card-bg: rgba(66, 66, 66, 0.3); /* Charcoal base */
    --card-border: rgba(224, 224, 224, 0.1); /* Light Gray base */
    --card-border-hover: rgba(224, 224, 224, 0.3);
    --glass-shadow: rgba(0,0,0,0.2);
    --step-number-color: rgba(255, 255, 255, 0.05);
    --app-header-bg: rgba(66, 66, 66, 0.2); /* Charcoal base */
    --gradient-opacity: 0.3;

    /* Shared Fonts */
    --font-heading: 'Satoshi', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.light-mode {
    --bg-color: var(--neutral-white);
    --text-primary: var(--neutral-charcoal);
    --text-headings: var(--neutral-black);
    --card-bg: rgba(249, 249, 249, 0.7); /* Near-white transparent */
    --card-border: rgba(66, 66, 66, 0.1); /* Charcoal base */
    --card-border-hover: rgba(66, 66, 66, 0.2);
    --glass-shadow: rgba(0,0,0,0.1);
    --step-number-color: rgba(0, 0, 0, 0.05);
    --app-header-bg: rgba(224, 224, 224, 0.5); /* Light Gray base */
    --gradient-opacity: 0.2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============== ANIMATED GRADIENT BACKGROUND ============== */
.gradient-bg { width: 100vw; height: 100vh; position: fixed; overflow: hidden; z-index: -1; top: 0; left: 0; }
.gradient-bg div { position: absolute; border-radius: 50%; filter: blur(150px); opacity: var(--gradient-opacity); transition: opacity 0.3s ease; }
.gradient-ball-1 { background: var(--brand-orange); width: 450px; height: 450px; animation: move-ball-1 25s infinite alternate ease-in-out; }
.gradient-ball-2 { background: var(--brand-pink); width: 400px; height: 400px; animation: move-ball-2 30s infinite alternate ease-in-out; }
.gradient-ball-3 { background: var(--brand-red-orange); width: 350px; height: 350px; animation: move-ball-3 20s infinite alternate ease-in-out; }
@keyframes move-ball-1 { 0% { transform: translate(10vw, 10vh); } 100% { transform: translate(70vw, 80vh); } }
@keyframes move-ball-2 { 0% { transform: translate(80vw, 20vh); } 100% { transform: translate(20vw, 70vh); } }
@keyframes move-ball-3 { 0% { transform: translate(40vw, 90vh); } 100% { transform: translate(90vw, 10vh); } }

/* ============== GENERAL LAYOUT & TYPOGRAPHY ============== */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; text-align: center; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--text-headings); font-weight: 700; transition: color 0.3s ease; }
h1 { font-size: 3.5rem; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; margin-bottom: 60px; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
p { font-size: 1.125rem; max-width: 550px; margin: 0 auto; }
.cta-button { 
    background-image: var(--brand-gradient); 
    background-size: 200% auto;
    color: white; 
    font-family: var(--font-heading); 
    font-weight: 700; 
    font-size: 1.1rem; 
    border: none; 
    border-radius: 12px; 
    padding: 16px 36px; 
    cursor: pointer; 
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease; 
}
.cta-button:hover { 
    transform: scale(1.05); 
    box-shadow: 0 10px 30px rgba(216, 27, 96, 0.3); /* Shadow from pink */
    background-position: right center; /* Gradient shift on hover */
}

/* ============== HEADER (UPDATED) ============== */
header { 
    padding: 15px 0; /* Reduced padding for a tighter look */
    position: sticky;
    top: 0;
    z-index: 100;
    /* Adding a subtle background to lift it from the content on scroll */
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between logo and text */
    text-decoration: none; /* remove underline from link */
    color: var(--text-headings);
}
.logo-img {
    height: 60px; /* Adjusted size for a more refined navbar */
    width: auto;
    display: block;
    transition: height 0.2s ease;
}
.logo-text {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1.8rem; /* Adjust based on your layout */
    margin: 0;
    line-height: 1;
    transition: font-size 0.2s ease;
}

/* NEW: Styles for the navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-switcher button { background: none; border: none; cursor: pointer; font-size: 1.5rem; padding: 5px; line-height: 1; transition: transform 0.2s ease; }
.theme-switcher button:hover { transform: scale(1.1) rotate(15deg); }
.theme-switcher .moon { display: none; }
body.light-mode .theme-switcher .sun { display: none; }
body.light-mode .theme-switcher .moon { display: block; }

/* NEW: Style for the CTA in the navbar */
.nav-cta {
    padding: 12px 28px; /* Slightly smaller for the nav */
    font-size: 1rem;
}


/* ============== HERO SECTION (UPDATED) ============== */
.hero {
    padding: 80px 0 120px; /* Adjusted padding: less on top, more on bottom */
}
.hero-content { 
    display: grid; 
    /* Golden ratio-inspired layout: text takes more space */
    grid-template-columns: 1.2fr 1fr; 
    gap: 80px; /* Increased gap for better separation */
    align-items: center; 
    text-align: left; 
}
.hero-text .highlight { color: var(--brand-orange); }
.hero-text p { 
    margin: 24px 0 0 0; /* Removed bottom margin */
    max-width: 500px; /* Slightly increased max-width */
}
.hero-text .sub-headline { 
    font-family: var(--font-heading); 
    font-weight: 700; 
    font-size: 3rem; 
    line-height: 1.1; 
    letter-spacing: -0.02em; 
    margin-top: 16px; /* Added margin-top for spacing */
    margin-bottom: 24px; 
}

/* STYLES FOR THE NEW GIF DEMO WINDOW */
.hero-visual {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 12px; /* A little padding to frame the app window */
    box-shadow: 0 20px 50px var(--glass-shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    perspective: 1000px; /* For the 3D hover effect */
}

.app-window {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-out;
}

.hero-visual:hover .app-window {
    transform: scale(1.03) rotateX(5deg) rotateY(-5deg);
}

.app-header {
    background-color: var(--app-header-bg);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.app-body img {
    display: block;
    width: 100%;
    height: auto;
}
/* END OF NEW STYLES */

/* ============== HOW IT WORKS SECTION ============== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.step { position: relative; padding: 30px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--card-border); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.3s ease; overflow: hidden; }
.step:hover { transform: translateY(-5px); border-color: var(--card-border-hover); }
.step-number { position: absolute; top: -20px; right: 10px; font-family: var(--font-heading); font-size: 8rem; font-weight: 700; line-height: 1; color: var(--step-number-color); transition: color 0.3s ease; user-select: none; z-index: 0; }
.step-content { position: relative; z-index: 1; }

/* ============== FEATURES SECTION ============== */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; text-align: left; }
.feature-card { background: var(--card-bg); border: 1px solid var(--card-border); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 30px; border-radius: 16px; display: flex; gap: 24px; align-items: flex-start; transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--card-border-hover); }
.feature-icon { font-size: 2.5rem; line-height: 1; }

/* ============== EMAIL SIGNUP / LEAD MAGNET SECTION (NEW) ============== */
.email-signup {
    padding-top: 0; /* Creates nice spacing with the section above */
}
.signup-content {
    max-width: 750px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 20px 50px var(--glass-shadow);
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.lead-magnet-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 20px;
}
.email-signup h2 {
    margin-bottom: 20px;
    font-size: 2.25rem;
}
.email-signup .sub-text {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    opacity: 0.9;
}
.signup-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 0 auto; /* Reduced bottom margin */
}
.signup-form input[type="email"] {
    flex-grow: 1;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background-color: var(--app-header-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}
.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.3);
}
.signup-form .cta-button { flex-shrink: 0; }

.form-message {
    font-size: 0.9rem;
    margin-top: 15px; /* Spacing between form and message */
    margin-bottom: 15px; /* Spacing between message and disclaimer */
    min-height: 1.2em; /* Reserve space to prevent layout shift */
    font-weight: 500;
    max-width: 100%;
}
.form-message.success {
    color: var(--brand-orange);
}
.form-message.error {
    color: var(--brand-pink);
}

.form-disclaimer { font-size: 0.85rem; opacity: 0.7; max-width: 100%; }

/* ============== FINAL CTA SECTION ============== */
.cta-final p { margin-bottom: 40px; }

/* ============== FOOTER ============== */
footer { padding: 40px 0; opacity: 0.6; font-size: 0.9rem; }

/* ============== SCROLL ANIMATION ============== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.steps-grid > .fade-in:nth-child(2), .features-grid > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.steps-grid > .fade-in:nth-child(3), .features-grid > .fade-in:nth-child(3) { transition-delay: 0.2s; }
.features-grid > .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ============== RESPONSIVENESS ============== */
@media (max-width: 992px) {
    .hero-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px;
    }
    .hero-text { 
        order: 2; 
        margin-top: 0; 
    }
    .hero-visual { 
        order: 1; 
        max-width: 500px;
        margin: 0 auto;
    }
    .hero-text p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-text .sub-headline { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    .steps-grid, .features-grid { grid-template-columns: 1fr; }
    .step { text-align: center; }
    .main-nav {
        gap: 15px; /* A bit more gap might look better */
    }
    .nav-cta {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .logo-img {
        height: 50px;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    .signup-content {
        padding: 40px 30px;
    }
    .email-signup h2 {
        font-size: 1.75rem;
    }
    .signup-form { flex-direction: column; }
}

/* NEW: Added media query for very small screens */
@media (max-width: 420px) {
    .logo-text {
        display: none; /* Hide logo text to save space */
    }
    .logo-img {
        height: 45px;
    }
    .main-nav {
        gap: 10px; /* Further reduce gap */
    }
    .nav-cta {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}


/* STYLES FOR THE GIF DEMO WINDOW */
.hero-visual {
    /* ... (previous styles) */
    cursor: pointer; /* Indicates the element is clickable */
    perspective: 1000px;
}

/* ============== LIGHTBOX STYLES (NEW) ============== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.visible .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserves aspect ratio */
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* Utility class to prevent page scrolling when lightbox is open */
body.no-scroll {
    overflow: hidden;
}

/* ============== THE DIFFERENCE SECTION ============== */
.difference-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.difference-column h3 {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}
.difference-column ul {
    list-style: none;
    padding: 0;
}
.difference-column li {
    padding: 8px 0;
    font-size: 1.1rem;
}
.difference-column:first-child h3 { color: var(--brand-pink); }
.difference-column:last-child h3 { color: var(--brand-orange); }

/* ============== TESTIMONIALS SECTION ============== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}
.testimonial-card .quote {
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 24px;
    position: relative;
    padding-left: 30px;
}
.testimonial-card .quote::before {
    content: '“';
    font-family: 'Times New Roman', serif;
    font-size: 4rem;
    position: absolute;
    left: -10px;
    top: -10px;
    color: var(--brand-red-orange);
    opacity: 0.3;
}
.testimonial-card .author {
    font-weight: 500;
    color: var(--text-headings);
    margin-top: auto;
    max-width: 100%;
}

/* ============== FAQ SECTION ============== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: var(--card-border-hover);
}
.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-headings);
    text-align: left;
}
.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
}
.faq-answer p {
    padding: 0 25px 20px;
    max-width: 100%;
    margin: 0;
    font-size: 1rem;
}

/* Active state for FAQ */
.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust if your answers are longer */
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* ============== RESPONSIVENESS FOR NEW SECTIONS ============== */
@media (max-width: 768px) {
    .difference-grid {
        grid-template-columns: 1fr;
    }

    .signup-form {
        flex-direction: column;
    }
}
