/* ===== VARIÁVEIS CSS - PALETA DA MARCA ===== */
:root {
    --primary-dark: #020E16;
    --primary-dark-rgb: 2, 14, 22;
    --petroleum-blue: #17343D;
    --petroleum-blue-rgb: 23, 52, 61;
    --brown-gold: #9C784E;
    --brown-gold-rgb: 156, 120, 78;
    --light-gray: #e5f5f9;
    --light-gray-rgb: 205, 207, 209;
    
    /* Cores de contraste e elegancia */
    --deep-navy: #0A1A25;
    --rich-teal: #1A4A5A;
    --warm-gold: #B08D5C;
    --cool-silver: #E8EAEC;
    --dark-charcoal: #1A1A1A;
    
    /* Gradientes elegantes */
    --primary-gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--deep-navy) 50%, #05121E 100%);
    --secondary-gradient: linear-gradient(135deg, var(--petroleum-blue) 0%, var(--rich-teal) 50%, #1E4E5F 100%);
    --accent-gradient: linear-gradient(135deg, var(--brown-gold) 0%, var(--warm-gold) 50%, #C9A87C 100%);
    --dark-gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--deep-navy) 50%, #0F212E 100%);
    --light-gradient: linear-gradient(135deg, var(--light-gray) 0%, var(--cool-silver) 50%, #E0E2E4 100%);
    
    /* Glass morphism */
    --glass-bg: rgba(2, 14, 22, 0.85);
    --glass-border: rgba(156, 120, 78, 0.25);
    --glass-shadow: 0 20px 40px rgba(2, 14, 22, 0.5);
    --neon-glow: 0 0 20px rgba(156, 120, 78, 0.3);
    
    /* Texto */
    --text-primary: var(--cool-silver);
    --text-secondary: var(--light-gray);
    --text-accent: #F5E6D3;
    --text-dark: var(--primary-dark);
    
    /* Estados */
    --success-color: #27AE60;
    --error-color: #E74C3C;
    --warning-color: #F39C12;
    
    /* Bordas e espaçamento */
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fontes */
    --font-montserrat: 'Montserrat', sans-serif;
    --font-outfit: 'Outfit', sans-serif;
    --font-asap: 'Asap', sans-serif;
    --font-readex: 'Readex Pro', sans-serif;
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-montserrat);
    background: var(--dark-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== BACKGROUND ANIMADO PREMIUM ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 60, 114, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(42, 82, 152, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(51, 102, 204, 0.2) 0%, transparent 50%),
        var(--dark-gradient);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { 
        transform: translate(0, 0) scale(1.2); 
        filter: hue-rotate(0deg);
    }
    33% { 
        transform: translate(20px, -15px) scale(1.2); 
        filter: hue-rotate(30deg);
    }
    66% { 
        transform: translate(-15px, 20px) scale(1.2); 
        filter: hue-rotate(-30deg);
    }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(42, 82, 152, 0.1);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out;
    filter: blur(40px);
}

.shape1 { width: 400px; height: 400px; top: 10%; left: 10%; animation-delay: 0s; }
.shape2 { width: 300px; height: 300px; top: 60%; right: 15%; animation-delay: 8s; }
.shape3 { width: 350px; height: 350px; bottom: 10%; left: 50%; animation-delay: 16s; }
.shape4 { width: 250px; height: 250px; top: 30%; right: 25%; animation-delay: 12s; }

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.7;
    }
    25% { 
        transform: translate(30px, -40px) rotate(90deg); 
        opacity: 1;
    }
    50% { 
        transform: translate(-20px, 30px) rotate(180deg); 
        opacity: 0.8;
    }
    75% { 
        transform: translate(40px, 20px) rotate(270deg); 
        opacity: 0.9;
    }
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(168, 197, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { top: 40%; right: 20%; animation-delay: 3s; animation-duration: 25s; }
.particle:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 6s; animation-duration: 18s; }
.particle:nth-child(4) { top: 60%; right: 30%; animation-delay: 9s; animation-duration: 22s; }
.particle:nth-child(5) { bottom: 20%; right: 40%; animation-delay: 12s; animation-duration: 19s; }
.particle:nth-child(6) { top: 80%; left: 60%; animation-delay: 15s; animation-duration: 24s; }
.particle:nth-child(7) { top: 10%; right: 60%; animation-delay: 18s; animation-duration: 21s; }
.particle:nth-child(8) { bottom: 40%; left: 80%; animation-delay: 21s; animation-duration: 23s; }

@keyframes particleFloat {
    0% { 
        transform: translateY(0) translateX(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-100vh) translateX(100px); 
        opacity: 0; 
    }
}

/* ===== LAYOUT PRINCIPAL ===== */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: inline-block;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--neon-glow);
}

.logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(156, 120, 78, 0.4));
}

.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* ===== CARD DE SUCESSO ===== */
.success-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 
        var(--glass-shadow),
        var(--neon-glow),
        inset 0 0 60px rgba(156, 120, 78, 0.1);
    padding: 60px 50px;
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: slideUp 1s ease-out;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.success-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(156, 120, 78, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.success-card:hover::after {
    opacity: 1;
}

/* ===== ÍCONE DE SUCESSO ===== */
.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: successBounce 1s ease-out, pulse 2s infinite 1s;
    box-shadow: 0 10px 30px rgba(156, 120, 78, 0.4);
}

.success-icon svg {
    width: 50px;
    height: 50px;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(156, 120, 78, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(156, 120, 78, 0.6);
    }
}

/* ===== TÍTULO ===== */
.success-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-family: var(--font-outfit);
    font-weight: 900;
    font-size: clamp(36px, 5vw, 56px);
    background: linear-gradient(135deg, var(--cool-silver) 0%, var(--light-gray) 50%, var(--warm-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 8px 16px rgba(2, 14, 22, 0.4);
    animation: titleReveal 1.2s ease-out;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CORREÇÃO DA ANIMAÇÃO DE DIGITAÇÃO - RESPONSIVA ===== */
.subtitle-container {
    margin-bottom: 40px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.subtitle {
    font-family: var(--font-montserrat);
    font-weight: 500;
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--brown-gold);
    padding-right: 5px;
    animation: blink 1s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ===== ESTATÍSTICAS ===== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
    padding: 0 20px;
}

.stat-item {
    background: rgba(23, 52, 61, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(156, 120, 78, 0.2);
    padding: 25px 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(2, 14, 22, 0.4);
}

.stat-number {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: clamp(24px, 3vw, 32px);
    color: var(--warm-gold);
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-montserrat);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== BOTÃO PRINCIPAL ===== */
.action-container {
    margin: 50px 0 30px;
}

.whatsapp-button {
    display: block;
    background: linear-gradient(135deg, #25D366 0%, #20c05a 50%, #1bac52 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: 
        0 10px 30px rgba(37, 211, 102, 0.3),
        0 0 20px rgba(37, 211, 102, 0.2);
    margin-bottom: 25px;
}

.whatsapp-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(37, 211, 102, 0.4),
        0 0 30px rgba(37, 211, 102, 0.3);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 35px;
    position: relative;
    z-index: 2;
}

.button-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.button-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    animation: iconBounce 2s infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.button-text {
    flex: 1;
    text-align: left;
    margin: 0 25px;
}

.button-main-text {
    display: block;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 4px;
}

.button-subtext {
    display: block;
    font-family: var(--font-montserrat);
    font-weight: 500;
    font-size: 14px;
    opacity: 0.9;
}

.button-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover .button-arrow {
    transform: translateX(5px);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.whatsapp-button:hover .button-glow {
    left: 100%;
}

/* ===== AÇÃO SECUNDÁRIA ===== */
.secondary-action {
    text-align: center;
}

.secondary-text {
    font-family: var(--font-montserrat);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 15px;
}

.save-button {
    background: rgba(23, 52, 61, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(156, 120, 78, 0.3);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 12px 25px;
    font-family: var(--font-montserrat);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button:hover {
    background: rgba(23, 52, 61, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 14, 22, 0.4);
}

.save-button svg {
    width: 16px;
    height: 16px;
}

/* ===== INFORMAÇÕES ADICIONAIS ===== */
.additional-info {
    margin-top: 40px;
}

.info-card {
    background: rgba(23, 52, 61, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(156, 120, 78, 0.2);
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(2, 14, 22, 0.4);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-content h3 {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.info-content p {
    font-family: var(--font-montserrat);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(156, 120, 78, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-family: var(--font-montserrat);
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-link {
    font-family: var(--font-montserrat);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brown-gold);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--warm-gold);
}

.footer-link:hover::after {
    width: 100%;
}

/* ===== ANIMAÇÕES GLOBAIS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MODAL DE SALVAR PÁGINA ===== */
.save-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 14, 22, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.save-modal.active {
    display: flex;
}

.save-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--neon-glow);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.save-modal h2 {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.save-modal p {
    font-family: var(--font-montserrat);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.save-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.save-option {
    background: rgba(23, 52, 61, 0.6);
    border: 1px solid rgba(156, 120, 78, 0.3);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.save-option:hover {
    background: rgba(23, 52, 61, 0.8);
    transform: translateY(-2px);
}

.option-text {
    font-family: var(--font-montserrat);
    font-weight: 600;
    color: var(--text-primary);
}

.option-icon {
    width: 20px;
    height: 20px;
    color: var(--warm-gold);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-button {
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-family: var(--font-montserrat);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.modal-button.primary {
    background: var(--accent-gradient);
    color: white;
}

.modal-button.secondary {
    background: rgba(23, 52, 61, 0.7);
    color: var(--text-primary);
    border: 1px solid rgba(156, 120, 78, 0.3);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 14, 22, 0.4);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }
    
    .logo-container {
        padding: 15px;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .success-card {
        padding: 40px 25px;
        margin: 0 10px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .button-content {
        padding: 20px 25px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .button-text {
        margin: 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .save-modal-content {
        padding: 30px 20px;
    }
    
    .save-options {
        gap: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }

    /* CORREÇÃO PARA MOBILE - TEXTO DIGITADO */
    .typing-text {
        white-space: normal;
        overflow: visible;
        word-wrap: break-word;
        max-width: 100%;
        animation: none;
        border-right: none;
    }
    
    .subtitle-container {
        min-height: 120px;
        padding: 0 15px;
    }
    
    .subtitle {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .success-card {
        padding: 30px 20px;
    }
    
    .button-content {
        padding: 18px 20px;
    }
    
    .button-main-text {
        font-size: 18px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .subtitle-container {
        min-height: 140px;
    }
    
    .typing-text {
        font-size: 15px;
        line-height: 1.4;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== IMPRESSÃO ===== */
@media print {
    .bg-animation,
    .whatsapp-button,
    .save-button {
        display: none;
    }
    
    .success-card {
        box-shadow: none;
        border: 2px solid #333;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Estilo para o ripple effect */
.click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(156, 120, 78, 0.6);
    pointer-events: none;
    animation: rippleEffect 1s ease-out forwards;
    z-index: 9999;
}

@keyframes rippleEffect {
    to {
        transform: scale(30);
        opacity: 0;
    }
}