/**
 * Network Command Deck — futuristic footer (all public pages).
 * Scoped to .lb-footer-command — overrides legacy .footer from main.css.
 */

.lb-footer-command.footer {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(0, 212, 255, 0.07), transparent 55%),
        linear-gradient(180deg, rgba(4, 6, 12, 0.6) 0%, #030508 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.12);
}

.lb-footer-command.footer::before,
.lb-footer-command.footer::after {
    display: none;
}

.lb-footer-command__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* —— FX —— */
.lb-footer-command__fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.lb-footer-command__aurora {
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(circle at 25% 20%, rgba(0, 212, 255, 0.1), transparent 42%),
        radial-gradient(circle at 75% 80%, rgba(80, 60, 255, 0.06), transparent 40%);
    filter: blur(36px);
    animation: lbFooterAurora 16s ease-in-out infinite alternate;
}

.lb-footer-command__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    opacity: 0.45;
}

.lb-footer-command__scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 212, 255, 0.012) 3px,
        rgba(0, 212, 255, 0.012) 4px
    );
    opacity: 0.35;
    animation: lbFooterScan 10s linear infinite;
}

.lb-footer-command__horizon {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.45), transparent);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
}

@keyframes lbFooterAurora {
    from { transform: translate(0, 0); }
    to { transform: translate(2%, -1%); }
}

@keyframes lbFooterScan {
    from { transform: translateY(0); }
    to { transform: translateY(40px); }
}

/* —— Top deck —— */
.lb-footer-command__deck {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.15fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}

.lb-footer-command__brand {
    position: relative;
    padding: 1.25rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 212, 255, 0.16);
    background: linear-gradient(155deg, rgba(10, 14, 24, 0.92), rgba(6, 8, 14, 0.88));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.lb-footer-command__brand::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.lb-footer-command__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.lb-footer-command__logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.35));
}

.lb-footer-command__logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--lb-primary, #00d4ff);
}

.lb-footer-command__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    color: rgba(0, 212, 255, 0.75);
    text-transform: lowercase;
}

.lb-footer-command__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.7);
    animation: lbFooterPulse 2.2s ease-in-out infinite;
}

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

.lb-footer-command__tagline {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.lb-footer-command__telemetry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.lb-footer-command__telemetry-cell {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
}

.lb-footer-command__telemetry-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.lb-footer-command__telemetry-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.62rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.45);
}

/* —— Transmit (newsletter) —— */
.lb-footer-command__transmit {
    position: relative;
    padding: 0 0 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: linear-gradient(165deg, rgba(8, 12, 22, 0.96), rgba(5, 7, 12, 0.94));
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.lb-footer-command__module-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
}

.lb-footer-command__module-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: rgba(0, 212, 255, 0.72);
    letter-spacing: 0.04em;
}

.lb-footer-command__module-dots {
    display: flex;
    gap: 0.35rem;
}

.lb-footer-command__module-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.lb-footer-command__module-dots .is-live {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.55);
}

.lb-footer-command__badge {
    display: inline-block;
    margin: 1rem 1.15rem 0;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 212, 255, 0.7);
}

.lb-footer-command__transmit-heading {
    margin: 0.65rem 1.15rem 0.4rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.lb-footer-command__transmit-desc {
    margin: 0 1.15rem 1rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
}

.lb-footer-command__form {
    margin: 0 1.15rem;
}

.lb-footer-command__form-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
}

.lb-footer-command__form-row input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font-size: 0.88rem;
}

.lb-footer-command__form-row input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.lb-footer-command__form-row input:focus {
    outline: none;
    background: rgba(0, 212, 255, 0.05);
}

.lb-footer-command__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.88), rgba(0, 150, 210, 0.85));
    color: #041018;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lb-footer-command__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.28);
}

/* —— Node grid —— */
.lb-footer-command__nodes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.lb-footer-command__node {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.12);
    background: linear-gradient(150deg, rgba(10, 14, 22, 0.85), rgba(6, 8, 14, 0.8));
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lb-footer-command__node:hover {
    border-color: rgba(0, 212, 255, 0.28);
    box-shadow: 0 8px 28px rgba(0, 212, 255, 0.08);
}

.lb-footer-command__node-head {
    margin-bottom: 0.85rem;
}

.lb-footer-command__node-tag {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    color: rgba(0, 212, 255, 0.5);
    text-transform: lowercase;
    margin-bottom: 0.25rem;
}

.lb-footer-command__node h4 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.lb-footer-command__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lb-footer-command__links a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lb-footer-command__links a:hover {
    color: var(--lb-primary, #00d4ff);
    transform: translateX(3px);
}

.lb-footer-command__link-idx {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    color: rgba(0, 212, 255, 0.4);
    flex-shrink: 0;
}

.lb-footer-command__channels {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lb-footer-command__channel {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.lb-footer-command__channel:hover {
    color: #fff;
}

.lb-footer-command__channel-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    background: rgba(0, 212, 255, 0.08);
    color: var(--lb-primary, #00d4ff);
    font-size: 0.72rem;
}

.lb-footer-command__relay {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.lb-footer-command__relay-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.82rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lb-footer-command__relay-btn:hover {
    color: #fff;
    background: rgba(0, 212, 255, 0.18);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* —— Bottom bar —— */
.lb-footer-command__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
}

.lb-footer-command__bar-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lb-footer-command__bar-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: rgba(0, 212, 255, 0.55);
    text-transform: uppercase;
}

.lb-footer-command__copyright {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.lb-footer-command__legal {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.lb-footer-command__legal a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.lb-footer-command__legal a:hover {
    color: var(--lb-primary, #00d4ff);
}

.lb-footer-command__legal-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.35);
}

.lb-footer-command__bar-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: rgba(0, 212, 255, 0.45);
}

/* —— Responsive —— */
@media (max-width: 992px) {
    .lb-footer-command__deck {
        grid-template-columns: 1fr;
    }

    .lb-footer-command__nodes {
        grid-template-columns: 1fr 1fr;
    }

    .lb-footer-command__node--connect {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .lb-footer-command.footer {
        padding-top: 3rem;
    }

    .lb-footer-command__nodes {
        grid-template-columns: 1fr;
    }

    .lb-footer-command__node--connect {
        grid-column: auto;
    }

    .lb-footer-command__form-row {
        flex-direction: column;
        padding: 0.45rem;
    }

    .lb-footer-command__submit {
        width: 100%;
        justify-content: center;
    }

    .lb-footer-command__bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .lb-footer-command__bar-meta {
        display: none;
    }

    .lb-footer-command__telemetry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-footer-command__aurora,
    .lb-footer-command__scanline,
    .lb-footer-command__status-dot {
        animation: none;
    }
}
