:root {
    --primary-color: #00ffcc;
    --secondary-color: #0066ff;
    --bg-dark: #0a0a0c;
    --text-light: #ffffff;
    --text-muted: #888899;
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background setup */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 12, 0.9) 0%, rgba(10, 10, 12, 0.4) 50%, rgba(10, 10, 12, 0.8) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    color: #fff;
}

.tagline {
    font-size: 18px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
p.supporting-text {
    color: #fff;
    letter-spacing: 1px;
    font-size: 19px;
    font-weight: 300;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

/* Countdown */
.countdown-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.time-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    width: 120px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 255, 204, 0.2);
    border-color: rgba(0, 255, 204, 0.3);
}

.time-value {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.time-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-weight: 400;
}

/* Animation class for numbers */
.flip {
    animation: flipIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subscription Form */
.subscription-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.subscription-container h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

.btn-submit {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 204, 0.4);
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
    transition: color 0.3s ease;
}

.form-message.success {
    color: var(--primary-color);
}

.form-message.error {
    color: #ff4444;
}

/* Footer */
footer {
    text-align: center;
    padding-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes flipIn {
    0% { transform: rotateX(-90deg); opacity: 0; }
    100% { transform: rotateX(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .time-box {
        width: 100px;
        padding: 1rem;
    }
    
    .time-value {
        font-size: 2.5rem;
    }
    
    .subscription-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .time-box {
        width: 80px;
        padding: 0.8rem;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
}
