:root {
    --prom-bg: #161719;
    --prom-panel: #202124;
    --prom-raised: #28292c;
    --prom-line: #34373b;
    --prom-line-soft: #292b2f;
    --prom-ink: #f5f3ea;
    --prom-text: #c2c0b8;
    --prom-muted: #8b8e93;
    --prom-lime: #c8ff3d;
    --prom-lime-dark: #20300d;
    --prom-warn: #ffc857;
    --prom-error: #ff6b63;
    --prom-success: #76e6a5;
}

body.prom-app {
    --bg-0: #161719;
    --bg-1: #202124;
    --bg-2: #28292c;
    --card: #202124;
    --card-hover: #28292c;
    --card-2: #2d2f32;
    --stroke: #34373b;
    --stroke-hover: #4a4d52;
    --stroke-2: #54575d;
    --text: #f5f3ea;
    --text-secondary: #c2c0b8;
    --muted: #8b8e93;
    --muted-2: #6f7277;
    --brand-a: #c8ff3d;
    --brand-b: #c8ff3d;
    --brand-a-dim: #20300d;
    --brand-b-dim: #20300d;
    --brand-grad: #c8ff3d;
    --brand-grad-hover: #d5ff6c;
    --info: #c8ff3d;
    --info-dim: #20300d;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;
    --shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.24);
    --shadow-glow-brand: none;
    background: var(--prom-bg);
    color: var(--prom-ink);
}

body.prom-app::before {
    background: var(--prom-bg);
}

body.prom-app::after {
    opacity: 0.008;
}

.prom-app .upl-topbar {
    border-bottom-color: var(--prom-line-soft);
    background: rgba(22, 23, 25, 0.94);
    box-shadow: none;
}

.prom-app .upl-logo-icon,
.prom-app .upl-btn-primary {
    background: var(--prom-lime);
    color: #111308;
    box-shadow: none;
}

.prom-app .upl-card,
.prom-app .upl-stat-card,
.prom-app .upl-panel {
    backdrop-filter: none;
    box-shadow: none;
}

body.landing-page {
    font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-page .upl-shell {
    background: var(--prom-bg);
    min-height: 100vh;
}

.landing-page .upl-main {
    padding: 0;
}

.landing-page .upl-main > .upl-container {
    max-width: none;
    padding: 0;
}

.terminal-wrap,
.terminal-landing > section {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.terminal-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--prom-line-soft);
    background: rgba(22, 23, 25, 0.94);
    backdrop-filter: blur(16px);
}

.terminal-nav__inner {
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.terminal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: var(--prom-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.terminal-brand b {
    color: var(--prom-muted);
    font-weight: 700;
}

.terminal-brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--prom-lime);
    color: var(--prom-lime);
    font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.terminal-nav__links,
.terminal-nav__actions,
.terminal-lang {
    display: flex;
    align-items: center;
}

.terminal-nav__links {
    gap: 28px;
}

.terminal-nav__links a,
.terminal-login {
    color: var(--prom-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.terminal-nav__links a:hover,
.terminal-login:hover {
    color: var(--prom-ink);
}

.terminal-nav__actions {
    justify-content: flex-end;
    gap: 18px;
}

.terminal-lang {
    gap: 5px;
    color: var(--prom-line);
}

.terminal-lang button {
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--prom-muted);
    font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    cursor: pointer;
}

.terminal-lang button.is-active {
    color: var(--prom-lime);
}

.terminal-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 22px;
    border: 1px solid var(--prom-lime);
    border-radius: 4px;
    background: var(--prom-lime);
    color: #111308;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.terminal-button:hover {
    background: #d5ff6c;
    color: #111308;
    transform: translateY(-1px);
}

.terminal-button--small {
    min-height: 38px;
    padding-inline: 16px;
    font-size: 12px;
}

.terminal-button--ghost {
    border-color: var(--prom-line);
    background: transparent;
    color: var(--prom-ink);
}

.terminal-button--ghost:hover {
    border-color: var(--prom-muted);
    background: var(--prom-panel);
    color: var(--prom-ink);
}

.terminal-hero {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: 70px;
    padding-block: 86px 74px;
}

.terminal-kicker {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 24px;
    color: var(--prom-lime);
    font: 700 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.14em;
}

.terminal-kicker > span {
    width: 22px;
    height: 1px;
    background: currentColor;
}

.terminal-hero h1,
.terminal-section h2,
.terminal-final h2 {
    margin: 0;
    color: var(--prom-ink);
    font-weight: 650;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.terminal-hero h1 {
    max-width: 650px;
    font-size: clamp(44px, 5.4vw, 72px);
    line-height: 0.98;
}

.terminal-lead {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--prom-text);
    font-size: 17px;
    line-height: 1.7;
}

.terminal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.terminal-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--prom-muted);
    font: 600 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-transform: uppercase;
}

.terminal-trust li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.terminal-trust span {
    color: var(--prom-lime);
}

.catalog-console {
    border: 1px solid var(--prom-line);
    border-radius: 6px;
    background: var(--prom-panel);
    box-shadow: 18px 24px 0 rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.catalog-console__bar {
    min-height: 46px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-bottom: 1px solid var(--prom-line-soft);
    color: var(--prom-muted);
    font: 600 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.08em;
}

.catalog-console__bar > div {
    display: flex;
    gap: 6px;
}

.catalog-console__bar > span:last-child {
    justify-self: end;
    color: var(--prom-lime);
}

.catalog-console__bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--prom-line);
}

.catalog-console__stage {
    padding: 28px;
}

.catalog-console__stage--output {
    background: #1b1d1f;
}

.catalog-console__label {
    margin: 0 0 9px;
    color: var(--prom-muted);
    font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.11em;
}

.catalog-console__type {
    margin: 0;
    color: var(--prom-ink);
    font-size: 14px;
    font-weight: 700;
}

.catalog-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--prom-line-soft);
    background: var(--prom-bg);
    color: var(--prom-text);
    font: 500 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.catalog-row__id {
    color: var(--prom-muted);
}

.catalog-console__arrow {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding-inline: 28px;
    border-block: 1px solid var(--prom-line-soft);
    color: var(--prom-lime);
    font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.08em;
}

.catalog-statuses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

.catalog-statuses span {
    padding: 10px 12px;
    border: 1px solid currentColor;
    font: 650 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.catalog-statuses .is-ok { color: var(--prom-success); }
.catalog-statuses .is-warn { color: var(--prom-warn); }
.catalog-statuses .is-error { color: var(--prom-error); grid-column: 1 / -1; }

.terminal-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid var(--prom-line);
}

.terminal-proof article {
    min-height: 150px;
    padding: 30px;
    border-right: 1px solid var(--prom-line);
}

.terminal-proof article:last-child {
    border-right: 0;
}

.terminal-proof strong {
    display: block;
    color: var(--prom-lime);
    font: 650 30px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: -0.05em;
}

.terminal-proof p {
    margin: 16px 0 0;
    color: var(--prom-muted);
    font-size: 12px;
    line-height: 1.6;
}

.terminal-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 80px;
    padding-block: 120px;
    border-bottom: 1px solid var(--prom-line);
}

.terminal-section__intro {
    align-self: start;
    position: sticky;
    top: 110px;
}

.terminal-section__intro--wide {
    grid-column: 1 / -1;
    position: static;
}

.terminal-section h2,
.terminal-final h2 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
}

.terminal-section__intro > p:last-child {
    max-width: 480px;
    margin: 24px 0 0;
    color: var(--prom-text);
    font-size: 15px;
    line-height: 1.75;
}

.gate-list {
    border-top: 1px solid var(--prom-line);
}

.gate-row {
    display: grid;
    grid-template-columns: 42px 145px 1fr auto;
    gap: 18px;
    align-items: start;
    padding: 26px 0;
    border-bottom: 1px solid var(--prom-line-soft);
}

.gate-row__number,
.gate-row__state {
    color: var(--prom-muted);
    font: 650 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.gate-row__state {
    color: var(--prom-lime);
    white-space: nowrap;
}

.gate-row h3,
.workflow-grid h3 {
    margin: 0;
    color: var(--prom-ink);
    font-size: 14px;
    line-height: 1.4;
}

.gate-row p,
.workflow-grid p {
    margin: 0;
    color: var(--prom-muted);
    font-size: 13px;
    line-height: 1.7;
}

.workflow-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--prom-line);
}

.workflow-grid article {
    min-height: 290px;
    padding: 30px;
    border-right: 1px solid var(--prom-line);
}

.workflow-grid article:last-child { border-right: 0; }

.workflow-grid article > span {
    display: block;
    margin-bottom: 80px;
    color: var(--prom-lime);
    font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.workflow-grid h3 {
    margin-bottom: 14px;
    font-size: 20px;
}

.price-panel {
    border: 1px solid var(--prom-line);
    background: var(--prom-panel);
}

.price-row {
    display: grid;
    grid-template-columns: 1fr auto 74px;
    align-items: baseline;
    gap: 14px;
    min-height: 76px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--prom-line-soft);
}

.price-row > span {
    color: var(--prom-text);
    font-size: 14px;
}

.price-row strong {
    color: var(--prom-ink);
    font: 650 26px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.price-row small {
    color: var(--prom-muted);
    font-size: 11px;
}

.price-total {
    padding: 18px 24px;
    color: var(--prom-lime);
    font: 700 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.price-panel .terminal-button {
    width: calc(100% - 48px);
    margin: 6px 24px 24px;
}

.terminal-safety {
    align-items: start;
}

.terminal-safety ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--prom-line);
    list-style: none;
}

.terminal-safety li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--prom-line-soft);
    color: var(--prom-text);
    font-size: 14px;
    line-height: 1.6;
}

.terminal-safety li span {
    color: var(--prom-lime);
    font: 700 15px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.terminal-faq > h2 {
    max-width: 320px;
}

.terminal-faq details {
    border-top: 1px solid var(--prom-line);
}

.terminal-faq details:last-child {
    border-bottom: 1px solid var(--prom-line);
}

.terminal-faq summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    padding: 22px 0;
    color: var(--prom-ink);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.terminal-faq summary::-webkit-details-marker { display: none; }
.terminal-faq summary span { color: var(--prom-lime); }
.terminal-faq details[open] summary span { transform: rotate(45deg); }

.terminal-faq details p {
    max-width: 680px;
    margin: -2px 0 24px;
    color: var(--prom-muted);
    font-size: 14px;
    line-height: 1.75;
}

.terminal-final {
    padding-block: 128px;
    text-align: center;
}

.terminal-final .terminal-kicker {
    justify-content: center;
}

.terminal-final h2 {
    max-width: 760px;
    margin-inline: auto;
}

.terminal-final > p:not(.terminal-kicker) {
    max-width: 600px;
    margin: 22px auto 30px;
    color: var(--prom-text);
    line-height: 1.7;
}

.landing-page .upl-footer {
    border-top: 1px solid var(--prom-line);
    background: #121315;
}

.landing-page .upl-footer-content,
.landing-page .upl-footer-links a,
.landing-page .upl-footer-copyright {
    color: var(--prom-muted);
}

.terminal-brand:focus-visible,
.terminal-nav a:focus-visible,
.terminal-lang button:focus-visible,
.terminal-button:focus-visible,
.terminal-faq summary:focus-visible {
    outline: 2px solid var(--prom-lime);
    outline-offset: 4px;
}

@media (max-width: 980px) {
    .terminal-nav__inner {
        grid-template-columns: 1fr auto;
    }

    .terminal-nav__links,
    .terminal-login {
        display: none;
    }

    .terminal-hero {
        grid-template-columns: 1fr;
        gap: 54px;
        padding-block: 74px;
    }

    .terminal-hero h1 { max-width: 780px; }

    .terminal-section {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-block: 90px;
    }

    .terminal-section__intro {
        position: static;
    }

    .workflow-grid {
        grid-column: auto;
    }

    .gate-row {
        grid-template-columns: 36px 135px 1fr;
    }

    .gate-row__state {
        grid-column: 3;
    }
}

@media (max-width: 720px) {
    .terminal-wrap,
    .terminal-landing > section {
        width: min(100% - 28px, 1180px);
    }

    .terminal-nav__inner { min-height: 62px; }
    .terminal-nav__actions { gap: 10px; }
    .terminal-button--small { display: none; }
    .terminal-brand b { display: none; }

    .terminal-hero {
        min-height: auto;
        padding-block: 58px 64px;
    }

    .terminal-hero h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .terminal-lead { font-size: 15px; }

    .terminal-hero__actions {
        display: grid;
    }

    .terminal-button { width: 100%; }

    .catalog-console {
        box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.18);
    }

    .catalog-console__bar {
        grid-template-columns: auto 1fr;
    }

    .catalog-console__bar > span:nth-child(2) { display: none; }

    .catalog-console__stage { padding: 20px; }
    .catalog-statuses { grid-template-columns: 1fr; }
    .catalog-statuses .is-error { grid-column: auto; }

    .terminal-proof,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .terminal-proof article,
    .workflow-grid article {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--prom-line);
    }

    .terminal-proof article:last-child,
    .workflow-grid article:last-child { border-bottom: 0; }

    .workflow-grid article > span { margin-bottom: 44px; }

    .terminal-section { padding-block: 72px; }

    .gate-row {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }

    .gate-row p,
    .gate-row__state {
        grid-column: 2;
    }

    .price-row {
        grid-template-columns: 1fr auto;
    }

    .price-row small {
        grid-column: 1 / -1;
    }

    .terminal-final { padding-block: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
