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

body {
    background: #000;
    color: #ccc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

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

/* ── scanlines ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 3px,
            rgba(0, 0, 0, 0.15) 3px,
            rgba(0, 0, 0, 0.15) 4px);
    pointer-events: none;
    z-index: 9999;
}

/* ── TOP BAR ── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ccc;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 2px 8px;
    z-index: 1000;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 2rem;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 22px;
    left: 0;
    right: 0;
    background: #111;
    border-bottom: 1px solid #333;
    display: flex;
    height: 34px;
    z-index: 999;
}

.nav-logo {
    padding: 0 1rem;
    font-weight: 700;
    font-size: 13px;
    border-right: 1px solid #333;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    height: 100%;
}

.nav-links li {
    border-right: 1px solid #333;
}

.nav-links a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    font-size: 12px;
    color: #666;
    letter-spacing: 0.04em;
}

.nav-links a:hover {
    color: #ccc;
    background: #1a1a1a;
}

.nav-right {
    margin-left: auto;
    border-left: 1px solid #333;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.nav-right a:hover {
    color: #ccc;
}

/* ── MAIN ── */
main {
    margin-top: 56px;
}

/* ── HERO ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #333;
    min-height: calc(100vh - 56px);
}

.pane {
    display: flex;
    flex-direction: column;
}

.pane+.pane {
    border-left: 1px solid #333;
}

.pane-bar {
    background: #111;
    border-bottom: 1px solid #333;
    padding: 3px 8px;
    font-size: 11px;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.pane-bar .title {
    color: #999;
}

.pane-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ascii-art {
    font-size: 11px;
    line-height: 1.2;
    white-space: pre;
    margin-bottom: 1.5rem;
    color: #fff;
}

.tag-line {
    font-size: 11px;
    color: #555;
    margin-bottom: 1rem;
}

.headline {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blurb {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 1px solid #333;
}

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 5px 14px;
    border: 1px solid #555;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    letter-spacing: 0.04em;
}

.btn:hover {
    background: #ccc;
    color: #000;
    border-color: #ccc;
}

.btn-inv {
    background: #ccc;
    color: #000;
    border-color: #ccc;
}

.btn-inv:hover {
    background: transparent;
    color: #ccc;
}

/* terminal pane */
.term-body {
    padding: 1.5rem 2rem;
    flex: 1;
    font-size: 12px;
    line-height: 1.9;
}

.term-body .dim {
    color: #fff;
}

.term-body .mid {
    color: #fff;
}

.term-body .lit {
    color: #fff;
}

.term-body .bold {
    color: #fff;
    font-weight: 700;
}

.blink-cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: #fff;
    vertical-align: middle;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1
    }

    50%,
    100% {
        opacity: 0
    }
}

/* ── STATS ROW ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #333;
}

.stat-cell {
    padding: 0.8rem 1.5rem;
    border-right: 1px solid #333;
    font-size: 12px;
}

.stat-cell:last-child {
    border-right: none;
}

.stat-cell .k {
    color: #555;
    font-size: 11px;
}

.stat-cell .v {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: block;
}

/* ── SECTION ── */
.section {
    border-bottom: 1px solid #333;
}

.section-bar {
    background: #111;
    border-bottom: 1px solid #333;
    padding: 3px 8px;
    font-size: 11px;
    color: #555;
    display: flex;
    gap: 2rem;
}

.section-bar span {
    cursor: pointer;
    transition: color 0.2s;
}

.section-bar span:hover {
    color: #888;
}

.section-bar .on {
    color: #ccc;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
}

/* ── TABS ── */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── TABLE ── */
table {
    width: 100%;
    border-collapse: collapse;
}

thead td {
    background: #0a0a0a;
    color: #444;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-bottom: 1px solid #222;
    border-right: 1px solid #222;
}

thead td:last-child {
    border-right: none;
}

tbody tr {
    border-bottom: 1px solid #1a1a1a;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover td {
    background: #0d0d0d;
}

tbody td {
    padding: 8px 12px;
    font-size: 12px;
    border-right: 1px solid #1a1a1a;
    vertical-align: top;
}

tbody td:last-child {
    border-right: none;
}

.install-col .term-body .dim,
.install-col .term-body .mid,
.install-col .term-body .lit {
    color: #fff;
}

.col-id {
    color: #444;
    width: 70px;
    white-space: nowrap;
}

.col-name {
    color: #fff;
    font-weight: 700;
    width: 160px;
    white-space: nowrap;
}

.col-desc {
    color: #888;
    line-height: 1.7;
}

.col-tag {
    color: #666;
    width: 90px;
    text-align: right;
    white-space: nowrap;
}

.col-ver {
    color: #555;
    width: 80px;
    white-space: nowrap;
}

.col-sta {
    color: #888;
    width: 80px;
    white-space: nowrap;
}

/* ── INSTALL. ── */
.install-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.install-col {
    padding: 1.5rem 2rem;
}

.install-col+.install-col {
    border-left: 1px solid #333;
}

.step {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #1a1a1a;
    align-items: flex-start;
}

.step:last-child {
    border-bottom: none;
}

.step-n {
    color: #555;
    width: 24px;
    flex-shrink: 0;
    font-size: 12px;
}

.step h4 {
    color: #ccc;
    font-size: 13px;
    margin-bottom: 0.3rem;
}

.step p {
    color: #555;
    font-size: 12px;
    line-height: 1.6;
}

.step code {
    display: block;
    margin-top: 0.4rem;
    color: #999;
    font-size: 12px;
}

/* ── PHILOSOPHY ── */
.phil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.phil-cell {
    padding: 1.5rem 2rem;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
}

.phil-cell:nth-child(even) {
    border-right: none;
}

.phil-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.phil-n {
    color: #333;
    font-size: 11px;
    margin-bottom: 0.5rem;
}

.phil-h {
    color: #ccc;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.phil-h::before {
    content: '> ';
    color: #555;
}

.phil-body {
    color: #555;
    font-size: 12px;
    line-height: 1.8;
}

/* ── CTA ── */
.cta {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid #333;
}

.cta-comment {
    color: #444;
    font-size: 12px;
    margin-bottom: 0.5rem;
}

.cta-h {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.cta-sub {
    color: #555;
    font-size: 12px;
    margin-bottom: 1.5rem;
}

.cta-prompt {
    font-size: 13px;
    margin-bottom: 1.5rem;
    color: #888;
}

.cta-prompt .p {
    color: #ccc;
}

.cta-btns {
    display: flex;
    gap: 1rem;
}

/* ── FOOTER ── */
footer {
    background: #111;
    border-top: 1px solid #333;
    padding: 4px 8px;
    font-size: 11px;
    color: #444;
    display: flex;
    justify-content: space-between;
}

footer a {
    color: #555;
    margin-left: 1.5rem;
}

footer a:hover {
    color: #ccc;
}

.footer-left {
    display: flex;
    gap: 1.5rem;
}