:root {
    --bg: #080908;
    --paper: #f3f0e8;
    --ink: #141715;
    --graphite: #232826;
    --muted: #5d675f;
    --line: rgba(243, 240, 232, 0.16);
    --line-dark: rgba(20, 23, 21, 0.12);
    --mint: #1f8f68;
    --mint-2: #b7f3d8;
    --max: 1120px;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --serif: "Outfit", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--paper); color: var(--ink); padding: 0.4rem 0.7rem; }
.skip:focus { top: 0.6rem; }
.site-header, .site-footer, .band, .page { width: min(var(--max), calc(100% - 2.2rem)); margin-inline: auto; }
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.brand img { height: 87px; width: auto; display: block; }
.site-nav { display: flex; gap: 1rem; align-items: center; }
.site-nav a { color: #c9d0cb; text-decoration: none; letter-spacing: 0.04em; font-size: 0.92rem; }
.site-nav a.is-current, .site-nav a:hover { color: white; }
.lang-switch { display: inline-flex; gap: 0.45rem; margin-left: 0.2rem; padding-left: 0.75rem; border-left: 1px solid var(--line); }
.lang-switch a { font-size: 0.78rem; letter-spacing: 0.08em; }
.nav-toggle { display: none; background: transparent; color: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; }
.hero { padding: 4.2rem 0 1.2rem; text-align: center; }
.hero .lead, .hero .actions { margin-inline: auto; }
.hero .actions { justify-content: center; }
.kicker, .eyebrow { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.75rem; color: var(--mint-2); }
h1, h2, h3 { font-family: var(--sans); font-weight: 520; letter-spacing: -0.045em; line-height: 1.02; }
h1 { font-size: clamp(3.4rem, 8vw, 6.2rem); margin: 0.35rem auto 0.7rem; max-width: 12ch; }
.subhead { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin: 0 auto; color: #d7ddd8; font-weight: 380; }
.lead { max-width: 40rem; color: #d5dbd6; font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.actions a, .text-link {
    display: inline-flex; align-items: center; min-height: 2.8rem; padding: 0.45rem 1rem;
    border-radius: 999px; text-decoration: none;
}
.actions .primary { background: #f5f7f6; color: #090909; font-weight: 640; min-width: 11rem; justify-content: center; }
.paper .path span { border-color: rgba(255,255,255,0.16); color: #f4f6f5; }
.actions .ghost { border: 1px solid var(--line); }
.paper {
    background: #101214;
    color: var(--paper);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 1.4rem;
}
.stage { position: relative; height: 340px; margin: 2.4rem auto 0.4rem; max-width: 920px; }
.stage img { position: absolute; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.stage .main { width: min(68%, 560px); height: 300px; left: 50%; top: 18px; transform: translateX(-50%); z-index: 2; }
.stage .side-l, .stage .side-r { width: 28%; height: 220px; top: 58px; z-index: 1; filter: saturate(0.9); }
.stage .side-l { left: 0; }
.stage .side-r { right: 0; }
.stage .float { width: 92px; height: 92px; right: 8%; top: 0; z-index: 3; border-radius: 18px; }
.paper .kicker, .paper .eyebrow { color: var(--mint-2); }
.paper p, .paper .card p { color: #c5cdc8; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare article { border-top: 3px solid var(--mint); padding-top: 0.8rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.card, .notice {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1rem 1.05rem 1.15rem;
    background: rgba(255,255,255,0.03);
}
.paper .card { border-color: rgba(255,255,255,0.08); background: #181b1d; color: var(--paper); }
.card h2, .card h3 { margin: 0.25rem 0; font-size: 1.55rem; }
.card a { text-decoration: none; }
.card p, .refs span { color: var(--muted); }
.paper .card p { color: var(--graphite); }
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge { border: 1px solid var(--line-dark); border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.78rem; letter-spacing: 0.04em; }
.badge-experimental, .badge-early { border-color: #9a6b2f; }
.badge-established { border-color: var(--mint); }
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 1rem 0; }
.path span { border: 1px solid var(--line-dark); border-radius: 16px; padding: 0.8rem; text-align: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.orbit-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 1.2rem; align-items: center; }
.orbit { position: relative; width: 280px; height: 280px; margin-inline: auto; }
.orbit-core {
    position: absolute; inset: 95px; border-radius: 50%;
    display: grid; place-items: center; text-align: center;
    background: var(--ink); color: var(--paper); font-size: 0.78rem; letter-spacing: 0.12em;
}
.node {
    position: absolute; left: 50%; top: 50%; width: 7.2rem; margin-left: -3.6rem;
    transform: rotate(calc(var(--i) * 32.727deg)) translateY(-118px) rotate(calc(var(--i) * -32.727deg));
    background: transparent; color: #f4f6f5; border: 0; cursor: pointer; font-size: 0.72rem; line-height: 1.2;
}
.node.is-on { color: var(--mint); font-weight: 640; }
.band { padding: 1.2rem 0 2rem; }
.page { padding: 2rem 0 3rem; }
.page h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 16ch; }
.refs { padding-left: 1.1rem; }
.refs li { margin: 0.8rem 0; }
.refs a { color: var(--mint); }
.site-footer { padding: 0.4rem 0 2.4rem; color: #b7c0ba; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.functions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.functions span { border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.75rem; }
.admin { color: var(--ink); background: var(--paper); min-height: 100vh; }
.admin main { width: min(880px, calc(100% - 2rem)); margin: 2rem auto; }
.admin input, .admin textarea, .admin select { width: 100%; padding: 0.55rem; margin: 0.2rem 0 0.8rem; }
.admin table { width: 100%; border-collapse: collapse; }
.admin td, .admin th { text-align: left; border-bottom: 1px solid var(--line-dark); padding: 0.45rem; }
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; position: absolute; top: calc(100% + 0.35rem); left: 0; right: 0; flex-direction: column; align-items: flex-start; background: #101311; border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem; z-index: 4; }
    .site-nav.is-open { display: flex; }
    .lang-switch { border-left: 0; padding-left: 0; margin-left: 0; }
    .compare, .grid, .path, .two, .orbit-wrap { grid-template-columns: 1fr; }
    h1 { max-width: none; }
    .stage { height: 240px; }
    .stage .main { width: 78%; height: 190px; }
    .stage .side-l, .stage .side-r, .stage .float { display: none; }
}
