/* ==========================================================================
   1. Core Reset & Global Settings
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    background-color: #ffffff;
    line-height: 1.6;
}

/* ==========================================================================
   2. Navigation Header (With Responsive Hamburger Elements)
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #ffffff;
    border-bottom: 1px solid #edf2f7;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: #e53e3e;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #e53e3e;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

/* Hamburger UI Component */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #1a202c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. Main Global Button Styles
   ========================================================================== */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.btn-solid-red {
    background-color: #e53e3e;
    color: #ffffff;
    border: 1px solid #e53e3e;
}

.btn-solid-red:hover {
    background-color: #c53030;
    border-color: #c53030;
}

.btn-outline-red {
    background-color: transparent;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.btn-outline-red:hover {
    background-color: #fff5f5;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ==========================================================================
   4. Hero Section Layout
   ========================================================================== */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.star-icon {
    margin-right: 6px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #1a202c;
}

.highlight-red {
    color: #e53e3e;
}

.hero-description {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.trust-features {
    display: flex;
    gap: 20px;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
    flex-wrap: wrap;
}

/* Hero Visual & Testimonial Styling */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
}

.main-hero-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: block;
}

.testimonial-card {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #edf2f7;
    max-width: 280px;
}

.stars {
    color: #ffb800;
    margin-bottom: 6px;
    font-size: 16px;
}

.testimonial-text {
    font-weight: 700;
    font-size: 14px;
    color: #1a202c;
}

.testimonial-author {
    color: #718096;
    font-size: 12px;
    margin-top: 4px;
}

/* ==========================================================================
   5. Dynamic Section & Cards UI Structures
   ========================================================================== */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-title span {
    color: #e53e3e;
}

.section-title p {
    color: #718096;
    font-size: 16px;
}

/* Stats Configuration */
.stats-section {
    background-color: #f7fafc;
    padding: 60px 5%;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 42px;
    font-weight: 800;
    color: #e53e3e;
    margin-bottom: 5px;
}

.stat-card p {
    color: #4a5568;
    font-weight: 600;
    font-size: 15px;
}

/* Layout Content Base Blocks */
.features-section, .verticals-section, .process-section, .faq-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid, .verticals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box, .vertical-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    padding: 35px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.feature-box h3, .vertical-card h4 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
}

.feature-box p {
    color: #718096;
    font-size: 15px;
}

/* Verticals Lists Configuration */
.payout-range {
    color: #e53e3e;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 20px;
}

.vertical-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.vertical-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
    font-size: 15px;
}

.vertical-link {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

/* Process Timelines Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
}

.step-num {
    background: #fff5f5;
    color: #e53e3e;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 20px;
}

/* FAQ Implementation Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #edf2f7;
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    cursor: pointer;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    color: #e53e3e;
    font-weight: 700;
}

.faq-answer {
    padding: 0 0 20px 0;
    color: #718096;
    font-size: 15px;
    display: none;
}

/* ==========================================================================
   6. Footer Grid Block Layout
   ========================================================================== */
.main-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 60px 5% 30px 5%;
    font-size: 14px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 40px;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 800;
}

.footer-brand h4 span {
    color: #e53e3e;
}

.footer-grid h5 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-grid a {
    color: #a0aec0;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 13px;
}

/* ==========================================================================
   7. Publisher Page Form Formats
   ========================================================================== */
.form-container {
    max-width: 650px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #2d3748;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.4;
}

/* ==========================================================================
   8. COMPREHENSIVE RESPONSIVE DESIGN MATRIX (Mobile Layout Optimization)
   ========================================================================== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 5%;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }

    .trust-features, .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: relative;
        padding: 15px 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #ffffff;
    }

    /* Displays the hamburger toggle option container on mobile screens */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
    }

    /* Completely isolates navigation dropdown container state by default */
    .nav-links {
        display: none !important; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        padding: 30px 20px;
        gap: 15px;
        text-align: center;
        z-index: 1000;
        border-top: 1px solid #edf2f7;
    }

    /* Activated cleanly when JavaScript appends the active class selector */
    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 16px;
        font-weight: 700;
        padding: 10px 0;
        width: 100%;
        display: block;
        color: #1a202c;
    }

    /* Hides standard layout desktop header actions button group */
    .header-buttons {
        display: none !important;
    }

    /* Spacing matrix configuration rules for responsive mobile links block button grid */
    .mobile-only-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 10px;
    }

    .mobile-only-buttons .btn {
        width: 100%;
        display: block;
    }

    /* Turns the 3 horizontal lines smoothly into an 'X' close symbol */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Adjust page container parameters across mobile views */
    .features-section, .verticals-section, .process-section, .faq-section {
        padding: 50px 5%;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .stat-card h3 {
        font-size: 32px;
    }
    
    .form-container {
        padding: 24px;
        margin: 30px auto;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-only-buttons {
        display: none !important;
    }
}