/* Estilos adicionais para melhorar a responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .hero::before {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
    
    .highlight {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .phone-preview {
        margin: 30px auto;
    }
    
    .features {
        padding: 20px;
    }
    
    .feature {
        padding: 15px 10px;
    }
    
    .feature i {
        font-size: 1.5rem;
    }
    
    .feature p {
        font-size: 0.8rem;
    }
    
    .terminal-body {
        min-height: 220px;
        max-height: 250px;
    }
    
    .progress-circle {
        width: 140px;
        height: 140px;
    }
    
    .progress-circle::before {
        width: 120px;
        height: 120px;
    }
    
    .progress-text h3 {
        font-size: 1.8rem;
    }
    
    .wait-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .highlight {
        font-size: 1.3rem;
    }
    
    .description {
        font-size: 0.85rem;
    }
    
    .phone-input {
        padding: 12px;
    }
    
    .action-button {
        padding: 12px;
    }
    
    .features h3 {
        font-size: 1.2rem;
    }
    
    .feature i {
        font-size: 1.3rem;
    }
    
    .important {
        font-size: 1.1rem;
    }
    
    .how-works {
        font-size: 1.1rem;
    }
    
    .counter {
        font-size: 1.8rem;
    }
    
    .terminal-header {
        padding: 8px 10px;
    }
    
    .terminal-body {
        padding: 15px;
        min-height: 200px;
        max-height: 220px;
        font-size: 0.8rem;
    }
    
    .progress-circle {
        width: 120px;
        height: 120px;
    }
    
    .progress-circle::before {
        width: 100px;
        height: 100px;
    }
    
    .progress-text h3 {
        font-size: 1.5rem;
    }
    
    .wait-text {
        font-size: 1.1rem;
    }
    
    .result-box h4 {
        font-size: 1rem;
    }
    
    .result-box p {
        font-size: 0.8rem;
    }
}

/* Otimizações de desempenho */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Melhorias de acessibilidade */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.action-button:focus {
    box-shadow: 0 0 0 3px rgba(103, 246, 186, 0.5);
}

/* Melhorias de performance para animações */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .phone-img:hover {
        transform: none;
    }
    
    .feature:hover {
        transform: none;
    }
    
    .result-box:hover {
        transform: none;
    }
    
    .action-button:hover {
        transform: none;
    }
}

/* Melhorias para impressão */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
    }
    
    .action-button, .feature, .terminal, .progress-container {
        break-inside: avoid;
    }
    
    .terminal-body {
        border: 1px solid #ccc;
        color: #000;
    }
    
    #loading-overlay {
        display: none !important;
    }
}

/* Melhorias para telas grandes */
@media (min-width: 1200px) {
    .container {
        max-width: 800px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .phone-preview {
        max-width: 350px;
    }
    
    .terminal {
        max-width: 700px;
    }
}

/* Melhorias para modo escuro do sistema */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #090D0B;
        --card-bg: #111111;
        --text-color: #ffffff;
    }
}

/* Melhorias para modo claro do sistema (fallback) */
@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #090D0B;
        --card-bg: #111111;
        --text-color: #ffffff;
    }
}

/* Otimizações para carregamento de página */
.content-placeholder {
    background: linear-gradient(90deg, var(--card-bg) 0%, rgba(17, 17, 17, 0.5) 50%, var(--card-bg) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    height: 20px;
    margin-bottom: 10px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Melhorias para imagens de fundo */
.hero {
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(9, 13, 11, 0.85);
    z-index: -1;
    border-radius: 16px;
}

/* Melhorias para ícones de recursos */
.feature i {
    display: none;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(103, 246, 186, 0.5));
}

/* Melhorias para botões */
.action-button {
    position: relative;
    overflow: hidden;
}

.action-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(103, 246, 186, 0.2) 0%, rgba(103, 246, 186, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    transform: scale(0.5);
}

.action-button:hover::after {
    opacity: 1;
    transform: scale(1);
}

.action-button:active {
    transform: scale(0.98);
}

/* Melhorias para o terminal */
.terminal-line {
    position: relative;
    padding-left: 20px;
}

.terminal-line::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 500;
}

.terminal-line.success-text::before {
    content: '✓';
    color: var(--success-color);
}

.terminal-line.error-text::before {
    content: '✗';
    color: var(--error-color);
}

.terminal-line.warning-text::before {
    content: '!';
    color: var(--warning-color);
}

/* Melhorias para o círculo de progresso */
.progress-circle {
    position: relative;
    transition: all 0.3s ease;
}

.progress-circle::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: transparent;
    border: none;
    z-index: 0;
    animation: none;
}

/* Melhorias para o rodapé */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(103, 246, 186, 0) 0%, rgba(103, 246, 186, 0.5) 50%, rgba(103, 246, 186, 0) 100%);
}

/* Melhorias para a versão */
.version {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--primary-color);
    margin-left: 5px;
    font-weight: 500;
    background-color: rgba(103, 246, 186, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
}
