:root {
    --bg-color: #0f0f11;
    --surface: #17171b;
    --surface-alt: #1d1d22;
    --text-color: #f0f0f0;
    --secondary-text: #b4b4bf;
    --accent-color: #6c5ce7;
    --border: #2a2a32;
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.1), transparent 40%), var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    background: rgba(15, 15, 17, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-weight: 800;
    letter-spacing: -0.3px;
}

.contact-btn,
.btn {
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    display: inline-block;
}

.contact-btn,
.btn.primary {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn.secondary {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

main {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding-bottom: 4rem;
}

.hero {
    padding: 3.5rem 0 2.5rem;
}

.eyebrow {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    max-width: 850px;
}

.lead {
    color: var(--secondary-text);
    margin-top: 1rem;
    max-width: 800px;
}

.hero-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.disclaimer {
    margin-top: 1.1rem;
    font-size: 0.92rem;
    color: var(--secondary-text);
    max-width: 880px;
}

.toc,
.card-section,
.final-note {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.toc h2,
.card-section h2,
.final-note h2 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.toc-grid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.toc-grid a {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    color: var(--secondary-text);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.toc-grid a:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.card-section.alt {
    background: var(--surface-alt);
}

.card-section p {
    color: var(--secondary-text);
}

.card-section ul {
    margin-top: 0.75rem;
    padding-left: 1.15rem;
}

.card-section li {
    margin-bottom: 0.55rem;
    color: var(--secondary-text);
}

.card-section p + p {
    margin-top: 0.65rem;
}

.final-note p {
    color: var(--secondary-text);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .topbar {
        padding: 1rem 4%;
    }

    .contact-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.9rem;
    }

    main {
        width: min(1100px, 95%);
    }

    .hero {
        padding-top: 2.4rem;
    }
}
