/* Shared design system for hand-crafted docs pages */
/* Vibes page keeps its own inline CSS so it works standalone */

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

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-hover: #1a1a1a;
    --border: #282828;
    --text: #e1e1e1;
    --text-dim: #6a6a6a;
    --text-muted: #404040;
    --green: #1DB954;
    --green-dim: #1a7a3a;
    --glow: rgba(29, 185, 84, 0.28);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.nav-logo {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo span { color: var(--green); }

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background:
        radial-gradient(circle at 20% 0%, rgba(29, 185, 84, 0.14), transparent 38%),
        radial-gradient(circle at 80% 0%, rgba(29, 185, 84, 0.08), transparent 34%),
        linear-gradient(180deg, #1DB95415 0%, transparent 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hero h1 span { color: var(--green); }

.hero .subtitle {
    color: var(--text-dim);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 48px 0;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.feature-card:hover {
    border-color: var(--green-dim);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36), 0 0 0 1px var(--glow) inset;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Code block */
.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.code-block pre {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text);
}

.code-block .comment { color: var(--text-muted); }
.code-block .cmd { color: var(--green); }

/* Section */
.section {
    margin: 56px 0;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.section p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.section strong { color: var(--text); }
.section em { color: var(--green); font-style: normal; }

/* Manifesto features (reused from vibes) */
.manifesto-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.mf-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: rgba(29, 185, 84, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.mf-icon { font-size: 1.3rem; flex-shrink: 0; }

.mf-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.mf-text strong { color: var(--text); }

/* Command tables */
.cmd-section {
    margin-bottom: 40px;
}

.cmd-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.cmd-table {
    width: 100%;
    border-collapse: collapse;
}

.cmd-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.cmd-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.cmd-table tbody tr {
    transition: background 0.15s;
}

.cmd-table tbody tr:hover {
    background: rgba(29, 185, 84, 0.06);
}

.cmd-table tr:last-child td { border-bottom: none; }

.cmd-table code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--green);
    background: rgba(29, 185, 84, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.cmd-table td:last-child { color: var(--text-dim); }

/* Global options note */
.global-note {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.global-note code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--green);
    background: rgba(29, 185, 84, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 700px) {
    .features { grid-template-columns: 1fr; }
    .manifesto-features { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .nav-links { gap: 16px; }
    .nav {
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-wrap: wrap;
        row-gap: 8px;
    }
}
