/* ─── RESET & BASE ─────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:       #02050e;
    --cyan:     #00d2ff;
    --blue:     #0044cc;
    --white:    #ffffff;
    --muted:    rgba(255,255,255,0.35);
    --dimmed:   rgba(255,255,255,0.18);
}

/* html, body removed to avoid conflicts */

/* ─── FULL SCREEN LOADER ───────────────────── */
.loader-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 9999;
}

/* ─── AMBIENT CANVAS ───────────────────────── */
#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ─── SUBTLE GRID ──────────────────────────── */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,210,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,210,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 80%);
    opacity: 0;
    transition: opacity 2s ease;
}

/* ─── MAIN COMPOSITION — true dead center ─── */
.composition {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

/* ─── LOGO STAGE ───────────────────────────── */
.logo-stage {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── RINGS ────────────────────────────────── */
.ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ring-1 {
    width: 70px; height: 70px;
    border: 1px solid rgba(0,210,255,0.45);
    box-shadow: 0 0 14px rgba(0,210,255,0.1), inset 0 0 8px rgba(0,210,255,0.05);
    animation: ringBreath1 4s ease-in-out infinite;
    animation-play-state: paused;
}
.ring-1::before, .ring-1::after {
    content: '';
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan), 0 0 12px rgba(0,210,255,0.5);
    top: 50%; left: 50%;
}
.ring-1::before { transform: translate(-50%, -36px); }
.ring-1::after  { transform: translate(-50%, 32px);  }

.ring-2 {
    width: 83px; height: 83px;
    border: 1px solid rgba(0,210,255,0.18);
    animation: ringBreath2 4s ease-in-out infinite 0.7s;
    animation-play-state: paused;
}
.ring-3 {
    width: 98px; height: 98px;
    border: 1px dashed rgba(0,68,204,0.3);
    animation: ringRotate 18s linear infinite;
    animation-play-state: paused;
}

@keyframes ringBreath1 {
    0%,100% { transform: translate(-50%,-50%) scale(0.97); box-shadow: 0 0 15px rgba(0,210,255,0.08); }
    50%      { transform: translate(-50%,-50%) scale(1.02); box-shadow: 0 0 35px rgba(0,210,255,0.2), inset 0 0 15px rgba(0,210,255,0.05); }
}
@keyframes ringBreath2 {
    0%,100% { transform: translate(-50%,-50%) scale(0.96); }
    50%      { transform: translate(-50%,-50%) scale(1.03); }
}
@keyframes ringRotate {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ─── ORBIT FLARE ───────────────────────────── */
/* A bright dot that orbits ring-1 carrying a light trail */
.orbit-flare {
    position: absolute;
    top: 50%; left: 50%;
    width: 70px; height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    opacity: 0;
    animation: orbitSpin 3.5s linear infinite;
    animation-play-state: paused;
    z-index: 6;
}
@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.flare-dot {
    position: absolute;
    top: -2px; left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--white);
    box-shadow:
        0 0 0 2px rgba(0,210,255,0.3),
        0 0 8px var(--cyan),
        0 0 18px rgba(0,210,255,0.6),
        0 0 36px rgba(0,210,255,0.3);
}
.flare-dot::after {
    content: '';
    position: absolute;
    top: 50%; right: 5px;
    transform: translateY(-50%);
    width: 20px; height: 1px;
    border-radius: 100px;
    background: linear-gradient(to left, rgba(0,210,255,0.55), transparent);
}

/* ─── LOGO SCANNER ──────────────────────────── */
.logo-scanner {
    position: absolute;
    top: -5%; left: -10%;
    width: 120%; height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,210,255,0.0) 20%,
        rgba(0,210,255,0.6) 50%,
        rgba(0,210,255,0.0) 80%,
        transparent 100%
    );
    filter: blur(1.5px);
    opacity: 0;
    animation: scanDown 4s cubic-bezier(0.4, 0, 0.2, 1) infinite 1.5s;
    animation-play-state: paused;
    z-index: 7;
    pointer-events: none;
}
@keyframes scanDown {
    0%   { top: -5%;   opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 105%;  opacity: 0; }
}

/* ─── LOGO GLOW ────────────────────────────── */
.logo-glow {
    position: absolute;
    width: 68px; height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(0,210,255,0.28) 0%,
        rgba(0,68,204,0.15) 45%,
        transparent 70%
    );
    filter: blur(12px);
    opacity: 0;
    will-change: opacity, transform;
}
.logo-glow-2 {
    width: 48px; height: 48px;
    background: radial-gradient(circle,
        rgba(255,255,255,0.12) 0%,
        rgba(0,210,255,0.08) 50%,
        transparent 70%
    );
    filter: blur(8px);
    animation: glowShift 6s ease-in-out infinite alternate;
    animation-play-state: paused;
}
@keyframes glowShift {
    0%   { transform: translate(-10px, -8px); }
    100% { transform: translate(10px, 8px); }
}

/* ─── LOGO IMAGE ───────────────────────────── */
.logo-img {
    position: relative;
    z-index: 5;
    width: 44px;
    height: auto;
    opacity: 0.06;
    filter: brightness(0.4);
    will-change: filter, opacity;
}

/* ─── BRAND BLOCK ──────────────────────────── */
.brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

/* ─── BRAND NAME ───────────────────────────── */
.brand-name {
    display: flex;
    align-items: center;
    line-height: 1;
}

.brand-name span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 6px;
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    background: linear-gradient(160deg, #ffffff 20%, rgba(0,210,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 2px;
}

/* ─── DIVIDER LINE ──────────────────────────── */
.brand-divider {
    width: 0px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0,210,255,0.5) 30%,
        rgba(0,210,255,0.5) 70%,
        transparent
    );
    transition: width 1s cubic-bezier(0.16,1,0.3,1);
}

/* ─── BRAND SUB ────────────────────────────── */
.brand-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    text-align: center;
}

/* ─── PROGRESS SECTION ────────────────────────── */
.progress-section {
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ─── PROGRESS TRACK ───────────────────────── */
.progress-track {
    position: relative;
    width: 100%;
    height: 1.5px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: visible;
}

.progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: linear-gradient(90deg, rgba(0,44,180,0.7) 0%, var(--cyan) 100%);
    box-shadow: 0 0 6px rgba(0,210,255,0.4);
}

/* Glowing lead dot */
.progress-dot {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--white);
    box-shadow:
        0 0 0 2.5px rgba(0,210,255,0.25),
        0 0 14px var(--cyan),
        0 0 35px rgba(0,210,255,0.5),
        0 0 70px rgba(0,210,255,0.2);
    opacity: 0;
}

/* ─── PROGRESS FOOTER ──────────────────────── */
.progress-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-text {
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 2.5px;
    color: rgba(0,210,255,0.55);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-label {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transition: color 0.5s ease, opacity 0.5s ease;
}
