/* gamelicensor.pro - Sci-Fi Scholarly Futurism */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #E8ECF0;
    background: #0A0A12;
    overflow-x: hidden;
}

/* Scan-line overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 229, 255, 0.03) 3px,
        rgba(0, 229, 255, 0.03) 4px
    );
    opacity: 0;
    animation: scanIn 400ms ease 200ms forwards;
}

@keyframes scanIn {
    to { opacity: 1; }
}

.section {
    width: 100%;
    position: relative;
}

/* ========== PARTICLES ========== */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
}

/* ========== COMMAND BRIDGE HERO ========== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hud-circles {
    position: absolute;
    width: 80vmin;
    height: 80vmin;
}

#hud-outer {
    animation: rotateOuter 60s linear infinite;
    transform-origin: center;
}

#hud-mid {
    animation: rotateMid 45s linear infinite reverse;
    transform-origin: center;
}

#hud-inner {
    animation: rotateInner 30s linear infinite;
    transform-origin: center;
}

@keyframes rotateOuter { to { transform: rotate(360deg); } }
@keyframes rotateMid { to { transform: rotate(360deg); } }
@keyframes rotateInner { to { transform: rotate(360deg); } }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E8ECF0;
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    color: #00E5FF;
    transition: opacity 150ms ease, color 300ms ease;
}

.hero-title span.visible {
    opacity: 1;
}

.hero-title span.settled {
    color: #E8ECF0;
}

.hero-tld {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.15em;
    color: #00E5FF;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 500ms ease;
}

.hero-tld.visible {
    opacity: 1;
}

/* ========== DATA RIBBON ========== */

.data-ribbon {
    width: 100%;
    background: rgba(0, 229, 255, 0.05);
    overflow: hidden;
    padding: 12px 0;
    position: relative;
    z-index: 1;
}

.ribbon-track {
    display: flex;
    gap: 4rem;
    white-space: nowrap;
    animation: scrollRibbon 30s linear infinite;
}

@keyframes scrollRibbon {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ribbon-item {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #00E5FF;
    flex-shrink: 0;
}

.ribbon-item:hover {
    color: #FF2D9B;
    transform: scale(1.1);
}

/* ========== MISSION BRIEF SECTIONS ========== */

.mission-brief {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.bracket-frame {
    position: relative;
    max-width: 1100px;
    width: 100%;
    padding: 60px;
}

.bracket {
    position: absolute;
    width: 40px;
    height: 40px;
}

.bracket::before,
.bracket::after {
    content: '';
    position: absolute;
    background: rgba(0, 229, 255, 0.5);
    transform: scaleX(0);
    transition: transform 400ms ease;
}

.bracket.drawn::before,
.bracket.drawn::after {
    transform: scaleX(1);
}

.bracket.tl { top: 0; left: 0; }
.bracket.tl::before { top: 0; left: 0; width: 40px; height: 4px; transform-origin: left; }
.bracket.tl::after { top: 0; left: 0; width: 4px; height: 40px; transform-origin: top; }

.bracket.tr { top: 0; right: 0; }
.bracket.tr::before { top: 0; right: 0; width: 40px; height: 4px; transform-origin: right; }
.bracket.tr::after { top: 0; right: 0; width: 4px; height: 40px; transform-origin: top; }

.bracket.bl { bottom: 0; left: 0; }
.bracket.bl::before { bottom: 0; left: 0; width: 40px; height: 4px; transform-origin: left; }
.bracket.bl::after { bottom: 0; left: 0; width: 4px; height: 40px; transform-origin: bottom; }

.bracket.br { bottom: 0; right: 0; }
.bracket.br::before { bottom: 0; right: 0; width: 40px; height: 4px; transform-origin: right; }
.bracket.br::after { bottom: 0; right: 0; width: 4px; height: 40px; transform-origin: bottom; }

.brief-content {
    opacity: 0;
    transition: opacity 600ms ease;
}

.brief-content.visible {
    opacity: 1;
}

.brief-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E8ECF0;
    margin-bottom: 1.5rem;
}

.brief-body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: #E8ECF0;
    max-width: 700px;
}

/* ========== CODEX SECTION ========== */

.codex-section {
    padding: 100px 2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.codex-inner {
    max-width: 700px;
    width: 100%;
}

.codex-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E8ECF0;
    margin-bottom: 2rem;
}

.codex-body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: #E8ECF0;
    margin-bottom: 2rem;
}

.drop-cap {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    font-size: 4rem;
    color: #FFD700;
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 6px;
    text-shadow: 0 0 0px rgba(255, 215, 0, 0);
    transition: text-shadow 800ms ease;
}

.drop-cap.glow {
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
}

/* ========== TERMINAL FOOTER ========== */

.footer {
    background: #14141E;
    padding: 40px 2rem;
    position: relative;
    z-index: 1;
}

.terminal-output {
    max-width: 600px;
    margin: 0 auto;
}

.terminal-line {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    color: #00E5FF;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.terminal-cursor::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: #00E5FF;
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: termBlink 800ms step-end infinite;
}

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

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .bracket-frame {
        padding: 40px;
    }

    .hud-circles {
        width: 90vmin;
        height: 90vmin;
    }
}
