:root {
    --bg: #0b0f14;
    --panel: rgba(255, 255, 255, .04);
    --panel2: rgba(255, 255, 255, .02);
    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .64);
    --border: rgba(255, 255, 255, .12);
    --shadow: 0 18px 60px rgba(0, 0, 0, .35);

    --accent: #7c5cff;
    --accent2: #00e5a8;

    --good: #2ee59d;
    --warn: #ffcc66;
    --bad: #ff5c7a;

    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --radius: 18px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f7f8fb;
        --panel: rgba(0, 0, 0, .04);
        --panel2: rgba(0, 0, 0, .02);
        --text: rgba(0, 0, 0, .9);
        --muted: rgba(0, 0, 0, .6);
        --border: rgba(0, 0, 0, .12);
        --shadow: 0 18px 60px rgba(0, 0, 0, .10);
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 18px 64px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel) 92%, transparent);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 14px;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-left: 6px;
}

.brand .brand-title {
    margin: 0;
    font-size: 18px;
    letter-spacing: .5px;
}

.brand span {
    font-size: 12px;
    color: var(--muted);
}

.btn {
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel) 96%, transparent);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: transform .08s ease, border-color .15s ease, background .15s ease;
}

.btn:hover {
    border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}

.btn:active {
    transform: translateY(1px);
}

.btn.primary {
    border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
    background: linear-gradient(135deg,
            color-mix(in oklab, var(--accent) 60%, transparent),
            color-mix(in oklab, var(--accent2) 35%, transparent));
}

.hero {
    padding: 34px 10px 8px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

.card {
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel) 92%, transparent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-main {
    padding: 26px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
    padding: 8px 10px;
    border: 1px solid color-mix(in oklab, var(--text) 22%, var(--border));
    border-radius: 999px;
    background: color-mix(in oklab, var(--panel) 98%, transparent);
}

.k-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
    display: inline-block;
}

.k-dot::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: color-mix(in oklab, var(--accent) 35%, transparent);
    animation: kdot 1.6s ease-out infinite;
    animation-fill-mode: both;
}

@keyframes kdot {
    0% {
        transform: scale(.3);
        opacity: 0;
    }

    30% {
        opacity: .7;
    }

    70% {
        transform: scale(1);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.hero h2 {
    margin: 14px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -.02em;
}

.hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -.02em;
}

.hero p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 62ch;
}

.center-title {
    text-align: center;
    margin: 0;
    font-size: clamp(24px, 3.6vw, 32px);
    letter-spacing: -0.01em;
}

.center-title .protect-cta {
    position: relative;
    display: inline-block;
    padding: 0 6px;
    border-radius: 12px;
    transition: color .15s ease, transform .18s ease;
}

.center-title .protect-cta::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent);
    opacity: 0;
    transform: scale(0.9);
}

.who-title:hover .protect-cta,
.who-title:focus .protect-cta,
.who-title:focus-visible .protect-cta {
    color: color-mix(in oklab, var(--accent) 90%, var(--text));
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: no-preference) {
    .who-title .protect-cta::after {
        animation: protect-click 1.6s ease infinite;
    }

    .who-title .protect-cta {
        animation: protect-pop 1.6s ease infinite;
    }
}

@keyframes protect-click {
    0% {
        opacity: .35;
        transform: scale(0.92);
        box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 35%, transparent);
    }
    60% {
        opacity: .22;
        transform: scale(1.12);
        box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 18%, transparent);
    }
    100% {
        opacity: 0;
        transform: scale(1.25);
        box-shadow: 0 0 0 16px transparent;
    }
}

@keyframes protect-pop {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(0);
    }
}

.who-title {
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 40px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.who-title .qband {
    position: absolute;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    height: 200px;
    overflow: hidden;
    pointer-events: none;
}

.who-title .qband .qm {
    position: absolute;
    font-size: clamp(40px, 6vw, 74px);
    font-weight: 700;
    color: color-mix(in oklab, var(--accent) 28%, var(--text) 18%);
    text-shadow:
        0 6px 18px rgba(0, 0, 0, .25),
        0 0 18px color-mix(in oklab, var(--accent2) 18%, transparent);
    opacity: .62;
    animation: qmPulse 3s ease-in-out infinite;
}

.who-title .qband .q1 {
    top: 16px;
    left: 12%;
    animation-delay: 0s;
}

.who-title .qband .q2 {
    top: 40px;
    left: 32%;
    animation-delay: .5s;
}

.who-title .qband .q3 {
    top: -4px;
    left: 52%;
    animation-delay: 1s;
}

.who-title .qband .q4 {
    top: 50px;
    left: 68%;
    animation-delay: 1.5s;
}

.who-title .qband .q5 {
    top: 12px;
    left: 82%;
    animation-delay: 2s;
}

.who-title .qband .q6 {
    top: 72px;
    left: 24%;
    animation-delay: 2.4s;
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-side {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 10px 6px;
}

.demo-head h2 {
    margin: 0;
    font-size: 14px;
    letter-spacing: .2px;
}

.demo-head .mini {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
    user-select: none;
}

.demo-body {
    padding: 12px;
    border-top: 1px dashed color-mix(in oklab, var(--border) 70%, transparent);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 480px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 6px;
}

input,
select {
    width: 100%;
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
    color: var(--text);
    outline: none;
}

input::placeholder {
    color: color-mix(in oklab, var(--muted) 70%, transparent);
}

.verdict {
    padding: 14px 14px 16px;
    border-top: 1px dashed color-mix(in oklab, var(--border) 70%, transparent);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 10px;
    font-family: var(--mono);
    font-size: 12px;
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
    width: fit-content;
}

.badge i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: var(--warn);
}

.meter {
    height: 10px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--panel2) 86%, transparent);
    border: 1px solid var(--border);
    overflow: hidden;
}

.meter>div {
    height: 100%;
    background: linear-gradient(90deg, var(--good), var(--warn), var(--bad));
}

.kv {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    font-size: 12px;
    color: var(--muted);
}

.kv b {
    color: var(--text);
    font-weight: 600;
}

.section {
    margin-top: 18px;
}

.section .card {
    padding: 20px;
}

.section h2 {
    margin: 0 0 6px;
    font-size: 16px;
}
.section h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.section p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.steps {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width:900px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.step {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
}

.step .num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step .num::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.step h3 {
    margin: 10px 0 6px;
    font-size: 14px;
}

.step ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
}

.codebox {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
    font-family: var(--mono);
    font-size: 12px;
    white-space: pre;
    overflow: auto;
}

/* ======================================================
       PIPELINE VISUAL (CSS ONLY) — SEQUENCED IN PHASES
       Each phase = 3s. Total cycle = 12s.
       0–25%  : lane
       25–50% : split
       50–75% : analyze
       75–100%: AI + verdict
       ====================================================== */

.pipeviz {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
    padding: 14px;
    overflow: hidden;
    position: relative;

    --phase: 3s;
    --cycle: calc(var(--phase) * 4);
}

/* ✅ 2 ряда: 3 сверху / 2 снизу + центрирование */
.pipe {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

/* размещение блоков */
.pipe>.lane {
    grid-column: 1 / span 2;
}

.pipe>.split {
    grid-column: 3 / span 2;
}

.pipe>.analyze {
    grid-column: 5 / span 2;
}

/* нижний ряд по центру: занимают центральные 4 колонки */
.pipe>.ai {
    grid-column: 2 / span 2;
}

.pipe>.out {
    grid-column: 4 / span 2;
}

.pipe::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        radial-gradient(600px 240px at 20% 30%,
            color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%),
        radial-gradient(520px 260px at 80% 40%,
            color-mix(in oklab, var(--accent2) 10%, transparent), transparent 72%);
    filter: blur(2px);
    opacity: .8;
    pointer-events: none;
    z-index: 0;
    animation: bg-drift var(--cycle) ease-in-out infinite alternate;
}

@keyframes bg-drift {
    from {
        transform: translate3d(-18px, -8px, 0) scale(1.03);
    }

    to {
        transform: translate3d(18px, 10px, 0) scale(1.04);
    }
}

.pipe>* {
    position: relative;
    z-index: 1;
}

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

    .pipe>.lane,
    .pipe>.split,
    .pipe>.analyze,
    .pipe>.ai,
    .pipe>.out {
        grid-column: auto;
    }

    .lane,
    .split,
    .analyze,
    .ai,
    .out {
        min-height: 220px;
    }

    .pipeviz {
        padding: 16px;
    }
}

/* ---- shared shell ---- */
.lane,
.split,
.analyze,
.ai,
.out {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in oklab, var(--panel) 92%, transparent);
    box-shadow: var(--shadow);
    min-height: 230px;
    position: relative;
    overflow: hidden;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ptitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ptitle .tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.ptitle h3 {
    margin: 0;
    font-size: 13px;
    letter-spacing: .2px;
}

.pdesc {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

/* ---- Phase gates (CSS only) ---- */
@keyframes on1 {

    0%,
    1% {
        opacity: 0
    }

    2%,
    24% {
        opacity: 1
    }

    25%,
    100% {
        opacity: 0
    }
}

@keyframes on2 {

    0%,
    24% {
        opacity: 0
    }

    27%,
    48% {
        opacity: 1
    }

    50%,
    100% {
        opacity: 0
    }
}

@keyframes on3 {

    0%,
    49% {
        opacity: 0
    }

    52%,
    74% {
        opacity: 1
    }

    75%,
    100% {
        opacity: 0
    }
}

@keyframes on4 {

    0%,
    74% {
        opacity: 0
    }

    77%,
    100% {
        opacity: 1
    }
}

/* ===============================
       PHASE 1: lane (0–25%)
       =============================== */
.lane .line {
    margin-top: auto;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            color-mix(in oklab, var(--accent) 55%, transparent),
            color-mix(in oklab, var(--accent2) 45%, transparent),
            transparent);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    animation: on1 var(--cycle) linear infinite;
    position: relative;
    display: flex;
    align-items: center;
}

.pulse {
    position: absolute;
    top: calc(50% - 6px);
    left: -20px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
    filter: drop-shadow(0 0 10px color-mix(in oklab, var(--accent) 55%, transparent));
    animation: pulse-seq var(--cycle) linear infinite;
    animation-fill-mode: both;
}

.pulse::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background: color-mix(in oklab, var(--accent) 30%, transparent);
    opacity: .4;
    animation: bloom-seq var(--cycle) ease-out infinite;
    animation-fill-mode: both;
}

.p1 {
    animation-delay: 0s;
}

.p2 {
    animation-delay: .35s;
    opacity: .85;
    transform: scale(.92);
}

.p3 {
    animation-delay: .7s;
    opacity: .75;
    transform: scale(.88);
}

.p1::before {
    animation-delay: 0s;
}

.p2::before {
    animation-delay: .35s;
}

.p3::before {
    animation-delay: .7s;
}

@keyframes pulse-seq {
    0% {
        left: -20px;
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    23% {
        opacity: 1;
    }

    25% {
        left: calc(100% + 20px);
        opacity: 0;
    }

    100% {
        left: calc(100% + 20px);
        opacity: 0;
    }
}

@keyframes bloom-seq {
    0% {
        transform: scale(.3);
        opacity: 0;
    }

    6% {
        opacity: .55;
    }

    25% {
        transform: scale(1);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ===============================
       PHASE 2: split (25–50%)
       =============================== */
.split .groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    opacity: 0;
    animation: on2 var(--cycle) linear infinite;
}

.node {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 8px;
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
    opacity: 0;
    transform: translateY(10px) scale(.98);
    animation: node-seq var(--cycle) ease-in-out infinite;
    animation-fill-mode: both;
}

.n1 {
    animation-delay: 0s;
}

.n2 {
    animation-delay: .18s;
}

.n3 {
    animation-delay: .36s;
}

@keyframes node-seq {

    0%,
    24% {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    28% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    48% {
        opacity: 1;
    }

    50% {
        opacity: 0;
        transform: translateY(6px) scale(.99);
    }

    100% {
        opacity: 0;
    }
}

.split .branch {
    margin-top: auto;
    position: relative;
    height: 28px;
    opacity: 0;
    animation: on2 var(--cycle) linear infinite;
}

.split .branch::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 26%;
    height: 2px;
    background: color-mix(in oklab, var(--accent) 60%, transparent);
    opacity: .9;
    transform: translateY(-50%);
    border-radius: 999px;
}

.split .branch::after {
    content: "";
    position: absolute;
    left: 24%;
    right: 0;
    top: 50%;
    height: 2px;
    background: color-mix(in oklab, var(--accent2) 55%, transparent);
    opacity: .55;
    transform: translateY(-50%);
    border-radius: 999px;
    mask: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}

.split .flow {
    position: absolute;
    top: 50%;
    left: -35%;
    width: 35%;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg,
            transparent,
            color-mix(in oklab, var(--accent) 35%, transparent),
            color-mix(in oklab, var(--accent2) 40%, transparent),
            transparent);
    filter: blur(.1px);
    opacity: 0;
    animation: split-flow var(--cycle) ease-in-out infinite;
    animation-fill-mode: both;
}

@keyframes split-flow {

    0%,
    24% {
        opacity: 0;
        left: -35%;
    }

    28% {
        opacity: 1;
    }

    48% {
        opacity: 1;
        left: 105%;
    }

    50% {
        opacity: 0;
        left: 105%;
    }

    100% {
        opacity: 0;
        left: 105%;
    }
}

/* ===============================
       PHASE 3: analyze (50–75%)
       =============================== */
.tracks {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    animation: on3 var(--cycle) linear infinite;
}

.track {
    height: 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel2) 86%, transparent);
    overflow: hidden;
    position: relative;
}

.scan {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    background: linear-gradient(90deg,
            transparent,
            color-mix(in oklab, var(--accent2) 40%, transparent),
            color-mix(in oklab, var(--accent) 35%, transparent),
            transparent);
    opacity: 0;
    animation: scan-seq var(--cycle) ease-in-out infinite;
    animation-fill-mode: both;
}

.t2 .scan {
    animation-delay: .12s;
}

.t3 .scan {
    animation-delay: .24s;
}

@keyframes scan-seq {

    0%,
    49% {
        opacity: 0;
        transform: translateX(0);
    }

    52% {
        opacity: 1;
    }

    74% {
        opacity: 1;
        transform: translateX(360%);
    }

    75% {
        opacity: 0;
        transform: translateX(360%);
    }

    100% {
        opacity: 0;
        transform: translateX(360%);
    }
}

/* ===============================
       PHASE 4: AI (75–100%)
       =============================== */
.ai {
    justify-content: flex-start;
}

.core {
    margin-bottom: 10px;
    margin-top: auto;
    align-self: center;
    /* ✅ центр по горизонтали */
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
    position: relative;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);

    opacity: 0;
    animation: core-seq var(--cycle) ease-in-out infinite;
}

@keyframes core-seq {

    0%,
    74% {
        opacity: 0;
        transform: scale(.98);
        filter: none;
    }

    78% {
        opacity: 1;
        transform: scale(1.06);
    }

    92% {
        opacity: 1;
        transform: scale(1.03);
    }

    100% {
        opacity: 1;
        transform: scale(1.0);
    }
}

.chip {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--text);
    opacity: .9;
}

.ring {
    position: absolute;
    inset: -10px;
    border-radius: 26px;
    border: 1px solid color-mix(in oklab, var(--accent) 38%, transparent);
    opacity: 0;
    transform: scale(.6);
    animation: ring-seq var(--cycle) ease-out infinite;
    animation-fill-mode: both;
}

.r2 {
    inset: -18px;
    border-color: color-mix(in oklab, var(--accent2) 34%, transparent);
    animation-delay: .12s;
}

.r3 {
    inset: -26px;
    border-color: color-mix(in oklab, var(--accent) 24%, transparent);
    animation-delay: .24s;
}

@keyframes ring-seq {

    0%,
    74% {
        opacity: 0;
        transform: scale(.6);
    }

    80% {
        opacity: .55;
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* ===============================
       PHASE 5: Verdict (75–100%)
       =============================== */
.out {
    justify-content: flex-start;
}

.stamp {
    margin-top: auto;
    align-self: center;
    /* ✅ центр по горизонтали */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 12px;
    font-family: var(--mono);
    font-size: 12px;
    background: color-mix(in oklab, var(--panel2) 96%, transparent);
    width: fit-content;

    opacity: 0;
    transform: translateY(10px) scale(.98);
    animation: stamp-seq var(--cycle) ease-in-out infinite;
    animation-fill-mode: both;
}

.stamp .dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--good), var(--warn));
    box-shadow: 0 0 18px color-mix(in oklab, var(--accent2) 35%, transparent);
}

.stamp .txt {
    letter-spacing: .08em;
}

.out .mini {
    margin-top: 10px;
    text-align: center;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    opacity: 0;
    animation: on4 var(--cycle) linear infinite;
}

@keyframes stamp-seq {

    0%,
    82% {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    90% {
        opacity: 1;
        transform: translateY(0) scale(1.02);
    }

    100% {
        opacity: 0;
        transform: translateY(6px) scale(.99);
    }
}

footer {
    margin-top: 22px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 8px;
}

@media (prefers-reduced-motion: reduce) {

    .pipe::before,
    .pulse,
    .pulse::before,
    .node,
    .split .flow,
    .scan,
    .core,
    .ring,
    .stamp,
    .k-dot::before {
        animation: none !important;
    }

    .lane .line,
    .split .groups,
    .split .branch,
    .tracks,
    .out .mini {
        opacity: 1 !important;
    }
}
