:root {
    --color-bg-dark: #050101;
    --color-primary: #ff3b3b;
    --color-primary-glow: rgba(255, 59, 59, 0.4);
    --color-secondary: #ff7e33;
    --color-text: #ffffff;
    --color-text-muted: #a69898;
    --color-glass: rgba(25, 10, 10, 0.4);
    --color-glass-border: rgba(255, 100, 100, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Main Layout */
.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    padding: 3rem 4rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

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

/* Brand & Logo */
.brand {
    margin-bottom: 2rem;
}

#logo {
    max-height: 100px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.fallback-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.text-red {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary-glow);
}

.text-light {
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Typography */
.content {
    margin-bottom: 3rem;
}

.title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.title span {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

/* Countdown Timer */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 90px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.time-block .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.time-block .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.colon {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Form Styles */
.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-glass-border);
    border-radius: 50px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    border-radius: 50px; /* Prevents background spilling out */
}

/* Fix browser autofill background issue */
input[type="email"]:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover, 
input[type="email"]:-webkit-autofill:focus, 
input[type="email"]:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: var(--color-text) !important;
}

input[type="email"]::placeholder {
    color: #666;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #d91818);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0.8rem 2rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--color-primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

#form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4ade80;
    font-weight: 400;
}

.hidden {
    display: none;
}

.contact-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.contact-text a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
    .glass-card {
        padding: 2rem 1.5rem;
    }

    .title {
        font-size: 2.2rem;
    }

    .countdown-wrapper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .time-block {
        min-width: 70px;
        padding: 0.8rem;
    }

    .time-block .number {
        font-size: 1.8rem;
    }

    .colon {
        display: none;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    input[type="email"] {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid var(--color-glass-border);
        border-radius: 50px;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    .btn-primary {
        width: 100%;
    }
}
