/* liveapp.run — shared chrome: tokens, page shell, header, doc footer.
   Each page layers landing.css / doc.css on top of this. */

:root {
    --bg: #05070c;
    --bg-2: #0a1120;
    --text: #f2f5f9;
    --muted: #9aa7b8;
    --faint: #64748b;
    --brand: #4ade80;
    --brand-2: #34d399;
    --brand-deep: #059669;
    --amber: #fbbf24;
    --card: rgba(255, 255, 255, 0.035);
    --card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    /* landing.css widens/retunes these */
    --shell-max: 760px;
    --brand-size: 1.05rem;
    --lh: 1.7;
}

* { box-sizing: border-box; }

/* Paint the root too: mobile Chrome exposes it (white by default) while
   the URL bar collapses/expands and on overscroll. */
html { background: var(--bg); }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: var(--lh);
}

body {
    background:
        radial-gradient(ellipse 900px 600px at 12% -8%, rgba(74, 222, 128, 0.08) 0%, transparent 60%),
        linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 55%);
    background-attachment: fixed;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 7, 12, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: var(--brand-size);
    letter-spacing: -0.02em;
}

.brand svg { display: block; }
.brand .tld { color: var(--brand); font-weight: 700; }

nav { display: flex; gap: 6px; }

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- Doc footer (legal pages) ---------- */
footer {
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--faint);
}

.footer-inner a { color: var(--faint); text-decoration: none; transition: color 0.15s ease; }
.footer-inner a:hover { color: var(--muted); }
.foot-nav { display: flex; gap: 18px; }

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