/* ========================================
   STYLE.CSS - Page Specific Styles
   ======================================== */

/* ========================================
   Loader / Splash Screen
   ======================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-8);
}

.loader-logo-img {
    max-width: 200px;
    height: auto;
    opacity: 0;
    animation: loaderFadeIn 0.8s ease forwards;
}

@keyframes loaderFadeIn {
    to {
        opacity: 1;
    }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background-color: var(--color-gray-800);
    border-radius: var(--radius-full);
    margin: var(--space-8) auto 0;
    overflow: hidden;
}

.loader-progress {
    width: 0;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    z-index: var(--z-header);
    transition: background-color var(--transition-base);
    background-color: transparent;
}

.header.scrolled {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

/* Menu Toggle Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 6px;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.menu-toggle.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   Menu Overlay
   ======================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: calc(var(--z-header) - 1);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

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

.menu-content {
    display: flex;
    width: 100%;
    height: 100%;
    padding-top: var(--header-height);
}

.menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-16) var(--container-padding);
}

.menu-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.menu-nav-item {
    overflow: hidden;
}

.menu-nav-link {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    text-transform: uppercase;
    color: var(--color-white);
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out-expo), color var(--transition-base);
}

.menu-overlay.active .menu-nav-link {
    transform: translateY(0);
}

.menu-nav-item:nth-child(1) .menu-nav-link {
    transition-delay: 0.1s;
}

.menu-nav-item:nth-child(2) .menu-nav-link {
    transition-delay: 0.15s;
}

.menu-nav-item:nth-child(3) .menu-nav-link {
    transition-delay: 0.2s;
}

.menu-nav-item:nth-child(4) .menu-nav-link {
    transition-delay: 0.25s;
}

.menu-nav-item:nth-child(5) .menu-nav-link {
    transition-delay: 0.3s;
}

.menu-nav-link:hover {
    color: var(--color-primary);
}

/* Menu scribble line effect */
.menu-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 Q 25 0 50 5 T 100 5' stroke='%239B4DCA' stroke-width='3' fill='none'/%3E%3C/svg%3E") repeat-x;
    background-size: 100px 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.menu-nav-link:hover::after {
    transform: scaleX(1);
}

.menu-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-2);
    padding: var(--space-8);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    transition-delay: 0.2s;
}

.menu-overlay.active .menu-images {
    opacity: 1;
    transform: translateX(0);
}

.menu-image {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-slow);
}

.menu-image:hover img {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .menu-images {
        display: none;
    }
}

/* ========================================
   Hero Sticky Section with Internal Transitions
   ======================================== */
.hero-sticky-container {
    height: auto;
    min-height: 100vh;
    position: relative;
    background-color: transparent;
    z-index: 1;
    padding-top: 80px;
    /* Header spacing */
    padding-bottom: 20px;
}

.hero-sticky-wrapper {
    position: relative;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4rem;
    /* Spacing between sections */
    background-color: transparent;
}

/* Ensure layers are transparent */
.hero-layer {
    background-color: transparent;
}

/* Mobile: Reduced height for less spacing after map */
@media (max-width: 1024px) {
    .hero-sticky-container {
        height: auto;
        min-height: 100vh;
        padding-bottom: 0;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient-bg {
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Content Layers - Stacked absolutely */
/* Content Layers - Stacked vertically now */
.hero-layer {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 1000px;
    padding: 0 var(--container-padding);
    text-align: center;
    opacity: 1;
    visibility: visible;
    margin: 0 auto 2rem auto;
}

/* Obsolete layer states removed */

/* Hero Logo - Centered */
.hero-logo {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 auto var(--space-6) auto;
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Mobile: Logo menor e mais acima */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 100px;
        margin: -20px auto var(--space-1) auto;
    }
}

/* Headline */
.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-size: var(--text-display);
    font-weight: var(--weight-extrabold);
    line-height: 1.3;
    letter-spacing: var(--tracking-tighter);
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

/* Mobile: Headline com melhor espaçamento */
@media (max-width: 768px) {
    .hero-headline {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        line-height: 1.4;
        padding: 0 var(--space-2);
        word-spacing: 0.05em;
    }
}

/* Hero Logo Wrapper (if used) */
.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-8);
}

.hero-headline .word {
    display: inline-block;
    margin-right: 0.1em;
}

.hero-headline .letter {
    display: inline-block;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ========================================
   Keyword Highlight Effects
   ======================================== */

/* Base keyword style */
.keyword {
    position: relative;
    display: inline;
}

/* ----------------------------------------
   Underline — "Performance de elite"
   Uses background-image for multi-line support
   ---------------------------------------- */
/* ----------------------------------------
   Underline — "Performance de elite"
   Uses background-image for multi-line support
   ---------------------------------------- */
.keyword--underline {
    background-image: linear-gradient(to right, #9B4DCA, #9B4DCA);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0% 3px;
    padding-bottom: 4px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size 800ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 600ms;
    /* Waits for loader */
}

.hero-visible .keyword--underline {
    background-size: 100% 3px;
}

/* ----------------------------------------
   Glow — "investimento"
   Color + text-shadow transition
   ---------------------------------------- */
.keyword--glow {
    color: var(--color-white);
    text-shadow: none;
    transition: none;
}

.hero-visible .keyword--glow {
    animation: glow-in 600ms ease-out 1800ms forwards;
}

@keyframes glow-in {
    from {
        color: var(--color-white);
        text-shadow: none;
    }

    to {
        color: #9B4DCA;
        text-shadow: 0 0 20px rgba(155, 77, 202, 0.6), 0 0 40px rgba(155, 77, 202, 0.3);
    }
}

/* ----------------------------------------
   Strike — "aposta"
   Line + text fade
   ---------------------------------------- */
.keyword--strike {
    position: relative;
    color: var(--color-white);
    transition: none;
}

.keyword--strike::after {
    content: '';
    position: absolute;
    top: 55%;
    left: -5%;
    width: 110%;
    height: 3px;
    background: linear-gradient(90deg, #EF4444, #F87171);
    border-radius: 1.5px;
    transform: scaleX(0) rotate(-2deg);
    transform-origin: left center;
}

.hero-visible .keyword--strike::after {
    animation: strike-draw 600ms cubic-bezier(0.22, 1, 0.36, 1) 2400ms forwards;
}

.hero-visible .keyword--strike {
    animation: strike-fade 400ms ease-out 2600ms forwards;
}

@keyframes strike-draw {
    from {
        transform: scaleX(0) rotate(-2deg);
    }

    to {
        transform: scaleX(1) rotate(-2deg);
    }
}

@keyframes strike-fade {
    from {
        color: var(--color-white);
    }

    to {
        color: #666666;
    }
}

/* ----------------------------------------
   Accessibility: Reduced Motion
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .keyword--underline {
        background-size: 100% 4px;
        animation: none !important;
    }

    .keyword--glow {
        color: #9B4DCA;
        text-shadow: 0 0 20px rgba(155, 77, 202, 0.6), 0 0 40px rgba(155, 77, 202, 0.3);
        animation: none !important;
    }

    .keyword--strike {
        color: #666666;
        animation: none !important;
    }

    .keyword--strike::after {
        transform: scaleX(1) rotate(-2deg);
        animation: none !important;
    }
}

/* ----------------------------------------
   Mobile: Smaller line heights
   ---------------------------------------- */
@media (max-width: 768px) {
    .keyword--underline {
        background-size: 0% 3px;
        padding-bottom: 4px;
    }

    .hero-visible .keyword--underline {
        background-size: 100% 3px;
    }

    .keyword--strike::after {
        height: 2px;
    }
}

/* Highlighted text in typewriter (wrapped in pipes) */
.typewriter-highlight {
    color: var(--color-primary);
    font-weight: var(--weight-bold);
}

/* Subheadline */
.hero-subheadline {
    font-family: var(--font-secondary);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.6;
    color: var(--color-gray-300);
    margin: 0;
    text-transform: uppercase;
    min-height: 120px;
    text-align: center;
}

/* Mobile: Subheadline mais compacto */
@media (max-width: 768px) {
    .hero-subheadline {
        font-size: 0.95rem;
        line-height: 1.5;
        text-transform: uppercase;
        min-height: auto;
        padding: 0 var(--space-4);
    }
}

.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--color-primary);
    font-weight: var(--weight-bold);
    animation: blink 0.7s infinite;
    transition: opacity 0.3s ease;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* CTA */
.hero-cta-wrapper {
    margin-bottom: var(--space-12);
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Specific Centering for Subheadline and CTA Layers */
#heroLayerSubheadline1,
#heroLayerCta {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-btn {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Social Proof - Adjusted layout */
.hero-social-proof {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
    max-width: none;
    margin: 0;
    padding: 0;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    flex-shrink: 0;
}

.proof-number {
    font-family: var(--font-primary);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: var(--weight-black);
    color: var(--color-primary);
    line-height: 1;
}

.proof-prefix,
.proof-suffix {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
}

.proof-label {
    font-size: var(--text-lg);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
    max-width: none;
}

.proof-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--color-gray-700), transparent);
    flex-shrink: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-500);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color var(--transition-base), opacity var(--transition-base);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator:hover {
    color: var(--color-primary);
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Map Layer */
.hero-layer--map {
    max-width: 1200px;
}


.hero-map-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-16);
    width: 100%;
}

.hero-map-content {
    flex: 1;
    margin-bottom: 0;
    text-align: left;
}

.hero-map-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--weight-black);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.hero-map-description {
    font-size: var(--text-lg);
    color: var(--color-gray-300);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 400px;
}

.hero-map-stats {
    display: flex;
    gap: var(--space-8);
}

.map-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.map-stat-number {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: var(--weight-black);
    color: var(--color-primary);
}

.map-stat-label {
    font-size: var(--text-sm);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-map-visual {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-4);
    padding-top: 20vh;
}

.brazil-map {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: var(--radius-md);
    margin-top: var(--space-12);
}

/* Brazil Map Container */
.brazil-map-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

/* SVG Map Styles */
.brazil-map-svg {
    width: 100%;
    height: auto;
    /* Drop shadow for depth */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.state {
    fill: rgba(255, 255, 255, 0.05);
    /* Faint transparent white for inactive */
    stroke: rgba(155, 77, 202, 0.3);
    /* Purple stroke */
    stroke-width: 3;
    /* Thicker for schematic feel */
    transition: all 0.3s ease;
    cursor: pointer;
}

.state--active {
    fill: var(--color-primary);
    /* Purple for active */
    fill-opacity: 0.7;
    stroke: var(--color-primary);
    filter: drop-shadow(0 0 5px rgba(155, 77, 202, 0.4));
}

.state:hover {
    fill: var(--color-white);
    fill-opacity: 0.9;
    stroke: var(--color-white);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    transform: scale(1.1);
    /* Slight zoom on hover */
    transform-origin: center;
    z-index: 10;
}

/* State Name Display - Fixed position to the right of map */
.brazil-map-container {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.state-name-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 200px;
    min-height: 80px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
}

.state-name-display.visible {
    opacity: 1;
    transform: translateX(0);
}

.state-name-text {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(155, 77, 202, 0.5);
}

/* Mapa 3D JPG */
.brazil-map-3d {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

/* Tech/Holographic Map Styles */
/* Tech/Holographic Map Styles */
.tech-map-container {
    width: 100%;
    max-width: 850px;
    /* Increased from 600px (+ ~40%) */
    height: 600px;
    /* Increased from 400px */
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* Map Wrapper Transition */
.tech-map-wrapper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(45deg) rotateZ(-10deg) scale(1.1);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smoother eased transition */
    transform-origin: center center;
}

.tech-map-wrapper:hover {
    transform: rotateX(0deg) rotateZ(0deg) scale(1);
    height: 80vh;
    /* Desktop height */
    max-height: 900px;
    margin-top: -10vh;
    /* Recenter vertically */
    z-index: 100;
}

/* Mobile: Mapa não-interativo em visão reta */
@media (max-width: 768px) {
    .tech-map-container {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .tech-map-wrapper {
        pointer-events: none;
        /* Visão reta - sem rotação 3D */
        transform: rotateX(0deg) rotateZ(0deg) scale(1);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    }

    .tech-map-wrapper:hover {
        /* Mantém visão reta mesmo no hover (não aplicável, mas seguro) */
        transform: rotateX(0deg) rotateZ(0deg) scale(1);
        height: 100%;
        margin-top: 0;
    }

    .state:hover {
        /* Disable state hover effects on mobile */
        fill: inherit;
        fill-opacity: inherit;
        stroke: inherit;
        filter: none;
        transform: none;
    }

    /* Espaçamento do mapa para próxima seção */
    .hero-map-visual {
        margin-bottom: var(--space-8);
    }
}

.tech-map-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}



/* Lista de Estados */
.states-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    max-width: 100%;
    margin-top: var(--space-4);
}

.state-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    background: rgba(40, 40, 45, 0.8);
    color: var(--color-white);
    border: 1px solid rgba(155, 77, 202, 0.3);
    transition: all 0.3s ease;
}

.state-tag--active {
    background: linear-gradient(135deg, var(--color-primary), #7B2CBF);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(155, 77, 202, 0.4);
}

.state-tag--active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 77, 202, 0.6);
}

/* Section Label - small text above title */
.section-label {
    font-family: var(--font-primary);
    font-size: var(--text-small);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-social-proof {
        flex-direction: column;
        gap: var(--space-6);
    }

    .proof-divider {
        width: 60px;
        height: 1px;
    }

    .proof-item {
        flex-direction: row;
        gap: var(--space-2);
    }

    /* Map layer mobile */
    .hero-map-layout {
        flex-direction: column;
        text-align: center;
        gap: var(--space-6);
    }

    .hero-map-content {
        text-align: center;
    }

    .hero-map-description {
        max-width: 100%;
    }

    .hero-map-stats {
        justify-content: center;
    }

    .hero-map-visual {
        display: flex;
        justify-content: center;
        padding-top: var(--space-2);
        /* Closer to stats above */
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: calc(-1 * var(--space-16));
        /* Pull next section up */
    }

    .brazil-map-container {
        max-width: 280px;
    }

    .brazil-map-svg {
        max-width: 280px;
    }
}



/* ========================================
   About Section
   ======================================== */
.about {
    padding: var(--space-16) 0 var(--space-32) 0;
    position: relative;
    background-color: transparent;
    /* Ensure topo-bg shows */
}

/* Mobile: reduce About section top padding to close gap with map */
@media (max-width: 768px) {
    .about {
        padding-top: 0;
        margin-top: -2rem;
        padding-bottom: var(--space-16);
    }
}

/* About Header */
.about-header {
    text-align: center;
    margin-bottom: var(--space-8);
    /* Reduced from space-16 */
    padding-bottom: 0;
}

/* Override section-label for About - more visible */
.about-header .section-label {
    font-size: var(--text-base);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-6);
}

/* Override section-title for About - significantly larger */
.about-header .section-title {
    font-size: var(--text-5xl);
    font-weight: var(--weight-black);
    line-height: 1.05;
    margin-bottom: var(--space-8);
}

.about-intro {
    font-size: var(--text-h2);
    font-weight: var(--weight-regular);
    color: var(--color-gray-300);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.about-intro strong {
    color: var(--color-white);
}

/* Two Pillars Layout (Inside Track) */
.about-pillars {
    display: flex;
    align-items: stretch;
    justify-content: center;
    /* Center items */
    gap: var(--space-8);
    margin: 0 auto;
    /* Center container */
    height: 100%;
    min-width: auto;
    /* Remove 100vw constraint */
    padding-right: 0;
    /* Remove right padding */
    width: 100%;
}

/* Ensure horizontal scroll on mobile if needed, but centered on desktop */
@media (max-width: 768px) {
    .about-pillars {
        justify-content: flex-start;
        /* Left align for scroll on mobile */
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
        overflow-x: auto;
    }
}

/* Individual Pillar Card */
.pillar {
    flex: 1;
    max-width: 500px;
    min-width: 400px;
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.8), rgba(20, 20, 25, 0.9));
    border: 1px solid rgba(155, 77, 202, 0.2);
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    /* Ensure height fits */
    display: flex;
    flex-direction: column;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #c77dff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar:hover {
    border-color: rgba(155, 77, 202, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(155, 77, 202, 0.1);
}

.pillar:hover::before {
    opacity: 1;
}

/* Pillar Icon */
.pillar-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(155, 77, 202, 0.15), rgba(155, 77, 202, 0.05));
    border: 1px solid rgba(155, 77, 202, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.pillar:hover .pillar-icon {
    background: linear-gradient(135deg, rgba(155, 77, 202, 0.25), rgba(155, 77, 202, 0.1));
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* Pillar Title */
.pillar-title {
    font-family: var(--font-primary);
    font-size: var(--text-h3);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    letter-spacing: -0.01em;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

/* Pillar Description */
.pillar-description {
    font-family: var(--font-primary);
    font-size: clamp(0.875rem, 0.3vw + 0.75rem, 1rem);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

/* Pillar Features List */
.pillar-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    /* Push to bottom */
}

.pillar-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-family: var(--font-primary);
    font-size: clamp(0.875rem, 0.3vw + 0.75rem, 0.9375rem);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-gray-200);
}

.pillar-features li svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Connector between pillars */
.pillar-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-4);
}

.connector-line {
    width: 2px;
    flex: 1;
    min-height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
}

.connector-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    margin: var(--space-4) 0;
}

/* ========================================
   About Sticky Horizontal Scroll Layout
   ======================================== */
.about-sticky-container {
    height: 300vh;
    /* Scroll space */
    position: relative;
    z-index: 10;
}

.about-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Vertically center track */
}

.about-horizontal-track {
    display: flex;
    align-items: center;
    height: auto;
    /* Or 100% depending on needs */
    padding-left: 0;
    /* REMOVED padding to allow full-width centering */
    /* Extra padding right to ensure last item fully scrollable */
    padding-right: 50vw;
    gap: var(--space-8);
    /* Reduced gap */
    will-change: transform;
}

.track-item {
    /* flex-shrink: 0; implied by flex behavior usually, but being explicit helps */
    flex-shrink: 0;
    /* Ensure items have base styles */
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force Pillars Item to be centered on screen initially */
.track-item--pillars {
    width: 100vw;
    max-width: 100%;
    /* Ensure doesn't overflow horizontally causing scrollbar if not needed */
}

/* Desktop: container is invisible, items flow inline */
.founders-mobile-container {
    display: contents;
}



/* Founder Card */
.founder-card {
    flex-shrink: 0;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.founder-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(155, 77, 202, 0.3);
    position: relative;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.founder-card:hover .founder-image img {
    transform: scale(1.05);
}

.founder-info {
    text-align: center;
}

.founder-name {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.founder-role {
    font-size: var(--text-base);
    color: var(--color-primary);
    font-weight: var(--weight-medium);
}

.founder-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(155, 77, 202, 0.2);
}

.founder-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: grayscale(20%);
}

.founder-card:hover .founder-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.founder-info {
    padding: var(--space-6);
    text-align: center;
}

.founder-name {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.founder-role {
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   Responsive: About Section Mobile Stack
   ======================================== */
@media (max-width: 1023px) {

    /* Reset Sticky Container Height */
    .about-sticky-container {
        height: auto;
        /* Natural height */
        margin-bottom: var(--space-16);
    }

    /* Reset Sticky Behavior on Mobile - Normal vertical flow */
    .about-sticky-wrapper {
        position: static;
        height: auto;
        display: block;
        padding: 0 var(--container-padding);
        overflow: visible;
    }

    /* Vertical Stack on Mobile */
    .about-horizontal-track {
        display: flex;
        flex-direction: column;
        gap: var(--space-8);
        padding: 0;
        transform: none !important;
        width: 100%;
    }

    /* Track items full width and block */
    .track-item {
        width: 100%;
        display: block;
    }

    /* Pillars: Stack Vertically */
    .about-pillars {
        flex-direction: column;
        gap: var(--space-6);
        height: auto;
        min-width: 0;
        width: 100%;
    }

    .pillar {
        max-width: 100%;
        min-width: 0;
        /* Reset desktop min-width */
        padding: var(--space-4);
        width: 100%;
    }

    .pillar-icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--space-3);
    }

    .pillar-icon svg {
        width: 24px;
        height: 24px;
    }

    .pillar-title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-2);
    }

    .pillar-description {
        font-size: var(--text-xs);
        line-height: 1.4;
        margin-bottom: var(--space-3);
    }

    .pillar-features {
        gap: var(--space-2);
    }

    .pillar-features li {
        font-size: var(--text-xs);
    }

    /* Hide Connector on Mobile */
    .pillar-connector {
        display: none;
    }

    /* Founder cards - Sticky Stacking Effect on Mobile */
    .founders-mobile-container {
        display: flex;
        flex-direction: column;
        gap: var(--space-6);
        /* Gap to show first card's text before overlap */
        position: relative;
    }

    .track-item--founder {
        width: 100%;
        display: flex;
        justify-content: center;
        position: sticky;
        top: 80px;
        /* Stick below header */
    }

    /* First founder card */
    .track-item--founder:first-child {
        z-index: 1;
    }

    /* Second founder card - stacks on top when scrolling */
    .track-item--founder:nth-child(2) {
        z-index: 2;
    }

    .founder-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        background: var(--color-dark);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    .founder-image {
        height: 400px;
    }

    /* Protect founder-info text visibility */
    .founder-info {
        background: var(--color-dark);
        padding: var(--space-4);
        position: relative;
        z-index: 10;
    }
}



/* Result Statement */
.about-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(155, 77, 202, 0.1), rgba(155, 77, 202, 0.02));
    border: 1px solid rgba(155, 77, 202, 0.2);
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin: 0 auto;
}

.result-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), #7B2CBF);
    border-radius: var(--radius-md);
    color: var(--color-white);
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-title {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.result-text {
    font-size: var(--text-lg);
    color: var(--color-gray-300);
    line-height: 1.5;
    margin: 0;
}

.result-text strong {
    color: var(--color-white);
}

/* Topographical lines background */
.topo-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M0 200 Q 100 100 200 200 T 400 200' stroke='%239B4DCA' stroke-width='1' fill='none'/%3E%3Cpath d='M0 220 Q 100 120 200 220 T 400 220' stroke='%239B4DCA' stroke-width='1' fill='none'/%3E%3Cpath d='M0 240 Q 100 140 200 240 T 400 240' stroke='%239B4DCA' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
}

/* Responsive About Section */
@media (max-width: 900px) {
    .about-pillars {
        flex-direction: column;
        gap: 2rem;
    }

    .pillar-card {
        min-height: auto;
    }
}

/* Mobile niche card styles moved to main qualification section below */

/* Niche Icon Specific Animations */
.niche-card--saude:hover .niche-icon svg {
    animation: icon-swing 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
    color: var(--color-primary);
}

.niche-card--imobiliario:hover .niche-icon svg {
    animation: icon-grow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom center;
    color: var(--color-primary);
}

.niche-card--educacao:hover .niche-icon svg {
    animation: icon-bounce 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-primary);
}

.niche-card--especial:hover .niche-icon svg {
    animation: icon-fork-knife 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    color: #FF6B35;
}

@keyframes icon-swing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

@keyframes icon-grow {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.2);
    }
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.2);
    }

    60% {
        transform: scale(0.9);
    }
}

@keyframes icon-fork-knife {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px) scale(1.1);
    }

    75% {
        transform: translateX(3px) scale(1.1);
    }
}

/* Connector Lines */
.niche-connector {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.connector-path {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.5s ease-out;
}

.qualification-grid.animate .connector-path {
    stroke-dashoffset: 0;
}


/* ========================================
   New Text Effects & Animations
   ======================================== */

/* 1. Scramble Text (Qualification) */
.scramble-text {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.scramble-active {
    font-family: monospace;
    text-shadow: 0 0 20px rgba(155, 77, 202, 0.3);
}

/* 2. Shimmer Effect (About Result) */
.title-shimmer {
    background: linear-gradient(90deg, #FFFFFF 0%, #9B4DCA 50%, #FFFFFF 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-position: 100% 0;
}

.title-shimmer.animate {
    animation: shimmer-move 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.title-shimmer.glow-pulse {
    text-shadow: 0 0 30px rgba(155, 77, 202, 0.4);
    animation: glow-pulse 3s infinite ease-in-out;
    -webkit-text-fill-color: #FFFFFF;
    /* Fallback/Reset for glow visibility */
}

@keyframes shimmer-move {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(155, 77, 202, 0.4);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 40px rgba(155, 77, 202, 0.6);
    }
}

/* 3. Floating Letters (CTA) */
.float-letter {
    display: inline-block;
    transform: translateY(0);
    transition: text-shadow 0.3s ease;
}

.float-letter:hover {
    text-shadow: 0 0 20px rgba(155, 77, 202, 0.3);
}

/* Define float animation but apply via JS or class to stagger */
@keyframes float-wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.float-letter.animate {
    animation: float-wave 3s ease-in-out infinite;
}

.float-question {
    color: var(--color-primary);
    display: inline-block;
    animation: bounce-scale 1.5s ease-in-out infinite;
    margin-left: 2px;
}

@keyframes bounce-scale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* 4. Versus Section Effects */
.versus-container {
    display: inline-block;
}

.versus-word {
    display: inline-block;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.versus-left {
    transform: translateX(-30px);
}

.versus-right {
    transform: translateX(30px);
}

.versus-visible .versus-left,
.versus-visible .versus-right {
    transform: translateX(0);
    opacity: 1;
}

.versus-ou {
    position: relative;
    display: inline-block;
    padding: 0 5px;
    opacity: 1;
    transition: opacity 0.4s ease 0.8s;
    /* Fade out slightly after strike */
}

.versus-visible .versus-ou.struck {
    opacity: 0.4;
}

.versus-ou::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #EF4444;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.3, 1) 0.8s;
    /* Delay matching strike */
}

.versus-visible .versus-ou.struck::after {
    transform: scaleX(1);
}

.highlight-text {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-text::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(155, 77, 202, 0.2);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.versus-visible .highlight-text::before {
    transform: scaleX(1);
}

.glow-text {
    opacity: 0;
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(155, 77, 202, 0.4);
    transition: opacity 0.6s ease 1.2s;
}

.versus-visible .glow-text {
    opacity: 1;
}

@media (max-width: 900px) {
    .about-pillars {
        flex-direction: column;
        align-items: center;
    }

    .pillar {
        max-width: 100%;
    }

    .pillar-connector {
        flex-direction: row;
        padding: var(--space-4) 0;
    }

    .connector-line {
        width: auto;
        height: 2px;
        flex: 1;
        min-height: auto;
        min-width: 40px;
        background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    }

    .connector-icon {
        margin: 0 var(--space-4);
    }

    .about-result {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .result-content {
        order: 1;
    }

    .about-result .btn {
        order: 2;
    }
}

/* ========================================
   Portfolio Videos Showcase
   ======================================== */
.portfolio-videos {
    margin-top: var(--space-16);
    padding: var(--space-12) 0;
}

.portfolio-videos-title {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    text-align: center;
    margin-bottom: var(--space-8);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

/* Make first two videos (widescreen) span 2 columns on desktop */
.videos-grid>.video-card:nth-child(1),
.videos-grid>.video-card:nth-child(2) {
    grid-column: span 2;
}

.video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(155, 77, 202, 0.3);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-gray-900);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    filter: brightness(0.7);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(155, 77, 202, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(155, 77, 202, 0.4);
}

.video-play-button svg {
    margin-left: 4px;
}

.video-card:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-primary);
    box-shadow: 0 8px 30px rgba(155, 77, 202, 0.6);
}

/* Video playing state - replace thumbnail with iframe */
.video-card.playing .video-thumbnail {
    display: none;
}

.video-card .video-iframe {
    display: none;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-card.playing .video-iframe {
    display: block;
}

/* YouTube Shorts (vertical format) */
.video-card--short .video-thumbnail {
    aspect-ratio: 9 / 16;
}

.video-card--short.playing .video-iframe {
    aspect-ratio: 9 / 16;
}

/* Mobile & Tablet adjustments */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset span on tablet/mobile so they fit side-by-side or stack normally */
    .videos-grid>.video-card:nth-child(1),
    .videos-grid>.video-card:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .videos-grid {
        gap: var(--space-4);
    }
}

@media (max-width: 640px) {
    .portfolio-videos {
        margin-top: var(--space-12);
        padding: var(--space-8) 0;
    }

    .video-play-button {
        width: 56px;
        height: 56px;
    }

    .video-play-button svg {
        width: 32px;
        height: 32px;
    }
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    padding: var(--space-24) 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

/* ========================================
   Features Section
   ======================================== */
/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--space-32) 0;
    background-color: transparent;
    /* Topo background visible */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature-card {
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    background-color: var(--color-gray-900);
    border: 1px solid var(--color-gray-800);
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: var(--color-primary);
    color: var(--color-black);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2);
}

.feature-description {
    color: var(--color-white);
    font-size: var(--text-sm);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: var(--space-32) 0;
    text-align: center;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2.25rem, 4.5vw + 0.5rem, 4rem);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--color-white);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
}

.cta-subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    color: var(--color-white);
    max-width: 500px;
    margin: 0 auto var(--space-8);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--color-gray-800);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer-links {
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--color-white);
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-800);
    color: var(--color-white);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    color: var(--color-black);
}

/* ========================================
   Client Logos Gallery - Infinite Carousel
   ======================================== */
.clients-logos {
    padding: var(--space-16) 0;
    background-color: transparent;
    text-align: center;
    overflow: hidden;
}

.clients-logos .container {
    margin-bottom: var(--space-8);
}

/* Carousel Container */
.logos-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    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);
}

/* Track that scrolls */
.logos-track {
    display: flex;
    gap: var(--space-10);
    width: max-content;
    animation: scroll-logos 40s linear infinite;
}

/* Pause on hover (desktop) and touch (mobile via JS) */
.logos-carousel:hover .logos-track,
.logos-carousel.paused .logos-track {
    animation-play-state: paused;
}

/* Keyframes for infinite scroll */
@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

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

/* Logo Items */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(155, 77, 202, 0.15);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    min-width: 180px;
    min-height: 90px;
    flex-shrink: 0;
}

.logo-item:hover {
    background: rgba(155, 77, 202, 0.15);
    border-color: rgba(155, 77, 202, 0.4);
    transform: scale(1.05);
}

.logo-item img {
    max-width: 160px;
    max-height: 75px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(1) contrast(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
    filter: brightness(1.1) contrast(1.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .clients-logos {
        padding: var(--space-12) 0;
    }

    .logos-track {
        gap: var(--space-6);
        animation-duration: 30s;
    }

    .logo-item {
        min-width: 160px;
        min-height: 80px;
        padding: var(--space-2);
    }

    .logo-item img {
        max-width: 140px;
        max-height: 65px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .logos-track {
        animation: none;
    }

    .logos-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .logo-item {
        scroll-snap-align: center;
    }
}

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-gray-800);
    text-align: center;
}

/* =========================================
   Qualification Filter Section
   ========================================= */
.qualification {
    padding: var(--space-20) 0;
    position: relative;
    background-color: transparent;
    /* Topo background visible */
}

.qualification-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-16);
}

.qualification .section-intro {
    color: var(--color-white);
    font-size: var(--text-h2);
    line-height: 1.5;
    margin: var(--space-6) auto 0;
    max-width: 800px;
}

.qualification-scroll-container {
    position: relative;
    overflow: hidden;
}

/* Desktop: Gallery layout (same as mobile - horizontal scroll) */
@media (min-width: 769px) {
    .qualification-scroll-container {
        /* No scroll-jacking - natural height */
        position: relative;
        z-index: 10;
        /* Break out of container max-width for full-width gallery */
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }

    .qualification-sticky-wrapper {
        /* Flex column to stack cards and navigation */
        position: relative;
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .qualification-grid {
        /* Horizontal scrollable gallery */
        display: flex;
        align-items: stretch;
        gap: var(--space-6);
        padding: var(--space-4) 5vw;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }

    .qualification-grid::-webkit-scrollbar {
        display: none;
    }
}

/* Mobile: Swipe Gallery */
@media (max-width: 768px) {
    .qualification-scroll-container {
        position: relative;
    }

    .qualification-sticky-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .qualification-grid {
        display: flex;
        gap: var(--space-4);
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: var(--space-4) var(--space-6);
        margin: 0 calc(-1 * var(--space-6));
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }

    .qualification-grid::-webkit-scrollbar {
        display: none;
    }
}


/* ----------------------------------------
   SVG Connector Lines
   ---------------------------------------- */
.niche-connector {
    display: none;
    /* Hidden for horizontal layout */
}

/* ----------------------------------------
   Niche Card Base
   ---------------------------------------- */
.niche-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    flex-shrink: 0;
    width: 300px;
    min-height: 220px;
    scroll-snap-align: center;
}

.niche-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(155, 77, 202, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.niche-card.expanded {
    border-color: #9B4DCA;
    box-shadow: 0 0 30px rgba(155, 77, 202, 0.3);
    transform: translateY(-8px);
}

/* ----------------------------------------
   Mobile: Swipe Gallery Cards
   ---------------------------------------- */
@media (max-width: 768px) {
    .niche-card {
        width: 280px;
        min-width: 280px;
        min-height: auto;
        scroll-snap-align: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(10, 10, 10, 0.95);
        border: 1px solid rgba(155, 77, 202, 0.2);
    }

    /* Center card content on mobile */
    .niche-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .niche-card h3 {
        text-align: center;
    }

    .niche-card p {
        text-align: center;
    }

    .niche-expand {
        text-align: center;
        width: 100%;
    }

    .niche-link-text {
        text-align: center;
        display: block;
    }
}

/* ----------------------------------------
   Gallery Navigation Arrows
   ---------------------------------------- */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.gallery-arrow:active {
    transform: scale(0.95);
}

.gallery-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.gallery-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
}

/* ----------------------------------------
   Gallery Indicators (dots)
   ---------------------------------------- */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: var(--space-4) 0;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gallery-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* ----------------------------------------
   Swipe/Scroll Hint (All devices)
   ---------------------------------------- */
.swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--space-2) 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    animation: swipe-hint-pulse 1.5s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.swipe-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.swipe-hint-icon {
    animation: swipe-hint-arrow 1.2s ease-in-out infinite;
}

@keyframes swipe-hint-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes swipe-hint-arrow {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }
}


/* ----------------------------------------
   Niche Icon Base & Color Change
   ---------------------------------------- */
.niche-icon {
    color: var(--color-white);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: rgba(147, 51, 234, 0.1);
    border-radius: var(--radius-md);
    width: fit-content;
    transition: color 0.3s ease;
}

.niche-icon svg {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.niche-card:hover .niche-icon {
    color: #9B4DCA;
}

/* ----------------------------------------
   Icon Micro-Animations by Card
   ---------------------------------------- */
/* Saúde: Swing */
.niche-card--saude:hover .niche-icon svg {
    animation: icon-swing 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}

@keyframes icon-swing {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Imobiliário: Grow from bottom */
.niche-card--imobiliario:hover .niche-icon svg {
    animation: icon-grow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom center;
}

@keyframes icon-grow {
    0% {
        transform: scaleY(0.85);
    }

    100% {
        transform: scaleY(1);
    }
}

/* Educação: Bounce/Pulse */
.niche-card--educacao:hover .niche-icon svg {
    animation: icon-bounce 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes icon-bounce {
    0% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.15) translateY(-2px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

/* Gastronomia: Fork & Knife apart */
.niche-card--special:hover .fork-path {
    animation: fork-apart 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.niche-card--special:hover .knife-path {
    animation: knife-apart 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fork-apart {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-3px);
    }
}

@keyframes knife-apart {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

/* ----------------------------------------
   Expandable Content
   ---------------------------------------- */
.niche-expand {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease 0.1s;
    padding-top: 0;
}

.niche-card.expanded .niche-expand {
    max-height: 120px;
    opacity: 1;
    padding-top: var(--space-6);
}

.niche-metric {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #9B4DCA;
}

.niche-metric-label {
    font-size: var(--text-sm);
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----------------------------------------
   Card Text
   ---------------------------------------- */
.niche-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.niche-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* ----------------------------------------
   Special Card: Gastronomia/Beep (Orange)
   ---------------------------------------- */
.niche-card--special {
    border-color: #FF6B35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
    text-decoration: none;
    display: block;
}

.niche-card--special:hover {
    border-color: #FF6B35;
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.25);
    transform: translateY(-8px) scale(1.02);
}

.niche-card--special:hover .niche-icon {
    color: #FF6B35;
}

.niche-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF6B35;
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* External Link Icon */
.niche-external-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #FF6B35;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.niche-card--special:hover .niche-external-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Link Text */
.niche-link-text {
    display: inline-block;
    margin-top: var(--space-6);
    color: #FF6B35;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.niche-card--special:hover .niche-link-text {
    transform: translateX(4px);
}

/* =========================================
   Why Bunker Section
   ========================================= */
.why-bunker {
    padding: var(--space-20) 0;
    background-color: #050505;
    /* Slightly lighter/darker contrast */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.why-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-12);
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align for cleaner look */
    text-align: left;
}

.why-icon {
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.why-content h3 {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.why-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mobile Adjustments for New Sections */
@media (max-width: 768px) {

    .qualification,
    .why-bunker {
        padding: var(--space-12) 0;
    }

    .why-item {
        align-items: center;
        text-align: center;
    }
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--color-white);
}