/* ============================================
   VPS NEXTGEN ARCHITECTURE - ESTILOS CUSTOMIZADOS
   ============================================ */
:root {
    --nextgen-primary: #3b82f6;
    --nextgen-title: #2b68cb;
    --nextgen-success: #37d397;
    --nextgen-gradient: linear-gradient(135deg, #3b82f6 0%, #2b68cb 100%);
}

/* Fix para header fixo - Evita conteúdo escondido */
#content.interna {
    margin-top: 0;
}

#content.interna section.title {
    padding-top: 120px; /* Espaço para o header fixo */
}

/* Hero NextGen Animation */
.nextgen-hero-banner {
    background: var(--nextgen-gradient);
    padding: 40px 20px;
    border-radius: 20px;
    margin: 30px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.nextgen-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Comparison Cards */
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.comparison-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.comparison-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.comparison-card.highlight {
    border: 3px solid var(--nextgen-primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
}

.comparison-card .card-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--nextgen-success);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.comparison-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.comparison-card .icon-box {
    width: 80px;
    height: 80px;
    background: var(--nextgen-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.comparison-card .icon-box i {
    font-size: 2.5rem;
    color: white;
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list .check-icon {
    color: var(--nextgen-success);
    font-size: 1.2rem;
}

.comparison-list .times-icon {
    color: #ef4444;
    font-size: 1.2rem;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.use-case-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.use-case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.use-case-item .icon {
    width: 60px;
    height: 60px;
    background: var(--nextgen-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.use-case-item .icon i {
    font-size: 1.8rem;
    color: white;
}

.use-case-item h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.use-case-item p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Stats Section */
.stats-nextgen {
    background: var(--nextgen-gradient);
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 20px;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Info Boxes */
.info-box-nextgen {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: start;
}

.info-box-nextgen i {
    font-size: 2rem;
    color: #2563eb;
    flex-shrink: 0;
}

.info-box-nextgen strong {
    color: #1e3a8a;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   VPS NEXTGEN ARCHITECTURE - AMORTECEDOR INTELIGENTE
   ============================================ */
.nextgen-hero {
    background: linear-gradient(165deg, #e8f2ff 0%, #f0f7ff 50%, #e8f2ff 100%);
    border-radius: 24px;
    padding: 45px 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 25px 50px -12px rgba(59, 130, 246, 0.15);
}

.nextgen-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

.nextgen-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.nextgen-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 35px;
}

.nextgen-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(43, 104, 203, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.nextgen-badge::before {
    content: '⚡';
    font-size: 12px;
}

.nextgen-title {
    color: #2b68cb;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.nextgen-subtitle {
    color: #151515;
    font-size: 0.95rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.6;
}

/* ============================================
   CONTAINER PRINCIPAL - 3 CARDS HORIZONTAIS
   ============================================ */
.nextgen-visual-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
}

/* Label de fluxo acima dos cards */
.flow-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flow-label i {
    font-size: 14px;
}

/* ============================================
   CARDS BASE
   ============================================ */
.layer-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 28px 24px;
    width: 280px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.layer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.5s ease;
}

/* ============================================
   CARD ESQUERDA - INFRAESTRUTURA
   ============================================ */
#infraLayer::before {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
}

/* Estado de Standby/Falha */
#infraLayer.standby {
    border-color: rgba(251, 146, 60, 0.5);
    background: linear-gradient(180deg, #fffbf5 0%, #fff5e8 100%);
}

#infraLayer.standby::before {
    background: linear-gradient(90deg, #f97316, #ea580c);
    height: 5px;
}

#infraLayer.standby .layer-visual-icon {
    opacity: 0.4;
    animation: iconShake 0.5s ease-in-out;
}

@keyframes iconShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* ============================================
   CARD CENTRO - NEXTGEN CORE
   ============================================ */
#coreLayer {
    transform: scale(1.05);
}

#coreLayer::before {
    background: linear-gradient(90deg, #3b82f6, #2b68cb);
    height: 5px;
}

/* Estado de Compensação - quando infra cai */
#coreLayer.compensating {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

#coreLayer.compensating::before {
    animation: borderPulse 0.8s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   CARD DIREITA - SEU VPS
   ============================================ */
#vpsLayer::before {
    background: linear-gradient(90deg, #37d397, #56d364);
}

/* ============================================
   HEADER DOS CARDS
   ============================================ */
.layer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

/* Badge numerado no canto superior esquerdo */
.layer-number {
    position: absolute;
    top: -35px;
    left: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2b68cb);
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    z-index: 3;
}

.layer-label {
    font-size: 11px;
    font-weight: 700;
    color: #151515;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.layer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.layer-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 8px currentColor; opacity: 1; }
    50% { box-shadow: 0 0 15px currentColor; opacity: 0.8; }
}

/* Cores dos status */
#infraLayer .layer-status { color: #6b7280; }
#infraLayer .layer-status-dot { background: #6b7280; }

/* Infraestrutura em Standby - destaque laranja */
#infraLayer.standby .layer-status { color: #f97316; }
#infraLayer.standby .layer-status-dot { 
    background: #f97316;
    animation: statusPulseWarning 1s ease-in-out infinite;
}

@keyframes statusPulseWarning {
    0%, 100% { box-shadow: 0 0 10px #f97316; }
    50% { box-shadow: 0 0 20px #f97316; }
}

#coreLayer .layer-status { color: #3b82f6; }
#coreLayer .layer-status-dot { background: #3b82f6; }

/* Core Compensando - destaque laranja também */
#coreLayer.compensating .layer-status { color: #f97316; }
#coreLayer.compensating .layer-status-dot { 
    background: #f97316;
    animation: statusPulseWarning 1s ease-in-out infinite;
}

#vpsLayer .layer-status { color: #37d397; }
#vpsLayer .layer-status-dot { background: #37d397; }

/* ============================================
   ÍCONE/VISUAL DO CARD
   ============================================ */
.layer-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    height: 120px;
}

/* Ícone da Infraestrutura */
#infraLayer .layer-visual-icon {
    font-size: 48px;
    color: #6b7280;
    opacity: 0.8;
}

/* Orbe Central - NextGen Core */
#coreLayer .core-orb {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2b68cb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: orbPulse 3s ease-in-out infinite;
    position: relative;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(59, 130, 246, 0.5); }
}

/* Orbe acelerado quando compensando */
#coreLayer.compensating .core-orb {
    animation: orbPulseFast 0.8s ease-in-out infinite;
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes orbPulseFast {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(59, 130, 246, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 50px rgba(59, 130, 246, 0.7); }
}

#coreLayer .core-orb::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: orbRing 2s linear infinite;
}

@keyframes orbRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

#coreLayer .core-orb i {
    font-size: 36px;
    color: white;
}

/* Neural Network Effect */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.neural-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0.6;
    animation: neuralFloat 3s ease-in-out infinite;
}

.neural-dot:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.neural-dot:nth-child(2) { top: 30%; right: 25%; animation-delay: 0.5s; }
.neural-dot:nth-child(3) { bottom: 25%; left: 30%; animation-delay: 1s; }
.neural-dot:nth-child(4) { bottom: 30%; right: 20%; animation-delay: 1.5s; }

@keyframes neuralFloat {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-10px); opacity: 1; }
}

/* Neural network acelerado quando compensando */
#coreLayer.compensating .neural-dot {
    animation: neuralOrbit 2s linear infinite;
    width: 6px;
    height: 6px;
    opacity: 1;
}

@keyframes neuralOrbit {
    0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

#coreLayer.compensating .neural-dot:nth-child(1) { animation-delay: 0s; }
#coreLayer.compensating .neural-dot:nth-child(2) { animation-delay: 0.5s; }
#coreLayer.compensating .neural-dot:nth-child(3) { animation-delay: 1s; }
#coreLayer.compensating .neural-dot:nth-child(4) { animation-delay: 1.5s; }

/* Ícone do VPS */
#vpsLayer .layer-visual-icon {
    font-size: 48px;
    color: #37d397;
}

/* ============================================
   GRÁFICOS DE ATIVIDADE
   ============================================ */
.layer-activity {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.activity-label {
    font-size: 9px;
    color: #151515;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.6;
    text-align: center;
}

/* Canvas para os gráficos de linha */
.activity-graph {
    width: 100%;
    height: 50px;
    position: relative;
    overflow: hidden;
}

.graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   SETAS DE FLUXO
   ============================================ */
.flow-arrow {
    font-size: 36px;
    color: #3b82f6;
    opacity: 0.7;
    animation: arrowFlow 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

@keyframes arrowFlow {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(8px); }
}

/* ============================================
   FOOTER
   ============================================ */
.nextgen-footer {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nextgen-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.nextgen-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #151515;
    font-weight: 500;
    opacity: 0.8;
}

.nextgen-feature i {
    color: #37d397;
    font-size: 16px;
}

.event-log {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.event-log-icon {
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.event-log-text {
    font-size: 14px;
    color: #151515;
    font-weight: 500;
    opacity: 0.85;
}

.event-log-text span {
    color: #3b82f6;
    font-weight: 600;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .nextgen-hero { padding: 30px 20px; }
    .nextgen-visual-container { 
        flex-direction: column; 
        gap: 25px;
        padding: 30px 0;
    }
    .flow-label {
        display: none;
    }
    .layer-card { 
        width: 100%; 
        max-width: 320px;
    }
    #coreLayer {
        transform: scale(1);
        order: 2;
    }
    #infraLayer { order: 3; }
    #vpsLayer { order: 1; }
    .flow-arrow { 
        transform: rotate(90deg);
        font-size: 24px;
    }
    .nextgen-features { 
        flex-direction: column; 
        gap: 12px; 
    }
    .event-log { 
        flex-direction: column; 
        text-align: center; 
        gap: 8px; 
    }
}