:root {
    /* Default Theme (Clean White) */
    --color-bg: #FFFFFF;
    --color-text-dark: #1A1A1A;
    --color-text-gray: #666666;
    --color-primary: #00C6FF;
    --color-secondary: #9D50BB;
    --color-accent: #00C6FF;
    --color-panel-bg: rgba(255, 255, 255, 0.9);
    --color-panel-border: #eee;

    --font-main: 'Outfit', sans-serif;
    --logo-final-width: 140px;
    --logo-intro-width: 45vw;
}

/* --- THEME VARIATIONS --- */

/* Dark Theme (Midnight) */
body.theme-dark {
    --color-bg: #0f0f13;
    --color-text-dark: #FFFFFF;
    --color-text-gray: #B0B0B0;
    --color-panel-bg: rgba(30, 30, 35, 0.9);
    --color-panel-border: #333;
}

body.theme-dark .background-elements .float-shape {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(157, 80, 187, 0.15));
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.1);
}

/* Glass Theme (Gradient) */
body.theme-glass {
    --color-bg: #f0f4f8;
    /* Fallback */
    --color-text-dark: #2d3436;
    --color-text-gray: #636e72;
    --color-panel-bg: rgba(255, 255, 255, 0.6);
    --color-panel-border: rgba(255, 255, 255, 0.4);
}

body.theme-glass::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    opacity: 0.3;
    z-index: -1;
}

body.theme-glass .container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    max-width: 900px;
    padding: 60px;
}

/* --- GLOBAL STYLES --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    font-family: var(--font-main);
    color: var(--color-text-dark);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    text-align: center;
    z-index: 10;
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80vh;
    justify-content: center;
    transition: all 0.5s ease;
}

/* --- LOGO & INTRO --- */

.logo-container {
    position: relative;
    width: var(--logo-intro-width);
    margin: 0 auto;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 20;
}

/* Glossy sheen */
.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

body.theme-dark .logo-container::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
}

.renomi-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 10px 20px rgba(157, 80, 187, 0.2));
}

body.theme-dark .renomi-logo {
    filter: drop-shadow(0px 0px 30px rgba(157, 80, 187, 0.4));
}

/* Intro Active State */
.intro-active .logo-container {
    transform: scale(1.5);
    width: 60vw;
    margin-bottom: 0;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Intro Complete State */
.intro-complete .logo-container {
    width: 250px;
    margin-bottom: 40px;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

/* --- ANIMATION VARIATIONS (Logic controlled via body class) --- */

/* 1. FLOW (Default) */
/* Already defined above */

/* 2. POP (Bouncy/Elastic) */
body.anim-pop .logo-container {
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.anim-pop .content-wrapper {
    transition: opacity 0.5s ease 0.6s, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s;
}

/* 3. TECH (Glitchy/Sharp) */
body.anim-tech .logo-container {
    transition: all 0.4s steps(5);
}

body.anim-tech.intro-complete .logo-container {
    animation: glitch-snap 0.5s forwards;
}

@keyframes glitch-snap {
    0% {
        transform: translate(-50%, -50%) scale(1.5);
    }

    40% {
        transform: translate(-45%, -52%) scale(1.6);
    }

    60% {
        transform: translate(-52%, -48%) scale(0.8);
    }

    80% {
        transform: translate(-48%, -50%) scale(1.1);
    }

    100% {
        transform: none;
        width: 250px;
        top: auto;
        left: auto;
        position: relative;
        margin-bottom: 40px;
    }
}


/* --- CONTENT --- */

.content-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.intro-complete .content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.status-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--color-text-dark), #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

body.theme-dark .status-title {
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    line-height: 1.6;
    max-width: 600px;
    font-weight: 300;
}

.info-grid {
    display: flex;
    gap: 40px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
}

body.theme-dark .label {
    color: #666;
}

.value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.status-indicator {
    color: var(--color-primary);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-indicator::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: pulse 2s infinite;
}

/* Contact Section */
.contact-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

body.theme-dark .contact-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.contact-label {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--color-text-gray);
    letter-spacing: 0.5px;
}

.contact-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

body.theme-dark .btn-contact {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 198, 255, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-contact span {
    font-size: 1.1rem;
}

.urgent-note {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 20px;
}

body.theme-dark .urgent-note {
    color: #555;
}

/* --- BACKGROUND ANIMATIONS --- */

.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.float-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.05), rgba(157, 80, 187, 0.05));
    opacity: 0;
    animation: floatUp 15s infinite ease-in-out;
}

/* Shape positioning */
.shape-1 {
    width: 300px;
    height: 300px;
    left: 10%;
    bottom: -150px;
    animation-duration: 18s;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    right: 15%;
    top: 20%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    left: 20%;
    top: 40%;
    animation-duration: 12s;
    animation-delay: 5s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    right: 30%;
    bottom: 10%;
    animation-duration: 20s;
    animation-delay: 1s;
}

/* KEYFRAMES */
@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        left: 100%;
        opacity: 0.5;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    50% {
        transform: translateY(-50px) translateX(20px);
        opacity: 0.4;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-100px) translateX(-20px);
        opacity: 0;
    }
}
}

/* --- GLOBAL LAYOUT FIX --- */
body {
    zoom: normal;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    /* Center content vertically if using flex */
}

.container {
    transform: scale(0.65);
    transform-origin: center center;
    width: 100%;
    height: 100%;
}


/* --- BOOT SCREEN OVERRIDES --- */
.intro-active .logo-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    max-width: 80vw !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    z-index: 9999;
}

.intro-active .renomi-logo {
    max-height: 40vh !important;
    width: auto !important;
}