:root {
    --bg-color: #0b0b0b;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-color: #c8102e; /* Recursos Red */
    --accent-hover: #a00d25;
    --accent-glow: rgba(200, 16, 46, 0.5);
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient animation */
.background-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, #2a0404 0%, var(--bg-color) 40%, var(--bg-color) 100%);
    z-index: -1;
    animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); background: radial-gradient(circle at 30% 70%, #2a0404 0%, var(--bg-color) 40%, var(--bg-color) 100%); }
    50% { transform: scale(1.05); background: radial-gradient(circle at 70% 30%, #3d0808 0%, var(--bg-color) 50%, var(--bg-color) 100%); }
    100% { transform: scale(1); background: radial-gradient(circle at 50% 50%, #2a0404 0%, var(--bg-color) 40%, var(--bg-color) 100%); }
}

.container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    animation: fadeIn 1.2s ease-out forwards;
    padding: 2rem 0;
}

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

header {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.logo {
    max-width: 280px;
    height: auto;
    margin: 0 auto 1rem auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Glassmorphism Timer */
.countdown-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.time-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.time-label {
    font-size: 0.875rem;
    color: var(--gold-gradient); /* Using gold fallback basically */
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.75rem;
    font-weight: 600;
}

.time-separator {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    padding-bottom: 25px;
}

/* Waitlist Section */
.waitlist-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
}

.primary-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.glow-effect:hover::after {
    opacity: 1;
    transform: scale(1);
}

.form-container {
    width: 100%;
    max-width: 500px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.form-container.hidden {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: none;
    position: absolute;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.4rem;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: rgba(200, 16, 46, 0.5); /* Red focus border */
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.submit-btn {
    background: var(--gold-gradient);
    color: #0b0b0b;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.submit-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.success-message {
    color: #4ade80;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.5s ease;
    font-weight: 300;
}

.success-message.hidden {
    display: none;
}

@media (max-width: 600px) {
    .logo {
        max-width: 220px;
    }
    
    .countdown-glass {
        padding: 1.5rem 1rem;
        gap: 0.5rem;
    }
    
    .time-block {
        width: 65px;
    }

    .time-separator {
        font-size: 2rem;
        padding-bottom: 15px;
    }

    .input-group {
        flex-direction: column;
        border-radius: 1rem;
        background: transparent;
        border: none;
        gap: 0.75rem;
        padding: 0;
    }

    .input-group input {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        padding: 1rem 1.5rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }
}
