@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    /* Primary Brand Colors (Nigerian Green & Blue) */
    --color-green: #008751; /* Classic Nigerian Green */
    --color-green-light: #10b981;
    --color-blue: #2563eb;
    --color-blue-dark: #1e3a8a;
    
    /* Light Theme (Default) */
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Specific UI Colors */
    --nav-bg: rgba(255, 255, 255, 0.9);
    --hover-bg: #f1f5f9;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    /* Colorful Category Pills (Preserved as requested) */
    --pill-ai-bg: #dbeafe; --pill-ai-text: #1d4ed8;
    --pill-fintech-bg: #f3e8ff; --pill-fintech-text: #7e22ce;
    --pill-edu-bg: #dcfce7; --pill-edu-text: #15803d;
    --pill-biz-bg: #ffe4e6; --pill-biz-text: #be123c;
    --pill-ecom-bg: #fef9c3; --pill-ecom-text: #a16207;
    --pill-trans-bg: #ccfbf1; --pill-trans-text: #0f766e;
}

/* Dark Mode Variables */
.dark-mode {
    --bg-main: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --nav-bg: rgba(15, 23, 42, 0.9);
    --hover-bg: #334155;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);

    /* Slightly muted pills for dark mode readability */
    --pill-ai-bg: rgba(37, 99, 235, 0.2); --pill-ai-text: #93c5fd;
    --pill-fintech-bg: rgba(147, 51, 234, 0.2); --pill-fintech-text: #d8b4fe;
    --pill-edu-bg: rgba(22, 163, 74, 0.2); --pill-edu-text: #86efac;
    --pill-biz-bg: rgba(225, 29, 72, 0.2); --pill-biz-text: #fda4af;
    --pill-ecom-bg: rgba(202, 138, 4, 0.2); --pill-ecom-text: #fde047;
    --pill-trans-bg: rgba(13, 148, 136, 0.2); --pill-trans-text: #5eead4;
}

.dark-mode #hero-headline {
    color: var(--text-main);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    overflow-x: hidden; /* This absolutely prevents horizontal sliding */
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--nav-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
}

.logo-icon {
    width: auto;
    height: 50px;
}


/* ==========================================================================
   Navbar Logo Styling
   ========================================================================== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 50px; /* Standard crisp navbar height */
    width: auto;  /* Prevents stretching or squashing */
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo:hover .nav-logo-img {
    transform: scale(1.05); /* Slight pop effect when hovered */
}

/* Optional: If you want it slightly smaller on phones */
@media (max-width: 768px) {
    .nav-logo-img {
        height: 32px;
    }
}


.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-green);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.icon-btn:hover {
    background-color: var(--hover-bg);
    color: var(--color-blue);
}

.btn-text {
    font-weight: 500;
}

.btn-primary {
    background-color: var(--color-green);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #00683e;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

#hero-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.75rem; /* Reduced from 3.5rem for a sleeker look */
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--color-blue);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

#hero-search-form {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#hero-search-form:focus-within {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 0.75rem;
}

#hero-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
}

.btn-ai {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-green);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-ai:hover {
    background-color: #00683e;
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.pill {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s, transform 0.2s;
}

.pill:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.pill-ai { background-color: var(--pill-ai-bg); color: var(--pill-ai-text); }
.pill-fintech { background-color: var(--pill-fintech-bg); color: var(--pill-fintech-text); }
.pill-edu { background-color: var(--pill-edu-bg); color: var(--pill-edu-text); }
.pill-business { background-color: var(--pill-biz-bg); color: var(--pill-biz-text); }
.pill-ecommerce { background-color: var(--pill-ecom-bg); color: var(--pill-ecom-text); }
.pill-transport { background-color: var(--pill-trans-bg); color: var(--pill-trans-text); }

/* Dynamically Generated Category Pills */
.hero-categories-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.pill-arrow-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.pill-arrow-btn:hover {
    background-color: var(--border-color);
}

.category-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.category-pill:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.pill-ai-automation { background-color: #e0e7ff; color: #3730a3; }
.pill-fintech { background-color: #dcfce7; color: #166534; }
.pill-education { background-color: #fef08a; color: #854d0e; }
.pill-business { background-color: #ffedd5; color: #9a3412; }
.pill-productivity { background-color: #e0f2fe; color: #075985; }
.pill-e-commerce { background-color: #fce7f3; color: #9d174d; }
.pill-transportation { background-color: #f3e8ff; color: #6b21a8; }
.pill-health-wellness { background-color: #ccfbf1; color: #115e59; }
.pill-entertainment-media { background-color: #fae8ff; color: #86198f; }
.pill-real-estate-housing { background-color: #fef4c3; color: #a16207; }
.pill-agriculture { background-color: #d1fae5; color: #065f46; }
.pill-social-community { background-color: #fee2e2; color: #991b1b; }
.pill-developer-tools { background-color: #f1f5f9; color: #334155; }
.pill-other { background-color: #e5e7eb; color: #374151; }

/* ==========================================================================
    Dark Mode Specific Category Pill Colors (Glowing Effect)
    ========================================================================== */
.dark-mode .category-pill { border: none !important; }
.dark-mode .pill-ai-automation { background-color: rgba(55, 48, 163, 0.3); color: #a5b4fc; }
.dark-mode .pill-fintech { background-color: rgba(22, 101, 52, 0.3); color: #86efac; }
.dark-mode .pill-education { background-color: rgba(133, 77, 14, 0.3); color: #fde047; }
.dark-mode .pill-business { background-color: rgba(154, 52, 18, 0.3); color: #fdba74; }
.dark-mode .pill-productivity { background-color: rgba(7, 89, 133, 0.3); color: #7dd3fc; }
.dark-mode .pill-e-commerce { background-color: rgba(157, 23, 77, 0.3); color: #f9a8d4; }
.dark-mode .pill-transportation { background-color: rgba(107, 33, 168, 0.3); color: #d8b4fe; }
.dark-mode .pill-health-wellness { background-color: rgba(17, 94, 89, 0.3); color: #5eead4; }
.dark-mode .pill-entertainment-media { background-color: rgba(134, 25, 143, 0.3); color: #f0abfc; }
.dark-mode .pill-real-estate-housing { background-color: rgba(161, 98, 7, 0.3); color: #fde047; }
.dark-mode .pill-agriculture { background-color: rgba(6, 95, 70, 0.3); color: #6ee7b7; }
.dark-mode .pill-social-community { background-color: rgba(153, 27, 27, 0.3); color: #fca5a5; }
.dark-mode .pill-developer-tools { background-color: rgba(51, 65, 85, 0.3); color: #cbd5e1; }
.dark-mode .pill-other { background-color: rgba(55, 65, 81, 0.3); color: #d1d5db; }

/* ========================================================================== 
   Compact Category Badges inside Cards
   ========================================================================== */
.product-card .category-pill,
.card-body .category-pill,
.category-badge,
[class*="-card"] .category-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    line-height: 1.2;
    border-radius: 9999px;
    letter-spacing: 0.01em;
}

.pill-sm {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    padding: 0.2rem 0.55rem !important;
    line-height: 1.2 !important;
}

/* ==========================================================================
   Product Grid Section
   ========================================================================== */
.product-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 24px;
    margin-bottom: 4rem;
}

.grid-container {
    display: grid;
    /* Using minmax(0, 1fr) strictly forces equal 3-column widths */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-title h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.see-all {
    font-size: 0.875rem;
    color: var(--color-blue);
    font-weight: 500;
}

.see-all:hover {
    text-decoration: underline;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Dynamic Product Card Styles (Injected by JS) */
.product-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: var(--color-blue);
}

.card-explore-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover .card-explore-text {
    opacity: 1;
}

.product-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
    background-color: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-blue);
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    
    /* Modern Line Clamping: Limits text to exactly 2 lines and adds ... */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* Ensures words wrap nicely instead of stretching the card */
    white-space: normal;
    word-break: break-word;
}

.product-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background-color: var(--hover-bg);
    color: var(--text-muted);
    font-weight: 500;
}

.card-arrow {
    color: var(--border-color);
    transition: color 0.2s;
}

.product-card:hover .card-arrow {
    color: var(--color-blue);
}

/* ==========================================================================
   Bottom Sections (Mission, AI CTA, Submit)
   ========================================================================== */
.mission {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    gap: 4rem;
}

.mission-content {
    flex: 1;
}

.accent-bar {
    width: 40px;
    height: 4px;
    background-color: var(--color-green);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.mission-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-blue {
    color: var(--color-blue);
}

.mission-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.mission-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(0,135,81,0.1));
    height: 250px;
    border-radius: 24px;
}

.visual-pill {
    background-color: var(--bg-card);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--card-shadow);
}

.ai-cta {
    background-color: var(--color-blue-dark);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 24px;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.accent-bar.light {
    background-color: var(--color-green-light);
    margin: 0 auto 1.5rem;
}

.ai-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ai-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.ai-cta-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 0.5rem;
    border-radius: 9999px;
}

.ai-cta-search input {
    flex: 1;
    border: none;
    padding: 0 1rem;
    font-size: 1rem;
    outline: none;
    color: #0f172a;
}

.btn-primary.small {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
}

.submit-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-secondary);
    padding: 3rem 4rem;
    border-radius: 24px;
    max-width: 1000px;
    margin: 0 auto 4rem;
    border: 1px solid var(--border-color);
}

.submit-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.submit-cta p {
    color: var(--text-muted);
}

.btn-accent {
    background-color: var(--color-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-accent:hover {
    background-color: var(--color-blue-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    margin-top: auto;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.brand-col .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: inline-block;
    margin-bottom: 1rem;
}

.logo-accent {
    color: var(--color-blue);
}

.brand-col p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--color-blue);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-green);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .mission {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .mission-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hamburger-btn {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    #hero-headline {
        font-size: 2rem;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
    .submit-cta {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .ai-cta-search {
        flex-direction: column;
        border-radius: 12px;
        background: transparent;
        gap: 1rem;
    }
    .ai-cta-search input {
        border-radius: 9999px;
        padding: 0.8rem 1rem;
    }
    .ai-cta-search button {
        width: 100%;
    }

    /* 1. Prevent the brand name from wrapping and slightly reduce size */
    .brand-name {
        font-size: 1rem;
        white-space: nowrap;
    }

    /* 2. Tighten the space between all the right-side icons */
    .nav-actions {
        gap: 0.25rem;
    }

    /* 3. Reduce padding on the icon buttons to save horizontal space */
    .icon-btn {
        padding: 0.25rem;
    }

    /* 4. Strictly prevent the Sign up button from squishing or wrapping */
    .btn-primary {
        white-space: nowrap !important;
        flex-shrink: 0;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem;
    }

    /* 5. Tighten the Login text link */
    .btn-text {
        padding: 0.25rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Mobile Hamburger Nav Slider */
    .hamburger-btn {
        display: flex;
        margin-left: 0.5rem;
    }
    .nav-links {
        position: fixed;
        top: 73px;
        right: -100%; /* Hidden off-screen */
        width: 250px;
        height: calc(100vh - 73px);
        background-color: var(--bg-card);
        flex-direction: column;
        gap: 0;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border-color);
        z-index: 99;
    }
    .nav-links.active-slider {
        right: 0;
    }
    .nav-links a {
        padding: 1.25rem 2rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: block;
    }
}


/* ==========================================================================
   ADDED RESPONSIVE BREAKPOINTS (Appended Here)
   ========================================================================== */

/* 1. Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .nav-container, 
    .product-grid-section, 
    .footer-top {
        max-width: 1400px;
    }
    #hero-headline {
        font-size: 3.25rem;
    }
}

/* 2. Laptop (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero {
        padding: 4rem 1.5rem 2rem;
    }
    .product-grid-section {
        padding: 1.5rem;
    }
    .grid-container {
        gap: 1.5rem;
    }
    .mission {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .footer-top {
        gap: 2rem;
    }
}

/* 3. Tablet / iPad (max-width: 768px) - Enhancing existing rules */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 1.5rem;
    }
    .mission-visual {
        height: 200px;
        width: 100%;
    }
    .submit-cta {
        padding: 2rem;
    }
    .footer-top {
        /* Ensures footer stacks beautifully into 2 columns on tablets */
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 4. Android / Standard Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    #hero-headline {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .category-pills {
        gap: 0.5rem;
    }
    .pill, .category-pill {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    .grid-container {
        gap: 1rem;
    }
    .mission-content h2 {
        font-size: 1.75rem;
    }
    .mission-content p {
        font-size: 0.95rem;
    }
    .submit-cta h3 {
        font-size: 1.25rem;
    }
    .footer-top {
        /* Forces footer to be a single stack on standard mobile */
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .brand-col {
        margin-bottom: 1rem;
    }
}

/* 5. Smallest iPhone / Narrow Mobile (max-width: 320px) */
@media (max-width: 320px) {
    .navbar {
        padding: 0.5rem;
    }
    .brand-logo {
        font-size: 1rem;
    }
    .nav-logo-img {
        height: 28px;
    }
    #hero-headline {
        font-size: 1.5rem;
    }
    #hero-search-form {
        padding: 0.25rem 0.25rem 0.25rem 1rem;
    }
    .btn-ai {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    .product-grid-section {
        padding: 1rem;
    }
    .product-card {
        padding: 0.75rem;
    }
    .product-logo {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
    .ai-cta {
        padding: 2rem 1rem;
    }
    .ai-cta h3 {
        font-size: 1.5rem;
    }
    .submit-cta {
        padding: 1.5rem 1rem;
    }
}