/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    --bg-dark: #050505;
    --bg-darker: #000000;
    --bg-glass: rgba(17, 17, 17, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(230, 0, 0, 0.3);
    
    --accent-red: #E60000;
    --accent-red-hover: #FF1A1A;
    --accent-red-glow: rgba(230, 0, 0, 0.45);
    
    --text-main: #F2F2F2;
    --text-muted: #8E8E93;
    
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.3s;
    --transition-cubic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-darker);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Atmospheric Glow Background
   ========================================================================== */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    mix-blend-mode: screen;
    animation: floatGlow 20s infinite alternate ease-in-out;
}

.sphere-1 {
    top: -10%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
}

.sphere-2 {
    bottom: -10%;
    right: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #800000 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(5%, 8%) scale(1.1);
    }
}

/* ==========================================================================
   Layout Container
   ========================================================================== */
.coming-soon-container {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Header / Brand Logo
   ========================================================================== */
.brand-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInDown 1s var(--transition-cubic);
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-main);
    position: relative;
    transition: text-shadow var(--transition-speed);
}

.logo-text:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 0 30px var(--accent-red-glow);
}

.highlight {
    color: var(--accent-red);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 750px;
    margin: auto 0;
    gap: 2.5rem;
    animation: fadeInUp 1.2s var(--transition-cubic) 0.2s both;
}

.main-headline {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.sub-headline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
}

/* ==========================================================================
   Countdown Grid (Glassmorphism)
   ========================================================================== */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 560px;
}

.countdown-card {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: border-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.countdown-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(230, 0, 0, 0.1);
}

.countdown-value {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
}

/* ==========================================================================
   Newsletter Subscription Form
   ========================================================================== */
.subscription-wrapper {
    width: 100%;
    max-width: 500px;
}

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

.input-group {
    display: flex;
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

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

.email-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    padding: 0 1.25rem;
    font-size: 0.95rem;
    font-family: inherit;
    width: 50%;
}

.email-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.subscribe-button {
    background-color: var(--accent-red);
    color: #FFFFFF;
    border: none;
    outline: none;
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.subscribe-button:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 0 10px var(--accent-red-glow);
}

.subscribe-button:active {
    transform: scale(0.97);
}

.subscribe-button.loading {
    color: transparent;
    pointer-events: none;
}

.subscribe-button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Form Message Feedback */
.form-message {
    font-size: 0.85rem;
    min-height: 1.25rem;
    transition: opacity var(--transition-speed);
    text-align: center;
}

.form-message.success {
    color: #4CAF50;
    animation: fadeIn 0.3s forwards;
}

.form-message.error {
    color: var(--accent-red-hover);
    animation: fadeIn 0.3s forwards;
}

.form-message.info {
    color: var(--text-muted);
    animation: fadeIn 0.3s forwards;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.brand-footer {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    animation: fadeInUp 1s var(--transition-cubic) 0.4s both;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.5rem;
}

.footer-left {
    justify-self: start;
}

.footer-center {
    justify-self: center;
}

.footer-right {
    justify-self: end;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    transition: color var(--transition-speed), text-shadow var(--transition-speed);
}

.social-icon:hover {
    color: var(--accent-red-hover);
    text-shadow: 0 0 8px var(--accent-red-glow);
}

.preview-link {
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.preview-link:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

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

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

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .coming-soon-container {
        padding: 2rem 1rem;
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
        gap: 3.5rem;
    }

    .main-content {
        margin: 0;
        gap: 2rem;
    }

    .countdown-container {
        gap: 0.75rem;
    }

    .countdown-card {
        padding: 1rem 0.5rem;
    }

    .brand-footer {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding-bottom: 1rem;
    }

    .footer-left, .footer-center, .footer-right {
        justify-self: center;
    }
}
