/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #f0f0f0;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #02060f 0%, #040a1a 50%, #060d20 100%);
}

/* Canvas for stars */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Top title */
.top-title {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    z-index: 2;
}

/* Hero section */
.hero-section {
    text-align: center;
    max-width: 900px;
    animation: fadeIn 1.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.5;
    color: rgba(200, 210, 230, 0.7);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(200, 210, 230, 0.5);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.08);
    margin: 0;
}

/* CTA zone - stable container */
.cta-zone {
    width: 100%;
    max-width: 900px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Play button */
.play-button {
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border-radius: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* Email section */
.email-section {
    text-align: center;
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

.email-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    outline: none;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.email-input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.submit-button {
    flex: 0 0 auto;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border-radius: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    white-space: nowrap;
}

.submit-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

@media (max-width: 520px) {
    .email-input-wrapper {
        flex-direction: column;
    }
}

.error-message {
    margin-top: 1rem;
    color: #ff8888;
    font-size: 0.9rem;
}

/* Countdown section */
.countdown-section {
    text-align: center;
    max-width: 800px;
    animation: fadeIn 0.8s ease-out;
}

.countdown-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    color: rgba(200, 210, 230, 0.6);
}

.countdown-display {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Bottom countdown */
.bottom-countdown {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.countdown-display-small {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.countdown-display-small .countdown-item {
    min-width: 50px;
}

.countdown-display-small .countdown-number {
    font-size: 1.3rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.countdown-display-small .countdown-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
}


/* Utility classes */
.hidden {
    display: none !important;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .top-title,
    .countdown-number {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .top-title {
        font-size: 1.6rem;
        top: 1.5rem;
    }

    .play-button {
        padding: 0.85rem 2.2rem;
        font-size: 0.95rem;
    }

    .countdown-display {
        gap: 1rem;
    }

    .bottom-countdown {
        bottom: 4rem;
    }
}
