/* ------------------------------------------------------------------
   Airth — maintenance page
   Tokens mirror packages/design-tokens (airth-core-ui) so this page
   reads as part of the product: Poppins, --orange-600 brand, warm
   neutral canvas, the same radius / shadow scales.
------------------------------------------------------------------ */

:root {
    color-scheme: light;

    /* Brand ramp */
    --orange-100: #fdebd9;
    --orange-300: #f5b27a;
    --orange-500: #e2701f;
    --orange-600: #d45500; /* brand */
    --orange-700: #b04500;

    /* Ink */
    --ink-900: #0f141a;
    --ink-700: #374151;
    --ink-500: #6b7280;
    --ink-400: #9ca3af;

    /* Surfaces & borders */
    --canvas: #fafafd;
    --surface: #ffffff;
    --border: #e7eaf0;
    --border-warm: #f1e7dc;

    /* Shadows */
    --shadow-md: 0 4px 12px rgba(15, 20, 26, 0.06), 0 2px 4px rgba(15, 20, 26, 0.04);
    --shadow-lg: 0 12px 28px rgba(15, 20, 26, 0.08), 0 4px 8px rgba(15, 20, 26, 0.04);

    /* Radius */
    --r-pill: 999px;
    --r-xl: 16px;
    --r-2xl: 24px;
}

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

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink-900);
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------- Backdrop ---------------- */

.backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.glow--one {
    top: -18vmax;
    right: -12vmax;
    width: 58vmax;
    height: 58vmax;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(212, 85, 0, 0.28),
        rgba(212, 85, 0, 0) 68%
    );
    animation: drift-a 26s ease-in-out infinite alternate;
}

.glow--two {
    bottom: -24vmax;
    left: -16vmax;
    width: 52vmax;
    height: 52vmax;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(245, 178, 122, 0.26),
        rgba(245, 178, 122, 0) 70%
    );
    animation: drift-b 32s ease-in-out infinite alternate;
}

.grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 20, 26, 0.085) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(
        ellipse 70% 60% at 50% 45%,
        #000 0%,
        transparent 78%
    );
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 78%);
    opacity: 0.75;
}

@keyframes drift-a {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-5%, 6%, 0) scale(1.12);
    }
}

@keyframes drift-b {
    from {
        transform: translate3d(0, 0, 0) scale(1.08);
    }
    to {
        transform: translate3d(7%, -5%, 0) scale(1);
    }
}

/* ---------------- Layout ---------------- */

.shell {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 20px;
}

.card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 620px;
    padding: 48px 52px 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* A hairline of brand colour along the top edge of the card. */
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--orange-300) 22%,
        var(--orange-600) 50%,
        var(--orange-300) 78%,
        transparent
    );
}

/* ---------------- Brand ---------------- */

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.brand__logo {
    position: relative;
    display: block;
    width: 220px;
    height: auto;
}

/* ---------------- Status pill ---------------- */

/* Block-level flex (not inline-flex) so the pill never shares a line with
   the lockup above it; width: fit-content + auto margins keep it centred. */
.pill {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 0 auto 22px;
    padding: 6px 14px 6px 12px;
    background: #fff6ee;
    border: 1px solid var(--border-warm);
    border-radius: var(--r-pill);
    color: var(--orange-700);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange-600);
    box-shadow: 0 0 0 0 rgba(212, 85, 0, 0.45);
    animation: ping 2s ease-out infinite;
}

@keyframes ping {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 85, 0, 0.45);
    }
    70%,
    100% {
        box-shadow: 0 0 0 8px rgba(212, 85, 0, 0);
    }
}

/* ---------------- Copy ---------------- */

.title {
    margin: 0 0 16px;
    font-size: clamp(32px, 6vw, 46px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--ink-900);
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.title em {
    font-style: normal;
    color: var(--orange-600);
}

.copy {
    max-width: 46ch;
    margin: 0 auto 32px;
    color: var(--ink-500);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.66;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* ---------------- Indeterminate progress ---------------- */

.progress {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 4px;
    margin: 0 auto 32px;
    background: #f1f2f6;
    border-radius: var(--r-pill);
    overflow: hidden;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

.progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--orange-300), var(--orange-600));
    animation: sweep 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes sweep {
    0% {
        transform: translateX(-105%);
    }
    100% {
        transform: translateX(245%);
    }
}

/* ---------------- CTA ---------------- */

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--orange-600);
    border-radius: var(--r-pill);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

.cta:hover {
    background: var(--orange-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cta:hover svg {
    transform: translateX(3px);
}

.cta:focus-visible {
    outline: none;
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(212, 85, 0, 0.24);
}

/* ---------------- Footer ---------------- */

.foot {
    color: var(--ink-400);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.02em;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------- Small screens ---------------- */

@media (max-width: 520px) {
    .card {
        padding: 36px 24px 32px;
        border-radius: var(--r-xl);
    }

    .brand__logo {
        width: 180px;
    }

    .copy {
        font-size: 14px;
    }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .progress span {
        width: 100%;
        transform: none;
    }
}
