@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    --bg-color: #000000;
    --accent-purple: #9d4edd;
    --accent-glow: rgba(157, 78, 221, 0.6);
    --accent-glow-subtle: rgba(157, 78, 221, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --card-bg: rgba(15, 15, 20, 0.6);
    --card-border: rgba(157, 78, 221, 0.2);
    --card-border-hover: rgba(157, 78, 221, 0.5);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

/* Ambient Purple Glow Background Effect */
body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow-subtle) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.6;
        width: 500px;
        height: 500px;
    }
    100% {
        opacity: 1;
        width: 700px;
        height: 700px;
    }
}

/* Main Container */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo Styling */
.logo-container {
    position: relative;
    margin-bottom: 2rem;
}

.logo {
    width: 150px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 25px rgba(157, 78, 221, 0.4));
    transition: all 0.5s ease;
    animation: floatLogo 6s ease-in-out infinite;
}

.logo-container:hover .logo {
    filter: drop-shadow(0 0 40px var(--accent-purple));
    transform: scale(1.05);
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 25px rgba(157, 78, 221, 0.4));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 0 35px rgba(157, 78, 221, 0.7));
    }
}

/* Transition Note */
.transition-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-purple);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    opacity: 0.7;
    text-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
}

/* Brand Name */
.brand-name {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #b8c0ff 60%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.2);
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 4rem;
}

/* Countdown Grid */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    width: 100%;
    margin-bottom: 4rem;
}

/* Countdown Card */
.countdown-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.countdown-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.2);
}

.countdown-val {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Live Announcement */
.live-msg {
    display: none;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    animation: pulseLive 2s infinite alternate;
}

.live-msg span {
    color: var(--accent-purple);
    text-shadow: 0 0 15px var(--accent-purple);
}

@keyframes pulseLive {
    0% {
        opacity: 0.8;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Footer / Info Panel */
footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.footer-text {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
}

/* Loading/Error State */
.loading {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .countdown-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .countdown-card:nth-child(4),
    .countdown-card:nth-child(5) {
        grid-column: span 1.5; /* Centers the last two cards below */
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .logo {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .countdown-card:nth-child(5) {
        grid-column: span 2; /* Full width for the seconds card at the bottom */
    }
    
    .countdown-val {
        font-size: 2.25rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.9rem;
        margin-bottom: 2.5rem;
    }
    
    .logo {
        width: 100px;
    }
}
