/* stream-minimal — content-first template, mobile-first */

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

:root {
    --bg: #0a0a10;
    --bg-elevated: #15121e;
    --text: #f4f2f8;
    --muted: #a79fc0;
    --muted-2: #6f6785;
    --accent: #9b5cf6;
    --accent-strong: #7c3aed;
    --accent-bright: #c9a4ff;
    --accent-soft: rgba(155, 92, 246, 0.16);
    --border: rgba(155, 92, 246, 0.16);
    --header-h: 64px;
    --container: 760px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(ellipse 900px 480px at 50% -10%, rgba(155, 92, 246, 0.16), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

/* ===== Header / Navbar ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(10, 9, 15, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 28px;
    width: auto;
}

/* Nav: mobile-first = collapsed drawer under the header */
.nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.nav-list li {
    border-top: 1px solid var(--border);
}

.nav-list li:first-child {
    border-top: none;
}

.nav-list a {
    display: block;
    padding: 16px 0;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--muted);
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--text);
}

body.nav-open .nav {
    max-height: 60vh;
    overflow-y: auto;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        position: static;
        max-height: none;
        overflow: visible;
        background: transparent;
        border-bottom: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 28px;
        padding: 0;
    }

    .nav-list li {
        border-top: none;
    }

    .nav-list a {
        padding: 0;
    }
}

/* ===== Hero (logo + H1 + CTA) ===== */

.hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 20px 40px;
    text-align: center;
}

.hero-logo {
    height: 44px;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 22px rgba(155, 92, 246, 0.45));
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin-bottom: 16px;
}

.hero-intro {
    color: var(--muted);
    font-size: 1.02rem;
    margin-bottom: 28px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent) 55%, var(--accent-bright));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    box-shadow: 0 10px 34px rgba(124, 58, 237, 0.55);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .hero {
        padding: 64px 20px 48px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-intro {
        font-size: 1.08rem;
    }
}

/* ===== Content sections — pure typography, no card/grid noise ===== */

.content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 20px 56px;
}

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

.content section:first-child {
    border-top: none;
}

.content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.1px;
}

.content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--text);
}

.content p {
    color: var(--muted);
    margin-bottom: 14px;
}

.content ul,
.content ol {
    margin: 0 0 14px 20px;
    color: var(--muted);
}

.content li {
    margin-bottom: 8px;
}

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

.content a {
    color: var(--accent-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content a:hover,
.content a:focus-visible {
    color: #fff;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.94rem;
}

.content th,
.content td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.content th {
    color: var(--text);
    font-weight: 600;
}

.content td {
    color: var(--muted);
}

@media (min-width: 768px) {
    .content h2 {
        font-size: 1.65rem;
    }
}

/* ===== Footer ===== */

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

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-bottom: 22px;
    padding: 0;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.site-footer p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-copy {
    color: var(--muted-2);
    margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
