/* ============================================================
   ProReader.net — Maintenance Landing Page
   AAA-tier presentation with grain, glow, and micro-animations
   ============================================================ */

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

:root {
    --bg-primary: #141416;
    --bg-secondary: #1a1a1e;
    --bg-card: rgba(24, 24, 28, 0.7);
    --border-card: rgba(255, 255, 255, 0.06);
    --text-primary: #e8e6e3;
    --text-secondary: #8a8a8f;
    --text-muted: #55555a;
    --accent: #f0a540;
    --accent-dim: rgba(240, 165, 64, 0.15);
    --accent-glow: rgba(240, 165, 64, 0.3);
    --shadow-heavy: 0 25px 80px -12px rgba(0, 0, 0, 0.8),
                    0 0 120px -40px rgba(240, 165, 64, 0.08);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html, body {
    height: 100%;
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* === Film Grain Overlay === */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    animation: grainShift 0.4s steps(3) infinite;
}

@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-2px, 1px); }
    66%  { transform: translate(1px, -1px); }
    100% { transform: translate(0, 0); }
}

/* === Ambient Glow Orbs === */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(180px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
        rgba(240, 165, 64, 0.07) 0%,
        rgba(240, 165, 64, 0.06) 10%,
        rgba(240, 165, 64, 0.05) 20%,
        rgba(240, 165, 64, 0.04) 30%,
        rgba(240, 165, 64, 0.03) 40%,
        rgba(240, 165, 64, 0.02) 50%,
        rgba(240, 165, 64, 0.01) 60%,
        rgba(240, 165, 64, 0.005) 70%,
        transparent 85%
    );
    top: -150px;
    right: -100px;
    animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
        rgba(100, 80, 200, 0.05) 0%,
        rgba(100, 80, 200, 0.04) 10%,
        rgba(100, 80, 200, 0.035) 20%,
        rgba(100, 80, 200, 0.025) 30%,
        rgba(100, 80, 200, 0.018) 40%,
        rgba(100, 80, 200, 0.01) 50%,
        rgba(100, 80, 200, 0.005) 60%,
        transparent 80%
    );
    bottom: -100px;
    left: -80px;
    animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        rgba(240, 165, 64, 0.04) 0%,
        rgba(240, 165, 64, 0.03) 12%,
        rgba(240, 165, 64, 0.022) 24%,
        rgba(240, 165, 64, 0.015) 36%,
        rgba(240, 165, 64, 0.008) 48%,
        rgba(240, 165, 64, 0.004) 60%,
        transparent 80%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, 20px) scale(1.1); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -30px) scale(1.05); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-45%, -55%) scale(1.15); }
}

/* === Container === */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

/* === Glass Card === */
.card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: var(--shadow-heavy);
    animation: cardReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* === Kitty Image === */
.kitty-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kitty-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(240, 165, 64, 0.30) 0%,
        rgba(240, 165, 64, 0.24) 10%,
        rgba(240, 165, 64, 0.18) 20%,
        rgba(240, 165, 64, 0.13) 30%,
        rgba(240, 165, 64, 0.08) 40%,
        rgba(240, 165, 64, 0.04) 50%,
        rgba(240, 165, 64, 0.02) 60%,
        rgba(240, 165, 64, 0.005) 75%,
        transparent 90%
    );
    filter: blur(60px);
    animation: kittyGlowPulse 4s ease-in-out infinite;
}

@keyframes kittyGlowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.1); }
}

.kitty-img {
    width: 200px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: kittyBreathe 4s ease-in-out infinite;
}

@keyframes kittyBreathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* === Zzz Floating === */
.zzz-container {
    position: absolute;
    top: -10px;
    right: -20px;
    z-index: 2;
}

.zzz {
    position: absolute;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--accent);
    opacity: 0;
    animation: zzzFloat 3s ease-in-out infinite;
}

.z1 {
    font-size: 0.75rem;
    right: 0;
    top: 0;
    animation-delay: 0s;
}
.z2 {
    font-size: 1rem;
    right: -12px;
    top: -18px;
    animation-delay: 0.8s;
}
.z3 {
    font-size: 1.3rem;
    right: -8px;
    top: -40px;
    animation-delay: 1.6s;
}

@keyframes zzzFloat {
    0% {
        opacity: 0;
        transform: translateY(8px) rotate(-5deg);
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) rotate(5deg);
    }
}

/* === Text Content === */
.text-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.2;
}

.title-domain {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-status {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    font-family: var(--font-mono);
}

/* === Divider === */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0.5rem 0;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

/* === Subtitles === */
.subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 380px;
}

.subtitle-secondary {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* === Pulse Bar === */
.pulse-bar {
    width: 120px;
    height: 3px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    margin-top: 0.5rem;
}

.pulse-fill {
    width: 40%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: pulseSlide 2.5s ease-in-out infinite;
}

@keyframes pulseSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* === Footer === */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    z-index: 1;
}

.footer p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* === Responsive — Tablet === */
@media (max-width: 768px) {
    .card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }

    .kitty-img {
        width: 170px;
    }

    .kitty-glow {
        width: 180px;
        height: 180px;
    }

    .title-domain {
        font-size: 1.6rem;
    }

    .title-status {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { width: 200px; height: 200px; }
}

/* === Responsive — Mobile === */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        border-radius: 16px;
    }

    .kitty-img {
        width: 140px;
    }

    .kitty-glow {
        width: 150px;
        height: 150px;
    }

    .title-domain {
        font-size: 1.35rem;
    }

    .title-status {
        font-size: 0.9rem;
    }

    .subtitle {
        font-size: 0.9rem;
        max-width: 280px;
    }

    .subtitle-secondary {
        font-size: 0.8rem;
    }

    .divider-line {
        width: 40px;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
