/* ==========================================================================
   RUHGEN Coming Soon/Waiting Page Stylesheet
   Theme: Luxurious, Futuristic AI (Dark Purple / Deep Black)
   ========================================================================== */

/* --- Design Tokens --- */
:root {
    --bg-color: #030009;
    --card-bg: rgba(10, 5, 22, 0.45);
    --card-border: rgba(199, 125, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a29bb0;
    --text-muted: #6e6480;

    /* Purples */
    --purple-light: #e0aaff;
    --purple-mid: #c77dff;
    --purple-primary: #9d4edd;
    --purple-dark: #7b2cbf;
    --purple-deep: #5a189a;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Reset & Base Layout --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    background: radial-gradient(circle at center, #0a041a 0%, var(--bg-color) 100%);
}

/* --- Background Particle Canvas --- */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Animated Gradient Blobs (Atmosphere) --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 2;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: screen;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.25) 0%, rgba(90, 24, 154, 0) 70%);
    top: -10%;
    left: -10%;
    animation: moveBlobOne 22s infinite alternate ease-in-out;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.2) 0%, rgba(60, 9, 108, 0) 70%);
    bottom: -15%;
    right: -10%;
    animation: moveBlobTwo 28s infinite alternate ease-in-out;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 170, 255, 0.12) 0%, rgba(157, 78, 221, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: moveBlobThree 20s infinite alternate ease-in-out;
}

/* --- Keyframe Animations for Blobs --- */
@keyframes moveBlobOne {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(80px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-40px, 90px) scale(0.95);
    }
}

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

    50% {
        transform: translate(-100px, -60px) scale(0.9);
    }

    100% {
        transform: translate(50px, -30px) scale(1.15);
    }
}

@keyframes moveBlobThree {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) translate(-50px, 80px) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) translate(60px, -50px) scale(0.9);
    }
}

/* --- Layout Container --- */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* Enable 3D tilt effects */
}

/* --- Premium Free-Flowing Content Wrapper --- */
.waiting-content {
    position: relative;
    width: 100%;
    max-width: 620px;
    padding: 3rem 1.5rem;
    text-align: center;
    transform-style: preserve-3d;
    will-change: transform;

    /* Intro & Float animations */
    animation:
        cardIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        cardFloat 8s ease-in-out infinite 1.2s;
    opacity: 0;
}

/* Dynamic Ambient Behind-Text Hover Glow */
.card-glow {
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(199, 125, 255, 0.05),
            transparent 70%);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: screen;
}

.waiting-content:hover .card-glow {
    opacity: 1;
}

/* Card Animations */
@keyframes cardIntro {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-6px) rotateX(0.1deg) rotateY(-0.1deg);
    }
}

/* --- Badge Components --- */
.badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    transform: translateZ(20px);
}

.deployment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.675rem;
    /* Ultra-small and refined */
    font-weight: 600;
    letter-spacing: 0.16em;
    /* Wide spacing for high-end look */
    text-transform: uppercase;
    font-family: var(--font-body);
    transition: color 0.3s ease;
}

.waiting-card:hover .deployment-badge {
    color: rgba(255, 255, 255, 0.7);
}


/* --- Typography (Heading & Subheading) --- */
.main-heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    /* Slightly cleaner and modern weight */
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    transform: translateZ(30px);

    /* High-end silver-to-lavender gradient */
    background: linear-gradient(180deg, #ffffff 40%, #e2daff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 30px rgba(157, 78, 221, 0.12));
}

.subheading {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 530px;
    margin: 0 auto 2.8rem auto;
    letter-spacing: -0.01em;
    transform: translateZ(25px);
}

/* --- Status Indicator Component --- */
.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 auto 3rem auto;
    width: fit-content;
    transform: translateZ(35px);
}

.loader-line {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--purple-mid), transparent);
    animation: sweep 1.6s infinite linear;
}

@keyframes sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.status-text-wrapper {
    min-width: 180px;
    text-align: left;
    overflow: hidden;
}

.status-text {
    display: inline-block;
    font-size: 0.875rem;
    /* Sleeker size */
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
    will-change: transform, opacity;
}

.status-text.hide {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(6px);
}

/* --- Aesthetic Divider --- */
.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 25%,
            rgba(255, 255, 255, 0.08) 75%,
            transparent 100%);
    margin-bottom: 2.5rem;
    transform: translateZ(15px);
}

/* --- Bottom Message & Footer --- */
.bottom-message {
    transform: translateZ(20px);
}

.patience-text {
    font-size: 0.925rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.live-text {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-mid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(199, 125, 255, 0.3));
}

/* --- Responsive Media Queries --- */

/* Small Desktops / Tablets */
@media (max-width: 768px) {
    .waiting-content {
        padding: 3.5rem 1.5rem;
        animation: cardIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        /* Disable float tilt hover on touch devices */
    }

    .main-heading {
        font-size: 2.6rem;
        margin-bottom: 1.2rem;
    }

    .subheading {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .status-container {
        margin-bottom: 2.2rem;
    }

    .status-text-wrapper {
        min-width: 170px;
    }

    .divider {
        margin-bottom: 2.2rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .waiting-content {
        padding: 3rem 1rem;
    }

    .badge-container {
        margin-bottom: 1.5rem;
    }

    .deployment-badge {
        font-size: 0.625rem;
        /* Even smaller on mobile */
        letter-spacing: 0.12em;
    }

    .main-heading {
        font-size: 2.1rem;
        letter-spacing: -0.02em;
    }

    .subheading {
        font-size: 0.925rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .status-container {
        gap: 0.6rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 290px;
    }

    .status-text-wrapper {
        min-width: unset;
        flex: 1;
    }

    .status-text {
        font-size: 0.825rem;
    }

    .divider {
        margin-bottom: 1.8rem;
    }

    .patience-text {
        font-size: 0.85rem;
    }

    .live-text {
        font-size: 0.95rem;
    }
}