:root {
    --primary: #006cf8;
    --secondary: #02b3fc;
    --primary-deep: #015bee;
    --dark: #03132b;
    --dark-soft: #071b3a;
    --text: #f7fbff;
    --text-soft: #b9c7d8;
    --text-muted: #7d8da3;
    --line: rgba(255, 255, 255, 0.12);
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --brand-gradient: linear-gradient(135deg, var(--secondary), var(--primary), var(--primary-deep));
    --font-main: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --shadow-soft: 0 24px 80px rgba(0, 20, 60, 0.28);
    --radius-sm: 8px;
    --radius-md: 8px;
    --transition: 180ms ease;
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--dark);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(145deg, rgba(3, 19, 43, 0.96), rgba(3, 19, 43, 0.78)),
        radial-gradient(circle at 22% 16%, rgba(2, 179, 252, 0.22), transparent 34%),
        radial-gradient(circle at 82% 72%, rgba(0, 108, 248, 0.2), transparent 36%),
        var(--dark);
}

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.app-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
    background: rgba(3, 19, 43, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.nav-logo img {
    display: block;
    width: auto;
    height: 34px;
}

.nav-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 0.9rem;
    border: 1px solid rgba(2, 179, 252, 0.34);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(2, 179, 252, 0.08);
}

.main-content {
    flex: 1;
    width: min(100%, 1120px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem clamp(1.25rem, 4vw, 3rem) 4rem;
    text-align: center;
}

.hero {
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 36px;
    padding: 0 0.9rem;
    margin-bottom: 1.3rem;
    border: 1px solid rgba(2, 179, 252, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.055);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-soft);
    animation: fade-in-up 700ms ease both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-gradient);
    box-shadow: 0 0 18px rgba(2, 179, 252, 0.72);
}

.hero h1 {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(2.55rem, 6vw, 5.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
    animation: fade-in-up 700ms ease 80ms both;
}

.hero h1::after {
    content: "";
    display: block;
    width: 116px;
    height: 4px;
    margin: 1.25rem auto 0;
    border-radius: 999px;
    background: var(--brand-gradient);
    box-shadow: 0 0 30px rgba(0, 108, 248, 0.45);
}

.hero p {
    max-width: 590px;
    margin: 1.35rem auto 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.16rem);
    animation: fade-in-up 700ms ease 160ms both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.9rem;
    animation: fade-in-up 700ms ease 240ms both;
}

.status-pill,
.status-note {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.status-pill {
    color: white;
    font-weight: 750;
    background: var(--brand-gradient);
    box-shadow: 0 16px 44px rgba(0, 108, 248, 0.32);
}

.status-note {
    border: 1px solid var(--line);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.045);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(84px, 1fr));
    gap: 0.9rem;
    width: min(100%, 520px);
    margin: 3rem auto 0;
    animation: fade-in-up 700ms ease 320ms both;
}

.countdown-item {
    min-width: 0;
    padding: 1.1rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.countdown-item:hover {
    transform: translateY(-3px);
    border-color: rgba(2, 179, 252, 0.42);
    background: var(--surface-strong);
}

.countdown-value {
    display: block;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 5vw, 2.55rem);
    font-weight: 800;
    line-height: 1;
}

.countdown-label {
    display: block;
    margin-top: 0.55rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.countdown-complete {
    grid-column: 1 / -1;
    display: block;
    padding: 1rem;
    border: 1px solid rgba(2, 179, 252, 0.3);
    border-radius: var(--radius-md);
    color: var(--text);
    font-weight: 800;
    background: var(--surface);
}

.progress-section {
    width: min(100%, 520px);
    margin: 2rem auto 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.progress-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
    position: relative;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-gradient);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58));
    animation: shimmer 2.2s ease-in-out infinite;
}

.footer {
    padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
    text-align: center;
    color: var(--text-muted);
}

.footer p {
    font-size: 0.82rem;
}

.footer a {
    color: var(--secondary);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%,
    100% {
        opacity: 0;
        transform: translateX(-12px);
    }
    50% {
        opacity: 1;
        transform: translateX(4px);
    }
}

@media (max-width: 720px) {
    .nav {
        padding: 0.85rem 1rem;
    }

    .nav-logo img {
        height: 30px;
    }

    .nav-status {
        min-height: 30px;
        padding: 0 0.7rem;
        font-size: 0.68rem;
    }

    .main-content {
        justify-content: flex-start;
        padding-top: 7.3rem;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 380px);
        margin-top: 2.4rem;
    }
}

@media (max-width: 430px) {
    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .status-pill,
    .status-note {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
