:root {
    --bg-color: #e8eef8;
    --bg-grad-1: #f8fbff;
    --bg-grad-2: #dbe8ff;
    --text-main: #111827;
    --text-muted: #475569;
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-border: rgba(255, 255, 255, 0.9);
    --surface-soft: rgba(24, 83, 191, 0.07);
    --primary: #1853bf;
    --primary-2: #2f7df5;
    --accent: #22c5b2;
    --particle-color: rgba(24, 83, 191, 0.28);
    --radius-xl: 30px;
    --shadow-card: 0 28px 55px -26px rgba(16, 24, 40, 0.34);
}

body.light-mode {
    --bg-color: #f5f8ff;
    --bg-grad-1: #ffffff;
    --bg-grad-2: #e7efff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(255, 255, 255, 0.98);
    --surface-soft: rgba(24, 83, 191, 0.08);
    --primary: #1853bf;
    --primary-2: #2f7df5;
    --particle-color: rgba(24, 83, 191, 0.24);
}

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 12% 16%, rgba(47, 125, 245, 0.2), transparent 38%),
        radial-gradient(circle at 84% 88%, rgba(34, 197, 178, 0.22), transparent 40%),
        linear-gradient(140deg, var(--bg-grad-1), var(--bg-grad-2));
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    transition: background 0.35s ease, color 0.35s ease;
}

.background-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.glow-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(84px);
    opacity: 0.45;
    animation: floatOrb 16s ease-in-out infinite alternate;
}

.orb-1 {
    width: 440px;
    height: 440px;
    top: -140px;
    left: -120px;
    background: radial-gradient(circle, rgba(47, 125, 245, 0.52), transparent 70%);
}

.orb-2 {
    width: 420px;
    height: 420px;
    right: -90px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(34, 197, 178, 0.46), transparent 70%);
    animation-delay: -3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(24, 83, 191, 0.28), transparent 70%);
    animation-delay: -7s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(34px, 52px) scale(1.1); }
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 26px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.glass-card {
    width: 100%;
    max-width: 860px;
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: clamp(24px, 4vw, 52px);
    animation: cardIn 0.75s cubic-bezier(0.17, 0.88, 0.32, 1) both;
    transform-style: preserve-3d;
}

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

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
}

.logo {
    font-size: clamp(1.05rem, 2.3vw, 1.58rem);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.logo-text {
    color: var(--primary-2);
    font-weight: 800;
}

.badge {
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--primary);
    background: rgba(47, 125, 245, 0.13);
    border: 1px solid rgba(47, 125, 245, 0.32);
    box-shadow: 0 0 0 0 rgba(47, 125, 245, 0.22);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 125, 245, 0.23); }
    100% { box-shadow: 0 0 0 16px rgba(47, 125, 245, 0); }
}

.content h1 {
    font-size: clamp(2.1rem, 6vw, 4rem);
    line-height: 1.03;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--primary);
    min-height: 1.05em;
    letter-spacing: -0.7px;
}

.content p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2.2vw, 1.52rem);
    line-height: 1.65;
    max-width: 750px;
    margin-bottom: 26px;
}

.cursor {
    display: inline-block;
    width: 0.13em;
    height: 0.95em;
    background: var(--primary-2);
    margin-left: 0.06em;
    animation: blink 0.95s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    gap: 12px;
}

.time-box {
    background: var(--surface-soft);
    border: 1px solid rgba(47, 125, 245, 0.12);
    border-radius: 16px;
    padding: 16px 10px;
    text-align: center;
}

.time-box span {
    display: block;
    font-size: clamp(1.8rem, 4.7vw, 3rem);
    font-weight: 800;
    line-height: 1;
    color: var(--primary-2);
}

.time-box small {
    display: block;
    margin-top: 7px;
    font-size: 0.78rem;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.launch-text {
    margin-top: 14px;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-muted);
}

footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.26);
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-main);
    text-decoration: none;
}

.contact-item svg {
    width: 22px;
    min-width: 22px;
    color: var(--primary-2);
    margin-top: 2px;
}

.contact-item span {
    line-height: 1.5;
    font-size: clamp(0.94rem, 1.7vw, 1.08rem);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-item {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 125, 245, 0.1);
    color: var(--primary);
    border: 1px solid rgba(47, 125, 245, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-item:hover {
    transform: translateY(-2px);
    background: rgba(47, 125, 245, 0.2);
}

.social-item svg {
    width: 18px;
    height: 18px;
}

.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.04);
}

.theme-toggle svg {
    width: 23px;
    height: 23px;
}

@media (max-width: 960px) {
    .container {
        align-items: flex-start;
        padding-top: 70px;
        padding-bottom: 22px;
    }

    .glass-card {
        border-radius: 24px;
        padding: 24px 18px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .content h1 {
        min-height: 2.15em;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .time-box {
        padding: 14px 10px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 12px;
        padding-top: 66px;
    }

    .glass-card {
        padding: 20px 14px;
    }

    header {
        margin-bottom: 20px;
    }

    .logo {
        font-size: 1.02rem;
    }

    .badge {
        font-size: 0.76rem;
        padding: 7px 13px;
    }

    .content h1 {
        text-align: center;
    }

    .content p {
        text-align: center;
        margin-inline: auto;
    }

    .launch-text {
        text-align: center;
    }

    .contact-item {
        align-items: center;
    }

    .contact-item span {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
