:root {
  color-scheme: dark;
  --ink: #f4f1ec;
  --muted: #aaa6b0;
  --quiet: #7d7984;
  --bg: #09090b;
  --panel: #111114;
  --panel-2: #17171c;
  --line: #2a2931;
  --accent: #a47cff;
  --accent-strong: #c5adff;
  --accent-ink: #150d25;
  --good: #7ad7b1;
  --warn: #f1c783;
  --max: 1200px;
  --radius: 18px;
  --shadow: 0 22px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 2%, rgba(124, 76, 255, .12), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(196, 172, 255, .56); text-underline-offset: .2em; }
a:hover { color: var(--accent-strong); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
::selection { color: #0b0711; background: var(--accent-strong); }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: 999px;
  color: #0b0711;
  background: var(--ink);
  font-weight: 750;
}
.skip-link:focus { transform: none; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(9, 9, 11, .88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: max-content; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--ink); font-size: 1.02rem; font-weight: 830; letter-spacing: .12em; }
.nav-wrap { display: flex; align-items: center; gap: 2rem; width: 100%; }
.nav-wrap > .button { display: none; }
.site-nav { display: flex; align-items: center; gap: .15rem; margin-inline: auto; }
.site-nav > a, .resource-menu > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .48rem .75rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.site-nav > a:hover, .site-nav > a[aria-current="page"], .resource-menu > summary:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.resource-menu { position: relative; }
.resource-menu > summary { list-style: none; }
.resource-menu > summary::-webkit-details-marker { display: none; }
.resource-menu > summary::after { content: ""; width: 6px; height: 6px; margin: -.2rem 0 0 .55rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.resource-panel {
  position: absolute;
  top: calc(100% + .45rem);
  left: 50%;
  width: 220px;
  transform: translateX(-50%);
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #151419;
  box-shadow: var(--shadow);
}
.resource-panel a { display: block; padding: .65rem .7rem; border-radius: 8px; color: var(--muted); text-decoration: none; }
.resource-panel a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); }
.menu-button span, .menu-button::before, .menu-button::after { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; content: ""; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255,255,255,.035);
  font-size: .93rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: #55505f; color: var(--ink); background: rgba(255,255,255,.07); }
.button-accent { border-color: transparent; color: var(--accent-ink); background: var(--accent-strong); }
.button-accent:hover { color: var(--accent-ink); background: #d7c7ff; }
.button-small { min-height: 42px; padding: .65rem .95rem; }
.button-quiet { color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.button-row-center { justify-content: center; }
.mt-1 { margin-top: 1rem; }
.mt-3 { margin-top: 3rem; }
.muted-copy { color: var(--muted); }

.eyebrow { margin: 0 0 .85rem; color: var(--accent-strong); font-size: .74rem; font-weight: 820; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.hero { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 9rem) 0 5.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.hero h1, .page-hero h1 { margin: 0; max-width: 940px; font-size: clamp(2.75rem, 7vw, 6.4rem); font-weight: 760; letter-spacing: -.065em; line-height: .97; }
.hero h1 span { color: var(--accent-strong); }
.hero-copy { max-width: 720px; margin: 1.5rem 0 0; color: #c3bec9; font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.62; }
.platform-note { display: flex; align-items: center; gap: .55rem; margin-top: 1.2rem; color: var(--quiet); font-size: .86rem; }
.platform-note::before { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px rgba(122, 215, 177, .08); content: ""; }
.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(197, 173, 255, .18); border-radius: 50%; }
.orbit-a { width: 410px; height: 410px; }
.orbit-b { width: 280px; height: 280px; }
.channel-core { position: relative; z-index: 2; width: 180px; height: 180px; display: grid; place-items: center; border: 1px solid rgba(197,173,255,.4); border-radius: 34px; background: linear-gradient(145deg, rgba(166,126,255,.18), rgba(17,17,20,.92)); box-shadow: 0 0 90px rgba(126,75,255,.19), inset 0 1px rgba(255,255,255,.12); transform: rotate(8deg); }
.channel-core img { width: 82px; height: 82px; transform: rotate(-8deg); }
.node { position: absolute; z-index: 3; width: 11px; height: 11px; border: 2px solid #0a0a0c; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 5px rgba(197,173,255,.12); }
.node-1 { top: 15%; right: 16%; } .node-2 { bottom: 18%; left: 8%; } .node-3 { top: 27%; left: 3%; } .node-4 { right: 7%; bottom: 25%; }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; border-top: 1px solid rgba(255,255,255,.065); }
.section-tight { padding: 3.5rem 0; }
.section-head { display: grid; grid-template-columns: .55fr 1fr; gap: 2rem; margin-bottom: 2.6rem; }
.section-head h2, .content h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 720; letter-spacing: -.045em; line-height: 1.05; }
.section-head p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(255,255,255,.036), rgba(255,255,255,.013)); }
.card-number { display: block; margin-bottom: 2rem; color: var(--accent); font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.card h3 { margin: 0 0 .65rem; font-size: 1.12rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: .8rem; }
.card a { font-weight: 700; }

.architecture { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: .85rem; }
.architecture-step { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.6rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.architecture-step small { color: var(--accent-strong); font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.architecture-step strong { font-size: 1.24rem; }
.architecture-step span { color: var(--muted); font-size: .9rem; }
.architecture-arrow { align-self: center; color: var(--quiet); font-size: 1.4rem; }

.release-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding: clamp(2rem, 5vw, 3.8rem); border: 1px solid rgba(197,173,255,.25); border-radius: 24px; background: radial-gradient(circle at 100% 0, rgba(144,94,255,.15), transparent 45%), var(--panel); box-shadow: var(--shadow); }
.release-card h2 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.05em; line-height: 1; }
.release-card h2 .pill { margin-left: .5rem; vertical-align: middle; transform: translateY(-.18em); }
.release-meta { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin-top: 1rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; font-weight: 740; }

.cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: 24px; background: var(--ink); color: #121116; }
.cta h2 { margin: 0; max-width: 720px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; line-height: 1.05; }
.cta p { margin: .9rem 0 0; color: #514d58; }
.cta .button { color: var(--ink); background: #15131a; }

.page-hero { padding: clamp(5rem, 9vw, 8rem) 0 4rem; }
.page-hero h1 { max-width: 1000px; font-size: clamp(2.7rem, 6vw, 5.7rem); }
.page-hero .lead { max-width: 800px; margin: 1.5rem 0 0; color: #c3bec9; font-size: clamp(1.08rem, 1.6vw, 1.28rem); }
.page-index { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.page-index a { min-height: 40px; display: inline-flex; align-items: center; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .82rem; text-decoration: none; }
.page-index a:hover { color: var(--ink); border-color: #514c5a; }
.content { max-width: 820px; }
.content-wide { max-width: none; }
.content h2 { margin-top: 4.5rem; font-size: clamp(1.85rem, 3.5vw, 3rem); }
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 2.4rem 0 .6rem; font-size: 1.25rem; }
.content p, .content li { color: #b9b4bf; }
.content strong { color: var(--ink); }
.content ul, .content ol { padding-left: 1.25rem; }
.content li + li { margin-top: .55rem; }
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.5rem; }
.definition { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.definition dt { color: var(--ink); font-weight: 760; }
.definition dd { margin: .3rem 0 0; color: var(--muted); }
.callout { margin: 2rem 0; padding: 1.4rem 1.5rem; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(164,124,255,.07); }
.callout p { margin: 0; }
.callout span, .callout code { overflow-wrap: anywhere; word-break: break-word; }

.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.download-card { position: relative; display: flex; flex-direction: column; padding: 1.8rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.download-card.recommended { border-color: rgba(197,173,255,.48); }
.download-card h2 { margin: .5rem 0; font-size: 1.55rem; }
.download-card p { color: var(--muted); }
.download-card .button { margin-top: auto; }
.hash-block { position: relative; margin-top: 1rem; padding: 1rem 3.2rem 1rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #08080a; }
.hash-block code { display: block; overflow-wrap: anywhere; color: #d5d0d9; font-size: .78rem; line-height: 1.55; }
.copy-button { position: absolute; top: .55rem; right: .55rem; min-width: 44px; min-height: 36px; padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--panel-2); font-size: .72rem; cursor: pointer; }
.copy-fallback { position: fixed; opacity: 0; pointer-events: none; }
.artifact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; padding: 0; list-style: none; }
.artifact-list a { display: flex; justify-content: space-between; gap: 1rem; min-height: 54px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); text-decoration: none; }
.artifact-list a:hover { color: var(--ink); border-color: #514c5a; }

.notice { border-top: 1px solid var(--line); }
.notice summary { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 1rem; min-height: 88px; cursor: pointer; list-style: none; }
.notice summary::-webkit-details-marker { display: none; }
.notice summary::after { content: "+"; color: var(--accent-strong); font-size: 1.4rem; }
.notice[open] summary::after { content: "−"; }
.notice time, .notice .tag { color: var(--quiet); font-size: .78rem; }
.notice h2 { margin: 0; font-size: 1.12rem; letter-spacing: -.015em; }
.notice-body { max-width: 780px; padding: 0 2rem 1.8rem 160px; color: var(--muted); }

.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-card { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; }
.contact-card a { display: inline-flex; width: fit-content; font-weight: 760; }
.email-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.email-hero a { font-size: clamp(1.15rem, 4vw, 2rem); font-weight: 760; overflow-wrap: anywhere; }

.status-table { width: 100%; border-collapse: collapse; }
.status-table th, .status-table td { padding: .9rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.status-table th { color: var(--quiet); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.status-pass { color: var(--good); } .status-open { color: var(--warn); }

.join-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.join-layout > * { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.invite-mask { display: block; margin: 1rem 0; padding: .8rem; border-radius: 8px; color: var(--accent-strong); background: #09090b; overflow-wrap: anywhere; }

.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); background: #08080a; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.footer-brand p { max-width: 280px; color: var(--quiet); }
.footer-column strong { display: block; margin-bottom: .8rem; color: var(--ink); font-size: .79rem; letter-spacing: .07em; text-transform: uppercase; }
.footer-column a { display: block; min-height: 34px; color: var(--muted); font-size: .87rem; text-decoration: none; }
.footer-column a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--quiet); font-size: .79rem; }
.footer-bottom a { color: var(--muted); }

.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { margin: 0; font-size: clamp(5rem, 20vw, 12rem); color: transparent; -webkit-text-stroke: 1px rgba(197,173,255,.5); line-height: .9; }
.not-found h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 1rem 0 .5rem; }
.not-found p { color: var(--muted); }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-brand { grid-row: span 2; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 68px; }
  .menu-button { display: block; margin-left: auto; }
  .header-inner > .button { display: none; }
  .js .nav-wrap {
    display: none;
    position: fixed;
    top: 68px;
    inset-inline: 0;
    height: calc(100dvh - 68px);
    padding: 1rem 20px 2rem;
    overflow-y: auto;
    background: rgba(9,9,11,.98);
  }
  .js .nav-wrap[data-open="true"] { display: block; }
  .site-nav { display: grid; align-items: stretch; }
  .site-nav > a, .resource-menu > summary { min-height: 52px; padding: .7rem .85rem; font-size: 1rem; }
  .resource-panel { position: static; width: auto; transform: none; box-shadow: none; }
  .nav-wrap > .button { display: flex; width: 100%; margin-top: 1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 330px; }
  .orbit-a { width: 330px; height: 330px; }
  .architecture { grid-template-columns: 1fr; }
  .architecture-arrow { transform: rotate(90deg); }
  .section-head { grid-template-columns: 1fr; gap: .6rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .hero { padding-top: 4.5rem; }
  .hero-grid { gap: 2rem; }
  .hero-visual { min-height: 280px; }
  .orbit-a { width: 270px; height: 270px; }
  .orbit-b { width: 200px; height: 200px; }
  .channel-core { width: 135px; height: 135px; border-radius: 26px; }
  .channel-core img { width: 62px; height: 62px; }
  .grid-4, .grid-3, .grid-2, .download-grid, .prose-grid, .contact-list, .join-layout { grid-template-columns: 1fr; }
  .release-card, .cta { grid-template-columns: 1fr; align-items: start; }
  .release-card .button { width: 100%; }
  .artifact-list { grid-template-columns: 1fr; }
  .notice summary { grid-template-columns: 1fr auto; padding: 1rem 0; }
  .notice summary time { grid-column: 1; }
  .notice h2 { grid-column: 1; }
  .notice summary::after { grid-column: 2; grid-row: 1 / 3; }
  .notice-body { padding: 0 1.5rem 1.5rem 0; }
  .status-table { display: block; overflow-x: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .button-row, .page-index { display: none !important; }
  .content { max-width: none; }
  .card, .callout { border-color: #bbb; background: #fff; break-inside: avoid; }
  .content p, .content li, .card p { color: #333; }
}
