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: #0a0e0c;
    --border: rgba(128, 255, 205, .22);
    --text: rgba(240, 255, 249, .95);
    --muted: rgba(200, 255, 233, .78);
    --muted2: rgba(160, 255, 215, .70);
    --brand: #00ffb2;
    --brand2: #7dffcf;
    --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(0,255,178,.16), rgba(5,6,7,0) 60%),
        radial-gradient(1100px 700px at 85% 0%, rgba(125,255,207,.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(0,255,178,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,178,.035) 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(0,255,178,.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(128,255,205,.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(240,255,249,.78);
    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(128,255,205,.26);
    text-decoration: none;
    white-space: nowrap;
}
.btn.primary {
    background: linear-gradient(180deg, rgba(0,255,178,1), rgba(0,255,178,.82));
    color: #03100b;
    border-color: rgba(0,255,178,.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(240,255,249,1), rgba(125,255,207,.92), rgba(0,255,178,.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(128,255,205,.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(128,255,205,.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(128,255,205,.26);
    background: rgba(10,14,12,.65);
    border-radius: 14px;
    padding: 12px;
    color: rgba(233,237,255,.9);
    font-size: 13.25px;
    line-height: 1.55;
}
.notice b { color: rgba(0,255,178,.95); }
footer {
    padding: 24px 0 34px;
    color: rgba(160,255,215,.62);
    font-size: 12.5px;
    line-height: 1.6;
    border-top: 1px solid rgba(128,255,205,.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(200,255,233,.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; }
}
