﻿:root {
    --bg:        #0f1117;
    --surface:   #161b27;
    --border:    #252d3d;
    --accent:    #4f8ef7;
    --accent2:   #35d9a4;
    --warn:      #f79c4f;
    --text:      #d6dce8;
    --muted:     #6b7a99;
    --heading:   #edf0f7;
    --radius:    10px;
}

[data-theme="light"] {
    --bg:        #f4f6fb;
    --surface:   #ffffff;
    --border:    #dde2ed;
    --accent:    #2563eb;
    --accent2:   #059669;
    --warn:      #d97706;
    --text:      #374151;
    --muted:     #6b7280;
    --heading:   #111827;
}

[data-theme="paper"] {
    --bg:        #f3e7cf;
    --surface:   #f4e4c4;
    --surface-2: #ead4aa;
    --border:    #b8985f;
    --accent:    #6f5dd3;
    --accent2:   #22745b;
    --warn:      #9a5a15;
    --text:      #463922;
    --muted:     #755f3a;
    --heading:   #241d12;
}

[data-theme="light"] .card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
}

[data-theme="light"] .doc-item:hover {
    background: color-mix(in srgb, var(--surface) 85%, var(--accent) 15%);
}

/* ── THEME TOGGLE ── */
#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    font-family: 'IBM Plex Sans', sans-serif;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s;
    flex-shrink: 0;
}

#theme-toggle:hover {
    color: var(--accent);
    border-color: rgba(79,142,247,.3);
}

#theme-toggle .toggle-icon { font-size: 14px; line-height: 1; }
#theme-toggle .toggle-label { display: none; }

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
}

/* ── HEADER ── */
header {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid var(--border);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-mark {
    width: 36px; height: 36px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px; font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.header-titles { display: flex; flex-direction: column; gap: 1px; }

header h1 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--heading);
    letter-spacing: .02em;
}

header h1 span { color: var(--accent); }

.header-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    color: var(--muted);
}

.header-nav {
    margin-left: 30px;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-link,
.nav-menu summary {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 6px 0;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: color .18s, border-color .18s;
}

.nav-link:hover,
.nav-menu summary:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
}

.nav-menu {
    position: relative;
}

.nav-menu summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-menu summary::-webkit-details-marker { display: none; }

.nav-menu summary::after {
    content: '⌄';
    font-family: 'IBM Plex Mono', monospace;
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    transition: transform .18s, color .18s;
}

.nav-menu[open] summary {
    color: var(--accent);
}

.nav-menu[open] summary::after {
    transform: rotate(180deg);
    color: var(--accent);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: -16px;
    width: 240px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0,0,0,.28);
    display: grid;
    gap: 4px;
    z-index: 20;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transform-origin: top left;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    visibility: hidden;
    pointer-events: none;
}

.nav-menu[open] .nav-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.nav-menu.is-entering[open] .nav-dropdown {
    animation: navDropdownIn .18s ease both;
}

@keyframes navDropdownIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-dropdown a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--text);
    text-decoration: none;
    transition: background .18s, color .18s;
}

.nav-dropdown a:hover {
    color: var(--accent);
    background: rgba(79,142,247,.08);
}

.nav-dropdown strong {
    font-size: 12.5px;
    font-weight: 600;
    color: inherit;
}

.nav-dropdown span {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.4;
}

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

.login-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    transition: color .18s;
}

.login-link:hover {
    color: var(--accent);
}

.trial-link {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .18s;
    white-space: nowrap;
}

.trial-link:hover {
    background: #6ba3ff;
    border-color: #6ba3ff;
    transform: translateY(-1px);
}

/* ── LAYOUT ── */
main {
    position: relative; z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 52px 40px 80px;
}

/* ── HERO ── */
.hero { margin-bottom: 56px; }

.hero-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--accent2);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    color: var(--heading);
    line-height: 1.25;
    margin-bottom: 16px;
    max-width: 580px;
}

.hero p {
    color: var(--muted);
    max-width: 560px;
    font-size: 15px;
}

/* ── SECTION HEADERS ── */
.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── LEGEND ── */
.legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    margin-top: -8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.legend-dot.local    { background: var(--accent2); }
.legend-dot.official { background: var(--accent); }

/* ── CARDS GRID ── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.card:hover {
    border-color: rgba(79,142,247,.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.card-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.card-meta { flex: 1; }

.card-meta h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--heading);
}

.card-meta .tag-row {
    display: flex;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--muted);
}

.tag.local {
    border-color: rgba(53,217,164,.35);
    color: var(--accent2);
    background: rgba(53,217,164,.06);
}

.card-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.wip-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.wip-note strong {
    color: var(--accent2);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s;
    border: 1px solid transparent;
}

.btn-local {
    background: rgba(53,217,164,.15);
    color: var(--accent2);
    border-color: rgba(53,217,164,.3);
}
.btn-local:hover { background: rgba(53,217,164,.25); }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: #6ba3ff;
    border-color: #6ba3ff;
}

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

/* icon colours per distro */
.icon-kernel  { background: rgba(79,142,247,.15); }
.icon-windows { background: rgba(0,168,255,.15); }
.icon-debian  { background: rgba(215,10,83,.15); }
.icon-ubuntu  { background: rgba(233,84,32,.15); }
.icon-rocky   { background: rgba(16,185,129,.15); }
.icon-arch    { background: rgba(23,147,209,.15); }

/* ── TOOLS SECTION ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 48px;
}

.tool-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s;
}

.tool-item:hover {
    border-color: rgba(53,217,164,.35);
    transform: translateY(-2px);
}

.tool-icon { font-size: 22px; flex-shrink: 0; }

.tool-text h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--heading);
}
.tool-text p { font-size: 12px; color: var(--muted); }

/* ── DOCS SECTION ── */
.docs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 48px;
}

.doc-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent2);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: background .18s, border-left-color .18s;
}

.doc-item:hover {
    background: color-mix(in srgb, var(--surface) 82%, var(--accent) 18%);
    border-left-color: var(--accent);
}

.doc-item h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 4px;
}
.doc-item p { font-size: 12px; color: var(--muted); }

/* ── WIP BANNER ── */
.wip-banner {
    background: rgba(247,156,79,.08);
    border: 1px dashed rgba(247,156,79,.35);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--warn);
    font-size: 13.5px;
    margin-bottom: 48px;
}

.wip-banner span { font-size: 20px; flex-shrink: 0; }

/* SITE FOOTER */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 46px 40px 34px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 34px 42px;
    margin-bottom: 56px;
}

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

.footer-column h4 {
    color: var(--heading);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.footer-column a {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
    text-decoration: none;
    transition: color .18s, transform .18s;
}

.footer-column a:hover {
    color: var(--accent);
    transform: translateX(2px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-brand h3 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
    color: var(--heading);
    letter-spacing: .01em;
}

.footer-brand h3 span { color: var(--accent); }

.footer-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
}

.footer-meta a {
    color: inherit;
    text-decoration: none;
    transition: color .18s;
}

.footer-meta a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a,
#back-to-top {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}

.footer-social a:hover,
#back-to-top:hover {
    color: var(--accent);
    border-color: rgba(79,142,247,.35);
    background: rgba(79,142,247,.08);
    transform: translateY(-2px);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
}

.hero       { animation: fadeUp .5s ease both; }
.cards      { animation: fadeUp .5s .1s ease both; }
.docs-list  { animation: fadeUp .5s .18s ease both; }
.tools-grid { animation: fadeUp .5s .24s ease both; }
.site-footer { animation: fadeUp .5s .28s ease both; }

@media (max-width: 640px) {
    header { flex-wrap: wrap; padding: 18px 20px; }
    .header-nav {
        order: 3;
        width: 100%;
        margin: 4px 0 0;
        gap: 14px;
    }
    .header-actions { margin-left: auto; gap: 8px; }
    .nav-dropdown { left: 0; width: min(240px, calc(100vw - 40px)); }
    .trial-link { padding: 8px 12px; }
    main { padding-left: 20px; padding-right: 20px; }
    main { padding-top: 36px; }
    .site-footer { padding-left: 20px; padding-right: 20px; }
    .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}
body.page-split main { padding-top: 44px; }
.page-intro { max-width: 720px; margin-bottom: 28px; }
.page-intro h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; color: var(--heading); margin-bottom: 12px; }
.page-intro p { color: var(--muted); font-size: 1rem; }

.about-intro { margin-bottom: 38px; }

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 16px;
    margin-bottom: 48px;
}

.about-panel,
.contact-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.about-panel h3,
.contact-panel h3 {
    color: var(--heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.about-panel p,
.contact-panel p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.about-panel p + p { margin-top: 14px; }

.about-panel strong {
    color: var(--text);
    font-weight: 600;
}

.about-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 48px;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .about-grid,
    .about-principles {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}
