/* --- CORE STYLES --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0b0b0e;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background: radial-gradient(circle at top right, rgba(146, 0, 214, 0.15), #0b0b0e 65%);
}

/* --- HEADER GRADIENT MASK --- */
.top-gradient-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(11, 11, 14, 0.95) 0%, rgba(11, 11, 14, 0.6) 40%, rgba(11, 11, 14, 0.2) 75%, transparent 100%);
    pointer-events: none;
    z-index: 40;
}

/* --- NOISE OVERLAY --- */
.noise-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* --- PRELOADER --- */
.loader {
    position: fixed;
    inset: 0;
    background: #050508;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.loader-bar-wrap {
    width: 240px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #9200d6;
    width: 0%;
    box-shadow: 0 0 12px #9200d6;
}

/* --- TEXT REVEAL ANIMATIONS --- */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.05em;
}

.word-inner {
    display: inline-block;
    transform: translateY(110%);
}

/* --- GLOW EFFECTS --- */
.glow-hover {
    position: relative;
    transition: all 0.3s ease;
}

.glow-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #9200d6;
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glow-hover:hover::after {
    opacity: 0.4;
}

/* --- GLASS CONTAINER --- */
.glass-panel {
    background: rgba(17, 17, 24, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(146, 0, 214, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 80px rgba(146, 0, 214, 0.08);
}

/* --- PERSPECTIVE CONTAINER FOR 3D TILT --- */
.perspective-container {
    perspective: 1200px;
}

.tilt-element {
    transform-style: preserve-3d;
}

/* --- HUD SPOTLIGHT GLOW --- */
.interactive-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(146, 0, 214, 0.25) 0%, transparent 80%);
    pointer-events: none;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: screen;
    border-radius: inherit;
}

.group:hover .interactive-glow {
    opacity: 1;
}

/* --- BACKGROUND TECH GRID SYSTEM --- */
:root {
    --gx-1: 6%;
    --gx-2: 28%;
    --gx-3: 62%;
    --gx-4: 94%;
    --grid-color: rgba(255, 255, 255, 0.02);
    --beam-color: rgba(146, 0, 214, 0.4);
}

.grid-line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--grid-color);
    z-index: 0;
    pointer-events: none;
}

@keyframes beam-v {
    0% {
        top: -200px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.beam-v {
    position: absolute;
    width: 1px;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--beam-color), transparent);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

/* --- CAROUSEL TICKER SYSTEM --- */
#carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 30px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, white 8%, white 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, white 8%, white 92%, transparent 100%);
}

#carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.carousel-group {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.bento-card-carousel {
    width: 400px;
    min-height: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(22, 22, 35, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card-carousel i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.bento-card-carousel:hover {
    background: rgba(28, 28, 45, 0.9);
    border-color: rgba(146, 0, 214, 0.6);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(146, 0, 214, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.bento-card-carousel:hover i {
    transform: scale(1.15) rotate(5deg);
    color: #ffffff;
    background-color: rgba(146, 0, 214, 0.3);
}

/* --- LASER BEAMS FOR SECTION 2 --- */
@keyframes laser-shoot-h {
    0% {
        left: -180px;
    }

    30%,
    100% {
        left: 100%;
    }
}

@keyframes laser-shoot-v {
    0% {
        top: -180px;
    }

    35%,
    100% {
        top: 100%;
    }
}

.laser-beam {
    will-change: left, top;
}

/* --- COMPARISON CARD STYLING --- */
.comparison-card {
    background: rgba(22, 22, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-card:hover {
    background: rgba(30, 30, 48, 0.85);
    border-color: rgba(146, 0, 214, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#comparacao {
    background-color: #0b0b0e !important;
    box-shadow: none !important;
}

#comparacao .tech-dot-grid {
    background-image: radial-gradient(rgba(146, 0, 214, 0.22) 1.5px, transparent 1.5px) !important;
    background-size: 32px 32px;
}

#comparacao .comparison-card {
    background: rgba(18, 18, 29, 0.7) !important;
    border: 1px solid rgba(146, 0, 214, 0.15) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#comparacao .comparison-card:hover {
    background: rgba(26, 26, 42, 0.9) !important;
    border-color: rgba(146, 0, 214, 0.6) !important;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(146, 0, 214, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

#comparacao .comparison-card h3 {
    color: #ffffff !important;
}

#comparacao .comparison-card p {
    color: #a3a1b8 !important;
}

#comparacao table {
    background: rgba(12, 12, 20, 0.5) !important;
    border: 1px solid rgba(146, 0, 214, 0.15) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

#comparacao table thead tr {
    background: rgba(146, 0, 214, 0.08) !important;
    border-bottom: 1px solid rgba(146, 0, 214, 0.2) !important;
}

#comparacao table thead th {
    color: #a3a1b8 !important;
}

#comparacao table thead th.text-white {
    color: #ffffff !important;
}

#comparacao table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

#comparacao table tbody tr:hover {
    background: rgba(146, 0, 214, 0.03) !important;
}

#comparacao table tbody td.text-white {
    color: #ffffff !important;
}

#comparacao table tbody td {
    color: #a3a1b8;
}

#comparacao h2 {
    color: #ffffff !important;
}

#comparacao p.text-brand-textMuted\/90 {
    color: #a3a1b8 !important;
}

#comparacao .inline-flex {
    background: rgba(146, 0, 214, 0.1) !important;
    border-color: rgba(146, 0, 214, 0.3) !important;
    color: #a855f7 !important;
}

/* --- COMPARISON TABLE HOVER ANIMATIONS --- */
#comparacao table tbody td {
    transition: all 0.3s ease;
}

/* Row Hover Animation Triggers */
#comparacao table tbody tr:hover td:nth-child(2) {
    animation: pro-pulse 0.6s ease-in-out infinite alternate;
    color: #10b981 !important;
}

#comparacao table tbody tr:hover td:nth-child(2) i {
    transform: scale(1.2) rotate(3deg);
    color: #10b981 !important;
    transition: transform 0.3s ease, color 0.3s ease;
}

#comparacao table tbody tr:hover td:nth-child(3) {
    animation: con-shake 0.4s ease-in-out infinite;
    opacity: 0.35;
    filter: blur(0.6px);
    color: #f87171 !important;
}

@keyframes pro-pulse {
    0% {
        transform: scale(1) translateX(0);
        text-shadow: 0 0 0px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1.02) translateX(4px);
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
    }
}

@keyframes con-shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-1.5px);
    }

    75% {
        transform: translateX(1.5px);
    }
}

/* --- TABLE SCROLLBAR REMOVAL --- */
#comparacao .overflow-x-auto::-webkit-scrollbar {
    display: none !important;
}

#comparacao .overflow-x-auto {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* --- PREVENT CONFLICTS AND GLOW CTA BUTTON --- */
#comparacao a.cta-btn-glow {
    background: linear-gradient(135deg, #9200d6 0%, #7600ae 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 30px rgba(146, 0, 214, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#comparacao a.cta-btn-glow:hover {
    background: linear-gradient(135deg, #a300ee 0%, #8500c4 100%) !important;
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 15px 40px rgba(146, 0, 214, 0.7), 0 0 30px rgba(146, 0, 214, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* --- PRICING SECTION STYLING --- */
.pricing-card {
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.pricing-card:hover {
    border-color: rgba(146, 0, 214, 0.4) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(146, 0, 214, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Hide scrollbars for pricing snap scroll track */
.scrollbar-hide::-webkit-scrollbar {
    display: none !important;
}
.scrollbar-hide {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* --- CUSTOM PREMIUM SCROLLBAR FOR WEB PAGE --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #050508;
}

::-webkit-scrollbar-thumb {
    background: rgba(146, 0, 214, 0.45);
    border-radius: 9999px;
    border: 2px solid #050508;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(146, 0, 214, 0.85);
}

/* Firefox Scrollbar support */
html {
    scrollbar-color: rgba(146, 0, 214, 0.45) #050508;
    scrollbar-width: thin;
}

/* --- FLOAT ANIMATIONS --- */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes float-fast {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(-1.5deg);
    }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

/* --- MOBILE CAROUSEL ARROWS ANIMATION --- */
@keyframes arrow-pulse-right {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50%) translateX(5px);
        opacity: 1;
        box-shadow: 0 0 15px rgba(146, 0, 214, 0.4);
        border-color: rgba(146, 0, 214, 0.5);
    }
}

@keyframes arrow-pulse-left {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50%) translateX(-5px);
        opacity: 1;
        box-shadow: 0 0 15px rgba(146, 0, 214, 0.4);
        border-color: rgba(146, 0, 214, 0.5);
    }
}

.animate-arrow-right {
    animation: arrow-pulse-right 1.6s ease-in-out infinite;
}

.animate-arrow-left {
    animation: arrow-pulse-left 1.6s ease-in-out infinite;
}

@media (max-width: 1023px) {
    /* Disable infinite laser lines background */
    #como-funciona .laser-beam {
        animation: none !important;
        display: none !important;
    }

    /* Isolate and strip WebKit-heavy 3D transformations & perspective layouts on mobile devices */
    .perspective-container,
    .perspective-container-mobile {
        perspective: none !important;
        transform-style: flat !important;
    }
    
    .tilt-element {
        transform: none !important;
        transform-style: flat !important;
    }
    
    #mobile-hero-bg-text, 
    #mobile-hero-fg-text {
        transform-style: flat !important;
        transform: translate(-50%, 0) !important;
        animation: none !important;
    }
    
    .iphone-container-mobile {
        perspective: none !important;
    }
    
    .iphone-container-mobile .iphone-body {
        transform: none !important;
        transform-style: flat !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(146, 0, 214, 0.1) !important;
    }

    /* Disable layout backdrop filters on mobile to improve Safari scroll frame-rate */
    .glass-panel {
        background: #111118 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .bento-card-carousel {
        background: #161623 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    #comparacao .comparison-card {
        background: #12121d !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .pricing-card {
        background-color: #0f0f15 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* --- MINIMALIST MOBILE LOGO INTRO ANIMATION --- */
    #preloader {
        background-color: #0b0b0e !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    #preloader .loader-bar-wrap, 
    #preloader #loaderPercentage {
        display: none !important;
    }

    .loader-text-mobile-anim {
        animation: mobileLogoIntro 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .preloader-mobile-slide-up {
        animation: mobilePreloaderExit 0.6s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    }

    /* --- STATIC OVERRIDES FOR REVEAL CLASSES (NO MOBILE DELAYS/TRANSITIONS) --- */
    .mobile-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    .mobile-reveal.active {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Disable floating loops on mobile centerpiece overlays to save CPU loop computations */
    .animate-float-slow, 
    .animate-float-fast {
        animation: none !important;
    }

    /* Force instant visibility of main layout wrapper on class toggle */
    #contentWrapper {
        transition: none !important;
    }

    /* --- MOBILE DRAG/SWIPE SWIPER FOR THE BENEFITS CAROUSEL --- */
    #carousel-cards-group2 {
        display: none !important; /* Hide duplicate carousel group */
    }

    #carousel-container {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important; /* Smooth inertial iOS scroll */
        padding-bottom: 20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        display: block !important;
    }

    #carousel-track {
        display: flex !important;
        width: max-content !important;
        transform: none !important; /* disable animation displacement */
    }

    .carousel-group {
        display: flex !important;
        gap: 16px !important;
    }

    .bento-card-carousel {
        width: 82vw !important; /* Make card responsive to viewport width for touch drag */
        min-height: 280px !important;
        scroll-snap-align: center !important;
        flex-shrink: 0 !important;
    }
}

@keyframes mobileLogoIntro {
    0% {
        opacity: 0;
        transform: scale(0.92);
        filter: blur(4px);
        letter-spacing: -0.05em;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
        letter-spacing: 0.05em;
    }
}

@keyframes mobilePreloaderExit {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* --- MOBILE PERFORMANCE OVERRIDES (CORE WEB VITALS) --- */
@media (max-width: 1023px) {
    /* Disable 3D transforms & perspective to reduce GPU rasterization load */
    .perspective-container-mobile,
    .iphone-container-mobile {
        perspective: none !important;
        transform: none !important;
        transform-style: flat !important;
    }

    .iphone-body {
        transform: none !important;
        transform-style: flat !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
    }



    /* Stop active animation cycles that trigger main-thread paint loops on mobile */
    .animate-\[spin_50s_linear_infinite\],
    .animate-\[pulse_5s_ease-in-out_infinite\],
    .animate-pulse {
        animation: none !important;
    }

    /* Simplify mobile background decorations */
    .fixed.inset-0.z-0 {
        display: none !important; /* Hide background grid lines on mobile */
    }
}


