/* Global Variables */
:root {
    --bg-color: #F8F8F4;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --primary-color: #d62a33;
    /* iFood Red */
    --accent-color: #EA1D2C;
    /* Vivid Red/Orange */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: none;
    /* Explicitly requested no shadow */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1380px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #bcbfc2;
    /* Darker gray for visibility */
}

::-webkit-scrollbar-thumb {
    background: #ff3535;
    /* Darker thumb */
    border-radius: 5px;
    border: 2px solid #ff3535;
    /* Matches new track color */
}

::-webkit-scrollbar-thumb:hover {
    background: #f00606;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    /* Semibold max */
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.2;
    /* Tighter spacing for headings */
}

p {
    font-weight: 400;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



.text-center {
    text-align: center;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* No border as requested for cards, handling specific elements carefully */
}

/* Buttons */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: #1a1a1a;
    /* Dark BG */
    color: white;
    border: 1px solid #1a1a1a;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: padding 0.3s ease;
    padding: 12px 0;
    transition: padding 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle separator */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #1a1a1a;
    color: white;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #1a1a1a;
    gap: 8px;
}

.cta-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.85);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-ul {
    display: flex;
    list-style: none;
    gap: 32px;
    /* Space between links */
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Hero Section */
/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    /* Light Theme */
    background-color: #F8F8F4;
    color: var(--text-main);
}

/* Subtle background glow for light theme */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(214, 42, 51, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    max-width: 800px;
    color: var(--text-main);
}

.badge {
    display: inline-flex;
    padding: 8px 16px;
    background: rgba(214, 42, 51, 0.08);
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(214, 42, 51, 0.1);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-note {
    font-size: 0.85rem;
    margin-top: 16px;
    color: var(--text-muted);
}

/* Hero Visual & Floating Elements */
.hero-visual {
    position: relative;
    height: 600px;
    /* Taller container for bot */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Or cover depending on image */
    /* border-radius: 24px; REMOVED border radius if image is transparent 3d object, keeping it gives card look */
    /* Let's keep it clean since it's abstract */
    position: absolute;
    z-index: 1;
    /* Behind float cards but visible */
    transform: perspective(1000px) rotateY(-20deg) rotateX(8deg);
    /* Stronger rotation */
    transition: transform 0.5s ease;
}

.hero-visual:hover .hero-image {
    transform: perspective(1000px) rotateY(-10deg) rotateX(4deg);
    /* Subtle movement on hover */
}

/* Ensure float cards are on top */
.float-card {
    z-index: 5;
    padding: 12px 20px;
    /* More compact padding */
    border-radius: 100px;
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced gap */
    width: max-content;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    /* More opaque */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    position: absolute;
}

.card-2 {
    animation-delay: 2s;
    top: 65%;
    /* Lower */
    right: -20px;
    z-index: 6;
    /* Ensure it's above image */
}

.float-card:first-child {
    top: 25%;
    /* Higher */
    left: -20px;
}

.icon-box {
    width: 32px;
    /* Smaller icon box */
    height: 32px;
    border-radius: 8px;
    background: #F2F2F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    /* Smaller emoji */
}

.float-card p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
}

.float-card span {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

/* Standard Section Header */
.section-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Redesigned Solutions Section */
.solutions-section-new {
    background: #F8F8F4;
    /* Very light gray/white background */
    padding: 120px 0;
}

.solutions-header {
    margin-bottom: 60px;
    max-width: 900px;
    text-align: left;
    /* Left align per reference */
}

.solution-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #1a1a1a;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.solutions-header h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: #1a1a1a;
    line-height: 1.1;
    font-weight: 600;
}

.solutions-header p {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 600px;
    line-height: 1.6;
}

/* 4 Column Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* Smoother transitions */
.solution-card {
    background: #f3f4f6;
    /* Light gray card bg */
    padding: 32px;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smoother "time" */
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    background: #fef2f2;
    /* Very light red tint on hover */
    box-shadow: 0 10px 30px rgba(214, 42, 51, 0.1);

}

.solution-card:hover .solution-icon,
.solution-card:hover h3 {
    color: var(--primary-color);
}

.solution-icon {
    /* font-size: 2rem; Removed since we use SVG */
    margin-bottom: 24px;
    color: #8a1520;
    /* Wine Red */
    transition: color 0.5s ease;
    /* Longer time */
}

.solution-icon svg {
    width: 42px;
    /* Increased size */
    height: 42px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy & slow */
}

.solution-card:hover .solution-icon svg {
    transform: scale(1.2) rotate(5deg);
    /* Pop effect */
}

.solution-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #8a1520;
    /* Wine Red */
    transition: color 0.5s ease;
    /* Longer time */
}

.solution-card p {
    font-size: 1.05rem;
    /* Increase reading size */
    color: #4b5563;
    line-height: 1.6;
}

/* Removed static .highlight-card styles as requested */

/* Actions */
.solutions-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    /* Center buttons as standard for this layout */
}

.btn-outline-dark {
    padding: 14px 32px;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    border-radius: 100px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1rem;
}

.btn-outline-dark:hover {
    background: #1a1a1a;
    color: white;
}

.btn-dark {
    padding: 14px 32px;
    background: #1a1a1a;
    color: white;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
    border: 1px solid #1a1a1a;
}

.btn-dark:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solutions-header h2 {
        font-size: 2.5rem;
    }

    .solutions-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-outline-dark,
    .btn-dark {
        text-align: center;
    }
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease;
    /* No border, no shadow requested */
    background: white;
    /* Clean white for cards on light grey bg */
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Feature Rows */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-row.reverse {
    direction: rtl;
    /* Simple way to flip, reset text direction inside */
}

.feature-row.reverse>* {
    direction: ltr;
}

.feature-visual {
    height: 400px;
    border-radius: 32px;
    /* background: #fff;  Removed background to let glass/image shine */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feature-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 20px;
    /* transition: transform 0.3s ease; optional hover */
}

.feature-list {
    list-style: none;
    margin-top: 24px;
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--text-main);
    font-weight: 500;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    position: relative;
    /* For connecting line */
}

/* Connecting Line Animation (Desktop Only) */
@media (min-width: 900px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 85px;
        /* Align with step numbers approximately */
        left: 50px;
        right: 50px;
        height: 2px;
        background: linear-gradient(90deg, rgba(229, 231, 235, 0.3) 0%, var(--primary-color) 50%, rgba(229, 231, 235, 0.3) 100%);
        background-size: 200% 100%;
        z-index: 0;
        animation: flowLine 3s linear infinite;
    }
}

@keyframes flowLine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.step-card {
    padding: 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(214, 42, 51, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    pointer-events: none;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    color: #4b5563;
    /* Dark gray for visibility on white */
}

.faq-answer p {
    padding: 0 24px 24px;
    margin: 0;
    line-height: 1.6;
}

.faq-toggle {
    transition: transform 0.3s ease;
    display: inline-block;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.faq-question {
    padding: 16px 24px;
    /* Reduced vertical padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.faq-toggle {
    font-size: 1.2rem;
    /* Smaller toggle icon */
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.faq-answer p {
    padding-bottom: 24px;
}

/* FAQ Active State */
.faq-item.active {
    background: rgba(255, 255, 255, 0.9);
    /* More opaque when open */
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Arbitrary height, JS could set exact */
    opacity: 1;
    transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, rgba(245, 247, 250, 0) 0%, rgba(214, 42, 51, 0.05) 100%);
    padding: 120px 0;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

/* Social Proof / CTA Section */
.cta-section-new {
    padding: 0;
    height: 100vh;
    /* Force full viewport height */
    min-height: 800px;
    /* Minimum height safety */
    display: flex;
    align-items: center;
    position: relative;
    background: #111;
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Unified Glass Card - Single Component */
.cta-unified-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f5f5f7;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    min-height: 700px;
    /* Enforce a taller card */
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.cta-content {
    padding: 80px 60px;
    /* Increased height via padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cashflow-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-submit {
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.form-submit:hover {
    background: #b82530;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(214, 42, 51, 0.2);
}

.cashflow-content h2 {
    color: white;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.cashflow-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.cta-content h2 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.cta-tag {
    display: inline-block;
    padding: 10px 18px;
    /* Glassmorphism on tags */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 42, 51, 0.3);
}

.cta-button:hover {
    background: #b82530;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 42, 51, 0.4);
}

.cta-button span {
    transition: transform 0.3s ease;
}

.cta-button:hover span {
    transform: translateX(5px);
}

.cta-image {
    overflow: hidden;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .cta-unified-card {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 40px;
    }

    .cta-image {
        min-height: 300px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-content-card {
        border-radius: 24px 24px 0 0;
        padding: 40px;
    }

    .cta-image-wrapper {
        border-radius: 0 0 24px 24px;
        min-height: 300px;
    }

    .cta-content-card h2 {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    padding: 60px 0;
    background: #F8F8F4;
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer .logo {
    color: var(--primary-color);
}

.footer p,
.footer a {
    color: var(--text-secondary);
}

.footer a:hover {
    color: var(--primary-color);
}

.footer strong {
    color: var(--text-primary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-weight: 600;
}

.background-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(234, 29, 44, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Logo Ticker */
.logo-ticker-section {
    padding: 60px 0;
    overflow: hidden;
    background: #F8F8F4;
    /* Clean background for ticker */
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #F2F2F7;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 40px;
}

.logo-ticker-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Fade edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    width: calc(250px * 18);
    /* 6 logos x 3 sets = 18 items for wide screen coverage */
    animation: scroll 30s linear infinite;
}

.ticker-item {
    width: 250px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticker-item img {
    max-width: 100%;
    height: 80px;
    /* Increased size */
    object-fit: contain;
    opacity: 1;
    /* Full visibility - original colors */
    filter: none;
    /* No grayscale - keep original colors */
    transition: all 0.3s ease;
}

.ticker-item img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 6));
        /* Move exactly one set (6 logos @ 250px) for seamless loop */
    }
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #F8F8F4;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--primary-color);
    background: rgba(214, 42, 51, 0.05);
    /* Soft red bg */
    border-radius: 12px;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Scroll Animation handled by AOS */

/* Staggered delays for grids */




/* Mobile Toggle - Hidden by default */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
}

/* Premium Side Drawer Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden off-screen */
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smooth slide */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the container */
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.header-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Overlay Backdrop when active (Optional but good for premium feel) */
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.mobile-menu.active::before {
    left: -100vw;
    /* Keeps it relative to the drawer */
    opacity: 1;
    pointer-events: all;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .header-container .btn {
        display: none;
        /* Find "Falar com Especialista" in drawer */
    }

    .mobile-toggle {
        display: block;
    }
}

/* Restoring Footer Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-container,
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 32px auto;
    }

}

.lead-capture-section {
    padding: 80px 0;
    background: #F8F8F4;
    /* Light background requested */
    position: relative;
    overflow: hidden;
}

/* Background glow for the section - subtle light */
.lead-capture-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(214, 42, 51, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.lead-capture-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.lead-info {
    max-width: 500px;
}

.lead-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(214, 42, 51, 0.1);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    background: rgba(214, 42, 51, 0.05);
}

.lead-info h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.lead-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.lead-form-card {
    background: white;
    /* Light card */
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    max-width: 450px;
    /* Optimize width */
    margin-left: auto;
    /* Push to right */
    position: relative;
    overflow: hidden;
}

/* Form inputs styling - Pill shaped Light */
.lead-input,
.lead-select {
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    /* Pill shape */
    font-size: 0.95rem;
    color: var(--text-main);
    background: #f9f9f9;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.lead-input:focus,
.lead-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(214, 42, 51, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.lead-form-group {
    margin-bottom: 16px;
    /* Tighter spacing */
}

.lead-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 100px;
    /* Pill button */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.lead-submit-btn:hover {
    transform: translateY(-2px);
    background: #b82530;
    box-shadow: 0 4px 20px rgba(214, 42, 51, 0.4);
}

@media (max-width: 900px) {
    .lead-capture-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .lead-info {
        margin: 0 auto;
    }

    .lead-form-card {
        margin: 0 auto;
    }

    .lead-info h2 {
        font-size: 2.5rem;
    }
}

/* Bento Grid Layout - Reference Style */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.bento-card {
    height: 520px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-card:hover {
    transform: translateY(-8px);
}

/* Light Card Style */
.card-light {
    background: #F8F8F4;
    /* Off-white beige tone */
    padding: 40px;
    justify-content: space-between;
}

.card-visual-top {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 20px;
}

/* UI Mockup Mini elements */
.ui-mockup-mini {
    width: 100%;
}

.ui-row {
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ui-pill {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.ui-line {
    width: 40px;
    height: 6px;
    background: #E5E5E5;
    border-radius: 10px;
}

.ui-tag {
    display: inline-block;
    background: #EAEAE6;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Dark Image Card Style */
.card-dark {
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    justify-content: flex-end;
    /* Text at bottom */
    padding: 40px;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

/* Typography for new cards */
.card-content-bottom {
    position: relative;
    z-index: 2;
}

.card-light .card-content-bottom h3 {
    font-size: 2.2rem;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.card-light .card-content-bottom p {
    color: #666;
    line-height: 1.5;
    font-size: 1.05rem;
}

.card-dark .card-content-bottom h3 {
    font-size: 2.2rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.card-dark .card-content-bottom p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 1.05rem;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-card:last-child {
        grid-column: span 1;
    }

    .bento-card {
        height: 450px;
    }
}

/* ========================================
   STICKY STACKING WRAPPER
   ======================================== */
.stack-wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
    /* Reduced exit spacing */
    /* Removed min-height to eliminate whitespace */
    position: relative;
    /* Height will now be natural based on content flow */
}

/* Retention Split Card Section - Reference Style */
.retention-section {
    padding: 0;
    position: sticky;
    top: 120px;
    z-index: 1;
    margin-bottom: 80px;
    /* Matches reference margin */
    background: transparent;
}

.retention-section .container {
    max-width: 1600px;
}


.retention-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #1b1b1b;
    /* Solid background prevents transparency issues */
    border-radius: 40px;
    overflow: hidden;
    min-height: 520px;
    position: relative;
    /* Ensure solid background and shadow for depth if needed */
}

.retention-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.retention-content h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.retention-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 420px;
}

.retention-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.pill-item {
    padding: 10px 20px;
    border: 1.5px solid #ffffff;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background: transparent;
    transition: all 0.3s ease;
}

.pill-item:hover {
    background: #ffffff;
    color: #1b1b1b;
}

.nav-ul a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    padding: 8px 16px;
    border-radius: 100px;
}

.link-arrow {
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-bottom: 4px;
    border-bottom: 2px solid #ffffff;
    width: fit-content;
}

.link-arrow span {
    transition: transform 0.3s ease;
}

.link-arrow:hover span {
    transform: translateX(4px);
}

.retention-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.retention-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .retention-card {
        grid-template-columns: 1fr;
    }

    .retention-image {
        min-height: 350px;
        order: -1;
    }

    .retention-content h2 {
        font-size: 2.4rem;
    }
}

/* Cashflow Split Card Section - Inverted Layout (Image Left) */
.cashflow-section {
    padding: 0;
    position: sticky;
    top: 120px;
    z-index: 2;
    margin-bottom: 80px;
    /* Matches reference margin */
    background: transparent;
}

.cashflow-section .container {
    max-width: 1600px;
}


.cashflow-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #1b1b1b;
    border-radius: 40px;
    overflow: hidden;
    min-height: 520px;
    position: relative;
}

.cashflow-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
    /* Content on right */
}

.cashflow-content h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.cashflow-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 420px;
}

.cashflow-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.cashflow-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    order: 1;
    /* Image on left */
}

.cashflow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .cashflow-card {
        grid-template-columns: 1fr;
    }

    .cashflow-image {
        min-height: 350px;
        order: -1;
    }

    .cashflow-content {
        order: 1;
    }

    .cashflow-content h2 {
        font-size: 2.4rem;
    }
}

/* Inactivity Split Card Section - Purple Theme */
.inactivity-section {
    padding: 0;
    position: sticky;
    top: 120px;
    z-index: 3;
    margin-bottom: 0;
    /* Remove extra margin from last item to prevent whitespace */
    background: transparent;
}

.inactivity-section .container {
    max-width: 1600px;
}


.inactivity-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #1b1b1b;
    border-radius: 40px;
    overflow: hidden;
    min-height: 520px;
    position: relative;
}

.inactivity-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inactivity-content h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.inactivity-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 420px;
}

.inactivity-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.inactivity-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inactivity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .inactivity-card {
        grid-template-columns: 1fr;
    }

    .inactivity-image {
        min-height: 350px;
        order: -1;
    }

    .inactivity-content h2 {
        font-size: 2.4rem;
    }
}