/* skelm-mainpage — dark + terminal-green theme */

:root {
    --bg: #0b0f12;
    --bg-elevated: #0f161c;
    --surface: #11181f;
    --surface-2: #161f28;
    --text: #d6e3ec;
    --muted: #8aa0b3;
    --primary: #00d18f;
    --primary-dim: #008f60;
    --accent: #22d3ee;
    --accent-dim: #0891b2;
    --warning: #facc15;
    --border: #1f2a35;
    --border-strong: #2c3a48;

    --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, "Roboto Mono", monospace;

    --radius: 8px;
    --radius-lg: 14px;
    --maxw: 1180px;
    --maxw-narrow: 760px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background:
        radial-gradient(circle at 15% 0%, rgba(0, 209, 143, 0.08), transparent 40%),
        radial-gradient(circle at 85% 5%, rgba(34, 211, 238, 0.06), transparent 45%),
        var(--bg);
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text); }
code { font-family: var(--font-mono); font-size: 0.92em; color: var(--accent); background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; border: 1px solid var(--border); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: var(--maxw-narrow); }

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.header__logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.header__logo:hover { text-decoration: none; color: var(--primary); }
.header__logo img { display: block; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav__link { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 120ms; }
.nav__link:hover { color: var(--text); text-decoration: none; }
.nav__link.active { color: var(--primary); }

.lang-switcher { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 0.5rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.lang-switcher__link { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.lang-switcher__link:hover { color: var(--text); text-decoration: none; }
.lang-switcher__link.active { color: var(--primary); }
.lang-switcher__divider { color: var(--border-strong); }

.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: 200ms; }

/* ===== Hero ===== */
.hero { padding: 5rem 0 4rem; }
.hero__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary);
    background: rgba(0, 209, 143, 0.08);
    border: 1px solid rgba(0, 209, 143, 0.3);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.hero__title-mark { color: var(--primary); font-family: var(--font-mono); }
.hero__lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 2rem; }
.hero__cta { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 150ms;
    text-decoration: none;
}
.btn--primary { background: var(--primary); color: #04140d; border-color: var(--primary); }
.btn--primary:hover { background: #16e6a3; color: #04140d; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--center { text-align: center; padding: 6rem 0; }
.section__title { text-align: center; margin-bottom: 0.5rem; }
.section__lead { text-align: center; color: var(--muted); margin-bottom: 2.5rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ===== Page header ===== */
.page-header { padding: 4rem 0 2rem; border-bottom: 1px solid var(--border); }
.page-header__title { font-size: 2.2rem; }
.page-header__lead { color: var(--muted); font-size: 1.1rem; max-width: 700px; margin: 0; }

/* ===== Grid + cards ===== */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: 180ms;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card__title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card__title code { font-size: 0.95em; color: var(--primary); background: transparent; border: 0; padding: 0; }
.card__body { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
.card__footer { font-size: 0.85rem; color: var(--muted); margin: 0; }
.card__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    border: 1px solid;
}
.card__tag--code  { color: var(--primary); border-color: rgba(0, 209, 143, 0.4); background: rgba(0, 209, 143, 0.08); }
.card__tag--llm   { color: var(--accent);  border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.08); }
.card__tag--agent { color: var(--warning); border-color: rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.08); }

.card--package .card__title { font-size: 1rem; }

/* ===== Code blocks ===== */
.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text);
    margin: 0 0 1.5rem;
    text-align: left;
}
.code-block code { background: transparent; border: 0; padding: 0; color: inherit; }
.code-block--inline { max-width: 720px; margin-left: auto; margin-right: auto; }
.code-prompt { color: var(--primary); user-select: none; margin-right: 0.4em; }
.tok-k { color: #ff79c6; }
.tok-s { color: var(--primary); }
.tok-n { color: var(--warning); }

/* ===== Callout ===== */
.callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 880px;
    margin: 0 auto;
}
.callout__label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.callout__title { font-size: 1.6rem; margin-bottom: 0.75rem; }
.callout__body { color: var(--muted); margin-bottom: 1rem; }

.bullet-list { padding-left: 1.2rem; margin: 0; color: var(--muted); }
.bullet-list li { margin-bottom: 0.5rem; }
.bullet-list li::marker { color: var(--primary); }
.bullet-list--ordered { padding-left: 1.4rem; }

/* ===== CTA ===== */
.cta { text-align: center; padding: 3rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cta__title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.cta__body { color: var(--muted); margin-bottom: 1.5rem; }
.cta__actions { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ===== Prose ===== */
.prose h2 { margin-top: 2rem; }
.prose p { color: var(--text); }
.prose ol, .prose ul { color: var(--text); }

/* ===== Error ===== */
.error-code { font-family: var(--font-mono); font-size: 6rem; color: var(--primary); margin: 0; line-height: 1; }

/* ===== Footer ===== */
.footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer__brand { max-width: 320px; }
.footer__logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.footer__description { color: var(--muted); font-size: 0.9rem; margin: 0; }
.footer__column h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.75rem; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer__links a { color: var(--text); }
.footer__links a:hover { color: var(--primary); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.footer__copyright { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: span 2; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-elevated); border-bottom: 1px solid var(--border);
        padding: 1rem 1.25rem;
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav__link { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
    .lang-switcher { margin: 0.5rem 0 0; padding: 0.5rem 0 0; border-left: 0; border-top: 1px solid var(--border); }
    .hero { padding: 3rem 0 2rem; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__brand { grid-column: auto; }
    .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
