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

:root {
    --bg: #0a0a0b;
    --bg-secondary: #111113;
    --card: #18181b;
    --text: #fafafa;
    --muted: #a1a1aa;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --green: #22c55e;
    --border: #27272a;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
}

a {
    color: #8ab4ff;
}

a:hover {
    color: #b6d0ff;
}

.container {
    width: min(100% - 48px, 1100px);
    margin: 0 auto;
}

.reading-width {
    max-width: 780px;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(12px);
}

.nav-inner {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

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

.hero {
    padding: 112px 0 88px;
    background: radial-gradient(ellipse 80% 60% at 50% -30%, var(--accent-soft), transparent);
}

.breadcrumbs {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--muted);
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1 {
    max-width: 900px;
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.hero-lede {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}

.button:hover {
    border-color: var(--muted);
    color: var(--text);
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.button-primary:hover {
    border-color: #2563eb;
    background: #2563eb;
}

.section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-alt {
    background: var(--bg-secondary);
}

.section h2 {
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section h3 {
    margin: 32px 0 10px;
    font-size: 1.3rem;
}

.section p + p {
    margin-top: 18px;
}

.section ul,
.section ol {
    margin: 18px 0 0 24px;
}

.section li + li {
    margin-top: 8px;
}

.answer-box {
    margin-top: 32px;
    padding: 28px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 14px;
    background: var(--accent-soft);
}

.answer-box strong {
    display: block;
    margin-bottom: 8px;
    color: #bfdbfe;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: var(--muted);
}

.table-wrap {
    margin-top: 32px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
}

th,
td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--bg-secondary);
    font-size: 0.875rem;
    letter-spacing: 0.03em;
}

tr:last-child td {
    border-bottom: 0;
}

code,
pre {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

code {
    color: #c4b5fd;
}

pre {
    margin-top: 28px;
    padding: 24px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #08080a;
    color: #d4d4d8;
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-list {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.faq-list details {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-list details p {
    margin-top: 12px;
    color: var(--muted);
}

.related-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.related-links a {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.related-links a:hover {
    border-color: var(--accent);
}

.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

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

.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;
    width: min(440px, calc(100% - 48px));
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent h2 {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.cookie-consent p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.938rem;
}

.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-consent-actions .button {
    padding: 9px 14px;
    font-size: 0.9rem;
}

@media (max-width: 820px) {
    .grid,
    .related-links {
        grid-template-columns: 1fr;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 32px, 1100px);
    }

    .hero {
        padding: 80px 0 64px;
    }

    .section {
        padding: 64px 0;
    }

    .cookie-consent {
        right: 16px;
        bottom: 16px;
        width: calc(100% - 32px);
    }
}
