*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ─── Animated gradient background ─── */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-5%, -3%) rotate(3deg);
    }
}

/* ─── Floating particles ─── */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: float linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.5);
}

.particle:nth-child(2) {
    left: 25%;
    animation-duration: 22s;
    animation-delay: -3s;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.3);
}

.particle:nth-child(3) {
    left: 40%;
    animation-duration: 16s;
    animation-delay: -5s;
    width: 2px;
    height: 2px;
    background: rgba(6, 182, 212, 0.4);
}

.particle:nth-child(4) {
    left: 55%;
    animation-duration: 20s;
    animation-delay: -2s;
    width: 3px;
    height: 3px;
    background: rgba(59, 130, 246, 0.3);
}

.particle:nth-child(5) {
    left: 70%;
    animation-duration: 24s;
    animation-delay: -7s;
    width: 2px;
    height: 2px;
    background: rgba(139, 92, 246, 0.5);
}

.particle:nth-child(6) {
    left: 85%;
    animation-duration: 17s;
    animation-delay: -4s;
    width: 3px;
    height: 3px;
    background: rgba(6, 182, 212, 0.3);
}

.particle:nth-child(7) {
    left: 15%;
    animation-duration: 21s;
    animation-delay: -6s;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.4);
}

.particle:nth-child(8) {
    left: 60%;
    animation-duration: 19s;
    animation-delay: -1s;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ─── Grid overlay ─── */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ─── Main container ─── */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 640px;
    width: 100%;
    padding: 1.2rem 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Language switcher ─── */
.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    gap: 0.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-secondary);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
    color: var(--text-primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

/* ─── Logo ─── */
.logo {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* ─── Glass card ─── */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 1.8rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3), transparent);
}

/* ─── Gear icon ─── */
.icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-blue);
    border-right-color: var(--accent-purple);
    animation: spin 4s linear infinite;
}

.icon-ring-inner {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--accent-cyan);
    border-left-color: var(--accent-blue);
    animation: spin 3s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gear-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent-purple);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ─── Text content ─── */
.heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.heading span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Progress bar ─── */
.progress-section {
    margin-bottom: 1rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    border-radius: 100px;
    animation: progressPulse 2.5s ease-in-out infinite;
    background-size: 200% 100%;
}

@keyframes progressPulse {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ─── Status badges ─── */
.status-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.badge-dot.active {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.badge-dot.working {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ─── Notify Me form ─── */
.notify-section {
    margin-bottom: 0;
}

.notify-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notify-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.notify-input {
    flex: 1;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
}

.notify-input::placeholder {
    color: var(--text-muted);
}

.notify-input:focus {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.1);
}

.notify-btn {
    padding: 0.55rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.notify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.notify-btn:active {
    transform: translateY(0);
}

/* Notify success message */
.notify-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 420px;
    margin: 0 auto;
    animation: fadeInUp 0.4s ease-out;
}

.notify-success.show {
    display: flex;
}

.notify-success svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ─── Footer / Social ─── */
.footer {
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.social-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-text {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .heading {
        font-size: 1.3rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .status-badges {
        flex-direction: column;
        align-items: center;
    }

    .notify-form {
        flex-direction: column;
    }

    .notify-btn {
        width: 100%;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .lang-switcher {
        top: 1rem;
        right: 1rem;
    }
}