@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #070707;
    --ink: #f1f4f1;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.55;
    position: relative;
    min-height: 100vh;
}

#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 16%, rgba(21, 200, 9, 0.024) 0%, rgba(21, 200, 9, 0) 30%), radial-gradient(circle at 88% 10%, rgba(21, 200, 9, 0.016) 0%, rgba(21, 200, 9, 0) 28%), var(--bg);
}

#vanta-bg canvas {
    display: block;
}

h1 {
    font-size: clamp(1.95rem, 3.8vw, 3.2rem);
    line-height: 1.18;
}

.maintenance-page {
    --maintenance-glow-x: 50%;
    --maintenance-glow-y: 45%;
    --maintenance-shift-x: 0px;
    --maintenance-shift-y: 0px;
    --maintenance-scale: 1;
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4rem) 1rem;
}

.maintenance-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at var(--maintenance-glow-x) var(--maintenance-glow-y), rgba(27, 239, 11, 0.26) 0%, rgba(27, 239, 11, 0) 42%), radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 48%), linear-gradient(180deg, #181818 0%, #0b0b0b 100%);
    transform: translate3d(var(--maintenance-shift-x), var(--maintenance-shift-y), 0) scale(var(--maintenance-scale));
    transform-origin: center center;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
    will-change: transform;
}

.maintenance-bg::before {
    content: '';
    position: absolute;
    inset: -24%;
    background: radial-gradient(circle at center, rgba(27, 239, 11, 0.18) 0%, rgba(27, 239, 11, 0) 56%);
    filter: blur(42px);
    opacity: 0.22;
    animation: maintenance-pulse 6.2s ease-in-out infinite;
}

.maintenance-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 34%), repeating-linear-gradient( 0deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 3px);
    mix-blend-mode: screen;
    opacity: 0.22;
    pointer-events: none;
}

.maintenance-page.is-hovering .maintenance-bg {
    filter: saturate(1.08) brightness(1.04);
}

.maintenance-page.is-mobile-optimized .maintenance-bg {
    transform: none;
    filter: none;
}

.maintenance-copy {
    position: relative;
    z-index: 1;
    max-width: min(760px, 92vw);
    text-align: center;
    display: grid;
    gap: 0.55rem;
}

.maintenance-copy h1,
.maintenance-copy p {
    margin: 0;
}

body.maintenance-only {
    background-color: var(--bg);
    overflow: hidden;
}

@keyframes maintenance-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.34;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maintenance-bg {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
    .maintenance-bg::before {
        animation: none !important;
    }
}

@media (max-width: 820px),
(hover: none),
(pointer: coarse) {
    .maintenance-page {
        padding: clamp(1.4rem, 7vw, 2.5rem) 1rem;
    }
    .maintenance-bg {
        transition: transform 280ms ease, filter 260ms ease;
        will-change: auto;
    }
    .maintenance-bg::before {
        inset: -16%;
        filter: blur(28px);
        opacity: 0.18;
        animation-duration: 9.5s;
    }
    .maintenance-bg::after {
        background: linear-gradient(125deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 42%);
        opacity: 0.14;
    }
    .maintenance-copy {
        max-width: min(640px, 94vw);
        gap: 0.42rem;
    }
    .maintenance-copy h1 {
        font-size: clamp(1.7rem, 7.2vw, 2.35rem);
        line-height: 1.2;
    }
}