:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1018;
  --fg: #eef2f7;
  --muted: #9aa3b2;
  --surface: #151b24;
  --surface-2: #121822;
  --line: #2a3544;
  --primary: #4c9fff;
  --primary-ct: #152033;
  --glow: #1a3a66;
  --blank: #3a3420;
  --nav-bg: rgba(11, 16, 24, 0.82);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --fg: #111318;
  --muted: #6b7380;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --line: #d5dae2;
  --primary: #2f7bff;
  --primary-ct: #e8f1ff;
  --glow: #c5d8ff;
  --blank: #fff3b0;
  --nav-bg: rgba(247, 248, 250, 0.86);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }

.wrap {
  width: min(1024px, calc(100% - 48px));
  margin: 0 auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
  border-bottom: 1px solid transparent;
}
.mast.is-solid {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.bar {
  width: min(1024px, calc(100% - 48px));
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}
.links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.links a:hover,
.links a[aria-current] { color: var(--fg); }

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.actions .btn {
  height: 40px;
  padding: 0 18px;
}

.icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon:hover { background: var(--surface); }
.icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 0.875rem/1 "Segoe UI", system-ui, sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-lg {
  height: 48px;
  padding: 0 28px;
  font-size: 0.95rem;
}
.btn-primary {
  background: #2f7bff;
  color: #fff;
  border-color: #2f7bff;
}
.btn-primary:hover { background: #2568e0; border-color: #2568e0; }
.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-btn { display: none; }
.drawer { display: none; }

@media (max-width: 860px) {
  .links, .bar .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mast.open .drawer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .drawer a {
    text-decoration: none;
    color: var(--muted);
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
  }
  .drawer .btn { display: inline-flex; width: 100%; margin-top: 8px; }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 50% -10%, var(--primary-ct), transparent 70%),
    radial-gradient(380px 280px at 90% 30%, var(--glow), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 480px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary-ct);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.lead {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--muted);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.stage {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.ring-a { width: 440px; height: 440px; }
.ring-b { width: 340px; height: 340px; border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.ring-c { width: 240px; height: 240px; border-color: color-mix(in srgb, var(--primary) 42%, transparent); }
.planet {
  position: relative;
  z-index: 2;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--primary) 32%, transparent);
}
.planet svg {
  display: block;
  width: 100%;
  height: 100%;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
.orbit-a { width: 440px; height: 440px; }
.orbit-b { width: 340px; height: 340px; animation-duration: 15s; animation-direction: reverse; }
.bubble {
  position: absolute;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}
.bubble.mine {
  background: #2f7bff;
  color: #fff;
  border-color: #2f7bff;
}
.bubble.t { top: 0; left: 50%; transform: translate(-50%, -50%); }
.bubble.b { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.bubble.l { left: 0; top: 50%; transform: translate(-50%, -50%); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .bubble { animation: unspin 20s linear infinite; }
.orbit-b .bubble { animation-duration: 15s; animation-direction: reverse; }
@keyframes unspin { to { transform: translate(-50%, -50%) rotate(-360deg); } }
.orbit .bubble.b { animation-name: unspin-b; }
@keyframes unspin-b { to { transform: translate(-50%, 50%) rotate(-360deg); } }
.bubble.l { animation-name: unspin-l; }
@keyframes unspin-l { to { transform: translate(-50%, -50%) rotate(-360deg); } }

.features { padding: 88px 0; border-bottom: 1px solid var(--line); }
.kicker {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.features h2, .platforms h2 {
  text-align: center;
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}
.sub {
  text-align: center;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-ct);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.ico svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platforms { padding: 88px 0; border-bottom: 1px solid var(--line); }
.cta-box {
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.cta-box h2 { margin: 0 0 10px; color: var(--fg); }
.cta-box p { margin: 0 auto 28px; max-width: 420px; color: var(--muted); line-height: 1.5; }
.cta-box .cta { justify-content: center; }

.foot {
  background: var(--surface-2);
  padding: 40px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.foot p, .foot a { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot h4 { margin: 0 0 12px; font-size: 0.85rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot-copy {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot .brand { margin: 0 0 10px; font-size: 1rem; }

.doc {
  width: min(48rem, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 72px;
}
.doc h1 { font-size: 1.7rem; letter-spacing: -0.03em; margin: 0 0 0.35rem; }
.doc h2 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; scroll-margin-top: 88px; }
.doc .meta { color: var(--muted); margin: 0 0 1.4rem; }
.doc p, .doc li { line-height: 1.6; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.9rem; margin: 1rem 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }
.doc .warn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}
.doc .back { color: var(--primary); text-decoration: none; font-size: 0.9rem; }
.blank { background: var(--blank); padding: 0 0.2em; border-radius: 4px; }

.docs-page {
  width: min(1024px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 72px;
}
.docs-page h1 { margin: 0 0 6px; font-size: 1.7rem; letter-spacing: -0.03em; }
.docs-page > .meta { margin-bottom: 28px; color: var(--muted); }
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  min-height: 420px;
}
.docs-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
}
.docs-side button {
  appearance: none;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.9rem/1.35 "Segoe UI", system-ui, sans-serif;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.docs-side button:hover { color: var(--fg); background: var(--surface); }
.docs-side button.is-on {
  color: var(--fg);
  background: var(--bg);
}
.docs-main { padding: 28px 32px 36px; }
.docs-panel[hidden] { display: none; }
.docs-panel h2 { margin: 0 0 8px; font-size: 1.25rem; }
.docs-panel .lead-s { margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; }
.docs-items {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.docs-items a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  font-size: 0.95rem;
}
.docs-items a:hover { color: var(--primary); }
.docs-items span { color: var(--muted); font-size: 0.8rem; }

@media (max-width: 900px) {
  .hero-grid, .cards, .foot-grid, .docs-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; text-align: center; margin: 0 auto; }
  .cta { justify-content: center; }
  .stage { min-height: 380px; transform: scale(0.78); }
  .docs-side { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media print {
  .mast, .theme-btn { display: none !important; }
  .doc { padding-top: 0; }
}
