/* ═══════════════════════════════════════════════
   JSTD.AI — Stylesheet
   Space theme · Angular · No fuss
══════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #060911;
    --bg-2: #0c1022;
    --bg-card: #0e1529;
    --border: rgba(0, 212, 255, 0.14);
    --border-2: rgba(255, 255, 255, 0.06);
    --cyan: #00d4ff;
    --green: #00ff88;
    --red: #ff3366;
    --orange: #ff6600;
    --purple: #a78bfa;
    --amber: #f59e0b;
    --text: #e2e8f0;
    --text-2: #8899b4;
    --text-3: #4a5978;
    --font: 'Space Grotesk', sans-serif;
    --mono: 'Space Mono', monospace;
    --trans: .22s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}


/* ── SCROLLBAR ───────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}


/* ── CANVAS STARFIELD ────────────────────────── */

#starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}


/* ── CONTAINER ───────────────────────────────── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}


/* ── NAV ─────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 9, 17, 0.82);
    backdrop-filter: blur(14px);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav__logo-text {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--cyan);
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 8px;
    margin-left: auto;
}

.nav__links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 14px;
    transition: color var(--trans);
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0);
    transition: transform var(--trans);
}

.nav__links a:hover {
    color: var(--text);
}

.nav__links a:hover::after {
    transform: scaleX(1);
}

.nav__cta-link {
    color: var(--cyan) !important;
    border: 1px solid rgba(0, 212, 255, 0.4);
    padding: 6px 18px !important;
    transition: background var(--trans), color var(--trans) !important;
}

.nav__cta-link:hover {
    background: var(--cyan) !important;
    color: var(--bg) !important;
}

.nav__cta-link::after {
    display: none !important;
}

.nav__burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-2);
    cursor: pointer;
}


/* ── BUTTONS ─────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    transition: background var(--trans), color var(--trans), border-color var(--trans), box-shadow var(--trans), transform var(--trans);
    position: relative;
    overflow: hidden;
    letter-spacing: .3px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--trans);
}

.btn:hover::before {
    opacity: .06;
}

.btn:active {
    transform: scale(.97);
}

.btn--primary {
    background: transparent;
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: inset 0 0 0 0 var(--cyan);
}

.btn--primary:hover {
    background: var(--cyan);
    color: var(--bg);
    box-shadow: 0 0 28px rgba(0, 212, 255, .3);
}

.btn--ghost {
    border-color: var(--border-2);
    color: var(--text-2);
}

.btn--ghost:hover {
    border-color: var(--border);
    color: var(--text);
}

.btn--lg {
    padding: 15px 32px;
    font-size: 15px;
}


/* ── HERO ─────────────────────────────────────── */

.hero {
    min-height: 100vh;
    padding: 120px 32px 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 212, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 20% 50%, black 40%, transparent 100%);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
    font-size: 12px;
    font-family: var(--mono);
    color: var(--green);
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.hero__headline {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--text);
}


/* ── CRACKED WORD EFFECT ─────────────────────── */

.cracked-word {
    position: relative;
    display: inline-block;
    font-style: italic;
    transform: rotate(-4deg) translateY(4px);
    transform-origin: left bottom;
    color: transparent;
    padding: 2px 8px;
    margin: 0 4px;
}

.cracked-word::before,
.cracked-word::after {
    content: attr(data-text);
    position: absolute;
    left: 8px;
    top: 2px;
    font-style: italic;
}

.cracked-word::before {
    color: var(--red);
    clip-path: polygon(0 0, 100% 0, 103% 46%, -3% 48%);
    text-shadow: 0 0 20px rgba(255, 51, 102, .6);
}

.cracked-word::after {
    color: var(--red);
    clip-path: polygon(-3% 52%, 103% 50%, 100% 100%, 0% 100%);
    transform: translateX(3px);
    text-shadow: 0 0 20px rgba(255, 51, 102, .6);
    filter: blur(.4px);
}

.cracked-word .crack-line {
    position: absolute;
    top: 47%;
    left: -2px;
    right: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--red) 20%, #fff 48%, var(--red) 70%, transparent 100%);
    transform: rotate(-.8deg);
    box-shadow: 0 0 8px var(--red);
}

.cracked-word--lg {
    font-size: 1.3em;
}


/* ── HERO SUB, ACTIONS, STATS ────────────────── */

.hero__sub {
    color: var(--text-2);
    font-size: 16px;
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero__sub strong {
    color: var(--cyan);
    font-weight: 600;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 0;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--bg);
    transition: background var(--trans);
}

.stat-pill:hover {
    background: rgba(0, 212, 255, 0.03);
}

.stat-pill__value {
    display: flex;
    align-items: baseline;
    gap: 3px;
    line-height: 1;
}

.stat-pill__num {
    font-family: var(--mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
}

.stat-pill__unit {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
}

.stat-pill__label {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .8px;
}


/* ── THREAT CARD (hero visual) ───────────────── */

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.threat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 51, 102, .3);
    padding: 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 0 48px rgba(255, 51, 102, .08), 0 0 0 1px rgba(255, 51, 102, .1) inset;
    animation: cardFloat 5s ease-in-out infinite;
}

@keyframes cardFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.threat-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.threat-card__score {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
}

.threat-card__code {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
    background: rgba(0, 0, 0, .3);
    padding: 16px;
    margin-bottom: 16px;
    min-height: 80px;
    border-left: 2px solid rgba(255, 51, 102, .3);
    overflow: hidden;
}

.threat-card__rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-2);
    opacity: 0;
    animation: ruleIn .4s var(--delay, 0s) forwards;
}

@keyframes ruleIn {
    to {
        opacity: 1;
    }
}

.rule-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
}

.rule-item--high .rule-dot {
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
}

.rule-item--med .rule-dot {
    background: var(--orange);
    box-shadow: 0 0 6px var(--orange);
}

.rule-pct {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--red);
}

.threat-card__bar {
    height: 3px;
    background: rgba(255, 51, 102, .15);
    overflow: hidden;
}

.threat-card__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--orange));
    width: 0;
    transition: width 1.4s cubic-bezier(.4, 0, .2, 1) .6s;
    box-shadow: 0 0 8px var(--red);
}

.hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-3);
    grid-column: 1 / -1;
}

.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}


/* ── MARQUEE ─────────────────────────────────── */

.marquee-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 212, 255, .03);
    overflow: hidden;
    padding: 12px 0;
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-track span {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.marquee-track .sep {
    color: var(--cyan);
    opacity: .4;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* ── SECTIONS ────────────────────────────────── */

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section--dark {
    background: var(--bg-2);
    border-top: 1px solid var(--border-2);
    border-bottom: 1px solid var(--border-2);
}

.section__label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section__label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--cyan);
}

.section__title {
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section__desc {
    color: var(--text-2);
    font-size: 16px;
    max-width: 640px;
    margin-bottom: 56px;
    line-height: 1.7;
}


/* ── PIPELINE ────────────────────────────────── */

.pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 56px;
    flex-wrap: wrap;
}

.pipeline__step {
    flex: 1;
    min-width: 160px;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    transition: border-color var(--trans), box-shadow var(--trans);
}

.pipeline__step:hover {
    border-color: rgba(0, 212, 255, .4);
    box-shadow: 0 0 24px rgba(0, 212, 255, .06);
}

.pipeline__step::before {
    content: attr(data-step);
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 1px;
}

.pipeline__icon {
    margin-bottom: 16px;
}

.pipeline__step h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.pipeline__step p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

.pipeline__arrow {
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin-top: 60px;
    color: var(--cyan);
    opacity: .5;
    flex-shrink: 0;
}


/* ── ALGORITHM GRID ──────────────────────────── */

.algo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
}

.algo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    transition: border-color var(--trans);
}

.algo-card:hover {
    border-color: rgba(0, 212, 255, .3);
}

.algo-card--wide {
    grid-column: 1 / -1;
}

.algo-card__label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.algo-card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 12px;
}

.algo-card>p {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 28px;
    line-height: 1.65;
}


/* ── NEURAL NET DIAGRAM ──────────────────────── */

.nn-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(0, 0, 0, .25);
    padding: 24px 16px;
    border: 1px solid var(--border-2);
    overflow-x: auto;
    margin-bottom: 24px;
}

.nn-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.nn-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--cyan);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .8px;
    line-height: 1.4;
}

.nn-sublabel {
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
}

.nn-canvas {
    display: block;
}

.nn-params {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.nn-param {
    padding: 12px 16px;
    background: rgba(0, 0, 0, .2);
    border: 1px solid var(--border-2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nn-param span {
    font-size: 12px;
    color: var(--text-3);
}

.nn-param strong {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text);
}

.nn-param--total {
    border-color: rgba(0, 212, 255, .3);
}

.nn-param--total strong {
    color: var(--cyan);
}


/* ── FEATURE BARS ────────────────────────────── */

.features-visual {
    margin-top: 8px;
}

.feat-bar-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feat-bar {
    display: grid;
    grid-template-columns: 72px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.feat-bar span {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    text-align: right;
}

.feat-bar__fill {
    height: 6px;
    background: rgba(255, 255, 255, .05);
    position: relative;
    overflow: hidden;
}

.feat-bar__fill::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--v);
    background: var(--c);
    box-shadow: 0 0 8px var(--c);
    animation: barIn 1.2s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes barIn {
    from {
        width: 0;
    }
}

.feat-bar em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--c);
}


/* ── ENTROPY VISUAL ──────────────────────────── */

.entropy-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entropy-row {
    display: grid;
    grid-template-columns: 130px 1fr 52px;
    align-items: center;
    gap: 12px;
}

.entropy-code {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entropy-bar {
    height: 6px;
    background: rgba(255, 255, 255, .05);
    overflow: hidden;
}

.entropy-fill {
    height: 100%;
    background: var(--c);
    box-shadow: 0 0 8px var(--c);
    transition: width 1.4s cubic-bezier(.4, 0, .2, 1);
    width: 0;
}

.entropy-val {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}

.entropy-val.safe {
    color: var(--green);
}

.entropy-val.warn {
    color: var(--orange);
}

.entropy-val.crit {
    color: var(--red);
}


/* ── THREAT LEVEL VISUAL ─────────────────────── */

.levels-visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level-row {
    display: grid;
    grid-template-columns: 88px 80px 1fr;
    align-items: center;
    gap: 14px;
}

.level-badge {
    padding: 3px 8px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.level-badge.safe {
    border: 1px solid var(--green);
    color: var(--green);
    background: rgba(0, 255, 136, .07);
}

.level-badge.low {
    border: 1px solid var(--cyan);
    color: var(--cyan);
    background: rgba(0, 212, 255, .07);
}

.level-badge.med {
    border: 1px solid var(--amber);
    color: var(--amber);
    background: rgba(245, 158, 11, .07);
}

.level-badge.high {
    border: 1px solid var(--orange);
    color: var(--orange);
    background: rgba(255, 102, 0, .07);
}

.level-badge.crit {
    border: 1px solid var(--red);
    color: var(--red);
    background: rgba(255, 51, 102, .1);
}

.level-range {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}

.level-desc {
    font-size: 12px;
    color: var(--text-2);
}


/* ── SCORE FORMULA ──────────────────────────── */

.score-formula {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.score-formula__row {
    display: grid;
    grid-template-columns: 72px 1fr 52px;
    align-items: center;
    gap: 10px;
}

.sf-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    text-align: right;
}

.sf-bar {
    height: 6px;
    background: rgba(255, 255, 255, .05);
    overflow: hidden;
}

.sf-fill {
    height: 100%;
    background: var(--c);
    box-shadow: 0 0 8px var(--c);
    width: var(--w);
    animation: barIn 1.2s cubic-bezier(.4, 0, .2, 1) forwards;
}

.sf-weight {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-2);
    text-align: right;
}

.score-formula__divider {
    height: 1px;
    background: var(--border-2);
    margin: 4px 0;
}

.score-formula__result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 212, 255, .05);
    border: 1px solid rgba(0, 212, 255, .15);
}

.score-formula__result>span:first-child {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sf-example {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-2);
}

.score-formula__note {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.5;
    padding-top: 4px;
}


/* ── OBFUSC GRID ─────────────────────────────── */

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

.obfusc-item {
    padding: 20px;
    border: 1px solid var(--border-2);
    background: rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color var(--trans);
}

.obfusc-item:hover {
    border-color: var(--border);
}

.obfusc-icon {
    color: var(--text-3);
}

.obfusc-item strong {
    font-size: 14px;
    color: var(--text);
}

.obfusc-item code {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--amber);
    background: rgba(245, 158, 11, .08);
    padding: 2px 6px;
    white-space: nowrap;
}

.obfusc-item span {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}


/* ── DOCS QUICKSTART ─────────────────────────── */

.docs-quickstart {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.docs-qs-step {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px 20px;
    transition: border-color var(--trans);
}

.docs-qs-step:hover {
    border-color: rgba(0, 212, 255, .35);
}

.docs-qs-num {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 700;
    color: rgba(0, 212, 255, .15);
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -1px;
}

.docs-qs-body strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}

.docs-qs-body p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

.docs-qs-body code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--amber);
    background: rgba(245, 158, 11, .08);
    padding: 1px 5px;
}

.docs-qs-arrow {
    display: flex;
    align-items: center;
    padding: 0 6px;
    color: rgba(0, 212, 255, .35);
    flex-shrink: 0;
}


/* ── DOCS GRID ───────────────────────────────── */

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.docs-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--trans);
}

.docs-card:hover {
    border-color: rgba(0, 212, 255, .3);
}

.docs-card__icon {
    flex-shrink: 0;
}

.docs-card__label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.docs-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
}

.docs-card>p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
}

.docs-card code {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--amber);
    background: rgba(245, 158, 11, .08);
    padding: 1px 5px;
}

.docs-card__hint {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--amber);
    background: rgba(245, 158, 11, .06);
    border: 1px solid rgba(245, 158, 11, .15);
    padding: 8px 12px;
}


/* Threat level mini */

.docs-card__threat-mini {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}

.dtm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}


/* Score mini bars */

.docs-card__scores {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.dcs-row {
    display: grid;
    grid-template-columns: 1fr 80px 36px;
    align-items: center;
    gap: 10px;
}

.dcs-row>span {
    font-size: 11px;
    color: var(--text-3);
}

.dcs-bar {
    height: 5px;
    background: rgba(255, 255, 255, .05);
    overflow: hidden;
}

.dcs-fill {
    height: 100%;
    width: var(--w);
    background: var(--c);
    box-shadow: 0 0 6px var(--c);
    animation: barIn 1.2s ease forwards;
}

.dcs-val {
    font-family: var(--mono);
    font-size: 11px;
    text-align: right;
}


/* Triggered Rules demo */

.docs-card__rules-demo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.drd-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-2);
}

.drd-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
}

.drd-row--crit .drd-dot {
    background: var(--red);
    box-shadow: 0 0 5px var(--red);
}

.drd-row--high .drd-dot {
    background: var(--orange);
    box-shadow: 0 0 5px var(--orange);
}

.drd-row--med .drd-dot {
    background: var(--amber);
    box-shadow: 0 0 5px var(--amber);
}

.drd-row--crit .drd-name {
    color: var(--red);
}

.drd-row--high .drd-name {
    color: var(--orange);
}

.drd-name {
    flex: 1;
    font-size: 12px;
}

.drd-sev {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}


/* Detected Features demo */

.docs-card__features-demo {
    margin-top: auto;
    border: 1px solid var(--border-2);
    overflow: hidden;
}

.dfd-header {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(0, 212, 255, .05);
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.dfd-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 8px;
    padding: 5px 10px;
    font-size: 11px;
    color: var(--text-2);
    border-top: 1px solid var(--border-2);
}

.dfd-row strong {
    font-family: var(--mono);
    color: var(--cyan);
    font-size: 11px;
    text-align: center;
}


/* System Monitor demo */

.docs-card__sysmon {
    margin-top: auto;
    display: flex;
    gap: 16px;
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--border-2);
    padding: 14px;
}

.dsm-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dsm-title {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--cyan);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.dsm-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
}

.dsm-row span {
    color: var(--text-3);
}

.dsm-row strong {
    color: var(--text-2);
    font-weight: 400;
}

.dsm-accent {
    color: var(--green) !important;
}

.dsm-warn {
    color: var(--orange) !important;
}


/* ── FAQ ACCORDION ───────────────────────────── */

.docs-faq {}

.docs-faq__title {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-faq__title::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--cyan);
}

.faq-item {
    border-top: 1px solid var(--border-2);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border-2);
}

.faq-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 0;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color var(--trans);
}

.faq-item__q:hover {
    color: var(--cyan);
}

.faq-item__q svg {
    flex-shrink: 0;
    color: var(--text-3);
    transition: transform var(--trans);
}

.faq-item__q[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-item__q[aria-expanded="true"] {
    color: var(--cyan);
}

.faq-item__q code {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--amber);
    background: rgba(245, 158, 11, .1);
    padding: 1px 6px;
}

.faq-item__a {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1), padding .35s;
    padding: 0 0 0 28px;
}

.faq-item__a code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--amber);
    background: rgba(245, 158, 11, .08);
    padding: 1px 5px;
}

.faq-item--open .faq-item__a {
    max-height: 280px;
    padding-bottom: 18px;
}


/* Responsive docs */

@media (max-width: 1024px) {
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
    .docs-quickstart {
        flex-direction: column;
    }
    .docs-qs-arrow {
        display: none;
    }
}


/* ── SHOWCASE ────────────────────────────────── */

.highlight-slash {
    position: relative;
    display: inline-block;
    color: var(--red);
    font-style: italic;
}

.highlight-slash::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}

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

.showcase-item {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    padding: 24px;
    transition: border-color var(--trans);
}

.showcase-item:hover {
    border-color: rgba(255, 51, 102, .3);
}

.showcase-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-2);
    font-family: var(--mono);
}

.showcase-code {
    background: #060911;
    border: 1px solid var(--border-2);
    padding: 16px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.c-comment {
    color: #4a5978;
}

.c-kw {
    color: #00d4ff;
}

.c-fn {
    color: #a78bfa;
}

.c-str {
    color: #f59e0b;
}

.showcase-item__score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 51, 102, .1);
    position: relative;
    overflow: hidden;
    display: block;
}

.score-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--red), var(--orange));
    width: var(--w);
    animation: barIn 1.2s ease forwards;
}

.showcase-item__score strong {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--red);
}


/* ── TESTIMONIALS ────────────────────────────── */

.testimonials {
    position: relative;
    margin-top: 56px;
    overflow: hidden;
}

.testimonials__track {
    display: flex;
    gap: 24px;
    will-change: transform;
}

.tcard {
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color var(--trans), transform var(--trans);
    transform: translateX(0);
}

.tcard:hover {
    border-color: rgba(0, 212, 255, .3);
}

.tcard__quote {
    margin-bottom: 4px;
}

.tcard__text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    flex: 1;
}

.tcard__author {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-2);
}

.tcard__avatar {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, .1);
    border: 1px solid rgba(0, 212, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    flex-shrink: 0;
}

.tcard__author strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.tcard__author span {
    font-size: 12px;
    color: var(--text-3);
}

.tcard__stars {
    color: var(--amber);
    font-size: 13px;
}

.tcard__tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-2);
    padding: 4px 10px;
    align-self: flex-start;
}


/* Testimonial controls */

.testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.tctl {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--trans), color var(--trans), background var(--trans);
}

.tctl:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 212, 255, .05);
}

.testimonials__dots {
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 6px;
    height: 6px;
    background: var(--border);
    cursor: pointer;
    transition: background var(--trans), width var(--trans);
}

.t-dot.active {
    background: var(--cyan);
    width: 18px;
}


/* ── CTA ─────────────────────────────────────── */

.cta-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 120px 0;
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(0, 212, 255, .06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: .3;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-inner__title {
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.cta-inner>p {
    color: var(--text-2);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-inner__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-inner__specs {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-3);
    font-family: var(--mono);
}


/* ── FOOTER ──────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    position: relative;
    z-index: 1;
    background: var(--bg);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer__brand .nav__logo {
    margin-bottom: 16px;
    display: inline-flex;
}

.footer__brand p {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer__copy {
    font-size: 12px !important;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col-title {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.footer__col a {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
    transition: color var(--trans);
}

.footer__col a:hover {
    color: var(--text);
}

.footer__bottom {
    border-top: 1px solid var(--border-2);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── Easter-egg cat ──────────────────────────── */
.footer-cat {
    position: absolute;
    bottom: 0;
    right: 3rem;
    height: 80px;
    pointer-events: none;
    user-select: none;
    opacity: 0.85;
    transition: opacity .3s;
}
.footer-cat:hover { opacity: 1; pointer-events: auto; }

.footer__bottom>span {
    font-size: 12px;
    color: var(--text-3);
    font-family: var(--mono);
}

.footer__badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    border: 1px solid var(--border-2);
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
}


/* ── INTERSECTION OBSERVER FADE-IN ──────────── */

.section__label,
.section__title,
.section__desc,
.pipeline__step,
.algo-card,
.tcard,
.showcase-item,
.docs-card,
.docs-qs-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* ── RESPONSIVE ──────────────────────────────── */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__sub {
        max-width: 100%;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__stats {
        max-width: 380px;
        margin: 0 auto;
    }
    .hero__visual {
        display: none;
    }
    .hero__scroll-hint {
        grid-column: 1;
    }
    .obfusc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .algo-grid {
        grid-template-columns: 1fr;
    }
    .algo-card--wide {
        grid-column: 1;
    }
    .tcard {
        /* width set by JS */
    }
    .nn-params {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .nav__links {
        display: none;
    }
    .nav__burger {
        display: flex;
        margin-left: auto;
    }
    .hero {
        padding: 100px 20px 60px;
    }
    .hero__headline {
        letter-spacing: -.8px;
    }
    .pipeline {
        flex-direction: column;
    }
    .pipeline__arrow {
        display: none;
    }
    .pipeline__step {
        min-width: 100%;
    }
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .obfusc-grid {
        grid-template-columns: 1fr;
    }
    .tcard {
        /* width set by JS */
    }
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer__cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ═══════════════════════════════════════
   DOWNLOAD PAGE
═══════════════════════════════════════ */

.page-dl {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-dl__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 212, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, .03) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}


/* ── Shield icon ── */

.dl-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 32px;
}

.dl-icon svg {
    width: 96px;
    height: 96px;
}

.dl-icon__ring {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, .15);
    animation: ringPulse 2.4s ease-in-out infinite;
}

.dl-icon__ring:nth-child(2) {
    inset: -28px;
    animation-delay: .6s;
    border-color: rgba(0, 212, 255, .08);
}

.dl-icon__ring:nth-child(3) {
    inset: -42px;
    animation-delay: 1.2s;
    border-color: rgba(0, 212, 255, .04);
}

@keyframes ringPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .4;
        transform: scale(1.05);
    }
}


/* ── Status label ── */

.dl-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cyan);
    opacity: .7;
    margin-bottom: 20px;
}

.dl-label__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: blink 1.2s step-start infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: .2;
    }
}


/* ── Title ── */

.dl-title {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: 16px;
}

.dl-title em {
    font-style: normal;
    color: var(--cyan);
}


/* ── Subtitle ── */

.dl-sub {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dim);
    max-width: 480px;
    margin: 0 auto 40px;
}

.dl-sub strong {
    color: var(--text);
}


/* ── Progress bar ── */

.dl-progress {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 12px;
}

.dl-progress__track {
    height: 3px;
    background: rgba(255, 255, 255, .06);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.dl-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    width: 0%;
    animation: progressFill 3s ease-in-out forwards;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 212, 255, .5);
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    60% {
        width: 72%;
    }
    85% {
        width: 88%;
    }
    100% {
        width: 100%;
    }
}

.dl-progress__label {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 8px;
    opacity: .6;
}


/* ── Countdown ── */

.dl-countdown {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 40px;
}

#cdNum {
    color: var(--cyan);
    font-weight: 700;
}


/* ── Manual link ── */

.dl-manual {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 48px;
}

.dl-manual a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dl-manual a:hover {
    color: var(--text);
}


/* ── Specs bar ── */

.dl-specs {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.dl-specs .spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--text-dim);
    opacity: .55;
}


/* ── Terminal block ── */

.dl-terminal {
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 36px;
    text-align: left;
}

.dl-terminal__bar {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.dl-terminal__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.dl-terminal__body {
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.9;
    color: var(--text-dim);
}

.t-ok {
    color: #00ff88;
}

.t-dim {
    color: rgba(255, 255, 255, .3);
}

.t-cmd {
    color: var(--text);
}

.t-cur {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: var(--cyan);
    vertical-align: text-bottom;
    animation: blink 1s step-start infinite;
}