/* RunMake - Expectativa Landing Page */

:root {
    --orange: #FF6900;
    --orange-glow: rgba(255, 105, 0, 0.3);
    --orange-light: rgba(255, 105, 0, 0.1);
    --black: #000000;
    --white: #FFFFFF;
    --gray-dark: #1A1A1A;
    --gray-medium: #666666;
    --gray-light: #999999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Overlay de entrada */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 100;
    animation: revealScreen 2s ease-out forwards;
    pointer-events: none;
}

@keyframes revealScreen {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    text-align: center;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* Logo Central */
.logo-container {
    margin-bottom: 20px;
    animation: fadeInScale 2s ease-out 0.5s both;
    position: relative;
}

.logo {
    font-size: clamp(80px, 15vw, 150px);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
}

.logo .run {
    color: var(--orange);
}

.logo .make {
    color: var(--white);
}

.logo .dot {
    color: var(--orange);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 0.9em;
}

/* Efecto latido del corazón */
@keyframes heartbeat {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    15% {
        transform: scale(1.15);
        opacity: 0.9;
    }
    30% {
        transform: scale(1);
        opacity: 1;
    }
    45% {
        transform: scale(1.1);
        opacity: 0.9;
    }
    60% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tagline */
.tagline-container {
    margin-bottom: 80px;
    animation: fadeIn 1s ease-out 0.3s both;
    position: relative;
}

.tagline {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--gray-medium);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Efecto de líneas AI */
.tagline::before,
.tagline::after {
    content: '';
    position: absolute;
    height: 1px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    top: 50%;
    animation: expandLine 3s ease-in-out infinite;
}

.tagline::before {
    right: 110%;
}

.tagline::after {
    left: 110%;
}

@keyframes expandLine {
    0%, 100% {
        width: 50px;
        opacity: 0;
    }
    50% {
        width: 100px;
        opacity: 1;
    }
}


/* Mensaje Rotativo */
.message-container {
    margin-bottom: 80px;
    height: 60px;
    animation: fadeIn 1s ease-out 0.9s both;
    position: relative;
    overflow: hidden;
}

/* Efecto de datos binarios */
.message-container::before,
.message-container::after {
    content: '010110100101';
    position: absolute;
    font-size: 10px;
    color: var(--orange);
    opacity: 0.1;
    font-family: monospace;
    animation: dataStream 5s linear infinite;
}

.message-container::before {
    top: -10px;
    left: -100px;
}

.message-container::after {
    bottom: -10px;
    right: -100px;
    animation-delay: 2.5s;
}

@keyframes dataStream {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

.rotating-message {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    position: absolute;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.message-text {
    display: inline-block;
    color: var(--gray-light);
    font-style: italic;
}

@keyframes slideGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Animación de cambio de mensaje */
@keyframes rotateMessage {
    0%, 100% {
        opacity: 0;
        transform: translateY(10px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Footer */
.footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    animation: fadeIn 1s ease-out 2.5s both;
    text-align: center;
    z-index: 10;
}

.footer p {
    font-size: 12px;
    color: var(--gray-medium);
    margin: 0;
    padding: 0;
    opacity: 0.6;
}

/* Partículas de fondo */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

/* Efecto de escaneo AI */
.container::before {
    content: '';
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, 
        transparent 0%, 
        rgba(0, 212, 255, 0.1) 50%, 
        transparent 100%);
    animation: aiScan 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes aiScan {
    0%, 100% {
        top: -100%;
    }
    50% {
        top: 100%;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(180deg);
        filter: blur(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

/* Efecto glitch */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
}

.logo:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Efecto de matriz digital */
.logo-container::after {
    animation: pulse 4s ease-in-out infinite, rotateHue 10s linear infinite;
}

@keyframes rotateHue {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Glow sutil en el logo */
.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--orange-light) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(60px);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .countdown {
        gap: 5px;
    }
    
    .time-unit {
        min-width: 50px;
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .notify-btn {
        width: 100%;
    }
}

/* Success State */
.notify-form.success .email-input {
    background: rgba(255, 105, 0, 0.1);
    border-color: var(--orange);
}

.notify-form.success .notify-btn {
    background: var(--white);
    color: var(--black);
}