/* =============================================================
   Hydraloop — maintenance page (standalone)
   Styling derived from the production sites:
   - site/web/css/base.css  → brand blue, radii, shadows, pill buttons
   - info/web/css/base.css  → orange accent (#fa700d), card radii
   - Google Fonts Urbanist + Montserrat (loaded in <head>,
     same as both production sites)
   Pure CSS, no framework, no build step.
   ============================================================= */

:root {
    --brand-blue: #3c8dc7;
    --brand-blue-dark: #2d7ab3;
    --brand-blue-soft: rgba(60, 141, 199, 0.1);
    --brand-blue-icon: #6892fe;
    --brand-orange: #fa700d;
    --logo: #6798ad;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-light: #f5f5f7;
    --radius-large: 24px;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.08);
    --panel-dark-1: #141b22;
    --panel-dark-2: #0c1116;
    --panel-text: #9ebcca;
}

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

html {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    color: var(--text-primary);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(1100px 620px at 12% -12%, rgba(60, 141, 199, 0.16), transparent 62%),
        radial-gradient(1000px 700px at 108% 112%, rgba(104, 146, 254, 0.14), transparent 58%),
        var(--bg-light);
}

/* ─── Ambient background: soft blobs + rising water bubbles ── */

.bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.blob-a {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -140px;
    background: rgba(60, 141, 199, 0.28);
    animation: drift-a 26s ease-in-out infinite alternate;
}

.blob-b {
    width: 640px;
    height: 640px;
    bottom: -240px;
    right: -180px;
    background: rgba(104, 146, 254, 0.24);
    animation: drift-b 34s ease-in-out infinite alternate;
}

@keyframes drift-a {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(90px, 70px) scale(1.15); }
}

@keyframes drift-b {
    from { transform: translate(0, 0) scale(1.1); }
    to   { transform: translate(-110px, -80px) scale(0.95); }
}

.bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    border: 1px solid rgba(60, 141, 199, 0.18);
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.85), rgba(60, 141, 199, 0.12) 62%, rgba(60, 141, 199, 0.04));
    opacity: 0;
    animation: rise 16s linear infinite;
}

.bubble:nth-of-type(1) { left: 8%;  width: 14px; height: 14px; animation-duration: 15s; animation-delay: 0s; }
.bubble:nth-of-type(2) { left: 22%; width: 9px;  height: 9px;  animation-duration: 19s; animation-delay: 3s; }
.bubble:nth-of-type(3) { left: 37%; width: 18px; height: 18px; animation-duration: 17s; animation-delay: 6s; }
.bubble:nth-of-type(4) { left: 52%; width: 8px;  height: 8px;  animation-duration: 21s; animation-delay: 1.5s; }
.bubble:nth-of-type(5) { left: 66%; width: 12px; height: 12px; animation-duration: 16s; animation-delay: 8s; }
.bubble:nth-of-type(6) { left: 79%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: 4.5s; }
.bubble:nth-of-type(7) { left: 91%; width: 10px; height: 10px; animation-duration: 22s; animation-delay: 10s; }

@keyframes rise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    8%   { opacity: 0.9; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh) translateX(24px); opacity: 0; }
}

/* ─── Card ───────────────────────────────────────────────────── */

.card {
    position: relative;
    z-index: 1;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 4vw, 56px);
    width: min(1080px, calc(100% - 48px));
    background: #fff;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
    padding: clamp(36px, 5vw, 64px);
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.is-loaded .card {
    opacity: 1;
    transform: none;
}

/* ─── Left: message ──────────────────────────────────────────── */

.content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-orange);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(250, 112, 13, 0.45); }
    50%      { box-shadow: 0 0 0 7px rgba(250, 112, 13, 0); }
}

.logo {
    display: inline-block;
    margin-top: 26px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

body.is-loaded .logo {
    opacity: 1;
    transform: none;
}

.logo svg {
    display: block;
    width: 190px;
    height: auto;
}

h1 {
    margin: 22px 0 14px;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.lead {
    margin: 0 0 30px;
    max-width: 46ch;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Status list */

.status {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: grid;
    gap: 16px;
}

.status li {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.is-loaded .status li {
    opacity: 1;
    transform: none;
}

body.is-loaded .status li:nth-child(1) { transition-delay: 0.2s; }
body.is-loaded .status li:nth-child(2) { transition-delay: 0.32s; }
body.is-loaded .status li:nth-child(3) { transition-delay: 0.44s; }

.status .icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
}

.status .icon svg {
    width: 20px;
    height: 20px;
}

.status strong {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.status span {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* Progress */

.progress {
    margin: 0 0 32px;
}

.progress-label {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.progress-track {
    position: relative;
    height: 8px;
    border-radius: 99px;
    background: rgba(60, 141, 199, 0.12);
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-icon));
    animation: slide 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes slide {
    to { left: 100%; }
}

/* Actions */

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 980px;
    background: var(--brand-blue);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(103, 152, 173, 0.4);
}

.btn:active {
    transform: translateY(0) scale(1);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-blue-dark);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-link svg {
    width: 17px;
    height: 17px;
}

.btn-link:hover {
    color: var(--brand-blue);
}

/* ─── Right: product panel ───────────────────────────────────── */

.product {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-large);
    background: linear-gradient(160deg, var(--panel-dark-1), var(--panel-dark-2));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.product .glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 141, 199, 0.35), transparent 65%);
    filter: blur(28px);
}

.product-img {
    position: relative;
    width: 66%;
    max-width: 320px;
    filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.55));
    animation: float 7s ease-in-out infinite alternate;
}

@keyframes float {
    from { transform: translateY(-9px); }
    to   { transform: translateY(9px); }
}

.product-caption {
    position: absolute;
    left: 26px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--panel-text);
}

.accent-bar {
    width: 80px;
    height: 5px;
    border-radius: 3px;
    background: var(--brand-orange);
}

/* ─── Footer ─────────────────────────────────────────────────── */

.foot {
    position: relative;
    z-index: 1;
    padding: 22px 24px 26px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

body.is-loaded .foot {
    opacity: 1;
}

.foot a {
    color: var(--brand-blue-dark);
    text-decoration: none;
}

.foot a:hover {
    text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
    .card {
        /* minmax(0, 1fr): plain 1fr would let the product image's
           intrinsic width (828px) force the column wider than the card. */
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .logo svg {
        width: 160px;
    }

    .product {
        min-height: 340px;
    }
}

@media (max-width: 560px) {
    .card {
        padding: 32px 24px;
    }

    .actions .btn {
        width: 100%;
        text-align: center;
    }

    .product {
        min-height: 300px;
    }
}

/* ─── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .blob,
    .bubble,
    .badge-dot,
    .progress-fill,
    .product-img {
        animation: none !important;
    }

    .bubble {
        display: none;
    }

    .card,
    .logo,
    .status li,
    .foot {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
