/* Haptic Feedback / Ripple Effect */
.ripple {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    transform: scale(0);
    animation: ripple-anim 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    z-index: 9998;
}

@keyframes ripple-anim {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--white);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Cursor states */
body.cursor-active .cursor-dot,
body.cursor-active .cursor-outline {
    opacity: 1;
}

body.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

body.cursor-hover .cursor-dot {
    background-color: transparent;
}

/* Esconder cursor padrão em elementos interativos */
a, button, .magnetic, .glass, .brand-container {
    cursor: none;
}

/* Mobile: desabilitar cursor customizado */
@media (max-width: 768px) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    
    a, button, .magnetic, .glass, .brand-container {
        cursor: pointer;
    }
}

:root {
    --black: #050505;
    --white: #ffffff;
    --gray-muted: #9E9E9E;
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --accent-glow: rgba(255, 255, 255, 0.15);
    --font-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    
    /* Fluid Typography com clamp */
    --font-size-hero: clamp(2.5rem, 8vw, 9rem);
    --font-size-subtitle: clamp(1rem, 2vw, 1.3rem);
    --spacing-section: clamp(60px, 10vw, 150px);
    --spacing-hero: clamp(80px, 15vw, 120px);
}

/* Smooth Scroll */
html {
    scroll-behavior: auto;
}

body {
    background-color: var(--black);
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(255,255,255,0.02) 0%, transparent 50%);
    color: var(--white);
    font-family: 'Inter', var(--font-fallback);
    overflow-x: visible;
    overflow-x: overlay;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar but keep functionality */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* --- ANIMATIONS DE ENTRADA (REVEAL) --- */
/* Staggered Micro-Step: Hierarquia de importância */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 1. NAV - Autoridade (primeiro) */
nav.reveal {
    transition-delay: 0s;
}

/* 2. STATUS INDICATOR - Credibilidade */
.status-indicator.reveal {
    transition-delay: 0.15s;
}

/* 3. TÍTULO - Mensagem */
.hero-title.reveal {
    transition-delay: 0.3s;
}

/* 4. SUBTITLE - Contexto */
.hero-subtitle.reveal {
    transition-delay: 0.45s;
}

/* 5. BOTÕES - Ação */
.hero-btns.reveal {
    transition-delay: 0.6s;
}

/* 6. BENTO GRID - Detalhes (último) */
.bento-section.reveal,
.bento-section .glass {
    transition-delay: 0.75s;
}

/* Stagger cards within bento grid */
.bento-section .glass:nth-child(1) { transition-delay: 0.85s; }
.bento-section .glass:nth-child(2) { transition-delay: 0.95s; }
.bento-section .glass:nth-child(3) { transition-delay: 1.05s; }

/* Footer */
footer.reveal {
    transition-delay: 1.15s;
}

/* Classes legacy de delay (mantidas para compatibilidade) */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

    /* Background Animations */
    .spotlight {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 100vh;
        background: 
            radial-gradient(circle at 50% -10%, var(--accent-glow) 0%, transparent 60%),
            radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 80%);
        z-index: 1;
        pointer-events: none;
        will-change: opacity;
    }

    .falling-coins {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        opacity: 0.07;
        pointer-events: none;
        mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
        will-change: transform;
    }

.falling-coins::before {
    content: "$ € £ ¥ R$ ₿ $ € £ ¥ R$ ₿";
    position: absolute;
    width: 200%;
    left: -50%;
    text-align: center;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 120px;
    white-space: nowrap;
    animation: coinRain 25s linear infinite;
    top: -120px;
    filter: blur(1px);
}

@keyframes coinRain {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(115vh) rotate(10deg); }
}

/* Nav & Brand */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 8%;
    position: relative;
    z-index: 10;
}

.brand-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.brand-name {
    font-weight: 900;
    letter-spacing: -2px;
    font-size: 2rem;
    color: var(--white);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-container::before, .brand-container::after,
.brand-name::before, .brand-name::after {
    position: absolute;
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.brand-container::before { content: "€"; top: 0; left: 10%; }
.brand-container::after { content: "₿"; top: 0; right: 10%; }
.brand-name::before { content: "$"; bottom: 0; left: 20%; position: absolute; }
.brand-name::after { content: "£"; bottom: 0; right: 20%; position: absolute; }

.brand-container:hover .brand-name { transform: scale(1.05); }
.brand-container:hover::before { opacity: 0.7; transform: translateY(-35px) translateX(-20px) rotate(-15deg); }
.brand-container:hover::after { opacity: 0.7; transform: translateY(-40px) translateX(25px) rotate(15deg); }
.brand-container:hover .brand-name::before { opacity: 0.5; transform: translateY(30px) translateX(-15px) rotate(10deg); }
.brand-container:hover .brand-name::after { opacity: 0.5; transform: translateY(35px) translateX(20px) rotate(-10deg); }

.dot { color: var(--gray-muted); opacity: 0.5; }
.company-tag { font-size: 0.7rem; letter-spacing: 5px; color: var(--gray-muted); font-weight: 500; }

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-hero) 8% 100px;
    position: relative;
    z-index: 5;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 10px 22px;
    border-radius: 100px;
    margin-bottom: 50px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--white);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0.3; }
}

.status-label { font-size: 0.8rem; letter-spacing: 2px; color: var(--white); text-transform: uppercase; font-weight: 600; }

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -7px;
    margin-bottom: 40px;
    text-transform: uppercase;
    will-change: transform, opacity;
}

.outline {
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255,255,255,0.3);
}

.hero-subtitle {
    max-width: 580px;
    margin: 0 auto 60px;
    color: var(--gray-muted);
    font-size: 1.3rem;
    font-weight: 400;
}

.poppins {
    font-family: 'Poppins', var(--font-fallback);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

/* --- BOTÕES MODERNOS COM EFEITO DE BRILHO --- */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.icon-svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    padding: 20px 38px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    border-radius: 100px;
    transition: background 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                color 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

/* Progressive Loader - Borda animated */
.btn-primary .progress-loader {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 2px;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary .progress-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.8) 50%, 
        transparent 100%);
    animation: progress-slide 1.5s ease-in-out infinite;
}

@keyframes progress-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.btn-primary.loading .progress-loader {
    opacity: 1;
}

.btn-primary.loading .btn-text {
    opacity: 0.7;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Efeito de brilho que passa pelo botão */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    transform: rotate(30deg);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:hover {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
    border: 1px solid var(--white);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease-out;
}

.btn-coming-soon {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    padding: 20px 38px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    position: relative;
    text-transform: uppercase;
    filter: grayscale(1);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: visible;
    transition: filter 0.5s ease,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    will-change: transform;
    cursor: not-allowed;
}

.btn-coming-soon:hover {
    filter: grayscale(0.8);
    opacity: 0.8;
}

.btn-coming-soon:active {
    transform: scale(0.97);
}

.badge-soon {
    position: absolute;
    top: -10px;
    right: -5px;
    background: var(--white);
    color: var(--black);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: rotate(5deg);
}

/* Bento Grid */
.bento-section { 
    padding: var(--spacing-section) 8%; 
    position: relative; 
    z-index: 5; 
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}
.bento-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.glass {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 70px 45px;
    border-radius: 24px;
    transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1), 
                transform 1s cubic-bezier(0.25, 0.1, 0.25, 1), 
                border-color 0.6s ease, 
                background 0.6s ease, 
                box-shadow 0.6s ease;
    /* Estado inicial - controlado por CSS apenas */
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity, box-shadow;
}

.glass::before {
    content: '';
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.glass:hover::before {
    opacity: 1;
}

.glass .feature-icon,
.glass h3,
.glass p {
    position: relative;
    z-index: 1;
}

.glass.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.glass:hover { 
    border-color: rgba(255,255,255,0.3); 
    background: rgba(255,255,255,0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px) scale(1.02);
}

.glass:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.glass .feature-icon { 
    font-size: 2.5rem; 
    margin-bottom: 30px; 
    display: block; 
    width: 40px; 
    height: 40px; 
}
.glass h3 { font-size: 1.8rem; margin-bottom: 15px; font-weight: 800; }
.glass p { color: var(--gray-muted); font-size: 1.1rem; }

/* Footer */
footer { 
    padding: 60px 8%; 
    border-top: 1px solid var(--border-glass); 
    background: rgba(0,0,0,0.5);
    content-visibility: auto;
    contain-intrinsic-size: 1px 200px;
}
.footer-wrap { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gray-muted); }

/* Digital Fingerprint */
.fingerprint {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
    padding: 0 8% 20px;
    text-align: center;
    transition: color 0.3s ease;
    opacity: 0;
}

.fingerprint.visible {
    opacity: 1;
}

.fingerprint:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-btns { 
        flex-direction: column; 
        width: 100%; 
    }
    .btn-primary, .btn-coming-soon { 
        width: 100%; 
        justify-content: center;
        min-height: 48px; /* Touch target mínimo */
    }
    .hero-title { 
        font-size: var(--font-size-hero);
        letter-spacing: -3px; 
    }
    .hero-subtitle {
        font-size: var(--font-size-subtitle);
    }
    .nav { padding: 30px 8%; flex-direction: column; gap: 20px; }
    .bento-container { 
        grid-template-columns: 1fr; 
    }
    .bento-section { padding: 40px 5% 100px; }
    .glass { 
        padding: 40px 30px; 
        /* Bento stacking com inclinação */
        transform: perspective(500px) rotateX(0deg);
    }
    footer { padding: 40px 5%; }
    .footer-wrap { flex-direction: column; gap: 15px; text-align: center; }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title { 
        font-size: var(--font-size-hero);
    }
    .bento-container { grid-template-columns: repeat(2, 1fr); }
}

/* Acessibilidade: Reduzir Movimento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal { opacity: 1; transform: none; }
    .falling-coins { display: none; }
    .spotlight { opacity: 0.5; }
}