:root {
    --bg-dark: #0B0B0F;
    /* Main Dark Background */
    --bg-light: #f6f7f9;
    --bg-card-dark: #121217;
    /* Light section background */
    --primary-blue: #3B82F6;
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --text-dark: #111827;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Bricolage Grotesque', sans-serif;
    --font-button: 'Poppins', sans-serif;
    --font-secondary: 'Sora', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Para compensar o header fixo */
}

/* Menu Overlay (Mobile) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    /* Slightly narrower for reading comfort */
    margin: 0 auto;
    /* padding: 0 20px; */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

/* Header */
.header {
    background-color: #E8EBF0;
    /* Light gray background */
    padding: 20px 0;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    /* Reduzido para logo ficar mais à esquerda */
}

.logo {
    display: flex;
    align-items: center;
    /* Removed text styles as we use an image now */
}

.logo img {
    height: 36px;
    width: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #111827;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav a {
    color: #4B5563;
    /* Darker gray for light header */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 99px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: #111827;
    color: #FFFFFF;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-right {
    display: flex;
    gap: 32px;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-container {
        padding: 0 15px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        /* Garante que logo e hambúrguer fiquem na mesma linha */
    }

    .header-right {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background-color: #E8EBF0;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        /* Acima do overlay */
    }

    .header-right.active {
        right: 0;
    }

    .nav {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        display: flex !important;
        /* Força a exibição no mobile */
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 1rem;
        display: block !important;
        /* Força a exibição no mobile */
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }


}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 99px;
    font-family: var(--font-button);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-white);
    color: var(--text-dark);
}

.btn-dark-pill {
    background-color: #111827;
    color: #fff;
    border-radius: 99px;
    padding: 10px 28px;
}

.btn-outline-pill {
    background-color: transparent;
    border: 1px solid #111827;
    color: #111827;
    border-radius: 99px;
    padding: 10px 28px;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    border-radius: 99px;
}

.btn-white {
    background-color: var(--text-white);
    color: var(--text-dark);
    border-radius: 99px;
}

.btn-white-pill {
    background-color: var(--text-white);
    color: var(--text-dark);
    padding: 12px 32px;
    border-radius: 99px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding-top: 80px;
    /* Space for image overlap if we did that, but standard flow here */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.highlight-blue {
    color: var(--primary-blue);
}

.hero-sub {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.hero-buttons .btn {
    width: auto;
    min-width: 120px;
    padding: 12px 32px;
    /* Fit text width but keep minimum presence */
}


@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1rem;
    }
}

.hero-image img {
    max-width: 80%;
    border-radius: 12px;
}

/* Stats Ticker */
.stats-ticker {
    padding: 60px 0;
    text-align: center;
    background-color: #f6f7f9;
}

.plus-icon {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 2.5rem;
    vertical-align: top;
    margin-right: 4px;
    display: inline-block;
}

.plus-icon img {
    height: 48px;
    /* Slightly larger as requested */
    width: auto;
    vertical-align: sub;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: -5px;
}

.partners-marquee {
    margin-top: 60px;
    overflow: hidden;
    width: 100%;
    position: relative;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    gap: 60px;
    animation: scroll 10s linear infinite;
    align-items: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.partner-item img {
    height: 72px;
    /* Increased from 28px */
    width: auto;
    opacity: 1;
    transition: opacity 0.3s;
}

.partner-item img:hover {
    opacity: 1;
}

/* Investment Limits */
.investment-limits {
    background-color: #EFF6FF;
    /* Very light blue tint */
    padding: 60px 0;
    text-align: center;
}

.limits-container {
    display: flex;
    flex-direction: column;
    /* Vertical stack as requested */
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.limit-label {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.5rem;
    /* Increased size */
}

.limit-value {
    font-size: 3.5rem;
    /* Significantly increased from 1.5rem */
    font-weight: 800;
    color: var(--text-dark);
}

/* Benefits Section */
.benefits {
    background-color: #FFFFFF;
    padding: 24px 0;
    text-align: center;
}

/* Container do carrossel com gradientes nas bordas para mobile */
.benefits .container {
    position: relative;
}

.benefits h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    line-height: 1.2;
    color: var(--text-dark);
}

.interactive-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.interactive-card {
    background-color: var(--bg-card-dark);
    color: var(--text-white);
    padding: 32px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-align: left;
    width: 300px;
    /* Base width */
    min-height: 280px;
    /* Altura fixa para todos os cards */
    position: relative;
    /* Default State (Inactive) */
    transform: scale(0.9);
    filter: blur(4px);
    opacity: 0.7;
    z-index: 1;
    /* Vertical layout */
    display: flex;
    flex-direction: column;
}

.interactive-card.active {
    transform: scale(1.1);
    filter: blur(0);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.interactive-card:hover {
    /* Optional: slightly lift inactive cards on hover to indicate interactability */
    transform: scale(0.95);
    opacity: 0.9;
}

.interactive-card.active:hover {
    transform: scale(1.1);
    /* Keep active scale */
    opacity: 1;
}

.interactive-card .card-icon {
    flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 16px;
}

.interactive-card .card-icon img {
    height: 40px;
    width: auto;
}

.interactive-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.interactive-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.interactive-card h3 {
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.2;
}

.interactive-card p {
    color: #9CA3AF;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Removido - O comportamento mobile é controlado pelo .stack-carousel abaixo */

@media (max-width: 768px) {
    .interactive-carousel {
        flex-direction: column !important;
        height: auto !important;
        padding: 20px 0;
        display: flex !important;
        overflow: visible !important;
    }

    .interactive-card {
        width: 100% !important;
        /* Increase width to reduce side margins */
        max-width: none !important;
        /* Remove pixel limit */
        /* Limit width for cleaner look */
        min-height: auto !important;
        /* Allow height to fit content */
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
        position: relative !important;
        /* Ensure they flow in the column */
        left: auto !important;
        top: auto !important;
        /* Space between stacked cards */
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06);
        /* Simple subtle shadow */
        border: 1px solid rgba(255, 255, 255, 0.05);
        cursor: default !important;
        /* Remove pointer cursor as click to scroll is disabled */
    }

    /* Ensure the active state doesn't override the reset */
    .interactive-card.active {
        transform: none !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
}

/* Professional Resources */
.professional-resources {
    background-color: var(--bg-light);
    padding: 36px 0;
    text-align: center;
}

.resource-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.resource-block:last-child {
    margin-bottom: 0;
}

.mt-large {
    margin-top: 120px;
}

.professional-resources h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    line-height: 1.2;
    color: var(--text-dark);
}

.resource-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-content img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    /* Optional, matches other cards */
    margin-bottom: 32px;
}

.resource-content p {
    color: #6B7280;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bottom CTA */
.bottom-cta {
    background-color: #FFFFFF;
    padding: 24px 0;
    text-align: center;
}

.bottom-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.small-text {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #6B7280;
    margin-bottom: 16px;
}


/* .cta-carousel and .benefit-card are replaced by .interactive-carousel and .interactive-card
   Keeping commented out for reference if needed during review, can be deleted later.
*/

/* 
.cta-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    perspective: 1000px;
    position: relative;
    height: 350px;
    margin-top: 40px;
}

.cta-carousel .benefit-card {
    position: absolute;
    width: 320px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    background-color: var(--bg-card-dark);
    text-align: left;
    transform-origin: center center;
}

.cta-carousel .benefit-card.active {
    transform: translateX(0) scale(1.1);
    z-index: 10;
    opacity: 1;
    filter: blur(0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-carousel .benefit-card.prev {
    transform: translateX(-280px) scale(0.85);
    z-index: 5;
    opacity: 0.6;
    filter: blur(4px);
}

.cta-carousel .benefit-card.next {
    transform: translateX(280px) scale(0.85);
    z-index: 5;
    opacity: 0.6;
    filter: blur(4px);
}

.cta-carousel .benefit-card:hover {
    transform: inherit;
}

@media (max-width: 768px) {
    .cta-carousel {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .cta-carousel .benefit-card {
        position: relative;
        transform: none !important;
        width: 100%;
        max-width: 350px;
        opacity: 1 !important;
        filter: none !important;
        z-index: 1 !important;
    }
}
*/


.small-cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.small-cta-card .icon img {
    height: 24px;
    width: auto;
}

.small-cta-card {
    background-color: var(--bg-card-dark);
    color: var(--text-white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.small-cta-card strong {
    display: block;
    color: var(--primary-blue);
}

.small-cta-card p {
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* Stack/3D Flow Carousel Logic */
.stack-carousel {
    position: relative;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
    /* Essential for 3D feel */
}

.stack-carousel .interactive-card {
    position: absolute;
    width: 320px;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateX(100%) scale(0.5);
    left: 50%;
    margin-left: -160px;
    will-change: transform, opacity, filter;
    /* Flex Layout vertical - icon+title on top, description below */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* 3D Positions - Linear Focus */
.stack-carousel .pos-center {
    transform: translateX(0) scale(1.1);
    z-index: 20;
    opacity: 1;
    filter: blur(0);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stack-carousel .pos-left {
    transform: translateX(-315px) scale(0.85);
    /* Subtle increased spacing */
    z-index: 10;
    opacity: 0.6;
    filter: blur(2px);
    pointer-events: auto;
    cursor: pointer;
}

.stack-carousel .pos-right {
    transform: translateX(315px) scale(0.85);
    /* Subtle increased spacing */
    z-index: 10;
    opacity: 0.6;
    filter: blur(2px);
    pointer-events: auto;
    cursor: pointer;
}

/* 2nd Level Positions */
.stack-carousel .pos-left-2 {
    transform: translateX(-540px) scale(0.7);
    z-index: 5;
    opacity: 0.3;
    filter: blur(4px);
    pointer-events: auto;
    cursor: pointer;
}

.stack-carousel .pos-right-2 {
    transform: translateX(540px) scale(0.7);
    z-index: 5;
    opacity: 0.3;
    filter: blur(4px);
    pointer-events: auto;
    cursor: pointer;
}

/* Linear Hidden States - pushed further out */
.stack-carousel .pos-hidden-left {
    transform: translateX(-800px) scale(0.5);
    z-index: 0;
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
}

.stack-carousel .pos-hidden-right {
    transform: translateX(800px) scale(0.5);
    z-index: 0;
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
}

/* Fallback Hidden */
.stack-carousel .pos-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hidden state for cycling */
.stack-carousel .pos-hidden {
    transform: translateX(0) scale(0.5);
    /* Hid behind center or far off */
    z-index: 5;
    opacity: 0;
    filter: blur(10px);
    pointer-events: none;
}

@media (max-width: 768px) {

    /* Wrapper com gradientes de fade */
    .benefits .container {
        position: relative;
    }



    .stack-carousel {
        flex-direction: row;
        height: auto;
        gap: 20px;
        position: relative;
        display: flex;
        perspective: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 20px 10px;
        justify-content: flex-start !important;
        /* Scroll personalizado */
        scrollbar-width: thin;
        scrollbar-color: rgba(59, 130, 246, 0.0) rgba(0, 0, 0, 0.1);
        /* Padding nas laterais para o primeiro e último card (Centralizar: 50% - metade do card 42.5vw) */
        padding-left: calc(50% - 42.5vw);
        padding-right: calc(50% - 42.5vw);
    }

    .stack-carousel::-webkit-scrollbar {
        height: 6px;
    }

    .stack-carousel::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    .stack-carousel::-webkit-scrollbar-thumb {
        background: rgba(59, 130, 246, 0.5);
        border-radius: 10px;
    }

    .stack-carousel::-webkit-scrollbar-thumb:hover {
        background: rgba(59, 130, 246, 0.8);
    }

    .stack-carousel .interactive-card {
        position: relative;
        margin-left: 0;
        min-width: 85vw;
        width: 85vw;
        min-height: 200px;
        flex-shrink: 0;
        transform: scale(1);
        opacity: 0.6;
        filter: blur(3px);
        scroll-snap-align: center;
        scroll-snap-stop: always;
        cursor: pointer;
        /* Transições suaves para todas as propriedades */
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
            filter 0.4s ease-out,
            opacity 0.4s ease-out,
            z-index 0s 0.2s;
    }

    /* Hover sutil nos cards não centralizados */
    .stack-carousel .interactive-card:not(.in-view):hover {
        opacity: 0.75;
        transform: scale(1.02);
    }

    /* Card centralizado tem zoom e está nítido */
    .stack-carousel .interactive-card.in-view {
        transform: scale(1.1);
        filter: blur(0px);
        opacity: 1;
        z-index: 10;
        /* Remove o delay do z-index quando está crescendo */
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
            filter 0.4s ease-out,
            opacity 0.4s ease-out,
            z-index 0s 0s;
    }

    /* Efeito de blur nos cards que não estão no centro */
    .stack-carousel .interactive-card:not(.in-view) {
        filter: blur(3px);
        opacity: 0.6;
        z-index: 1;
    }
}

/* Footer Promo */
.footer-promo {
    background-color: #11131a;
    color: var(--text-white);
    padding: 32px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.key-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--primary-blue);
    transform: rotate(-15deg);
    display: inline-block;
}

.key-icon img {
    height: 60px;
    width: auto;
}

.footer-promo h2 {
    font-size: 2.5rem;
    margin-top: 20px;
    line-height: 1.1;
    margin-bottom: 40px;
}

/* Main Footer */
.main-footer {
    background-color: #191b24;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    text-align: center;
    color: #6B7280;
    font-size: 0.9rem;
}

.footer-logo {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

/* Floating Assets Animation */
.floating-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 32px;
}

.floating-asset {
    position: absolute;
    width: 140px;
    /* Base size */
    height: auto;
    z-index: 2;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Smooth bounce */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Top Left */
.asset-bitcoin {
    top: 0%;
    left: 0%;
    transform: translate(-50vw, -50vh) rotate(-45deg);
}

/* Top Right */
.asset-container {
    top: 0%;
    right: 0%;
    transform: translate(50vw, -50vh) rotate(45deg);
}

/* Bottom Left */
.asset-meta {
    bottom: 0%;
    left: 0%;
    transform: translate(-50vw, 50vh) rotate(-45deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-asset {
        width: 100px;
    }

    .asset-bitcoin {
        top: 5%;
        left: 5%;
    }

    .asset-container {
        top: 5%;
        right: 5%;
    }

    .asset-meta {
        bottom: 5%;
        left: 5%;
    }
}

/* Trigger Class */
.floating-wrapper.animate-in .floating-asset {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
}