/**
 * Services Command — futuristic services page (services.php).
 */

.lb-services-page {
    background: #030508;
    color: #fff;
}

/* —— Hero —— */
.lb-services-hero {
    position: relative;
    min-height: min(88vh, 860px);
    display: flex;
    align-items: center;
    padding: clamp(6rem, 11vh, 8rem) 0 clamp(2.5rem, 5vh, 3.5rem);
    overflow: hidden;
    background:
        radial-gradient(ellipse 75% 50% at 50% 0%, rgba(0, 212, 255, 0.1), transparent 55%),
        linear-gradient(180deg, #030508 0%, #060b14 100%);
}

.lb-services-hero__fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.lb-services-hero__grid {
    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: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 65% at 50% 35%, #000 15%, transparent 72%);
}

.lb-services-hero__aurora {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.14), transparent 42%),
        radial-gradient(circle at 75% 65%, rgba(90, 60, 255, 0.08), transparent 40%);
    filter: blur(42px);
    animation: lbSvcAurora 18s ease-in-out infinite alternate;
}

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

.lb-services-hero__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.lb-services-hero__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    background: rgba(0, 212, 255, 0.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: rgba(0, 212, 255, 0.75);
    text-transform: lowercase;
}

.lb-services-hero__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.55);
}

.lb-services-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.lb-services-hero__accent {
    background: linear-gradient(90deg, #00d4ff, #7dd3fc, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lb-services-hero__desc {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
    font-size: 1.02rem;
}

.lb-services-hero__matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.lb-services-hero__node {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.14);
    background: linear-gradient(155deg, rgba(12, 18, 30, 0.92), rgba(6, 8, 14, 0.9));
    color: inherit;
    text-decoration: none;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

.lb-services-hero__node:hover {
    border-color: rgba(0, 212, 255, 0.42);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 212, 255, 0.1);
    color: #fff;
}

.lb-services-hero__node-fx span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: rgba(0, 212, 255, 0.35);
    border-style: solid;
    pointer-events: none;
}

.lb-services-hero__node-fx span:first-child { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.lb-services-hero__node-fx span:last-child { right: 6px; bottom: 6px; border-width: 0 1px 1px 0; }

.lb-services-hero__node-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    font-size: 0.95rem;
}

.lb-services-hero__node-body strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
}

.lb-services-hero__node-body span {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lb-services-hero__node-arrow {
    font-size: 0.7rem;
    color: rgba(0, 212, 255, 0.55);
}

.lb-services-hero__scroll {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    color: rgba(0, 212, 255, 0.45);
    text-transform: lowercase;
}

/* —— Sections —— */
.lb-services-section {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    overflow: hidden;
}

.lb-services-section--divisions { background: linear-gradient(180deg, #030508, rgba(4, 8, 14, 0.98)); }
.lb-services-section--catalog { background: #030508; }
.lb-services-section--process {
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 212, 255, 0.05), transparent 55%),
        #030508;
}
.lb-services-section--cta { padding-bottom: clamp(4rem, 8vw, 6rem); }

.lb-services-page .lb-division-card {
    border-color: rgba(0, 212, 255, 0.14);
    background: rgba(8, 12, 20, 0.75);
}

/* —— Catalog —— */
.lb-services-catalog__fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lb-services-catalog__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 80% 55% at 50% 40%, #000 10%, transparent 70%);
}

.lb-services-catalog__hud,
.lb-services-process__hud {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.18);
    background: rgba(0, 212, 255, 0.04);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    color: rgba(0, 212, 255, 0.65);
    text-transform: lowercase;
}

.lb-services-catalog__hud-dot,
.lb-services-process__hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.lb-services-catalog__modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.lb-services-module {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.1rem 1.1rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 212, 255, 0.14);
    background: linear-gradient(160deg, rgba(12, 18, 30, 0.95), rgba(6, 8, 14, 0.92));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.lb-services-module.is-featured {
    border-color: rgba(0, 212, 255, 0.38);
    box-shadow: 0 16px 42px rgba(0, 212, 255, 0.08);
}

.lb-services-module:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 20px 48px rgba(0, 212, 255, 0.12);
}

.lb-services-module__fx span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(0, 212, 255, 0.4);
    border-style: solid;
    pointer-events: none;
}

.lb-services-module__fx span:first-child { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.lb-services-module__fx span:last-child { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }

.lb-services-module__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.08);
}

.lb-services-module__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lb-services-module__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.22);
    color: #00d4ff;
}

.lb-services-module__head h3 {
    margin: 0;
    font-size: 1.02rem;
}

.lb-services-module__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
    line-height: 1.55;
    flex: 1;
}

.lb-services-module__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.lb-services-module__features li {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}

.lb-services-module__features i {
    color: #00d4ff;
    margin-right: 0.35rem;
    font-size: 0.65rem;
}

.lb-services-module__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lb-services-module__tags span {
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(0, 212, 255, 0.75);
    border: 1px solid rgba(0, 212, 255, 0.18);
    background: rgba(0, 212, 255, 0.05);
}

.lb-services-module__actions {
    display: grid;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.lb-services-module__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lb-services-module__btn--primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(0, 160, 220, 0.85));
    color: #031018;
    border: 1px solid rgba(0, 212, 255, 0.5);
}

.lb-services-module__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 212, 255, 0.25);
    color: #031018;
}

.lb-services-module__btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
}

.lb-services-module__btn--ghost:hover {
    border-color: rgba(0, 212, 255, 0.3);
    color: #fff;
}

/* —— Process pipeline —— */
.lb-services-process__track {
    position: relative;
    height: 2px;
    margin: 0 2rem 1.5rem;
    display: none;
}

.lb-services-process__line {
    position: absolute;
    inset: 0;
    background: rgba(0, 212, 255, 0.12);
    border-radius: 2px;
}

.lb-services-process__beam {
    position: absolute;
    inset: 0;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.65), transparent);
    animation: lbSvcBeam 4s ease-in-out infinite;
}

@keyframes lbSvcBeam {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.lb-services-process__stream {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lb-services-process__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

.lb-services-process__step--offset {
    padding-top: 1rem;
}

.lb-services-process__ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.06);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}

.lb-services-process__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #00d4ff;
    font-weight: 700;
}

.lb-services-process__card {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.14);
    background: rgba(8, 12, 20, 0.8);
}

.lb-services-process__card-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.lb-services-process__card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
}

.lb-services-process__card p {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* —— Launch CTA —— */
.lb-services-launch {
    position: relative;
    background:
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 212, 255, 0.08), transparent 55%),
        #030508;
}

.lb-services-launch__fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.lb-services-launch__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

.lb-services-launch__aurora {
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle at 50% 80%, rgba(0, 212, 255, 0.1), transparent 50%);
    filter: blur(40px);
}

.lb-services-launch__deck {
    position: relative;
    padding: clamp(1.35rem, 3vw, 2rem);
    border-radius: 22px;
    border: 1px solid rgba(0, 212, 255, 0.24);
    background: linear-gradient(165deg, rgba(10, 16, 28, 0.94), rgba(5, 8, 16, 0.92));
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(0, 212, 255, 0.12);
    overflow: hidden;
}

.lb-services-launch__corner-fx span {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(0, 212, 255, 0.45);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}

.lb-services-launch__corner-fx span:nth-child(1) { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.lb-services-launch__corner-fx span:nth-child(2) { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.lb-services-launch__corner-fx span:nth-child(3) { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.lb-services-launch__corner-fx span:nth-child(4) { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.lb-services-launch__hud {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: rgba(0, 212, 255, 0.65);
    text-transform: lowercase;
}

.lb-services-launch__hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.55);
}

.lb-services-launch__hud-tag {
    margin-left: 0.35rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(0, 212, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
}

.lb-services-launch__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.lb-services-launch__copy h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.lb-services-launch__copy p {
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 36rem;
}

.lb-services-launch__signals {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lb-services-launch__signals li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    border: 1px solid rgba(0, 212, 255, 0.18);
    background: rgba(0, 212, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.lb-services-launch__signals i { color: #00d4ff; font-size: 0.65rem; }

.lb-services-launch__beacon {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.lb-services-launch__beacon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.lb-services-launch__beacon-ring--1 { animation: lbSvcRing 3s ease-in-out infinite; }
.lb-services-launch__beacon-ring--2 { inset: 12px; animation: lbSvcRing 3s ease-in-out infinite reverse; }

@keyframes lbSvcRing {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.04); }
}

.lb-services-launch__beacon-core {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #00d4ff;
    font-size: 1.25rem;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
}

.lb-services-launch__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lb-services-launch__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lb-services-launch__btn--primary {
    background: linear-gradient(135deg, #00d4ff, #00a8d4);
    color: #031018;
    border: 1px solid rgba(0, 212, 255, 0.5);
}

.lb-services-launch__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 212, 255, 0.35);
    color: #031018;
}

.lb-services-launch__btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
}

.lb-services-launch__btn--ghost:hover {
    border-color: rgba(0, 212, 255, 0.35);
    color: #fff;
}

/* —— Reveal —— */
.lb-services-page .lb-reveal:not(.lb-reveal--visible) {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.lb-services-page .lb-reveal--visible {
    opacity: 1;
    transform: none;
}

/* —— Responsive —— */
@media (min-width: 993px) {
    .lb-services-process__track { display: block; }
}

@media (max-width: 992px) {
    .lb-services-hero__layout {
        grid-template-columns: 1fr;
    }

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

    .lb-services-launch__body {
        grid-template-columns: 1fr;
    }

    .lb-services-launch__beacon {
        display: none;
    }
}

@media (max-width: 768px) {
    .lb-services-hero__matrix {
        grid-template-columns: 1fr;
    }

    .lb-services-catalog__modules {
        grid-template-columns: 1fr;
    }

    .lb-services-process__stream {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .lb-services-process__stream::-webkit-scrollbar { display: none; }

    .lb-services-process__step {
        flex: 0 0 min(82vw, 280px);
        scroll-snap-align: start;
    }

    .lb-services-process__step--offset {
        padding-top: 0;
    }

    .lb-services-launch__actions {
        flex-direction: column;
    }

    .lb-services-launch__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-services-hero__aurora,
    .lb-services-process__beam,
    .lb-services-launch__beacon-ring {
        animation: none;
    }

    .lb-services-page .lb-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
