/**
 * APPLE ZEN BANNER - Minimalismo Extremo + Elegância Absoluta
 * Inspirado no design da Apple - Parceria Elite Finance x Apple
 * Contraste Perfeito: Light (fundo claro) / Dark (fundo escuro)
 * Elite Financial System v11.0 - Apple Edition
 */

/* ============================================
   SISTEMA DE TEMAS (LIGHT/DARK)
   ============================================ */

:root {
    /* Light Mode (Padrão Apple) */
    --apple-bg-primary: #FFFFFF;
    --apple-bg-secondary: #F5F5F7;
    --apple-bg-tertiary: #FAFAFA;
    --apple-text-primary: #1D1D1F;
    --apple-text-secondary: #6E6E73;
    --apple-text-tertiary: #86868B;
    --apple-accent: #0071E3;
    --apple-accent-hover: #0077ED;
    --apple-border: rgba(0, 0, 0, 0.08);
    --apple-shadow: rgba(0, 0, 0, 0.08);
    --apple-glass-bg: rgba(255, 255, 255, 0.7);
    --apple-glass-border: rgba(255, 255, 255, 0.18);

    /* Gradientes Light */
    --apple-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --apple-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --apple-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

[data-theme="dark"] {
    /* Dark Mode (Apple Night) */
    --apple-bg-primary: #000000;
    --apple-bg-secondary: #1C1C1E;
    --apple-bg-tertiary: #2C2C2E;
    --apple-text-primary: #F5F5F7;
    --apple-text-secondary: #A1A1A6;
    --apple-text-tertiary: #6E6E73;
    --apple-accent: #0A84FF;
    --apple-accent-hover: #409CFF;
    --apple-border: rgba(255, 255, 255, 0.1);
    --apple-shadow: rgba(255, 255, 255, 0.05);
    --apple-glass-bg: rgba(28, 28, 30, 0.7);
    --apple-glass-border: rgba(255, 255, 255, 0.1);

    /* Gradientes Dark */
    --apple-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --apple-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --apple-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Transição Suave de Tema (Apple Style) */
* {
    transition: background-color 0.6s cubic-bezier(0.28, 0.11, 0.32, 1),
                color 0.6s cubic-bezier(0.28, 0.11, 0.32, 1),
                border-color 0.6s cubic-bezier(0.28, 0.11, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.28, 0.11, 0.32, 1);
}

/* ============================================
   CONTAINER PRINCIPAL - ZEN BANNER
   ============================================ */

.apple-zen-banner {
    position: relative;
    width: 100%;
    min-height: 450px;
    margin-bottom: 3rem;
    border-radius: 30px;
    overflow: hidden;

    /* Fundo Limpo */
    background: var(--apple-bg-primary);

    /* Borda Sutil */
    border: 1px solid var(--apple-border);

    /* Sombra Realista Apple */
    box-shadow:
        0 25px 50px -12px var(--apple-shadow),
        0 12px 24px -8px var(--apple-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);

    /* Transição Premium */
    transition: all 0.8s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.apple-zen-banner:hover {
    transform: translateY(-8px);
    box-shadow:
        0 35px 70px -15px var(--apple-shadow),
        0 20px 40px -12px var(--apple-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* ============================================
   MORPHING BLOB BACKGROUND
   ============================================ */

.apple-blob-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0.08;
}

[data-theme="dark"] .apple-blob-container {
    opacity: 0.12;
}

.apple-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: multiply;
    animation: apple-blob-morph 20s ease-in-out infinite;
}

[data-theme="dark"] .apple-blob {
    mix-blend-mode: screen;
}

.apple-blob-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    background: var(--apple-gradient-1);
    animation-delay: 0s;
}

.apple-blob-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -100px;
    background: var(--apple-gradient-2);
    animation-delay: 5s;
}

.apple-blob-3 {
    width: 450px;
    height: 450px;
    bottom: -150px;
    left: 30%;
    background: var(--apple-gradient-3);
    animation-delay: 10s;
}

@keyframes apple-blob-morph {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50%;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1) rotate(90deg);
        border-radius: 60% 40% 60% 40%;
    }
    50% {
        transform: translate(-20px, 40px) scale(0.95) rotate(180deg);
        border-radius: 40% 60% 40% 60%;
    }
    75% {
        transform: translate(40px, 20px) scale(1.05) rotate(270deg);
        border-radius: 55% 45% 55% 45%;
    }
}

/* ============================================
   GRID MINIMALISTA
   ============================================ */

.apple-grid {
    /* 🔧 REMOVIDO: Linhas de grade desabilitadas para visual mais limpo e premium */
    display: none !important;

    /* Código original mantido para referência:
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(var(--apple-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--apple-border) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
    */
}

/* ============================================
   AMBIENT PARTICLES (MAGNETIC)
   ============================================ */

.apple-particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.15;
}

[data-theme="dark"] .apple-particles-canvas {
    opacity: 0.25;
}

/* ============================================
   CONTEÚDO PRINCIPAL
   ============================================ */

.apple-zen-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 5rem 3rem;
    text-align: center;
}

/* ============================================
   LABEL SUPERIOR (MINIMALISTA)
   ============================================ */

.apple-zen-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--apple-text-tertiary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: apple-fade-in-up 1s cubic-bezier(0.28, 0.11, 0.32, 1) 0.2s forwards;
}

/* ============================================
   TÍTULO ÉPICO (CLEAN & BOLD)
   ============================================ */

.apple-zen-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--apple-text-primary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: apple-fade-in-up 1s cubic-bezier(0.28, 0.11, 0.32, 1) 0.4s forwards;

    /* 🔥 SEM EFEITOS - Texto totalmente estático */
}

/* ============================================
   SUBTÍTULO (ELEGANTE)
   ============================================ */

.apple-zen-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--apple-text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    opacity: 0;
    animation: apple-fade-in-up 1s cubic-bezier(0.28, 0.11, 0.32, 1) 0.6s forwards;
}

/* ============================================
   GLASS CARDS (ESTATÍSTICAS)
   ============================================ */

.apple-zen-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0;
    animation: apple-fade-in-up 1s cubic-bezier(0.28, 0.11, 0.32, 1) 0.8s forwards;
}

.apple-zen-stat {
    padding: 2rem 3rem;

    /* 🔥 GLASSMORPHISM PREMIUM - APPLE STYLE */
    background: var(--apple-glass-bg);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);

    /* Borda brilhante e delicada */
    border: 1.5px solid var(--apple-glass-border);
    border-radius: 24px;

    /* Sombras profundas e elegantes */
    box-shadow:
        0 15px 40px -8px var(--apple-shadow),
        0 8px 20px -6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 0 60px rgba(255, 255, 255, 0.03);

    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    cursor: pointer;

    /* 3D Transform */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.apple-zen-stat:hover {
    transform: translateY(-8px) scale(1.03);

    /* Sombras ainda mais intensas no hover */
    box-shadow:
        0 25px 60px -10px var(--apple-shadow),
        0 15px 35px -8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 0 80px rgba(255, 255, 255, 0.05);

    /* Borda mais brilhante */
    border-color: rgba(255, 255, 255, 0.25);
}

.apple-zen-stat-value {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--apple-text-primary);
    margin-bottom: 0.5rem;

    /* Gradient Accent */
    background: var(--apple-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apple-zen-stat-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--apple-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CTA BUTTON (APPLE STYLE)
   ============================================ */

.apple-zen-cta {
    margin-top: 3rem;
    opacity: 0;
    animation: apple-fade-in-up 1s cubic-bezier(0.28, 0.11, 0.32, 1) 1s forwards;
}

.apple-zen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #FFFFFF;
    background: var(--apple-accent);
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow:
        0 4px 12px rgba(0, 113, 227, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.apple-zen-btn:hover {
    background: var(--apple-accent-hover);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(0, 113, 227, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.apple-zen-btn:active {
    transform: translateY(0);
}

.apple-zen-btn-icon {
    font-size: 1.2rem;
}

/* ============================================
   THEME TOGGLE (MINIMALISTA)
   ============================================ */

.apple-theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 20;
    width: 60px;
    height: 32px;
    background: var(--apple-glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--apple-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow:
        0 4px 12px var(--apple-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.apple-theme-toggle:hover {
    box-shadow:
        0 6px 16px var(--apple-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.apple-theme-toggle-circle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--apple-text-primary);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .apple-theme-toggle-circle {
    left: 31px;
}

/* ============================================
   ANIMAÇÕES KEYFRAMES
   ============================================ */

@keyframes apple-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 1024px) {
    .apple-zen-banner {
        min-height: 550px;
        border-radius: 25px;
    }

    .apple-zen-content {
        min-height: 550px;
        padding: 4rem 2.5rem;
    }

    .apple-zen-title {
        font-size: 4.5rem;
    }

    .apple-zen-subtitle {
        font-size: 1.5rem;
    }

    .apple-zen-stats {
        gap: 1.5rem;
    }

    .apple-zen-stat {
        padding: 1.75rem 2.5rem;
    }

    .apple-zen-stat-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .apple-zen-banner {
        min-height: 500px;
        border-radius: 20px;
        margin-bottom: 2rem;
    }

    .apple-zen-content {
        min-height: 500px;
        padding: 3rem 2rem;
    }

    .apple-zen-label {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .apple-zen-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .apple-zen-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    /* 🔥 CORREÇÃO: Cards lado a lado no mobile */
    .apple-zen-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 2rem;
        width: 100%;
    }

    .apple-zen-stat {
        padding: 1rem 0.5rem;
        width: 100%;
        min-width: 0; /* Permitir que encolha */
    }

    .apple-zen-stat-value {
        font-size: 1.5rem;
    }

    .apple-zen-stat-label {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .apple-zen-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .apple-theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .apple-zen-banner {
        min-height: 450px;
        border-radius: 16px;
    }

    .apple-zen-content {
        min-height: 450px;
        padding: 2.5rem 1.5rem;
    }

    .apple-zen-title {
        font-size: 2.25rem;
        letter-spacing: -0.02em;
    }

    .apple-zen-subtitle {
        font-size: 1.125rem;
    }

    /* 🔥 CORREÇÃO: Cards ultra compactos mas lado a lado */
    .apple-zen-stats {
        gap: 0.5rem;
    }

    .apple-zen-stat {
        padding: 0.75rem 0.25rem;
    }

    .apple-zen-stat-value {
        font-size: 1.25rem;
    }

    .apple-zen-stat-label {
        font-size: 0.55rem;
    }

    .apple-zen-cta {
        margin-top: 2rem;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.apple-zen-banner,
.apple-blob,
.apple-zen-stat,
.apple-zen-title {
    will-change: transform;
}

/* Reduzir movimento para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   EFEITO MAGNETIC CURSOR (AVANÇADO)
   ============================================ */

.apple-magnetic-element {
    transition: transform 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
}

/* ============================================
   TITLE SMOOTH HOVER (REMOVIDO - SEM EFEITOS)
   ============================================ */

/* 🔥 Hover removido - título totalmente estático conforme solicitado */

/* ============================================
   SCROLL REVEAL (PROGRESSIVE)
   ============================================ */

.apple-zen-banner.revealed .apple-zen-label,
.apple-zen-banner.revealed .apple-zen-title,
.apple-zen-banner.revealed .apple-zen-subtitle,
.apple-zen-banner.revealed .apple-zen-stats,
.apple-zen-banner.revealed .apple-zen-cta {
    animation-play-state: running;
}
