/* ==========================================================================
   CHLOE.AI — Minimalist Sci-Fi Editorial UI Topology (Inspired by edolus.com)
   Zero cards. Zero boxes. Zero // slashes. Pure typography & spatial 3D.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
    --bg-dark: #000000;
    --accent-cyan: #00f0ff;
    --accent-gold: #e6a85c;
    --text-white: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.45);
    --text-sub: rgba(255, 255, 255, 0.70);
    --font-mono: "JetBrains Mono", "SF Mono", monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    position: relative;
    touch-action: none;
}

#canvas-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Subtle Vignette */
.cinema-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.85) 100%);
}

/* Interactive Cyber Reticle */
#cyber-reticle {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-left: 14px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   TOP MINIMAL HUD (Logo, Audio, Status)
   ========================================================================== */
.top-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(16px, 3.5vw, 36px) clamp(20px, 5vw, 64px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: blink 2.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.hud-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 400;
    letter-spacing: 0.35em;
    color: var(--text-white);
    pointer-events: auto;
    cursor: pointer;
    text-align: center;
}

.hud-audio {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.hud-audio:hover {
    color: var(--text-white);
}

.eq-ticks {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
}

.eq-tick {
    width: 1.5px;
    background-color: var(--text-white);
    animation: eqTick 1.2s ease-in-out infinite alternate;
}
.eq-tick:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-tick:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.eq-tick:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.eq-tick:nth-child(4) { height: 100%; animation-delay: 0.4s; }

.hud-audio.muted .eq-tick {
    animation: none;
    height: 2px !important;
    background-color: var(--text-dim);
}

@keyframes eqTick {
    0% { height: 25%; }
    100% { height: 100%; }
}

/* ==========================================================================
   SCROLL EDITORIAL SECTIONS (Zero cards, zero boxes, zero //)
   ========================================================================== */
.scene-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.hud-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(24px, 5vw, 64px) clamp(36px, 5vw, 56px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.hud-layer.active {
    opacity: 1;
    visibility: visible;
}

.content-col {
    max-width: 580px;
    width: 100%;
}

.ed-eyebrow {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.1vw, 12px);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.ed-title {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(32px, 5.5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.ed-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.2vw, 13px);
    line-height: 1.6;
    letter-spacing: 0.03em;
    color: var(--text-sub);
    margin-bottom: 24px;
}

/* Minimalist Monospace Technical Ticker */
.tech-ticker {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.1vw, 12px);
    line-height: 1.8;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    border-left: 2px solid var(--accent-cyan);
    padding-left: 14px;
}

.tech-ticker .highlight {
    color: var(--text-white);
}

/* Assistant Action Triggers (Edolus style, zero boxes) */
.assistant-triggers {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    pointer-events: auto;
}

.as-trigger {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.2s ease;
}

.as-trigger:hover {
    color: #ffffff;
    text-shadow: 0 0 12px var(--accent-cyan);
}

/* Bottom Scroll Hint */
.scroll-hint {
    position: fixed;
    bottom: 24px;
    right: clamp(24px, 5vw, 64px);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    z-index: 30;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: hintFloat 2.5s ease-in-out infinite;
}

@keyframes hintFloat {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-6px); opacity: 0.3; }
}

/* ==========================================================================
   ENDING CREDITS / FINALE (Exact Edolus Topology)
   ========================================================================== */
#ending-credits {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#ending-credits.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ec-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.ec-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 clamp(24px, 6vw, 64px);
    max-width: 800px;
}

.ec-line {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(24px, 5.5vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 24px;
}

.ec-tagline {
    font-family: var(--font-mono);
    font-size: clamp(12px, 1.4vw, 14px);
    letter-spacing: 0.2em;
    color: var(--text-dim);
    margin-bottom: 36px;
}

.ec-cta-bracket {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.4vw, 13px);
    letter-spacing: 0.22em;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ec-cta-bracket:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan);
}

/* ==========================================================================
   INITIAL PRELOADER (100% Genuine Asset Loading Gate)
   ========================================================================== */
#custom-splash {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 clamp(24px, 6vw, 64px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#custom-splash.dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.splash-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--accent-cyan);
    margin-bottom: 18px;
}

.splash-logo {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(48px, 9.5vw, 96px);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
}

.splash-desc {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.2vw, 13px);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 36px;
}

.splash-gauge-wrap {
    width: min(320px, 80vw);
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 12px;
    overflow: hidden;
}

.splash-gauge-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-status-row {
    width: min(320px, 80vw);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 36px;
}

.splash-cta {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.3vw, 12px);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: not-allowed;
    background: transparent;
    pointer-events: none;
    transition: all 0.35s ease;
}

.splash-cta.ready {
    border-color: #ffffff;
    color: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.splash-cta.ready:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
}

.splash-audio-note {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (Portrait & Touch)
   ========================================================================== */
@media (max-width: 768px) {
    #cyber-reticle {
        display: none;
    }
    .top-hud {
        padding: 16px 20px;
    }
    .hud-left {
        display: none;
    }
    .hud-layer {
        padding: 0 20px 32px;
        justify-content: flex-end;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 0.35) 65%, transparent 80%);
    }
    .content-col {
        max-width: 100%;
    }
    .ed-eyebrow {
        font-size: 9.5px;
        margin-bottom: 8px;
    }
    .ed-title {
        font-size: clamp(26px, 7.5vw, 36px);
        line-height: 1.08;
        margin-bottom: 12px;
    }
    .ed-subtitle {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    .tech-ticker {
        font-size: 9.5px;
        line-height: 1.6;
        padding-left: 10px;
    }
    .assistant-triggers {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 14px;
    }
    .as-trigger {
        font-size: 10px;
    }
    .scroll-hint {
        display: none;
    }
    .splash-logo {
        font-size: 44px;
    }
    .splash-desc {
        font-size: 10px;
        margin-bottom: 28px;
    }
}
