/* StreamerTools — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg: #0E0F13;
    --surface: #16181E;
    --surface-2: #1C1F27;
    --text: #E8EAED;
    --muted: #9AA0AB;
    --faint: #6B7180;
    --border: #262A33;
    --accent: #1A7EF0;
    --accent-bright: #4F9EFF;
    --accent-dim: rgba(26, 126, 240, 0.12);
    --accent-line: rgba(26, 126, 240, 0.30);
    --ok: #22C55E;
    --display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
    --measure: 720px;
    --wide: 1060px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-dim); color: #fff; }

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

/* ── Shell ── */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }

/* ── Header ── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(14, 15, 19, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; flex-shrink: 0; }
.brand b { color: var(--accent-bright); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
    color: var(--text) !important; border: 1px solid var(--accent-line);
    padding: 7px 14px; border-radius: 8px; background: var(--accent-dim);
}
.nav-cta:hover { border-color: var(--accent); background: rgba(26, 126, 240, 0.2); }

/* ── Eyebrow / labels ── */
.eyebrow {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--accent-bright);
    display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent-line); display: inline-block; }

/* ── Hero ── */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; top: -40%; right: -10%;
    width: 620px; height: 620px; pointer-events: none;
    background: radial-gradient(circle, rgba(26,126,240,0.16), transparent 62%);
    filter: blur(8px);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(38px, 6vw, 66px); line-height: 1.02;
    letter-spacing: -0.025em; margin: 20px 0 0;
}
.hero h1 .drip { color: var(--accent-bright); }
.hero .lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); margin-top: 22px; max-width: 600px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--display); font-weight: 600; font-size: 15px;
    padding: 13px 22px; border-radius: 10px; cursor: pointer;
    border: 1px solid transparent; transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(26,126,240,0.25); }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent-line); }

/* ── Sections ── */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; margin-top: 14px; line-height: 1.1; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ── Cards grid ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; }
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 26px 24px; position: relative;
    transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-dim); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); position: absolute; top: 22px; right: 22px; }
.card .tag.live { color: var(--ok); }

/* ── Steps (setup) ── */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 2px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: none; }
.step .num {
    counter-increment: step; font-family: var(--mono); font-size: 13px;
    color: var(--accent-bright); padding-top: 4px;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 18.5px; letter-spacing: -0.01em; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.step p + p { margin-top: 8px; }
.step code, .doc code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text); }

/* ── Callout ── */
.callout { background: var(--accent-dim); border: 1px solid var(--accent-line); border-radius: 12px; padding: 18px 20px; margin: 26px 0; font-size: 15px; }
.callout strong { color: var(--text); }
.callout .eyebrow { margin-bottom: 8px; }

.hw { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-top: 22px; }
.hw ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.hw li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.hw li b { color: var(--text); font-weight: 600; }
.hw li::before { content: "▸"; color: var(--accent-bright); flex-shrink: 0; }

/* ── Document pages (terms / privacy) ── */
.doc { padding: 72px 0 96px; }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.025em; margin-top: 16px; }
.doc .updated { color: var(--faint); font-family: var(--mono); font-size: 13px; margin-top: 14px; }
.doc .intro { color: var(--muted); font-size: 17px; margin-top: 26px; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 12px; padding-top: 8px; }
.doc h3 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 26px 0 8px; color: var(--text); }
.doc p { color: #C7CCD4; margin-bottom: 14px; }
.doc ul, .doc ol { color: #C7CCD4; margin: 0 0 16px 22px; }
.doc li { margin-bottom: 9px; }
.doc li::marker { color: var(--faint); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { word-break: break-word; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin: 30px 0 8px; }
.toc .eyebrow { margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 7px; font-size: 14px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { color: var(--faint); font-size: 13.5px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-legal { width: 100%; border-top: 1px solid var(--border); margin-top: 36px; padding-top: 22px; color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Responsive ── */
@media (max-width: 680px) {
    .nav { gap: 16px; }
    .nav a:not(.nav-cta) { display: none; }
    .hero { padding: 64px 0 52px; }
    section { padding: 48px 0; }
    .step { grid-template-columns: 40px 1fr; gap: 14px; }
}
