:root {
    --bg: #0b0c10;
    --surface: #14161d;
    --text: #e6e7ea;
    --text-muted: #9aa0aa;
    --accent: #7c3aed;
    --border: #23262f;
    --link: #a78bfa;
    --link-hover: #c4b5fd;
    --max-width: 720px;
}

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

html { font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.brand {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.875rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.nav a:hover, .nav a.active {
    color: var(--link);
}

.lang-toggle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.lang-toggle a {
    color: var(--link);
    text-decoration: none;
    margin-left: 0.375rem;
}

.lang-toggle a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

ul, ol {
    margin: 0 0 1rem 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--link);
    text-decoration: none;
}

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

strong { font-weight: 600; }

.callout {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

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

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: var(--link);
}

@media (max-width: 600px) {
    .container { padding: 2rem 1.25rem 4rem; }
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.125rem; }
    header { flex-direction: column; align-items: flex-start; }
}
