/* ========================================
   Bespoke Data — Under Maintenance Page
   ======================================== */

/* ---------- Font Faces ---------- */
@font-face {
    font-family: 'Sora';
    src: url('./assets/fonts/Sora-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('./assets/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ---------- CSS Variables ---------- */
:root {
    /* Brand palette */
    --brand-dark: #135085;
    /* rgb(19,80,133)  */
    --brand-primary: #3195ed;
    /* rgb(49,149,237) */
    --brand-mid: #56a8f0;
    /* rgb(86,168,240) */
    --brand-light: #80bef4;
    /* rgb(128,190,244) */
    --brand-accent: #1a6db4;
    /* rgb(26,109,180) */

    /* Neutral palette */
    --bg-dark: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.80);
    --text-primary: #1a2332;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Glow & accents */
    --glow-primary: rgba(49, 149, 237, 0.18);
    --glow-secondary: rgba(86, 168, 240, 0.10);

    /* Typography */
    --font-display: 'Space Grotesk', 'Sora', sans-serif;
    --font-body: 'Inter', 'Sora', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Body ---------- */
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ---------- Animated Background ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(49, 149, 237, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 149, 237, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

/* Floating orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    z-index: 0;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.orb--1 {
    width: 420px;
    height: 420px;
    background: var(--brand-primary);
    top: -10%;
    left: -8%;
    animation-duration: 14s;
}

.orb--2 {
    width: 340px;
    height: 340px;
    background: var(--brand-mid);
    bottom: -12%;
    right: -6%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.orb--3 {
    width: 200px;
    height: 200px;
    background: var(--brand-accent);
    top: 50%;
    left: 60%;
    animation-duration: 16s;
    animation-delay: -8s;
    opacity: 0.12;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(1.05);
    }

    100% {
        transform: translate(-20px, 25px) scale(0.95);
    }
}

/* ---------- Main Content ---------- */
.maintenance {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 640px;
    padding: 2rem;
}

/* Logo */
.maintenance__logo {
    width: 260px;
    height: auto;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 0 30px var(--glow-primary));
    animation: logoReveal 1s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.92);
    }

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

/* Glassmorphism card */
.maintenance__card {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(49, 149, 237, 0.15);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow:
        0 4px 60px rgba(49, 149, 237, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    animation: cardSlideUp 0.9s 0.15s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Icon */
.maintenance__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.75rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-mid));
    box-shadow: 0 8px 32px var(--glow-primary);
    animation: iconPulse 3s ease-in-out infinite;
}

.maintenance__icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

@keyframes iconPulse {

    0%,
    100% {
        box-shadow: 0 8px 32px var(--glow-primary);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 12px 48px var(--glow-secondary);
        transform: scale(1.04);
    }
}

/* Heading */
.maintenance__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand-dark) 30%, var(--brand-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Body text */
.maintenance__text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 2rem;
}

/* Divider */
.maintenance__divider {
    width: 60px;
    height: 3px;
    border: none;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-mid));
    margin: 0 auto 2rem;
    opacity: 0.6;
}

/* Status bar */
.maintenance__status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    background: rgba(49, 149, 237, 0.08);
    border: 1px solid rgba(49, 149, 237, 0.18);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-accent);
    letter-spacing: 0.03em;
}

.maintenance__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 var(--glow-primary);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 0 6px transparent;
    }
}

/* Progress bar (animated) */
.maintenance__progress-wrapper {
    margin-top: 2rem;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.maintenance__progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.maintenance__progress-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(49, 149, 237, 0.10);
    overflow: hidden;
}

.maintenance__progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-mid), var(--brand-light));
    background-size: 200% 100%;
    width: 0%;
    animation: progressGrow 3s 0.6s cubic-bezier(.22, 1, .36, 1) forwards,
        progressShimmer 2s 3.6s linear infinite;
}

@keyframes progressGrow {
    to {
        width: 68%;
    }
}

@keyframes progressShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Footer */
.maintenance__footer {
    margin-top: 2.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    animation: fadeIn 1s 0.5s both;
}

.maintenance__footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.maintenance__footer a:hover {
    color: var(--brand-mid);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .maintenance {
        padding: 1.25rem;
    }

    .maintenance__logo {
        width: 200px;
        margin-bottom: 2rem;
    }

    .maintenance__card {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

    .maintenance__icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }

    .maintenance__icon svg {
        width: 28px;
        height: 28px;
    }
}

/* ---------- Particle Canvas ---------- */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}