/* ============================================================ DESIGN TOKENS */
:root {
    --navy: #080A24;
    --navy-mid: #0F1245;
    --blue: #2B47D9;
    --violet: #7B3FC0;
    --magenta: #D044B0;
    --grad: linear-gradient(135deg, #2B47D9 0%, #7B3FC0 50%, #D044B0 100%);
    --grad-t: linear-gradient(135deg, rgba(43, 71, 217, .18) 0%, rgba(123, 63, 192, .12) 50%, rgba(208, 68, 176, .06) 100%);
    --glow: rgba(123, 63, 192, 0.22);
    --white: #EEF0FF;
    --muted: #8A93CC;
    --card-bg: rgba(20, 25, 100, 0.45);
    --radius: 14px;
    --ease: 0.35s cubic-bezier(.4, 0, .2, 1);
}

html.light {
    --navy: #F4F4FF;
    --navy-mid: #E5E6FF;
    --violet: #5A30A8;
    --glow: rgba(90, 48, 168, 0.12);
    --white: #12103A;
    --muted: #5A5980;
    --card-bg: rgba(220, 222, 255, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--navy);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================ BACKGROUND */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Ambient glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(43, 71, 217, 0.22) 0%, transparent 70%);
    top: -120px;
    left: -160px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(208, 68, 176, 0.18) 0%, transparent 70%);
    bottom: 0;
    right: -100px;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 63, 192, 0.14) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================================ PARTICLES */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================================ LAYOUT */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 6% 64px;
    text-align: center;
}

/* ============================================================ TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6%;
    background: rgba(8, 10, 36, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 63, 192, 0.18);
}

html.light .topbar {
    background: rgba(244, 244, 255, 0.82);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
}

.brand-text span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme toggle */
.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(123, 63, 192, 0.4);
    background: var(--glow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease);
    flex-shrink: 0;
}

.theme-btn:hover {
    border-color: var(--violet);
    transform: rotate(20deg) scale(1.08);
}

.theme-btn .icon-sun,
.theme-btn .icon-moon {
    position: absolute;
    font-size: 1.05rem;
    transition: opacity .35s ease, transform .4s ease;
}

html:not(.light) .theme-btn .icon-sun {
    opacity: 0;
    transform: translateY(-20px);
}

html:not(.light) .theme-btn .icon-moon {
    opacity: 1;
    transform: translateY(0);
}

html.light .theme-btn .icon-sun {
    opacity: 1;
    transform: translateY(0);
}

html.light .theme-btn .icon-moon {
    opacity: 0;
    transform: translateY(20px);
}

/* ============================================================ HERO CONTENT */
.hero-area {
    margin-top: 80px;
    max-width: 780px;
    width: 100%;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glow);
    border: 1px solid rgba(123, 63, 192, 0.4);
    color: #B78AE0;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease both;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--violet);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Logo */
.hero-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin: 0 auto 28px;
    display: block;
    filter: drop-shadow(0 0 36px rgba(123, 63, 192, 0.55));
    animation: fadeUp 0.9s 0.05s ease both;
}

/* Main headline */
.headline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    animation: fadeUp 1s 0.1s ease both;
}

.headline .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheadline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 24px;
    animation: fadeUp 1s 0.18s ease both;
}

.subheadline2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(.9rem, 2.2vw, 1.2rem);
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 15px;
    animation: fadeUp 1s 0.18s ease both;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    color: var(--muted);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    max-width: 560px;
    margin: 0 auto 48px;
    animation: fadeUp 1s 0.26s ease both;
}

/* ============================================================ COUNTDOWN */
.countdown-wrap {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
    animation: fadeUp 1s 0.34s ease both;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 78px;
}

.cd-number {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    padding: 14px 18px;
    background-color: var(--card-bg);
    border: 1px solid rgba(123, 63, 192, 0.2);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    min-width: 80px;
    text-align: center;
}

.cd-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.cd-sep {
    font-family: 'Syne', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    align-self: flex-start;
    margin-top: 14px;
    line-height: 1;
}

/* ============================================================ EMAIL SIGNUP */
.signup-wrap {
    animation: fadeUp 1s 0.42s ease both;
    margin-bottom: 60px;
}

.signup-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.signup-input {
    flex: 1;
    min-width: 220px;
    background: var(--card-bg);
    border: 1.5px solid rgba(123, 63, 192, 0.25);
    border-radius: 50px;
    padding: 14px 22px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    backdrop-filter: blur(10px);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.signup-input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.signup-input:focus {
    border-color: rgba(123, 63, 192, 0.7);
    box-shadow: 0 0 0 3px rgba(123, 63, 192, 0.14);
}

.signup-btn {
    background: var(--grad);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow var(--ease), transform var(--ease);
}

.signup-btn:hover {
    box-shadow: 0 8px 30px rgba(123, 63, 192, 0.5);
    transform: translateY(-2px);
}

.signup-hint {
    font-size: 0.78rem;
    color: var(--muted);
    opacity: 0.7;
}

#signup-feedback {
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    display: none;
}

#signup-feedback.ok {
    color: #B78AE0;
}

#signup-feedback.err {
    color: #FF6B9D;
}

/* ============================================================ SERVICES PILLS */
.services-wrap {
    animation: fadeUp 1s 0.5s ease both;
    margin-bottom: 56px;
}

.services-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: block;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid rgba(123, 63, 192, 0.2);
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    backdrop-filter: blur(8px);
    transition: border-color var(--ease), color var(--ease), transform var(--ease);
}

.pill:hover {
    border-color: rgba(123, 63, 192, 0.5);
    color: #B78AE0;
    transform: translateY(-2px);
}

.pill-icon {
    font-size: 1rem;
}

/* ============================================================ HORIZON DIVIDER */
.horizon-line {
    width: 280px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #2B47D9 25%, #7B3FC0 50%, #D044B0 75%, transparent 100%);
    margin: 0 auto 40px;
    box-shadow: 0 0 20px rgba(123, 63, 192, 0.5);
    animation: fadeUp 1s 0.56s ease both;
}

/* ============================================================ FOOTER */
.foot {
    font-size: 0.78rem;
    color: var(--muted);
    opacity: 0.7;
    animation: fadeUp 1s 0.62s ease both;
}

.foot a {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* ============================================================ ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.65);
    }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 560px) {
    .countdown-wrap {
        gap: 12px;
    }

    .cd-number {
        min-width: 64px;
        padding: 12px 10px;
        font-size: 2rem;
    }

    .cd-sep {
        font-size: 1.8rem;
    }
}

/* ============================================================ FOCUS */
:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
}