html { scroll-behavior: smooth; }

/* Scroll reveal (JS adds .reveal + .is-visible). No-JS users see normal content. */
html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
    transition:
        opacity .62s ease,
        transform .62s cubic-bezier(.22, 1, .36, 1),
        filter .62s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}
html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}
:root {
    --bg: #050607;
    --panel: #0a070f;
    --border: rgba(168, 85, 247, .22);
    --text: rgba(248, 244, 255, .96);
    --muted: rgba(225, 210, 255, .86);
    --muted2: rgba(200, 180, 255, .78);
    --brand: #a855f7;
    --brand2: #c084fc;
    --radius: 16px;
    --shadow: 0 18px 55px rgba(0,0,0,.55);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); }
body {
    margin: 0;
    position: relative;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 650px at 18% -10%, rgba(168,85,247,.16), rgba(5,6,7,0) 60%),
        radial-gradient(1100px 700px at 85% 0%, rgba(192,132,252,.10), rgba(5,6,7,0) 55%),
        var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(168,85,247,.040) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168,85,247,.032) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.030), rgba(0,0,0,0));
    background-size: 160px 160px, 160px 160px, 100% 8px;
    opacity: .22;
}

main, .topbar, footer { position: relative; z-index: 1; }
::selection { background: rgba(168,85,247,.22); }
a { color: inherit; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5,6,7,.82);
    border-bottom: 1px solid rgba(168,85,247,.18);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}
.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.nav a {
    font-size: 13px;
    color: rgba(248,244,255,.82);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease;
}
.nav a:hover { transform: scale(1.05); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(168,85,247,.32);
    text-decoration: none;
    white-space: nowrap;
}
.btn.primary {
    background: linear-gradient(180deg, rgba(168,85,247,1), rgba(168,85,247,.82));
    color: #03100b;
    border-color: rgba(168,85,247,.85);
}

.hero { padding: 34px 0 10px; }
h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    font-family: var(--mono);
    font-weight: 900;
    background: linear-gradient(90deg, rgba(248,244,255,1), rgba(192,132,252,.92), rgba(168,85,247,.86));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sub {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 85ch;
}
section { padding: 14px 0; }
/* .card {
    background: linear-gradient(180deg, rgba(10,14,12,.92), rgba(10,14,12,.76));
    border: 1px solid rgba(168,85,247,.20);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
} */
.card-pad { padding: 18px; }
.h {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 900;
    font-family: var(--mono);
}
.p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 13.75px;
}
.p + .p { margin-top: 10px; }
.hr { height: 1px; background: rgba(168,85,247,.12); margin: 14px 0; }
.list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.list li { margin: 6px 0; }
.notice {
    border: 1px dashed rgba(168,85,247,.32);
    background: rgba(10,7,15,.65);
    border-radius: 14px;
    padding: 12px;
    color: rgba(233,237,255,.9);
    font-size: 13.25px;
    line-height: 1.55;
}
.notice b { color: rgba(168,85,247,.95); }
footer {
    padding: 24px 0 34px;
    color: rgba(185,155,255,.64);
    font-size: 12.5px;
    line-height: 1.6;
    border-top: 1px solid rgba(168,85,247,.12);
    background: rgba(5,6,7,.22);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.footer-links a {
    padding: 6px 10px;
    color: rgba(210,190,255,.78);
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease;
}
.footer-links a:hover { transform: scale(1.05); }

@media (max-width: 720px) {
    .topbar-inner { flex-direction: column; align-items: flex-start; }
    h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; scroll-behavior: auto !important; }
}
