:root {
    --bg: #0a0a0d;
    --text: #e8eaed;
    --muted: #9aa3b2;
    --faint: #6b7280;
    --panel: #161922;
    --panel-2: #1a1f2e;
    --border: #2a3142;
    --blue: #3b5bdb;
    --blue-hover: #4a68d6;
    --teal: #2dd4bf;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 96px 20px 64px;
    text-align: center;
}

.hero-icon {
    display: block;
    width: 176px;
    height: 176px;
    border-radius: 38px;
    margin: 0 auto 26px;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

h1 {
    font-size: 44px;
    margin: 0 0 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.badge {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 auto 22px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.subtitle {
    font-size: 18px;
    color: var(--muted);
    margin: 0 auto 28px;
    max-width: 760px;
}

.actions a {
    display: inline-block;
    margin: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.primary { background: var(--blue); color: #fff; }
.primary:hover { background: var(--blue-hover); transform: translateY(-1px); }

.secondary { border: 1px solid var(--border); color: var(--text); }
.secondary:hover { border-color: var(--teal); transform: translateY(-1px); }

.minor-detail {
    margin-top: 28px;
    font-size: 14px;
    color: var(--faint);
}

.pitch {
    max-width: 860px;
    margin: 28px auto 0;
    padding: 30px 30px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal);
    border-radius: 14px;
    text-align: left;
}

.pitch p {
    margin: 0;
    font-size: 22px;
    line-height: 1.5;
    color: var(--text);
}

.pitch strong { color: var(--teal); }
.pitch em { color: var(--muted); font-style: italic; }

.section { margin-top: 42px; }

.section h2 {
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section .lead {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 28px;
    text-align: left;
}

.grid.small {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    text-align: center;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 20px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover { border-color: var(--teal); transform: translateY(-2px); }

.card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

#features .card h3,
#tabs .card h3 {
    color: var(--teal);
}

.arch {
    margin-top: 28px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}

.arch img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.prose {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.prose p { color: var(--muted); margin: 0 0 14px; }
.prose strong { color: var(--text); }

.faq {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: left;
}

.faq-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 12px;
}

.faq-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.faq-item p { margin: 0; font-size: 14px; color: var(--muted); }

.eyebrow {
    color: var(--teal);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 14px;
    font-size: 17px;
}

.dl-version {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--teal);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 14px;
}

.downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.dl-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dl-card .ico { font-size: 30px; }
.dl-card h3 { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.dl-card .req { color: var(--muted); font-size: 13px; margin: 0; }

.dl-card .primary {
    display: inline-block;
    margin: 14px auto 4px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.dl-card .meta {
    color: var(--muted);
    font-size: 12.5px;
    min-height: 1.2em;
    margin: 0;
}

.dl-card .how { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.dl-card code {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 12px;
    color: var(--text);
}

.dl-links {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin: 18px 0 0;
}

.dl-links a { color: var(--teal); text-decoration: none; }
.dl-links a:hover { text-decoration: underline; }

footer {
    margin-top: 48px;
    padding: 28px 20px 8px;
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: 13px;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--teal); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Top navigation (added with the multi-page split) */
nav.site {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 13, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 58px;
}

nav.site .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

nav.site .brand img { width: 28px; height: 28px; border-radius: 7px; }

nav.site .links { display: flex; gap: 22px; }

nav.site .links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

nav.site .links a:hover { color: var(--text); }
