@font-face {
    font-family: 'MBCE WEL';
    src: url('/assets/fonts/mbcewel.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MBCE MONO';
    src: url('/assets/fonts/MBCE-Mono.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-void: #050505;
    --bg-panel: #0a0a0a;

    --text-primary: #E8EAED;   /* холодный белый, не молочный */
    --text-muted:   #8A9099;   /* техно-серый с легким голубым */
    --text-ghost:   #2A2F35;   /* графит с синим подтоном */

    --accent-tech: #ffffff;
    --line-grid: rgba(255, 255, 255, 0.03);
    --font-sans: 'MBCE WEL', sans-serif;
    --font-mono: 'MBCE MONO', monospace;
    --grid-unit: 1rem;
    font-weight: 300;
}

.font-primary {
    color: var(--text-primary) !important;
}

.font-muted {
    color: var(--text-muted) !important;
}

.font-ghost {
    color: var(--text-ghost) !important;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

.font-primary {
    color: var(--text-primary);
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
    background: var(--text-ghost);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

::selection {
    background: var(--text-primary);
    color: var(--bg-void);
}

.font-mono {
    font-family: var(--font-mono), monospace;
}

.font-sans {
    font-family: var(--font-sans);
}

.text-uppercase {
    text-transform: uppercase;
}

.text-xs {
    font-size: .75rem;
    letter-spacing: .05em;
}

.text-muted {
    color: var(--text-muted);
}

.text-busy {
    color: coral;
    opacity: 0.7;
    text-align: right;
}

.text-accent {
    color: var(--text-muted);
    letter-spacing: .1em;
}

.text-ghost {
    color: var(--text-ghost);
}

.environmental-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: var(--bg-void);
}

.static-noise {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain-flicker 0.2s steps(10) infinite;
    pointer-events: none;
}

.engineering-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, var(--line-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-grid) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes grain-flicker {
    0%, 100% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-2%, -2%);
    }
    20% {
        transform: translate(2%, 2%);
    }
    30% {
        transform: translate(-2%, 2%);
    }
    40% {
        transform: translate(2%, -2%);
    }
    50% {
        transform: translate(-2%, 0%);
    }
    60% {
        transform: translate(2%, 0%);
    }
    70% {
        transform: translate(0%, 2%);
    }
    80% {
        transform: translate(-2%, 0%);
    }
    90% {
        transform: translate(2%, 0%);
    }
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.section-container {
    width: 100%;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line-grid);
    position: relative;
}

.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}

.stack-container {
    display: grid;
    grid-template-areas: "stack";
    width: 100%;
    position: relative;
}

.visual-col {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
}

.visual-col .stack-container {
    width: 100%;
    height: 100%;
}

.content-col {
    width: 100%;
}

.blueprint-placeholder {
    width: 100%;
    height: 100%;
    border: 1px dashed var(--text-ghost);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgb(255 255 255 / .01);
}

.bp-crosshair {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--text-muted);
    border-style: solid;
}

.ch-tl {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.ch-tr {
    top: -1px;
    right: -1px;
    border-width: 1px 1px 0 0;
}

.ch-bl {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 1px 1px;
}

.ch-br {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}

.hud-label-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-ghost);
}

.hud-label-bot {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: var(--text-ghost);
}

.section-title {
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 400;
    margin: 1rem 0 2rem;
    color: var(--text-primary);
}

.text-body {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--text-ghost);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--text-ghost);
    font-size: .9rem;
    transition: background 0.3s ease;
}

.spec-item:hover {
    background: rgb(255 255 255 / .03);
    padding-left: 1rem;
    padding-right: 1rem;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    color: var(--text-primary);
    text-align: right;
}

.interactive-render-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.iframe-aspect-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

.interactive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.form-container {
    width: 100%;
    max-width: 500px;
}

.input-group {
    display: flex;
    width: 100%;
    border: 1px solid rgb(255 255 255 / .2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
    border-color: #fff;
    box-shadow: 0 0 20px rgb(255 255 255 / .1);
}

.input-terminal {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.2rem 1.5rem;
    color: #fff;
    font-size: .9rem;
    outline: none;
}

.input-terminal::placeholder {
    color: rgb(255 255 255 / .2);
    font-size: .8rem;
}

.btn-submit {
    background: rgb(255 255 255 / .05);
    border: none;
    border-left: 1px solid rgb(255 255 255 / .2);
    color: #fff;
    padding: 0 2.5rem;
    cursor: pointer;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .1em;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #fff;
    color: #000;
}

.form-caption {
    margin-top: 1rem;
    font-size: .6rem;
    color: rgb(255 255 255 / .15);
}

.system-footer {
    width: 100%;
    background-color: #050505;
    border-top: 1px solid rgb(255 255 255 / .1);
    padding: 4rem 0 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.align-right {
    margin-left: auto;
    align-items: flex-end;
}

.text-label {
    color: rgb(255 255 255 / .3);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer-link {
    color: rgb(255 255 255 / .6);
    font-size: .75rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.secret-data {
    position: relative;
    display: inline-block;
    color: transparent !important;
    text-shadow: 0 0 5px rgb(255 255 255 / .5);
    overflow: hidden;
    vertical-align: bottom;
    user-select: none;
    padding: 0 2px;
}

.secret-data::before,
.secret-data::after {
    content: "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░";
    position: absolute;
    top: 50%;
    left: 0;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    line-height: 0;
    letter-spacing: -3px;
    white-space: nowrap;
    pointer-events: none;
    mix-blend-mode: hard-light;
}

.secret-data::before {
    color: rgb(255 255 255 / .4);
    transform: translateY(-50%);
    animation: static-slide-left 0.5s infinite linear;
}

.secret-data::after {
    color: rgb(255 255 255 / .3);
    transform: translateY(-50%);
    animation: static-slide-right 0.7s infinite linear;
}

@keyframes static-slide-left {
    0% {
        left: 0;
    }
    100% {
        left: -20px;
    }
}

@keyframes static-slide-right {
    0% {
        left: -20px;
    }
    100% {
        left: 0;
    }
}

.frac {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.frac .top {
    border-bottom: 1px solid currentColor;
    padding: 0 4px 2px;
}

.frac .bottom {
    padding-top: 2px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .grid-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .visual-col {
        height: 40vh;
        order: -1;
    }

    .section-container {
        padding: 2rem 1.5rem;
    }

    .system-footer {
        padding-top: 3rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .align-right {
        margin-left: 0;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        border: none;
    }

    .input-terminal {
        border: 1px solid rgb(255 255 255 / .2);
        margin-bottom: 10px;
        text-align: center;
    }

    .btn-submit {
        border: 1px solid rgb(255 255 255 / .2);
        padding: 1.2rem;
        width: 100%;
    }
}
/* ===============================
   MBCE UV-365 SPECTRAL PASS
   =============================== */

.mbce-heading {
    position: relative;
    display: inline-block;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.01em;

    text-shadow:
            0 0 1px rgba(255,255,255,0.05),
            0 0 6px rgba(80,0,255,0.08);

    transition: text-shadow 0.4s ease;
}

/* Спокойная базовая линия */
.mbce-heading::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 85%;
    height: 2px;

    background: linear-gradient(
            90deg,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.06)
    );

    opacity: 0.5;
}

/* Спектральный импульс */
.mbce-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0%;
    height: 2px;

    background: linear-gradient(
            90deg,
            var(--text-primary) 0%,
            rgba(255, 255, 255, 0.95) 40%,
            rgba(255, 255, 255, 0.95) 60%,
            var(--text-primary) 100%
    );

    filter: blur(2px);
    opacity: 0;
}

/* Анимация прохода */
@keyframes mbce-spectral-pass {
    0% {
        width: 0%;
        opacity: 1;
    }

    50% {
        width: 85%;
        opacity: 1;
    }

    100% {
        width: 85%;
        opacity: 0;
    }
}

/* Hover — запуск */
.mbce-heading:hover::after {
    animation: mbce-spectral-pass 1.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Лёгкий UV-отклик текста */
.mbce-heading:hover {
    text-shadow:
            0 0 2px rgba(255,255,255,0.08),
            0 0 10px rgba(255, 255, 255, 0.22);
}

.footer-shell {
    width: 100%;
}

.footer-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 2.2rem;
    background: linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0%,
            rgba(255,255,255,0.14) 16%,
            rgba(255,255,255,0.06) 54%,
            rgba(255,255,255,0.02) 100%
    );
    box-shadow:
            0 0 10px rgba(255,255,255,0.03),
            0 0 24px rgba(120,150,220,0.04);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.45fr 0.8fr 0.8fr 1fr;
    gap: 2.8rem;
    align-items: start;
}

.footer-brand-block {
    max-width: 42rem;
}

.footer-brand-title {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow:
            0 0 1px rgba(255,255,255,0.04),
            0 0 10px rgba(255,255,255,0.03);
}

.footer-brand-copy {
    max-width: 42ch;
    line-height: 1.75;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.footer-col-compact {
    gap: 1rem;
}

.footer-links-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-status-block {
    align-items: flex-start;
}

.footer-status-line {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.05em;
}

.footer-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(180, 210, 255, 0.85);
    box-shadow:
            0 0 10px rgba(150,190,255,0.18),
            0 0 22px rgba(150,190,255,0.08);
    flex: 0 0 auto;
}

.footer-status-meta {
    max-width: 28ch;
    font-size: 0.68rem;
    line-height: 1.7;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.34);
}

.footer-bottomline {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-right {
    text-align: right;
    letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 2.4rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottomline {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-right {
        text-align: left;
    }
}

/* Дополнения для блока Capacity */
.footer-status-block {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 280px; /* Фиксация ширины для выравнивания в футере */
}

.footer-status-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.footer-status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-tech); /* Используем ваш акцент */
    box-shadow: 0 0 8px var(--accent-tech);
    flex-shrink: 0;
}

.footer-load-matrix {
    /*margin-top: 0.5rem;*/
    /*padding-top: 0.8rem;*/
    border-top: 1px solid var(--line-grid);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.load-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.load-label {
    color: var(--text-muted);
}

.load-value {
    color: var(--text-ghost);
    text-align: right;
}

/* Цвет для доступного слота */
.load-value.text-accent {
    color: var(--accent-tech);
}

@media (max-width: 768px) {
    .footer-status-block {
        min-width: 100%;
        margin-top: 2rem;
    }
}