/* Variables */
:root {
    --dark-bg: #1e1e2f;
    --card-bg: #2a2a44;
    --primary-color: #00ff99; /* Neon Green/Aqua */
    --secondary-color: #ff6b6b; /* Accent Red */
    --text-color: #f0f0f0;
    --shadow-color: rgba(0, 255, 153, 0.4);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header/Logo */
header {
    background-color: #1a1a25;
    /* REDUCED PADDING: Decreased bottom padding to pull the logo closer to the hero section */
    padding: 15px 0 5px; 
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    text-align: center;
    /* REDUCED PADDING: Decreased top padding to pull the headline closer to the logo */
    padding: 10px 20px 30px; /* Reduced top padding from 60px to 30px */
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--shadow-color);
}

.hero .subheader {
    font-size: 1.2rem;
    max-width: 700px;
    /* REDUCED MARGIN: Decreased bottom margin before the CTA */
    margin: 0 auto 15px; /* Reduced bottom margin from 30px to 15px */
    color: #ccc;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    /* REDUCED MARGIN: Decreased top and bottom margin around the CTA button */
    margin: 5px 0; /* Reduced margin from 10px to 5px */
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center; 
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color);
}

.cta-button.primary:hover {
    background-color: var(--dark-bg);
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.cta-button.secondary {
    display: block; 
    background-color: var(--card-bg);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    margin-top: auto; 
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: space-around;
    padding: 30px 0;
    background-color: #1a1a25;
    border-radius: 10px;
    margin-bottom: 40px;
}

.benefit {
    text-align: center;
    flex: 1; 
}

.benefit .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 8px var(--shadow-color);
}

/* Affiliate Grid (Cards) */
.affiliate-grid {
    padding: 40px 0;
}

.affiliate-grid h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-size: 2rem;
}

.affiliate-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    position: relative;
    border: 1px solid #3c3c5a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.affiliate-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 30px rgba(0, 255, 153, 0.2);
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --- FIXES START HERE: Logo size and alignment --- */

.product-header {
    display: flex; /* Aligns logo and H3 horizontally */
    align-items: center; /* Centers logo and H3 vertically */
    margin-bottom: 15px;
}

.product-icon-small { 
    width: 40px; /* Reduced size */
    height: 40px; /* Reduced size */
    margin-right: 15px; /* Space between logo and name */
    margin-bottom: 0; /* Clear previous margin */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.affiliate-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0; /* Crucial: removes bottom margin when using flexbox */
}

/* --- FIXES END HERE --- */

.features {
    margin: 15px 0 20px;
}

.features span {
    display: block;
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.features i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Endorsement */
.endorsement {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px dashed #3c3c5a;
    margin-top: 40px;
}

.endorsement p {
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 10px;
    color: #aaa;
}

.small-print {
    font-size: 0.8rem;
    color: #666;
}

/* Footer (Sticky) */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sticky-footer p {
    margin-right: 20px;
    font-weight: 800;
}

.sticky-footer a {
    background-color: var(--dark-bg);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

.sticky-footer a:hover {
    background-color: var(--card-bg);
}

/* Responsiveness Fixes */
@media (min-width: 768px) {
    .affiliate-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 30px;
    }
    .affiliate-card {
        margin-bottom: 0;
    }
    .trust-bar {
        flex-direction: row;
        gap: 20px;
    }
}
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }
    .trust-bar {
        flex-direction: column;
    }
    .benefit {
        margin-bottom: 20px;
    }
    .sticky-footer {
        flex-direction: column;
        text-align: center;
    }
    .sticky-footer p {
        margin: 0 0 10px 0;
    }
}

/* --- New Refined Intent Search Bar Styles (New Section) --- */
.intent-search-bar {
    text-align: center;
    padding: 40px 20px;
    margin: 40px 0;
    background-color: #1a1a25; /* Dark background to stand out */
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.intent-search-bar h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.intent-search-bar p {
    color: #ccc;
    margin-bottom: 25px;
}

.search-form-refined {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 50px; /* Pill shape */
    overflow: hidden;
    background-color: var(--card-bg);
}

.search-form-refined input[type="text"] {
    flex-grow: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    outline: none;
}

.search-form-refined input[type="text"]::placeholder {
    color: #777;
}

.search-form-refined button {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.search-form-refined button:hover {
    background-color: #00e68e; 
    box-shadow: 0 0 10px var(--primary-color);
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .search-form-refined {
        flex-direction: column;
        border-radius: 10px;
    }
    .search-form-refined button {
        padding: 12px 20px;
    }
}
/* ------------------------------------------------ */