:root {
    --bg-start: #0e0f1a;
    --bg-end: #1a2456;
    --accent: #6ee7ff;
    --accent-2: #a78bfa;
    --text: #e8ecf1;
    --muted: #a3a9b8;
    --card: rgba(255, 255, 255, 0.06);
    --stroke: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
    color: var(--text);
    background: linear-gradient(120deg, var(--bg-start), var(--bg-end));
    background-attachment: fixed;
    overflow-x: hidden;
}


/* Background animation overlay */

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


/* Soft gradient glow */

body::before {
    content: '';
    position: fixed;
    inset: -10vmax;
    background: radial-gradient(60vmax 60vmax at 15% 20%, rgba(110, 231, 255, 0.08), transparent 60%), radial-gradient(50vmax 50vmax at 85% 30%, rgba(167, 139, 250, 0.10), transparent 60%), radial-gradient(70vmax 70vmax at 50% 90%, rgba(255, 255, 255, 0.05), transparent 60%);
    filter: blur(40px) saturate(120%);
    pointer-events: none;
    z-index: -1;
    animation: floatGlows 18s ease-in-out infinite alternate;
}

@keyframes floatGlows {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(2%, -2%, 0) scale(1.05);
    }
}

.container {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 6rem 1.25rem 3rem;
}

.brand {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b1022;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(110, 231, 255, 0.2), 0 10px 50px rgba(167, 139, 250, 0.15);
}

h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 0.5rem 0;
}

.subtitle {
    color: var(--muted);
    margin: 0;
}

.countdown {
    margin-top: 1.5rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 0.75rem;
}

.time-block {
    background: backdrop-filter: blur(8px);
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow);
}

.time {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
}

.label {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.notify {
    margin-top: 2rem;
    width: min(720px, 100%);
}

#notify-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    background: var(--card);
    border: 1px solid var(--stroke);
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow);
}

#email {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid transparent;
    color: var(--text);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    outline: none;
}

#email::placeholder {
    color: #c5cad7;
}

#email:focus {
    border-color: rgba(110, 231, 255, 0.5);
}

#notify-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b1022;
    border: none;
    padding: 0 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.help {
    grid-column: 1 / -1;
    margin: 0 0 0 0.25rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.form-message {
    grid-column: 1 / -1;
    margin: 0.25rem 0 0 0.25rem;
    font-size: 0.95rem;
}

.social {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text);
    text-decoration: none;
    opacity: 0.85;
    background: var(--card);
    border: 1px solid var(--stroke);
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
}

.social-link:hover,
.social-link:focus {
    opacity: 1;
}

.footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.noscript {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd166;
    color: #111;
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
}


/* Responsive */

@media (max-width: 600px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #notify-form {
        grid-template-columns: 1fr;
    }
    #notify-btn {
        padding: 0.9rem 1rem;
    }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}