:root {
    --bg: #070a18;
    --bg-soft: #0c1026;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #eef0ff;
    --text-muted: #9aa3c7;
    --primary: #6d5dfc;
    --primary-2: #22d3ee;
    --accent: #f472b6;
    --success: #34d399;
    --danger: #f87171;
    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Animated background ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: float 14s ease-in-out infinite;
}

.orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #6d5dfc 0%, transparent 70%);
    top: -120px;
    left: -120px;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #f472b6 0%, transparent 70%);
    top: 40%;
    left: 55%;
    animation-delay: -9s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.95);
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ---------- Particles canvas ---------- */
#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ---------- Layout ---------- */
.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 32px 24px;
    text-align: center;
}

/* ---------- Brand ---------- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeUp 0.8s ease both;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 30px rgba(109, 93, 252, 0.35);
}

.brand-name {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

/* ---------- Hero ---------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    max-width: 720px;
    margin: auto 0;
    padding: 40px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--card);
    border: 1px solid var(--card-border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    animation: fadeUp 0.8s 0.1s ease both;
}

.badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-2);
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    }
}

.title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.3rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fadeUp 0.8s 0.2s ease both;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 560px;
    animation: fadeUp 0.8s 0.3s ease both;
}

/* ---------- Countdown ---------- */
.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.8s 0.4s ease both;
}

.cd-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 76px;
    padding: 16px 10px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cd-num {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, #fff, #b8c0e8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.cd-label {
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.cd-sep {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.5;
    padding-bottom: 18px;
}

/* ---------- Progress ---------- */
.progress-wrap {
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fadeUp 0.8s 0.5s ease both;
}

.progress-track {
    flex: 1;
    height: 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    transition: width 0.6s ease;
    position: relative;
}

.progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 38px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Notify form ---------- */
.notify {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 460px;
    animation: fadeUp 0.8s 0.6s ease both;
}

.input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.2);
}

.input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    padding: 14px 0;
    font-family: inherit;
}

.input-wrap input::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    box-shadow: 0 8px 24px rgba(109, 93, 252, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(109, 93, 252, 0.55);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.form-msg {
    min-height: 20px;
    font-size: 0.85rem;
    color: var(--success);
    animation: fadeUp 0.3s ease both;
}

.form-msg.error {
    color: var(--danger);
}

/* ---------- Footer ---------- */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    animation: fadeUp 0.8s 0.7s ease both;
}

.socials {
    display: flex;
    gap: 12px;
}

.social {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    transition: transform 0.2s, color 0.2s, background 0.2s, border-color 0.2s;
}

.social:hover {
    transform: translateY(-3px);
    color: #fff;
    background: rgba(109, 93, 252, 0.25);
    border-color: var(--primary);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .countdown {
        gap: 6px;
    }

    .cd-cell {
        min-width: 62px;
        padding: 14px 6px;
    }

    .cd-num {
        font-size: 1.6rem;
    }

    .cd-sep {
        font-size: 1.3rem;
        padding-bottom: 14px;
    }

    .notify {
        flex-direction: column;
    }

    .btn-primary {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}