/* ---
TABLE OF CONTENTS
1.  Root Variables & Global Styles (Polished Professional Theme)
2.  Header & Navigation (With Mobile Fixes)
3.  Hero Section & Trust Bar (Optimized Layout)
4.  How It Works Section
5.  Comparison Section (High-Conversion Cards)
6.  Pricing Section
7.  Guarantee Section (High-Impact Block)
8.  FAQ Section
9.  Final CTA & Footer
10. Animations & Utility
11. Responsive Design
--- */

/* 1. Root Variables & Global Styles
-------------------------------------------------- */
:root {
    --primary: #007BFF; /* A trusted, standard blue */
    --primary-dark: #0056b3;
    --primary-light: #E6F2FF;
    --secondary-cta: #00B8D9; /* A vibrant, action-oriented cyan */
    --secondary-cta-dark: #00A3BF;
    --accent: #FF6B6B; /* Kept for hero badge */
    --success: #28a745;
    --error: #dc3545;
    --text-dark: #1A2B48; /* Dark navy for sophistication */
    --text-gray: #5A6982;
    --text-light: #F9FAFB;
    --bg-light: #F9FAFB;
    --bg-dark: #1A2B48;
    --white: #ffffff;
    --border-light: #E4E7EB;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary-cta) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(26, 43, 72, 0.05);
    --shadow-md: 0 4px 8px -2px rgba(26, 43, 72, 0.1), 0 2px 4px -2px rgba(26, 43, 72, 0.06);
    --shadow-lg: 0 12px 20px -4px rgba(26, 43, 72, 0.1), 0 4px 6px -4px rgba(26, 43, 72, 0.05);
    --shadow-xl: 0 24px 32px -8px rgba(26, 43, 72, 0.12), 0 10px 12px -6px rgba(26, 43, 72, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

main {
    padding-top: 80px; /* Offset for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 88px 0;
}

/* 2. Header & Navigation
-------------------------------------------------- */
#header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-light);
}

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

.logo {
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

/* With this corrected block */
.nav-links {
    display: flex; /* CORRECTED: This makes the links visible by default */
    gap: 36px;
    align-items: center;
}
.nav-cta-container {
    display: block; /* This ensures the CTA button container is visible by default */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle { display: none; }
.mobile-nav-links { display: none; }

/* 3. Hero Section & Trust Bar
-------------------------------------------------- */
.hero {
    background: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease;
}

.hero-badge.highlight {
    transform: scale(1.1);
}

h1 {
    font-size: clamp(40px, 5vw, 64px);
    margin-bottom: 24px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(18px, 3vw, 20px);
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.primary-cta {
    background: var(--secondary-cta);
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0, 184, 217, 0.25);
    border: none;
    cursor: pointer;
}

.primary-cta:hover {
    transform: translateY(-3px);
    background: var(--secondary-cta-dark);
    box-shadow: 0 8px 25px rgba(0, 184, 217, 0.35);
}

.hero-pillars {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0.9;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
}

.trust-bar {
    background: var(--bg-light);
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-bar-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 15px;
}

.trust-item strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* 4. How It Works Section
-------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(34px, 4vw, 48px);
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(18px, 2.5vw, 18px);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px;
    border-radius: 16px;
    background: var(--white);
    transition: all 0.3s;
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.step-card p {
    color: var(--text-gray);
    font-size: 16px;
}

/* 5. Comparison Section (High-Conversion Cards)
-------------------------------------------------- */
.comparison {
    background: var(--bg-light);
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.comparison-cards.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .comparison-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.comparison-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.old-way {
    border: 2px solid var(--border-light);
}

.launchfly-way {
    border: 2px solid var(--primary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.card-icon {
    font-size: 32px;
}

.card-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-gray);
}

.x-mark {
    color: var(--error);
    font-weight: 700;
    flex-shrink: 0;
}

.check-mark {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.best-choice-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* 6. Pricing Section
-------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr 1.1fr;
    }
}

.pricing-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}
.pricing-card:nth-child(2) { transition-delay: 0.1s; }
.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured:hover {
    transform: translateY(-5px) scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}

.plan-description {
    color: var(--text-gray);
    margin-bottom: 24px;
    font-size: 16px;
    flex-grow: 1;
    max-height: 50px; /* Aligns buttons */
}

.price-tag {
    font-size: 56px;
    font-weight: 900;
    color: var(--text-dark);
    margin: 16px 0 8px;
}
.price-period {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
}

.revenue-share {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 32px;
    background: var(--primary-light);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    flex-grow: 1;
}
.plan-features li {
    padding: 10px 0;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
}
.check-icon {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 4px;
    font-weight: bold;
}

.plan-cta {
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: block;
    width: 100%;
    transition: all 0.3s;
    font-size: 16px;
    margin-top: auto;
}
.plan-cta.primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}
.plan-cta.primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}
.plan-cta.secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--border-light);
}
.plan-cta.secondary:hover {
    background: var(--primary-light);
}

/* 7. Guarantee Section (High-Impact Block)
-------------------------------------------------- */
.guarantee-section {
    background: var(--bg-light);
}

.guarantee-card {
    background: var(--primary-light);
    border-radius: 24px;
    padding: 56px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 32px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (min-width: 768px) {
    .guarantee-card {
        flex-direction: row;
        text-align: left;
        gap: 48px;
    }
}

.guarantee-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.guarantee-icon svg {
    width: 110px;
    height: 110px;
    color: var(--primary);
    flex-shrink: 0;
}

.guarantee-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.guarantee-items {
    display: grid;
    gap: 24px;
}

.guarantee-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .guarantee-item {
        flex-direction: row;
        gap: 16px;
    }
}

.guarantee-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 8px;
}

@media (min-width: 768px) {
    .guarantee-number {
        margin: 0;
    }
}

.guarantee-item h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.guarantee-item p {
    color: var(--text-gray);
    font-size: 16px;
    margin: 0;
}


/* 8. FAQ Section
-------------------------------------------------- */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.faq-item:nth-child(2) { transition-delay: 0.1s; }
.faq-item:nth-child(3) { transition-delay: 0.2s; }
.faq-item:nth-child(4) { transition-delay: 0.3s; }

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    width: 100%;
    background: none;
    border: none;
    text-align: left;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s;
    color: var(--primary);
    font-weight: 400;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
    padding: 0 24px 0px;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 16px;
}
.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
    padding-bottom: 24px;
}

/* 9. Final CTA & Footer
-------------------------------------------------- */
.final-cta {
    background: var(--bg-dark);
    color: var(--white);
    text-align: center;
}
.final-cta-content {
    padding: 80px 0;
}
.final-cta h2 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}
.final-cta p {
    font-size: clamp(18px, 2.5vw, 20px);
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.primary-cta.large {
    padding: 20px 40px;
    font-size: 20px;
}

footer {
    background: #12213A; /* Slightly lighter for depth */
    color: var(--text-light);
    padding: 80px 0 40px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
footer .logo {
    color: var(--text-light);
}
.footer-brand p {
    margin-top: 16px;
    color: var(--text-gray);
    max-width: 250px;
}
.footer-links-container {
    display: flex;
    gap: 72px;
    flex-wrap: wrap;
}
.footer-column h4 {
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--white);
}
.footer-column a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s;
}
.footer-column a:hover {
    color: var(--white);
}
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #334155;
    color: var(--text-gray);
    font-size: 14px;
}

/* 11. Responsive Design
-------------------------------------------------- */
@media (max-width: 1024px) {
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card:hover, .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    section { padding: 64px 0; }
    main { padding-top: 80px; }

    .nav-links, .nav-cta-container { display: none; }
    @media (min-width: 769px) {
      .nav-links { display: flex; }
      .nav-cta-container { display: block; }
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
        position: relative;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--text-dark);
        margin: 5px 0;
        transition: all 0.3s;
        border-radius: 2px;
    }
    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        padding-top: 120px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1001;
    }
    .mobile-nav-links.active {
        transform: translateY(0);
    }
    .mobile-nav-link {
        font-size: 28px;
        font-weight: 700;
        color: var(--text-dark);
        text-decoration: none;
    }
    .mobile-nav-cta {
        background: var(--primary);
        color: var(--white);
        padding: 14px 28px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        margin-top: 20px;
    }

    .trust-bar-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .guarantee-card {
        padding: 40px 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 30px;
    }
    .footer-links-container {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
}