/* 
   IANKI B2B Landing Page
   Design System e Estilos Base - Mobile First
*/

/* 1. Design Tokens (Variáveis) */
:root {
    /* Cores Principais (Baseadas no Logo) */
    --primary: #ff1645;
    --primary-dark: #cc1237;
    --secondary: #3f63af;
    --secondary-dark: #2d467c;

    /* Backgrounds (Tema Claro - Refinado) */
    --bg-color: #FFFFFF;
    --surface-color: #F3F4F6;
    --card-color: #FFFFFF;

    /* Texto */
    --text-main: #111827;
    --text-muted: #4B5563;
    --text-dim: #9CA3AF;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --grad-surface: linear-gradient(180deg, #FFFFFF 0%, var(--surface-color) 100%);

    /* Espaçamento e Bordas */
    --container-width: 1200px;
    --section-padding: 80px 0;
    /* Mobile default */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Outros */
    --glow-primary: 0 10px 15px -3px rgba(63, 99, 175, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(16px);
}

/* 2. Reset Moderno */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    /* Base size */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* 3. Tipografia Fluid (Clamp) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 6vw, 3rem);
    text-align: center;
}

h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* 4. Layout & Containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--surface-color);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.section-cta {
    background: var(--grad-primary);
    text-align: center;
    color: #FFFFFF;
    padding: 80px 0;
}

.section-cta h2 {
    color: #FFFFFF;
}

.section-cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.section-cta .btn-primary {
    background-color: #FFFFFF;
    color: var(--secondary);
}

/* 5. Componentes Base (Botões) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    /* Full width on mobile */
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #e0143d;
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* 6. Header (Mobile First) */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

#header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo img {
    height: 32px;
}

/* Mobile Menu Links (Hidden/Slide-in by default) */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    /* Off-canvas */
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
    z-index: 1100;
    display: flex;
    /* Always flex, just hidden by position */
}

.nav-links.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.nav-links li a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Mobile Menu CTA inside Nav */
.nav-cta {
    display: none;
    /* Hide top CTA on mobile, usually relying on bottom CTAs */
}

/* Menu Toggle Button (Visible by Default) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    /* Subtle border default */
    z-index: 1200;
    /* Above nav-links */
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Active State for Menu Toggle */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {

    /* 7. Hero Section (Mobile First) */
    .hero-section {
        padding-top: 140px;
        /* Space for fixed header */
        padding-bottom: 60px;
        position: relative;
        overflow: hidden;
        text-align: center;
    }

    .hero-section::before,
    .hero-section::after {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        filter: blur(80px);
        z-index: -1;
        opacity: 0.1;
    }

    .hero-section::before {
        background: var(--primary);
        top: -50px;
        right: -50px;
    }

    .hero-section::after {
        background: var(--secondary);
        bottom: -50px;
        left: -50px;
    }

    .hero-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 10px;
    }

    .hero-content h1 {
        margin-bottom: 1.5rem;
        color: var(--text-main);
    }

    .lead {
        font-size: 1.15rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 16px;
        justify-content: center;
        align-items: center;
    }

    @media (min-width: 640px) {
        .cta-group {
            flex-direction: row;
        }
    }

    /* 8. Common Sections & Grids (Mobile First) */
    .problem-grid,
    .solution-flow,
    .features-grid,
    .steps-horizontal,
    .grid-3 {
        display: grid;
        grid-template-columns: 1fr;
        /* Single column default */
        gap: 24px;
    }

    /* Tablets & Desktop expansion */
    @media (min-width: 768px) {
        .problem-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .features-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .grid-3 {
            grid-template-columns: repeat(2, 1fr);
        }

        .steps-horizontal {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .problem-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .solution-flow {
            grid-template-columns: repeat(4, 1fr);
        }

        .steps-horizontal {
            grid-template-columns: repeat(4, 1fr);
        }

        .grid-3 {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .card {
        background-color: var(--card-color);
        padding: 2rem;
        /* Reduced padding for mobile */
        border-radius: var(--radius-md);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
    }

    .card:hover {
        transform: translateY(-8px);
        border-color: rgba(63, 99, 175, 0.3);
        box-shadow: var(--shadow-lg);
    }

    /* Problem Card Specifics */
    .problem-card .icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    /* Solution Flow Specifics */
    .solution-flow {
        margin-top: 3rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        background: var(--grad-primary);
        color: #FFFFFF;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 1.5rem;
        margin: 0 auto 1.5rem;
        box-shadow: 0 10px 20px rgba(63, 99, 175, 0.2);
    }

    /* 9. Flex Layouts (Benefits, etc) */
    .flex-row,
    .flex-row-reverse {
        display: flex;
        flex-direction: column;
        /* Stack by default */
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    .flex-row .text-left,
    .flex-row-reverse .text-left {
        text-align: center;
        /* Center text on mobile */
    }

    @media (min-width: 1024px) {
        .flex-row {
            flex-direction: row;
            text-align: left;
        }

        .flex-row-reverse {
            flex-direction: row-reverse;
            text-align: left;
        }

        .flex-row .text-left,
        .flex-row-reverse .text-left {
            text-align: left;
        }
    }

    .benefit-content {
        flex: 1;
    }

    .benefit-image {
        width: 100%;
        height: auto;
        min-height: 250px;
        background: var(--card-color);
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }


    /* 10. Logos & Pricing */
    .logos-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 32px;
        opacity: 0.6;
        margin-bottom: 3rem;
        padding: 0 20px;
    }

    .logo-placeholder {
        font-weight: 700;
        font-size: 1.2rem;
    }

    .pricing-card {
        max-width: 100%;
        /* Full width on mobile */
        margin: 0 auto;
        text-align: center;
        padding: 3rem 1.5rem;
        /* Adjusted padding */
        background: var(--card-color);
        border-radius: var(--radius-lg);
        border: 2px solid var(--primary);
        position: relative;
        overflow: hidden;
        box-shadow: var(--glow-primary);
    }

    @media (min-width: 768px) {
        .pricing-card {
            max-width: 450px;
            padding: 4rem 3rem;
        }
    }

    .pricing-card::after {
        content: 'MAIS POPULAR';
        position: absolute;
        top: 20px;
        right: -30px;
        background: var(--secondary);
        color: var(--bg-color);
        font-weight: 800;
        font-size: 0.7rem;
        padding: 4px 40px;
        transform: rotate(45deg);
    }

    .price {
        margin: 2rem 0;
    }

    .price .currency {
        font-size: 1.5rem;
        vertical-align: top;
    }

    .price .value {
        font-size: 3.5rem;
        font-weight: 800;
    }

    .price .period {
        color: var(--text-muted);
    }

    .plus {
        font-size: 1.2rem;
        color: var(--secondary);
        font-weight: 700;
    }

    .pricing-features {
        text-align: left;
        margin: 2rem 0;
    }

    .pricing-features li {
        margin-bottom: 1rem;
        padding-left: 24px;
        position: relative;
    }

    .pricing-features li::before {
        content: '→';
        position: absolute;
        left: 0;
        color: var(--primary);
    }

    /* 11. Footer */
    #footer {
        padding: 60px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        background-color: #FFFFFF;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        text-align: center;
    }

    @media (min-width: 768px) {
        .footer-content {
            flex-direction: row;
            justify-content: space-between;
            text-align: left;
        }
    }

    .footer-logo {
        height: 30px;
    }

    /* 12. Utilities & Animations */
    .text-center {
        text-align: center;
    }

    .text-left {
        text-align: left;
    }

    .mt-1 {
        margin-top: 1rem;
    }

    .mt-2 {
        margin-top: 2rem;
    }

    .mb-1 {
        margin-bottom: 1rem;
    }

    .mb-2 {
        margin-bottom: 2rem;
    }

    .p-2 {
        padding: 2rem;
    }

    .section-title {
        margin-bottom: 1rem;
        text-align: center;
    }

    .section-subtitle {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 3rem;
        font-size: 1.15rem;
        padding: 0 10px;
    }

    .badge {
        display: inline-block;
        padding: 8px 16px;
        background: rgba(255, 22, 69, 0.1);
        color: var(--primary);
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        border: 1px solid rgba(255, 22, 69, 0.2);
        text-transform: uppercase;
        letter-spacing: 1px;
        backdrop-filter: blur(4px);
    }

    /* Blobs - Simplified for Mobile */
    .blob {
        position: absolute;
        width: 300px;
        height: 300px;
        background: var(--secondary);
        filter: blur(100px);
        opacity: 0.05;
        border-radius: 50%;
        z-index: -1;
        pointer-events: none;
        display: none;
        /* Hidden on very small screens to save perf */
    }

    @media (min-width: 768px) {
        .blob {
            display: block;
            width: 600px;
            height: 600px;
            filter: blur(200px);
        }
    }

    /* Animation Classes */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    --grad-primary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --grad-surface: linear-gradient(180deg, #FFFFFF 0%, var(--surface-color) 100%);
    --grad-mesh: none;
    /* Removed harsh mesh */

    /* Espaçamento e Bordas */
    --container-width: 1200px;
    --section-padding: 140px 0;
    /* Increased for better vertical rhythm */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Sombras Elevadas (Subtis) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05),
    0 10px 10px -5px rgba(0, 0, 0, 0.02);

    /* Outros */
    --glow-primary: 0 10px 15px -3px rgba(63, 99, 175, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(16px);
}

/* 2. Reset Moderno */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* 3. Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    /* Modern tech typography feel */
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* 4. Layout & Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--surface-color);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.section-cta {
    background: var(--grad-primary);
    text-align: center;
    color: #FFFFFF;
    padding: 120px 0;
}

.section-cta h2 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.section-cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-cta .btn-primary {
    background-color: #FFFFFF;
    color: var(--secondary);
    font-size: 1.15rem;
}

.section-cta .btn-primary:hover {
    background-color: #F3F4F6;
    color: var(--secondary-dark);
}

/* 5. Componentes Base (Botões) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #e0143d;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--bg-color);
    transform: translateY(-3px) scale(1.02);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.2rem;
}

/* 6. Header (Placeholder styles for future) */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    box-sizing: border-box;
}

#header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* 6.1 Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    /* Default hidden on desktop */
    flex-direction: column;
    gap: 6px;
    z-index: 2000;
    /* Ensure high priority */
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hamburger Animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 7. Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 2rem;
}

.section-title {
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 22, 69, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 22, 69, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

/* Animations Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative Blobs */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--secondary);
    filter: blur(200px);
    opacity: 0.02;
    /* Extremely subtle */
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: float 30s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.2);
    }
}

/* 8. Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 22, 69, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(63, 99, 175, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: initial;
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* 9. Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background-color: var(--card-color);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-12px);
    border-color: rgba(63, 99, 175, 0.3);
    box-shadow: var(--shadow-lg);
}

.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* 10. Solution Flow */
.solution-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 4rem;
}

.flow-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--grad-primary);
    color: #FFFFFF;
    /* Explicit white for contrast */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(63, 99, 175, 0.2);
}

/* 11. Benefits (Flex Layouts) */
.flex-row,
.flex-row-reverse {
    display: flex;
    align-items: center;
    gap: 60px;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.benefit-content {
    flex: 1;
}

.benefit-image {
    flex: 1;
    min-height: 350px;
    background: var(--card-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.image-placeholder {
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.benefit-list {
    margin-top: 2rem;
}

.benefit-list li {
    margin-bottom: 1rem;
    padding-left: 28px;
    position: relative;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* 12. Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--card-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* 13. Steps Horizontal */
.steps-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.step-item {
    padding: 24px;
    border-left: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.02);
}

.step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* 14. Logos & Pricing */
.logos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
    opacity: 0.6;
    margin-bottom: 3rem;
}

.logo-placeholder {
    font-weight: 700;
    font-size: 1.2rem;
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 3rem;
    background: var(--card-color);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow-primary);
}

.pricing-card::after {
    content: 'MAIS POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--secondary);
    color: var(--bg-color);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 40px;
    transform: rotate(45deg);
}

.price {
    margin: 2rem 0;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price .value {
    font-size: 4rem;
    font-weight: 800;
}

.price .period {
    color: var(--text-muted);
}

.plus {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
}

.pricing-features {
    text-align: left;
    margin: 2rem 0;
}

.pricing-features li {
    margin-bottom: 1rem;
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* 15. Footer */
#footer {
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 30px;
}

/* 16. Responsividade (Mobile-First approach) */

/* 16. Desktop Navigation Overrides */
@media (min-width: 1024px) {

    /* Hide Hamburger */
    .menu-toggle {
        display: none !important;
    }

    /* Reset Nav Links to Desktop Row */
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        gap: 32px;
        box-shadow: none;
        padding: 0;
        transform: none;
        right: auto;
    }

    .nav-links li a {
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-muted);
    }

    .nav-links li a:hover {
        color: var(--primary);
    }

    /* Show CTA if you want it on desktop */
    .nav-cta {
        display: block;
    }

    /* Container expands */
    .container {
        padding: 0 24px;
        max-width: var(--container-width);
    }
}



.hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-content {
    padding: 0 10px;
}

.logo img {
    height: 32px;
    /* Slightly smaller on mobile */
}

.cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.cta-group .btn {
    width: 100%;
}

/* Grids to single column */
.problem-grid,
.solution-flow,
.features-grid,
.steps-horizontal,
.grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
}

.flex-row,
.flex-row-reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
}

.flex-row .text-left,
.flex-row-reverse .text-left {
    text-align: center;
}

.benefit-content {
    order: 1;
}

.benefit-image {
    order: 2;
    width: 100%;
    min-height: auto;
}

.section-title {
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Mobile Menu */
.menu-toggle {
    display: flex !important;
    /* Force visibility below 1024px */
    flex-direction: column;
    gap: 5px;
    width: 48px;
    /* Slightly larger for easier clicking */
    height: 48px;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
    z-index: 2100;
    cursor: pointer;
    position: relative;
}

.menu-toggle .bar {
    display: block !important;
    width: 26px;
    height: 3px;
    background-color: var(--primary) !important;
    border-radius: 2px;
    transition: var(--transition);
    pointer-events: none;
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: var(--transition);
    z-index: 1000;
}

.nav-links.active {
    right: 0;
}

.nav-links li a {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-cta {
    display: none;
    /* Hide desktop CTA on mobile */
}

/* Add CTA to mobile menu if needed, or keep it inside the menu-toggle area */
.nav-links::after {
    content: '';
    /* We can add the CTA button here or just let user scroll to footer/cta-final */
}

.pricing-card {
    padding: 3rem 1.5rem;
    width: 100%;
}

.footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}
}

/* Tablet Optimizations (Standard Tablets) */
@media (min-width: 768px) and (max-width: 1023px) {

    .problem-grid,
    .features-grid,
    .grid-3,
    .steps-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .solution-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        max-width: 600px;
    }

    .flex-row,
    .flex-row-reverse {
        flex-direction: column;
        gap: 40px;
    }
}

/* Desktop Overrides */
@media (min-width: 1024px) {

    /* Hide Hamburger */
    .menu-toggle {
        display: none !important;
    }

    /* Reset Nav Links to Desktop Row */
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        gap: 32px;
        box-shadow: none;
        padding: 0;
        transform: none;
        right: auto;
    }

    .nav-links li a {
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-muted);
    }

    .nav-links li a:hover {
        color: var(--primary);
    }

    /* Show CTA if you want it on desktop */
    .nav-cta {
        display: block;
    }

    /* Container padding adjustment */
    .container {
        padding: 0 24px;
        max-width: var(--container-width);
    }

    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .solution-flow {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-horizontal {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-links {
        display: flex;
    }
}