/* ============================================
   Storm Tecnologia - Landing Page "Em Breve"
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores de fundo - Tema Claro */
    --color-bg-start: #ffffff;
    --color-bg-mid: #f8fafc;
    --color-bg-end: #f1f5f9;
    
    /* Vermelho Storm */
    --color-primary: #E31E24;
    --color-primary-light: #FF4D4D;
    --color-primary-dark: #B91C1C;
    
    /* Cinza Storm */
    --color-secondary: #1e293b;
    --color-accent: #f0f0f0;
    
    /* Texto escuro para fundo claro */
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    
    /* Tipografia */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.8s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, 
        var(--color-bg-start) 0%, 
        var(--color-bg-mid) 50%, 
        var(--color-bg-end) 100%
    );
    background-attachment: fixed;
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* === Efeito de Estrelas/Partículas === */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 5s infinite ease-in-out;
}

/* Posicionar estrelas aleatoriamente via CSS */
.star:nth-child(1) { top: 5%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 15%; left: 25%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 8%; left: 45%; animation-delay: 1s; }
.star:nth-child(4) { top: 20%; left: 65%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 12%; left: 85%; animation-delay: 2s; }
.star:nth-child(6) { top: 30%; left: 5%; animation-delay: 0.3s; }
.star:nth-child(7) { top: 35%; left: 20%; animation-delay: 0.8s; }
.star:nth-child(8) { top: 28%; left: 40%; animation-delay: 1.3s; }
.star:nth-child(9) { top: 40%; left: 55%; animation-delay: 1.8s; }
.star:nth-child(10) { top: 32%; left: 75%; animation-delay: 2.3s; }
.star:nth-child(11) { top: 45%; left: 90%; animation-delay: 0.1s; }
.star:nth-child(12) { top: 50%; left: 8%; animation-delay: 0.6s; }
.star:nth-child(13) { top: 55%; left: 30%; animation-delay: 1.1s; }
.star:nth-child(14) { top: 48%; left: 50%; animation-delay: 1.6s; }
.star:nth-child(15) { top: 60%; left: 70%; animation-delay: 2.1s; }
.star:nth-child(16) { top: 52%; left: 88%; animation-delay: 0.4s; }
.star:nth-child(17) { top: 65%; left: 15%; animation-delay: 0.9s; }
.star:nth-child(18) { top: 70%; left: 35%; animation-delay: 1.4s; }
.star:nth-child(19) { top: 68%; left: 60%; animation-delay: 1.9s; }
.star:nth-child(20) { top: 75%; left: 80%; animation-delay: 2.4s; }
.star:nth-child(21) { top: 80%; left: 5%; animation-delay: 0.2s; }
.star:nth-child(22) { top: 85%; left: 25%; animation-delay: 0.7s; }
.star:nth-child(23) { top: 78%; left: 45%; animation-delay: 1.2s; }
.star:nth-child(24) { top: 88%; left: 65%; animation-delay: 1.7s; }
.star:nth-child(25) { top: 82%; left: 92%; animation-delay: 2.2s; }
.star:nth-child(26) { top: 92%; left: 12%; animation-delay: 0.15s; }
.star:nth-child(27) { top: 95%; left: 38%; animation-delay: 0.65s; }
.star:nth-child(28) { top: 90%; left: 58%; animation-delay: 1.15s; }
.star:nth-child(29) { top: 97%; left: 78%; animation-delay: 1.65s; }
.star:nth-child(30) { top: 3%; left: 52%; animation-delay: 2.15s; }
.star:nth-child(31) { top: 18%; left: 3%; animation-delay: 0.25s; }
.star:nth-child(32) { top: 22%; left: 95%; animation-delay: 0.75s; }
.star:nth-child(33) { top: 38%; left: 12%; animation-delay: 1.25s; }
.star:nth-child(34) { top: 42%; left: 82%; animation-delay: 1.75s; }
.star:nth-child(35) { top: 58%; left: 2%; animation-delay: 2.25s; }
.star:nth-child(36) { top: 62%; left: 95%; animation-delay: 0.35s; }
.star:nth-child(37) { top: 72%; left: 18%; animation-delay: 0.85s; }
.star:nth-child(38) { top: 76%; left: 98%; animation-delay: 1.35s; }
.star:nth-child(39) { top: 86%; left: 7%; animation-delay: 1.85s; }
.star:nth-child(40) { top: 93%; left: 93%; animation-delay: 2.35s; }
.star:nth-child(41) { top: 10%; left: 33%; animation-delay: 0.45s; }
.star:nth-child(42) { top: 25%; left: 53%; animation-delay: 0.95s; }
.star:nth-child(43) { top: 33%; left: 68%; animation-delay: 1.45s; }
.star:nth-child(44) { top: 47%; left: 22%; animation-delay: 1.95s; }
.star:nth-child(45) { top: 57%; left: 42%; animation-delay: 2.45s; }
.star:nth-child(46) { top: 63%; left: 83%; animation-delay: 0.55s; }
.star:nth-child(47) { top: 73%; left: 48%; animation-delay: 1.05s; }
.star:nth-child(48) { top: 83%; left: 55%; animation-delay: 1.55s; }
.star:nth-child(49) { top: 7%; left: 72%; animation-delay: 2.05s; }
.star:nth-child(50) { top: 17%; left: 88%; animation-delay: 2.55s; }

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.3; transform: scale(1); }
}

/* === Efeito de Raio === */
.lightning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(227, 30, 36, 0.08) 0%,
        transparent 60%
    );
    animation: lightning-flash 8s infinite;
}

@keyframes lightning-flash {
    0%, 89%, 91%, 93%, 100% { opacity: 0; }
    90%, 92% { opacity: 1; }
}

/* === Container Principal === */
.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Logo === */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    animation: pulse-glow 3s ease-in-out infinite;
}

.logo-icon svg,
.logo-icon img {
    width: 100%;
    height: 100%;
    color: var(--color-primary);
    filter: drop-shadow(0 0 20px rgba(227, 30, 36, 0.5));
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(227, 30, 36, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(227, 30, 36, 0.8));
        transform: scale(1.05);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-storm {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tech {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* === Mensagem === */
.message {
    margin-bottom: 3rem;
}

.headline {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.subheadline {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* === Barra de Progresso === */
.progress-wrapper {
    width: 100%;
    max-width: 300px;
    margin-bottom: 3rem;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 4px;
    animation: progress-loading 3s ease-in-out infinite;
}

@keyframes progress-loading {
    0% { width: 0%; margin-left: 0%; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* === Contato === */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.contact-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(227, 30, 36, 0.3);
    border-radius: 30px;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    background: rgba(227, 30, 36, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.3);
}

/* === Footer === */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    z-index: 10;
}

.footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* === Responsividade === */
@media (max-width: 640px) {
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-storm {
        font-size: 2rem;
    }
    
    .logo-tech {
        font-size: 0.875rem;
        letter-spacing: 0.3em;
    }
    
    .headline {
        font-size: 1.5rem;
    }
    
    .subheadline {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 1.5rem;
    }
}

@media (max-width: 380px) {
    .logo-storm {
        font-size: 1.75rem;
    }
    
    .headline {
        font-size: 1.25rem;
    }
}

/* === Preferência de movimento reduzido === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
