@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Inter:wght@300;400;500&display=swap');

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

:root {
    --cyber-purple: #7B2FBE;
    --neon-amber: #FFAA00;
    --hot-pink: #FF0066;
    --dark-base: #162030;
    --ice-blue: #C8E6F0;
    --abyss: #0C1020;
    --neon-green: #00FF88;
    --steel-blue: #8AAEBB;
    --cyan-bright: #00E5FF;
    --deep-abyss: #080B14;
}

body {
    background-color: var(--abyss);
    color: var(--ice-blue);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.wire-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
    background:
        repeating-linear-gradient(0deg, transparent, transparent calc(100% / 12 - 0.5px), var(--ice-blue) calc(100% / 12 - 0.5px), var(--ice-blue) calc(100% / 12)),
        repeating-linear-gradient(90deg, transparent, transparent calc(100% / 12 - 0.5px), var(--ice-blue) calc(100% / 12 - 0.5px), var(--ice-blue) calc(100% / 12));
}

.hud-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
}

.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
}

.hud-corner-tl {
    top: 15px;
    left: 15px;
    border-top: 2px solid var(--neon-green);
    border-left: 2px solid var(--neon-green);
}

.hud-corner-tr {
    top: 15px;
    right: 15px;
    border-top: 2px solid var(--neon-green);
    border-right: 2px solid var(--neon-green);
}

.hud-corner-bl {
    bottom: 15px;
    left: 15px;
    border-bottom: 2px solid var(--neon-green);
    border-left: 2px solid var(--neon-green);
}

.hud-corner-br {
    bottom: 15px;
    right: 15px;
    border-bottom: 2px solid var(--neon-green);
    border-right: 2px solid var(--neon-green);
}

.hud-edge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hud-edge-top {
    top: 18px;
}

.hud-edge-bottom {
    bottom: 18px;
}

.hud-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--neon-green);
    opacity: 0.7;
}

.hud-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.signal-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.signal-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    margin-bottom: 3rem;
    transition: width 1.5s ease-out;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.signal-line.expanded {
    width: 300px;
}

.hud-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ice-blue);
    text-shadow: 0 0 30px rgba(200, 230, 240, 0.3), 0 0 80px rgba(123, 47, 190, 0.2);
    opacity: 0;
    transition: opacity 1s ease-out 0.8s;
}

.hud-title.visible {
    opacity: 1;
}

.hud-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--neon-amber);
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 1s ease-out 1.5s;
}

.hud-subtitle.visible {
    opacity: 1;
}

.panels-section {
    padding: 4rem 0;
}

.panel-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hud-panel {
    flex: 1;
    background: rgba(22, 32, 48, 0.6);
    border: 1px solid rgba(200, 230, 240, 0.1);
    padding: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hud-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.hud-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.hud-panel:hover::before {
    border-color: rgba(0, 255, 136, 0.3);
}

.wide-panel {
    flex: 1;
}

.panel-header {
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--neon-green);
}

.panel-bracket {
    color: var(--cyber-purple);
}

.panel-label {
    margin: 0 0.5rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(200, 230, 240, 0.05);
    font-size: 0.8rem;
}

.status-key {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--steel-blue);
}

.status-val {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--neon-green);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    padding-top: 1rem;
}

.bar {
    width: 30px;
    height: var(--bar-height);
    background: linear-gradient(180deg, var(--cyber-purple), rgba(123, 47, 190, 0.3));
    position: relative;
    transition: height 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.bar-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    color: var(--steel-blue);
    margin-top: 0.5rem;
    position: absolute;
    bottom: -20px;
    white-space: nowrap;
}

.data-stream {
    height: 60px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: rgba(200, 230, 240, 0.4);
    line-height: 1.5;
    position: relative;
}

.data-stream::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, rgba(12, 16, 32, 0.9));
}

.network-svg {
    width: 100%;
    height: 150px;
}

.protocol-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.protocol-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--steel-blue);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.protocol-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--steel-blue);
}

.protocol-item.active .dot {
    background: var(--neon-green);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.protocol-item.active {
    color: var(--ice-blue);
}

.mission-section {
    padding: 6rem 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.mission-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--neon-amber);
    margin-bottom: 2rem;
}

.section-body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.9;
    color: rgba(200, 230, 240, 0.7);
}

.hud-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(200, 230, 240, 0.05);
}

.footer-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(200, 230, 240, 0.2);
}

@media (max-width: 768px) {
    .panel-row {
        flex-direction: column;
    }
}
