/* =========================================================
   HackVault — public theme
   Green / black security research aesthetic
   ========================================================= */

:root {
    color-scheme: dark;
    --bg: #040705;
    --bg-deep: #020403;
    --bg-raised: #070d09;
    --surface: #09110c;
    --surface-2: #0c1610;
    --surface-3: #101e15;
    --line: #172c20;
    --line-soft: #122018;
    --line-strong: #28503a;
    --text: #e4efe8;
    --text-soft: #c4d5ca;
    --muted: #89a294;
    --muted-2: #5e7668;
    --green: #39ff88;
    --green-bright: #7dffb5;
    --green-deep: #17b65c;
    --green-dark: #0b5b30;
    --green-glow: rgba(57, 255, 136, 0.16);
    --green-glow-soft: rgba(57, 255, 136, 0.07);
    --amber: #ffc861;
    --red: #ff6d6d;
    --blue: #67c9ff;
    --purple: #b79cff;
    --font-display: "Chakra Petch", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
    --radius: 3px;
    --radius-lg: 6px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --container: 1240px;
    --header-h: 110px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1100px 700px at 82% -8%, rgba(57, 255, 136, 0.075), transparent 62%),
        radial-gradient(850px 600px at -10% 35%, rgba(57, 255, 136, 0.035), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(57, 255, 136, 0.033) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 136, 0.033) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
    pointer-events: none;
}

::selection {
    background: rgba(57, 255, 136, 0.28);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #050806;
}
::-webkit-scrollbar-thumb {
    background: #1d3a29;
    border: 2px solid #050806;
}
::-webkit-scrollbar-thumb:hover {
    background: #2b5b40;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

p {
    color: var(--muted);
}

::placeholder {
    color: var(--muted-2);
    opacity: 1;
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 9999;
    background: var(--green);
    color: #041008;
    padding: 12px 18px;
    font-weight: 700;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 16px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
}

.text-accent {
    color: var(--green);
}

.muted {
    color: var(--muted);
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.12), 0 0 12px rgba(57, 255, 136, 0.7);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.matrix-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

.site-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.08) 3px 4px);
    opacity: 0.35;
}

.site-shell {
    position: relative;
    z-index: 1;
}

/* ---------- Buttons ---------- */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    --btn-border: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid var(--btn-border);
    border-radius: var(--radius);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.22s ease;
}

.btn svg {
    flex: 0 0 auto;
}

.btn--primary {
    --btn-bg: var(--green);
    --btn-fg: #031009;
    --btn-border: var(--green);
    box-shadow: 0 0 0 1px rgba(57, 255, 136, 0.15), 0 8px 28px rgba(57, 255, 136, 0.12);
}

.btn--primary:hover {
    --btn-bg: var(--green-bright);
    --btn-border: var(--green-bright);
    box-shadow: 0 0 28px rgba(57, 255, 136, 0.3);
    transform: translateY(-1px);
}

.btn--ghost {
    --btn-bg: rgba(57, 255, 136, 0.025);
    --btn-fg: var(--text-soft);
    --btn-border: var(--line);
}

.btn--ghost:hover {
    --btn-fg: var(--green);
    --btn-border: var(--line-strong);
    --btn-bg: rgba(57, 255, 136, 0.06);
}

.btn--outline {
    --btn-fg: var(--green);
    --btn-border: rgba(57, 255, 136, 0.35);
}

.btn--outline:hover {
    --btn-bg: rgba(57, 255, 136, 0.08);
    --btn-border: var(--green);
}

.btn--lg {
    min-height: 50px;
    padding: 13px 26px;
    font-size: 14px;
}

.btn--sm {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 11px;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--line);
    background: var(--surface-2);
    color: var(--muted);
}

.btn__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.btn:hover .btn__shine {
    transform: translateX(110%);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--green);
    text-transform: uppercase;
    white-space: nowrap;
}

.text-link:hover {
    color: var(--green-bright);
    gap: 12px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(4, 7, 5, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
}

.status-bar {
    border-bottom: 1px solid rgba(23, 44, 32, 0.6);
    background: rgba(2, 4, 3, 0.6);
}

.status-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 31px;
    font-size: 10px;
}

.status-bar__group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.status-bar__links a {
    color: var(--muted);
    display: inline-flex;
}
.status-bar__links a:hover {
    color: var(--green);
}

.status-bar__divider {
    width: 1px;
    height: 10px;
    background: var(--line-strong);
}

.status-bar__muted {
    color: var(--muted-2);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement {
    background: linear-gradient(90deg, rgba(57, 255, 136, 0.14), rgba(57, 255, 136, 0.03));
    border-bottom: 1px solid rgba(57, 255, 136, 0.16);
    font-size: 12px;
    color: var(--text-soft);
}
.announcement__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
}
.announcement__tag {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #031009;
    background: var(--green);
    padding: 2px 6px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.header-main__inner {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand__logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(57, 255, 136, 0.3);
    background: rgba(57, 255, 136, 0.04);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.brand__logo::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(57, 255, 136, 0.08);
    pointer-events: none;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand__dot {
    color: var(--green);
}

.brand__tag {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 12px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background: none;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--green);
    background: rgba(57, 255, 136, 0.04);
    border-color: rgba(57, 255, 136, 0.12);
}

.nav-link--button {
    font-size: 12px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 310px;
    padding: 9px;
    background: rgba(6, 12, 8, 0.98);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow), 0 0 40px rgba(57, 255, 136, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 20;
}

.nav-dropdown.is-open .nav-dropdown__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__head {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 5px;
    font-size: 9px;
    color: var(--muted-2);
    font-family: var(--font-mono);
}

.nav-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 2px;
    color: var(--text-soft);
    font-size: 12px;
}
.nav-dropdown__item:hover {
    background: rgba(57, 255, 136, 0.07);
    color: var(--green);
}
.nav-dropdown__icon {
    color: var(--green);
    display: inline-flex;
}
.nav-dropdown__label {
    flex: 1;
}
.nav-dropdown__count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted-2);
}
.nav-dropdown__all {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding: 11px 8px 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--green);
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 206px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid var(--line);
    background: rgba(10, 17, 12, 0.8);
    color: var(--muted-2);
    transition: all 0.2s;
}
.header-search:focus-within {
    border-color: rgba(57, 255, 136, 0.4);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.05);
}
.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: none;
    font-size: 11px;
    color: var(--text);
}
.header-search kbd {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted-2);
    border: 1px solid var(--line);
    padding: 1px 4px;
    white-space: nowrap;
}

.header-admin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(57, 255, 136, 0.22);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(57, 255, 136, 0.03);
}
.header-admin:hover {
    background: var(--green);
    color: #031009;
    border-color: var(--green);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: none;
    padding: 0 9px;
}
.mobile-toggle span {
    display: block;
    height: 1px;
    width: 100%;
    background: var(--text-soft);
    transition: all 0.2s;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #050a07;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}
body.nav-open { overflow: hidden; }
.mobile-nav__inner {
    padding: 16px 24px 24px;
}
.mobile-search {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0 12px;
    height: 42px;
    margin-bottom: 12px;
    color: var(--muted);
}
.mobile-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: none;
    font-size: 13px;
}
.mobile-nav__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
}
.mobile-nav__title {
    margin: 18px 0 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--muted-2);
    text-transform: uppercase;
}
.mobile-nav__categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.mobile-nav__categories a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    font-size: 11px;
    color: var(--text-soft);
}
.mobile-nav__categories a:hover {
    border-color: var(--line-strong);
    color: var(--green);
}
.mobile-nav__footer {
    display: flex;
    gap: 18px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.mobile-nav__footer a {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    font-size: 11px;
    color: var(--green);
    font-family: var(--font-mono);
}

/* ---------- Flash ---------- */

.flash-stack {
    position: fixed;
    z-index: 200;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 8px;
    width: min(390px, calc(100vw - 40px));
}
.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    background: rgba(8, 16, 11, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    font-size: 12px;
    color: var(--text-soft);
    animation: flash-in 0.35s ease both;
}
.flash--success {
    border-color: rgba(57, 255, 136, 0.4);
}
.flash--success .flash__icon { color: var(--green); }
.flash--error {
    border-color: rgba(255, 109, 109, 0.4);
}
.flash--error .flash__icon { color: var(--red); }
.flash__icon {
    flex: 0 0 auto;
    margin-top: 1px;
}
.flash__close {
    margin-left: auto;
    border: 0;
    background: none;
    color: var(--muted);
    padding: 0 2px;
    display: inline-flex;
}
.flash__close:hover { color: var(--text); }

@keyframes flash-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 74px;
    border-bottom: 1px solid var(--line-soft);
}

.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(57, 255, 136, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 136, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse at 55% 40%, #000 5%, transparent 72%);
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.hero__glow--1 {
    width: 470px;
    height: 470px;
    right: 2%;
    top: -140px;
    background: rgba(57, 255, 136, 0.1);
}
.hero__glow--2 {
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: -140px;
    background: rgba(57, 255, 136, 0.05);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    gap: 60px;
    align-items: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border: 1px solid rgba(57, 255, 136, 0.2);
    background: rgba(57, 255, 136, 0.035);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero__title {
    margin: 0 0 24px;
    font-size: clamp(38px, 4.5vw, 66px);
    letter-spacing: -0.035em;
    line-height: 0.98;
    color: var(--text);
    text-wrap: balance;
}

.hero__title-accent {
    display: block;
    color: var(--green);
    text-shadow: 0 0 38px rgba(57, 255, 136, 0.24);
}

.hero__subtitle {
    max-width: 580px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 34px;
}

.hero__proof {
    display: flex;
    align-items: center;
    gap: 20px;
}
.hero__proof-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.hero__proof-item strong {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text);
    line-height: 1.1;
}
.hero__proof-item span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.05em;
    color: var(--muted-2);
    text-transform: uppercase;
}
.hero__proof-sep {
    width: 1px;
    height: 30px;
    background: var(--line);
}

.hero__visual {
    position: relative;
    min-width: 0;
}

.console {
    position: relative;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(180deg, rgba(15, 27, 19, 0.92), rgba(5, 10, 7, 0.97));
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(57, 255, 136, 0.06);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.console::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(57, 255, 136, 0.05), transparent 30%);
}
.console__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
}
.console__dots {
    display: flex;
    gap: 5px;
}
.console__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1e3527;
}
.console__dots span:first-child { background: #ff6d6d; opacity: 0.7; }
.console__dots span:nth-child(2) { background: var(--amber); opacity: 0.7; }
.console__dots span:nth-child(3) { background: var(--green); opacity: 0.7; }
.console__title {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted-2);
    letter-spacing: 0.03em;
}
.console__status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--green);
    letter-spacing: 0.1em;
}
.console__body {
    padding: 20px 20px 17px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.85;
    color: var(--text-soft);
    min-height: 388px;
}
.console__line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.console__line--muted,
.console__line--dim {
    color: var(--muted-2);
    font-size: 10px;
}
.console__spacer { height: 13px; }
.console__prompt { color: var(--green); }
.console__path { color: var(--blue); }
.console__cmd { color: #e8fff0; }
.console__caret {
    display: inline-block;
    width: 7px;
    height: 12px;
    margin-left: 3px;
    background: var(--green);
    vertical-align: -2px;
    animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.console__output {
    padding: 6px 0 7px 12px;
    border-left: 1px solid rgba(57, 255, 136, 0.16);
    margin: 6px 0 8px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.95;
}
.console__output > div {
    animation: line-reveal 0.4s ease both;
}
.console__output > div:nth-child(2) { animation-delay: 0.15s; }
.console__output > div:nth-child(3) { animation-delay: 0.3s; }
.console__output > div:nth-child(4) { animation-delay: 0.45s; }
.console__output > div:nth-child(5) { animation-delay: 0.6s; }
@keyframes line-reveal {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.c-green { color: var(--green); }
.c-amber { color: var(--amber); }
.dim { color: var(--muted-2); }
.console__progress {
    margin: 10px 0 12px;
    display: grid;
    gap: 5px;
}
.console__progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: 0.08em;
    color: var(--muted-2);
}
.progress {
    height: 2px;
    background: #12231a;
    overflow: hidden;
}
.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green-deep), var(--green));
    box-shadow: 0 0 10px var(--green-glow);
}
.console__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    color: var(--muted-2);
}
.console__live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--green);
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(6, 13, 8, 0.95);
    border: 1px solid var(--line-strong);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted);
    backdrop-filter: blur(8px);
}
.float-chip strong { color: var(--text); }
.float-chip__icon { color: var(--green); }
.float-chip--top {
    top: -18px;
    right: 18px;
    animation: float 6s ease-in-out infinite;
}
.float-chip--bottom {
    bottom: -16px;
    left: -18px;
    animation: float 7s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ---------- Stats strip ---------- */

.stats-strip {
    border-bottom: 1px solid var(--line-soft);
    background: rgba(6, 11, 8, 0.8);
}
.stats-strip__inner {
    display: flex;
    align-items: center;
    min-height: 82px;
}
.stats-strip__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-right: 28px;
    margin-right: 28px;
    border-right: 1px solid var(--line);
}
.stats-strip__icon {
    color: var(--green);
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--line);
    background: rgba(57, 255, 136, 0.03);
}
.stats-strip__item div {
    display: flex;
    flex-direction: column;
}
.stats-strip__item strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}
.stats-strip__item span:not(.stats-strip__icon) {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    color: var(--muted-2);
    text-transform: uppercase;
}
.stats-strip__ticker {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    max-width: 380px;
}
.stats-strip__ticker-text {
    font-size: 10px;
    color: var(--muted-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Sections ---------- */

.section {
    position: relative;
    padding: 96px 0;
}
.section--categories { padding-bottom: 84px; }
.section--featured {
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(9, 17, 12, 0.35), transparent 60%);
}
.section--split { padding-top: 84px; }
.section--protocol {
    border-top: 1px solid var(--line-soft);
    background: rgba(5, 10, 7, 0.55);
}
.section--cta { padding-top: 40px; padding-bottom: 100px; }
.section--related {
    border-top: 1px solid var(--line-soft);
    padding-top: 72px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}
.section-head--compact { margin-bottom: 20px; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
}
.eyebrow span {
    color: var(--green);
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 45px);
    letter-spacing: -0.03em;
    color: var(--text);
}

.section-sub {
    margin: 10px 0 0;
    max-width: 550px;
    font-size: 13px;
}

/* ---------- Categories ---------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 215px;
    padding: 22px;
    border: 1px solid var(--line);
    background:
        linear-gradient(150deg, rgba(57, 255, 136, 0.035), transparent 45%),
        var(--surface);
    overflow: hidden;
    transition: all 0.25s ease;
}
.category-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 0;
    background: var(--green);
    transition: height 0.3s ease;
}
.category-card:hover {
    border-color: var(--line-strong);
    background:
        linear-gradient(150deg, rgba(57, 255, 136, 0.08), transparent 55%),
        var(--surface-2);
    transform: translateY(-3px);
}
.category-card:hover::before { height: 100%; }
.category-card__index {
    position: absolute;
    top: 17px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted-2);
}
.category-card__icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 22px;
    border: 1px solid rgba(57, 255, 136, 0.18);
    color: var(--green);
    background: rgba(57, 255, 136, 0.04);
}
.category-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    letter-spacing: -0.015em;
}
.category-card p {
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
}
.category-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--muted-2);
    text-transform: uppercase;
}
.category-card:hover .category-card__footer {
    color: var(--green);
}

/* ---------- Tool cards ---------- */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tool-card {
    position: relative;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.tool-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid transparent;
    transition: border-color 0.25s;
}
.tool-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 35px rgba(57, 255, 136, 0.045);
}
.tool-card:hover::after {
    border-color: rgba(57, 255, 136, 0.14);
}
.tool-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tool-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #061009;
    border-bottom: 1px solid var(--line);
}
.tool-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: saturate(0.9) contrast(1.03);
}
.tool-card:hover .tool-card__media img {
    transform: scale(1.025);
    filter: saturate(1.05) contrast(1.05);
}
.tool-card__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(57, 255, 136, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 136, 0.045) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: linear-gradient(to top, #000, transparent 65%);
}
.tool-card__scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -8%;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(57, 255, 136, 0.09), transparent);
    opacity: 0;
    pointer-events: none;
}
.tool-card:hover .tool-card__scan {
    opacity: 1;
    animation: card-scan 2.4s linear infinite;
}
@keyframes card-scan {
    from { top: -15%; }
    to { top: 115%; }
}
.tool-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    align-items: flex-start;
    flex-wrap: wrap;
    pointer-events: none;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.badge--featured {
    background: rgba(4, 10, 6, 0.85);
    color: var(--amber);
    border-color: rgba(255, 200, 97, 0.3);
    backdrop-filter: blur(6px);
}
.badge--file {
    margin-left: auto;
    background: rgba(4, 10, 6, 0.85);
    color: var(--green);
    border-color: rgba(57, 255, 136, 0.25);
    backdrop-filter: blur(6px);
}
.badge--category {
    background: rgba(57, 255, 136, 0.06);
    color: var(--green);
    border-color: rgba(57, 255, 136, 0.2);
}
.tool-card__corner {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    background: rgba(4, 10, 6, 0.88);
    border: 1px solid rgba(57, 255, 136, 0.25);
    color: var(--green);
    opacity: 0;
    transform: translate(-5px, 5px);
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}
.tool-card:hover .tool-card__corner {
    opacity: 1;
    transform: translate(0, 0);
}
.tool-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 17px 15px;
}
.tool-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.tool-card__category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--green);
}
.tool-card__version {
    color: var(--muted-2);
}
.tool-card__title {
    margin: 0 0 7px;
    font-size: 19px;
    line-height: 1.18;
    letter-spacing: -0.015em;
}
.tool-card__desc {
    margin: 0 0 16px;
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tool-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
    letter-spacing: 0.04em;
}
.tool-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tool-card__source {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 7px;
    letter-spacing: 0.07em;
}

/* ---------- Latest / popular split ---------- */

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
    gap: 28px;
    align-items: start;
}

.latest-list {
    border-top: 1px solid var(--line);
}
.latest-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line-soft);
    transition: all 0.2s;
}
.latest-item:hover {
    padding-left: 8px;
    background: rgba(57, 255, 136, 0.025);
}
.latest-item__thumb {
    flex: 0 0 104px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.latest-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-item__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.latest-item__meta {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.latest-item__body strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.latest-item__desc {
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.latest-item__arrow {
    margin-left: auto;
    color: var(--muted-2);
    flex: 0 0 auto;
}
.latest-item:hover .latest-item__arrow { color: var(--green); }

.popular-block {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(500px 250px at 100% 0%, rgba(57, 255, 136, 0.08), transparent 65%),
        var(--surface);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.popular-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.popular-block__signal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--green);
}
.popular-block__title {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}
.popular-list {
    display: flex;
    flex-direction: column;
}
.popular-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
}
.popular-item:hover { color: var(--green); }
.popular-item__rank {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--green);
    opacity: 0.55;
    flex: 0 0 20px;
}
.popular-item__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
.popular-item__body strong {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-item__body span {
    font-family: var(--font-mono);
    font-size: 7.5px;
    color: var(--muted-2);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.popular-item > svg {
    color: var(--muted-2);
    flex: 0 0 auto;
}
.popular-item:hover > svg { color: var(--green); }
.popular-block__footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ---------- Protocol ---------- */

.protocol {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 60px;
    align-items: start;
}
.protocol__intro p {
    margin: 18px 0 24px;
    font-size: 13px;
    line-height: 1.8;
    max-width: 420px;
}
.protocol__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.feature-card {
    position: relative;
    padding: 24px 22px;
    background: var(--surface);
    min-height: 190px;
    transition: background 0.25s;
}
.feature-card:hover { background: var(--surface-2); }
.feature-card__number {
    position: absolute;
    top: 16px;
    right: 17px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted-2);
}
.feature-card__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(57, 255, 136, 0.18);
    color: var(--green);
    margin-bottom: 24px;
}
.feature-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}
.feature-card p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.65;
}

/* ---------- CTA ---------- */

.cta-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 40px;
    padding: 48px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(600px 300px at 20% 100%, rgba(57, 255, 136, 0.1), transparent 65%),
        linear-gradient(135deg, var(--surface-2), var(--bg-raised));
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.cta-panel__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(57, 255, 136, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 136, 0.04) 1px, transparent 1px);
    background-size: 31px 31px;
    mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.cta-panel__content {
    position: relative;
}
.cta-panel__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--green);
    margin-bottom: 18px;
}
.cta-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.6vw, 46px);
    letter-spacing: -0.035em;
}
.cta-panel p {
    margin-bottom: 24px;
    max-width: 530px;
    font-size: 13px;
}
.cta-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cta-panel__terminal {
    position: relative;
    align-self: center;
    border: 1px solid var(--line-strong);
    background: #040a06;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}
.cta-terminal__bar {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 11px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}
.cta-terminal__bar span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line-strong);
}
.cta-terminal__bar em {
    margin-left: 7px;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 8px;
    color: var(--muted-2);
}
.cta-terminal__body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    line-height: 2;
    color: var(--text-soft);
}
.cta-terminal__cursor {
    margin-top: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    margin-top: 20px;
    padding: 64px 0 0;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(700px 300px at 15% 0%, rgba(57, 255, 136, 0.055), transparent 70%),
        #030604;
    overflow: hidden;
}
.footer-orbit {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -300px;
    top: -420px;
    border: 1px solid rgba(57, 255, 136, 0.07);
    border-radius: 50%;
    pointer-events: none;
}
.footer-orbit::after {
    content: "";
    position: absolute;
    inset: 60px;
    border: 1px solid rgba(57, 255, 136, 0.045);
    border-radius: 50%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.7fr);
    gap: 40px;
    padding-bottom: 46px;
}
.brand--footer { margin-bottom: 18px; }
.footer-brand__text {
    max-width: 335px;
    font-size: 11.5px;
    line-height: 1.8;
    color: var(--muted);
}
.footer-social {
    display: flex;
    gap: 7px;
    margin: 20px 0;
}
.footer-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.01);
}
.footer-social a:hover {
    color: var(--green);
    border-color: var(--line-strong);
    background: rgba(57, 255, 136, 0.05);
}
.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted);
    text-transform: uppercase;
}
.footer-status__divider {
    width: 1px;
    height: 9px;
    background: var(--line);
}
.footer-title {
    margin: 4px 0 17px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-soft);
    text-transform: uppercase;
}
.footer-title span {
    color: var(--green);
    margin-right: 6px;
}
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.footer-column > a {
    font-size: 11px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-column > a:hover { color: var(--green); }
.footer-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
}
.footer-column > a {
    width: 100%;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 66px;
    border-top: 1px solid var(--line-soft);
    font-size: 10px;
    color: var(--muted-2);
}
.footer-bottom p { margin: 0; color: var(--muted-2); }
.footer-bottom strong { color: var(--text-soft); }
.footer-bottom__warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted) !important;
}
.footer-bottom__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 8px;
}
.footer-bottom__meta a:hover { color: var(--green); }
.footer-bottom__sep { color: var(--line-strong); }

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    background: rgba(5, 11, 7, 0.9);
    color: var(--green);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s;
    backdrop-filter: blur(8px);
}
.back-to-top svg { transform: rotate(180deg); }
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { background: var(--green); color: #031009; }

/* ---------- Archive ---------- */

.archive-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 0 42px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(600px 300px at 85% 10%, rgba(57, 255, 136, 0.08), transparent 70%),
        transparent;
}
.archive-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(57, 255, 136, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 136, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.archive-hero .container { position: relative; }
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 27px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted-2);
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span[aria-current] { color: var(--muted); }
.breadcrumb > span { color: var(--line-strong); }
.archive-hero__grid-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}
.archive-hero__title {
    margin: 0 0 12px;
    font-size: clamp(36px, 4.4vw, 54px);
    letter-spacing: -0.035em;
}
.archive-hero__desc {
    max-width: 620px;
    margin: 0;
    font-size: 13px;
}
.archive-hero__stats {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 30px;
    border-left: 1px solid var(--line);
}
.archive-hero__stats strong {
    font-family: var(--font-display);
    font-size: 44px;
    line-height: 1;
    color: var(--green);
}
.archive-hero__stats > span:last-child {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
    text-transform: uppercase;
    margin-top: 4px;
}
.archive-search {
    display: flex;
    gap: 8px;
    margin-top: 32px;
    max-width: 800px;
}
.archive-search__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    background: rgba(8, 15, 10, 0.9);
    color: var(--muted);
}
.archive-search__field:focus-within {
    border-color: rgba(57, 255, 136, 0.55);
    box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.06);
}
.archive-search__field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: none;
    font-size: 13px;
}

.section--archive { padding-top: 38px; }
.archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.03em;
    color: var(--muted);
    white-space: nowrap;
    background: rgba(9, 17, 12, 0.5);
}
.filter-tab span {
    font-size: 7px;
    color: var(--muted-2);
}
.filter-tab:hover {
    color: var(--text);
    border-color: var(--line-strong);
}
.filter-tab.is-active {
    color: #041008;
    background: var(--green);
    border-color: var(--green);
}
.filter-tab.is-active span { color: rgba(4, 16, 8, 0.6); }
.archive-toolbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}
.archive-count {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted-2);
    white-space: nowrap;
}
.archive-count strong { color: var(--text); }
.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
    text-transform: uppercase;
}
.select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 120px;
    height: 34px;
    padding: 0 29px 0 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-soft);
    outline: 0;
    cursor: pointer;
}
.select-wrap select:focus { border-color: var(--green); }
.select-wrap > svg {
    position: absolute;
    right: 9px;
    pointer-events: none;
    color: var(--muted-2);
}
.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    background: rgba(9, 17, 12, 0.45);
}
.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    background: rgba(57, 255, 136, 0.06);
    border: 1px solid rgba(57, 255, 136, 0.16);
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--green);
}
.active-filter:hover { border-color: var(--green); }
.active-filters__clear {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.active-filters__clear:hover { color: var(--red); }

.archive-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 38px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: rgba(9, 17, 12, 0.45);
}
.archive-note__icon { color: var(--green); flex: 0 0 auto; margin-top: 1px; }
.archive-note p { margin: 0; font-size: 11px; line-height: 1.7; }
.archive-note strong { color: var(--text-soft); }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 36px;
}
.pagination__nav,
.pagination__page {
    display: grid;
    place-items: center;
    min-width: 35px;
    height: 35px;
    padding: 0 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
}
.pagination__nav:hover,
.pagination__page:hover { border-color: var(--line-strong); color: var(--green); }
.pagination__page.is-active {
    background: var(--green);
    border-color: var(--green);
    color: #031009;
    font-weight: 700;
}
.pagination__nav.is-disabled { opacity: 0.3; }
.pagination__dots { padding: 0 5px; color: var(--muted-2); }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--line-strong);
    background: rgba(9, 17, 12, 0.35);
    color: var(--muted);
}
.empty-state h2,
.empty-state h3 { margin: 14px 0 7px; color: var(--text); font-size: 22px; }
.empty-state p { margin: 0 0 17px; font-size: 12px; max-width: 420px; }
.empty-state--large { padding: 80px 24px; }
.empty-state__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--line-strong);
    color: var(--green);
    background: rgba(57, 255, 136, 0.03);
}

/* ---------- Tool detail ---------- */

.tool-hero {
    position: relative;
    padding: 30px 0 90px;
    overflow: hidden;
}
.tool-hero__ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    opacity: 0.2;
}
.tool-hero__ambient img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(90px) saturate(0.7);
    transform: scale(1.15);
}
.tool-hero__ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 7, 5, 0.4), var(--bg) 78%);
}
.tool-header {
    padding: 10px 0 38px;
    max-width: 900px;
}
.tool-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}
.tool-header__id {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted-2);
    letter-spacing: 0.08em;
}
.tool-header__title {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-wrap: balance;
}
.tool-header__desc {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}
.tool-header__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted-2);
}
.tool-header__stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tool-header__stats strong { color: var(--text-soft); font-weight: 500; }

.tool-mobile-cta {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.tool-mobile-cta .btn { flex: 0 0 auto; }
.tool-mobile-cta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
}

.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    align-items: start;
}
.tool-primary { min-width: 0; }

.tool-cover {
    border: 1px solid var(--line-strong);
    background: #040a06;
    box-shadow: var(--shadow);
}
.tool-cover__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 35px;
    padding: 0 13px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
}
.tool-cover__dots { display: flex; gap: 4px; }
.tool-cover__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line-strong);
}
.tool-cover__dots i:first-child { background: var(--red); opacity: 0.65; }
.tool-cover__dots i:nth-child(2) { background: var(--amber); opacity: 0.65; }
.tool-cover__dots i:nth-child(3) { background: var(--green); opacity: 0.65; }
.tool-cover__bar .mono-label { margin-left: auto; font-size: 7px; }
.tool-cover__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}
.tool-cover__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tool-cover__scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.12) 2px 3px);
    pointer-events: none;
}
.tool-cover__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
    padding: 0 13px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
}
.tool-cover__footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tool-cover__footer svg { color: var(--green); }

.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0 10px;
}
.tag-row .mono-label { margin-right: 5px; }
.tag {
    padding: 4px 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted);
}
.tag:hover {
    color: var(--green);
    border-color: rgba(57, 255, 136, 0.3);
    background: rgba(57, 255, 136, 0.05);
}

.tool-content {
    margin-top: 30px;
    padding: 30px;
    border: 1px solid var(--line);
    background: rgba(9, 17, 12, 0.55);
}
.content-head {
    display: flex;
    align-items: baseline;
    gap: 11px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.content-head--spaced { margin-top: 38px; }
.content-head__index {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--green);
}
.content-head h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -0.02em;
}
.prose {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.9;
}
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { color: var(--muted); margin: 0 0 16px; }
.prose h2,
.prose h3,
.prose h4 {
    margin: 30px 0 11px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.prose h2 { font-size: 25px; }
.prose h3 { font-size: 19px; }
.prose h4 { font-size: 15px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul,
.prose ol {
    margin: 0 0 18px;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}
.prose ul li,
.prose ol li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
}
.prose ul li::before {
    content: "▸";
    position: absolute;
    left: 2px;
    top: 0;
    color: var(--green);
    font-size: 10px;
}
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; }
.prose ol li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--green);
}
.prose a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: rgba(57, 255, 136, 0.3);
    text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--green); }
.prose code {
    padding: 2px 5px;
    border: 1px solid var(--line);
    background: #050b07;
    color: var(--green-bright);
    font-family: var(--font-mono);
    font-size: 0.88em;
}
.prose pre {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    background: #030805;
    overflow-x: auto;
    position: relative;
}
.prose pre::before {
    content: "TERMINAL";
    position: absolute;
    top: 7px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
    color: var(--muted-2);
}
.prose pre code {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.8;
}
.prose blockquote {
    margin: 0 0 20px;
    padding: 13px 17px;
    border-left: 2px solid var(--green);
    background: rgba(57, 255, 136, 0.045);
}
.prose blockquote p { margin: 0; color: var(--text-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

.download-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 20px;
}
.download-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 14px;
    background: var(--surface);
}
.download-info__label {
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.06em;
    color: var(--muted-2);
    text-transform: uppercase;
}
.download-info strong {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-soft);
    font-weight: 500;
}
.source-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 18px;
}
.source-link svg { color: var(--green); }
.source-link a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.warning-box {
    display: flex;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 200, 97, 0.2);
    background: rgba(255, 200, 97, 0.035);
}
.warning-box__icon { color: var(--amber); flex: 0 0 auto; margin-top: 1px; }
.warning-box strong {
    display: block;
    margin-bottom: 3px;
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--amber);
}
.warning-box p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); }

.tool-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
}
.download-card {
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(280px 140px at 100% 0%, rgba(57, 255, 136, 0.08), transparent 70%),
        var(--surface);
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.download-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.download-card__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--green);
}
.download-card__file {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(3, 7, 5, 0.5);
    margin-bottom: 13px;
}
.download-card__icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(57, 255, 136, 0.2);
    color: var(--green);
    flex: 0 0 auto;
}
.download-card__file div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.download-card__file strong {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.download-card__file span {
    font-family: var(--font-mono);
    font-size: 7.5px;
    color: var(--muted-2);
}
.btn--download {
    justify-content: flex-start;
    min-height: 49px;
    margin-bottom: 7px;
}
.btn--download span:not(.btn__shine) { flex: 1; text-align: left; }
.download-card > .btn--ghost { margin-top: 4px; font-size: 10px; }
.download-card__note {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 7px 0;
    font-size: 10px;
    color: var(--muted);
}
.download-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 14px 0;
}
.download-card__meta > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: var(--surface-2);
    font-family: var(--font-mono);
    font-size: 8px;
}
.download-card__meta span { color: var(--muted-2); }
.download-card__meta strong { color: var(--text-soft); font-weight: 500; }
.download-card__safety {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.download-card__safety svg { color: var(--green); flex: 0 0 auto; margin-top: 1px; }
.download-card__safety p { margin: 0; font-size: 9px; line-height: 1.65; color: var(--muted-2); }

.side-card {
    padding: 15px 16px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.side-card__title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
}
.side-card__title svg { color: var(--green); }
.share-row { display: flex; gap: 6px; }
.share-btn {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
}
.share-btn:hover { color: var(--green); border-color: var(--line-strong); }
.side-card__hint { margin: 10px 0 0; font-size: 9px; color: var(--muted-2); }
.status-list { display: grid; gap: 7px; }
.status-list > div {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
}
.status-ok { color: var(--green) !important; }
.status-warn { color: var(--amber) !important; }

/* ---------- Static / error pages ---------- */

.static-hero {
    position: relative;
    padding: 34px 0 46px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.static-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(57, 255, 136, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 136, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, #000, transparent);
}
.static-hero .container { position: relative; }
.static-hero__title {
    margin: 0 0 9px;
    font-size: clamp(36px, 4.5vw, 56px);
    letter-spacing: -0.04em;
}
.static-hero__meta {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted-2);
}
.section--static { padding-top: 50px; }
.static-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}
.static-nav {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.static-nav > .mono-label { margin-bottom: 9px; }
.static-nav > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-left: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}
.static-nav > a svg { opacity: 0; transition: opacity 0.2s; }
.static-nav > a:hover,
.static-nav > a.is-active {
    color: var(--green);
    background: rgba(57, 255, 136, 0.04);
    border-color: rgba(57, 255, 136, 0.12);
    border-left-color: var(--green);
}
.static-nav > a:hover svg,
.static-nav > a.is-active svg { opacity: 1; }
.static-nav__help {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.static-nav__help > span { color: var(--green); }
.static-nav__help p { margin: 8px 0 4px; font-size: 10px; color: var(--muted-2); }
.static-nav__help a {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--green);
    word-break: break-all;
}
.static-content {
    max-width: 800px;
}
.static-content .prose {
    font-size: 14px;
}
.static-content .prose p { line-height: 1.9; }
.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    padding: 26px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(400px 200px at 0% 100%, rgba(57, 255, 136, 0.08), transparent 70%),
        var(--surface);
}
.contact-panel h2 {
    margin: 8px 0 5px;
    font-size: 23px;
    color: var(--green);
}
.contact-panel p { margin: 0; font-size: 11px; }

.error-page,
.maintenance-page {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding: 70px 0;
    overflow: hidden;
}
.error-page__grid,
.maintenance-page__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(57, 255, 136, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 136, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 35% 50%, #000, transparent 75%);
}
.error-page__inner {
    position: relative;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.error-page__code {
    font-family: var(--font-display);
    font-size: clamp(130px, 19vw, 260px);
    font-weight: 700;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px rgba(57, 255, 136, 0.28);
    text-shadow: 0 0 80px rgba(57, 255, 136, 0.1);
    letter-spacing: -0.08em;
}
.error-page__content h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 4.5vw, 52px);
    letter-spacing: -0.035em;
}
.error-page__content p {
    max-width: 500px;
    font-size: 13px;
}
.error-page__actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.error-page__terminal {
    padding: 15px;
    border: 1px solid var(--line);
    background: #040a06;
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 2;
    color: var(--text-soft);
    max-width: 520px;
}
.maintenance-page { justify-content: center; }
.maintenance-card {
    position: relative;
    width: min(560px, calc(100% - 48px));
    padding: 40px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.maintenance-card__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    color: var(--amber);
}
.maintenance-card h1 { margin: 18px 0 10px; font-size: 38px; }
.maintenance-card p { font-size: 12px; }
.maintenance-progress {
    height: 3px;
    background: var(--surface-3);
    margin: 25px 0;
    overflow: hidden;
}
.maintenance-progress span {
    display: block;
    width: 42%;
    height: 100%;
    background: var(--green);
    animation: maintenance 2.2s ease-in-out infinite alternate;
}
@keyframes maintenance {
    from { transform: translateX(-30%); }
    to { transform: translateX(160%); }
}
.maintenance-card__meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--muted-2);
    margin-bottom: 22px;
}

/* ---------- Reveal animations ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .header-search { width: 170px; }
    .main-nav { gap: 0; }
    .nav-link { padding-inline: 9px; font-size: 11px; }
    .hero__inner { gap: 38px; }
    .hero__title { font-size: clamp(38px, 4.8vw, 58px); }
    .stats-strip__ticker { display: none; }
}

@media (max-width: 1024px) {
    .main-nav,
    .header-search { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-nav:not([hidden]) { display: block; }
    .header-admin span { display: none; }
    .header-admin { width: 36px; padding: 0; justify-content: center; }
    .header-main__inner { gap: 16px; }

    .hero { padding-top: 64px; }
    .hero__inner { grid-template-columns: 1fr; gap: 52px; }
    .hero__visual { max-width: 640px; }
    .hero__title { max-width: 760px; }

    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .protocol { grid-template-columns: 1fr; gap: 36px; }
    .protocol__intro p { max-width: 620px; }
    .split-grid { grid-template-columns: 1fr; }
    .popular-block { max-width: none; }

    .tool-layout { grid-template-columns: 1fr; }
    .tool-mobile-cta { display: flex; }
    .tool-sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .download-card { grid-row: span 2; }
    .download-info-grid { grid-template-columns: 1fr 1fr; }

    .static-layout { grid-template-columns: 1fr; gap: 30px; }
    .static-nav { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .static-nav__help { display: none; }
    .static-nav > .mono-label { width: 100%; }
    .static-nav > a { border: 1px solid var(--line); }

    .error-page__inner { grid-template-columns: 1fr; gap: 0; }
    .error-page__code { font-size: 130px; margin-bottom: 20px; }

    .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
    .cta-panel { grid-template-columns: 1fr; padding: 36px; }
    .cta-panel__terminal { max-width: 480px; }
}

@media (max-width: 760px) {
    .container { width: calc(100% - 32px); }
    .status-bar__links { display: none; }
    .status-bar__inner { height: 28px; }
    .status-bar__muted { display: none; }
    .header-main__inner { height: 68px; }
    .brand__logo { width: 38px; height: 38px; }
    .brand__name { font-size: 20px; }
    .brand__tag { display: none; }
    .header-admin { display: none; }
    .mobile-toggle { margin-left: 0; }
    .header-actions { gap: 0; }

    .hero { padding: 44px 0 50px; }
    .hero__title { font-size: 38px; }
    .hero__subtitle { font-size: 13px; }
    .hero__proof { gap: 13px; flex-wrap: wrap; }
    .hero__proof-item strong { font-size: 17px; }
    .hero__proof-sep { display: none; }
    .hero__actions .btn { flex: 1; min-width: 160px; }
    .console__body { min-height: 0; padding: 15px; font-size: 9.5px; }
    .console__line { white-space: normal; }
    .console__output { font-size: 8.5px; }
    .float-chip--top { display: none; }
    .float-chip--bottom { left: 10px; bottom: -14px; }

    .stats-strip__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 13px 0;
    }
    .stats-strip__item {
        border: 0;
        padding: 8px 10px;
        margin: 0;
        border-bottom: 1px solid var(--line-soft);
    }
    .stats-strip__item:nth-child(odd) { border-right: 1px solid var(--line-soft); }
    .stats-strip__item:nth-last-child(-n + 2) { border-bottom: 0; }
    .stats-strip__icon { width: 30px; height: 30px; }

    .section { padding: 62px 0; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 17px; }
    .section-title { font-size: 31px; }
    .category-grid { grid-template-columns: 1fr; gap: 8px; }
    .category-card { min-height: 0; padding: 18px; }
    .category-card__icon { margin-bottom: 15px; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card__title { font-size: 19px; }
    .latest-item__thumb { flex-basis: 84px; }
    .latest-item__desc { display: none; }
    .protocol__features { grid-template-columns: 1fr; }
    .feature-card { min-height: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px 0; gap: 8px; }
    .footer-bottom__meta { margin-top: 2px; }
    .cta-panel { padding: 26px 20px; gap: 28px; }
    .cta-panel h2 { font-size: 32px; }
    .cta-panel__actions { flex-direction: column; align-items: stretch; }
    .cta-panel__actions .btn { width: 100%; }

    .archive-hero { padding: 24px 0 30px; }
    .archive-hero__grid-layout { flex-direction: column; align-items: flex-start; gap: 17px; }
    .archive-hero__stats { align-items: flex-start; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; width: 100%; flex-direction: row; gap: 9px; align-items: baseline; }
    .archive-hero__stats strong { font-size: 27px; }
    .archive-hero__stats > span:last-child { margin-top: 0; }
    .archive-hero__title { font-size: 37px; }
    .archive-search { flex-direction: column; margin-top: 22px; }
    .archive-search .btn { height: 44px; }
    .archive-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .archive-toolbar__right { width: 100%; justify-content: space-between; }
    .sort-form { font-size: 0; gap: 0; }
    .sort-form label { display: none; }
    .active-filters__clear { margin-left: 0; }
    .archive-count { font-size: 8px; }
    .pagination { flex-wrap: wrap; }

    .tool-hero { padding-top: 22px; }
    .tool-header__title { font-size: 41px; }
    .tool-header__id { display: none; }
    .tool-header__stats { gap: 7px 12px; }
    .tool-mobile-cta { flex-wrap: wrap; }
    .tool-mobile-cta .btn { width: 100%; }
    .tool-content { padding: 20px 17px; margin-top: 22px; }
    .tool-sidebar { grid-template-columns: 1fr; }
    .download-card { grid-row: auto; }
    .download-info-grid { grid-template-columns: 1fr 1fr; }
    .tool-cover__bar { font-size: 7px; }
    .tag-row { margin-top: 16px; }
    .contact-panel { flex-direction: column; align-items: flex-start; }
    .static-nav { display: grid; grid-template-columns: 1fr 1fr; }
    .static-nav > .mono-label { grid-column: 1 / -1; }
    .error-page__code { font-size: 110px; }
    .maintenance-card { padding: 26px 20px; }
    .maintenance-card h1 { font-size: 30px; }
    .flash-stack { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

@media (max-width: 430px) {
    .hero__proof-item span { font-size: 7px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .filter-tab { padding: 6px 8px; font-size: 8px; }
    .download-info-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .tool-header__title { font-size: 35px; }
    .static-nav { grid-template-columns: 1fr; }
    .static-nav > .mono-label { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .matrix-canvas { display: none; }
}
