:root {
  --ink: #162033;
  --fade: #4d5d78;
  --soft: #6b7c99;
  --glass: rgba(255, 255, 255, 0.42);
  --glass-deep: rgba(255, 255, 255, 0.58);
  --glass-thin: rgba(255, 255, 255, 0.22);
  --edge: rgba(255, 255, 255, 0.72);
  --edge-dim: rgba(255, 255, 255, 0.36);
  --glow: rgba(99, 142, 255, 0.28);
  --accent: #3a63e8;
  --accent-ink: #2448c4;
  --mint: #3cb8b0;
  --warn: #9a6a14;
  --halt: #b24545;
  --ok: #1f7a62;
  --focus: 0 0 0 3px rgba(58, 99, 232, 0.35);
  --blur: blur(22px) saturate(160%);
  --float: 0 18px 48px rgba(70, 96, 150, 0.16);
  --float-sm: 0 10px 28px rgba(70, 96, 150, 0.12);
  --width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.motion-on {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.7 "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(920px 520px at 8% -8%, rgba(160, 196, 255, 0.7), transparent 62%),
    radial-gradient(780px 480px at 96% 4%, rgba(130, 232, 220, 0.42), transparent 58%),
    radial-gradient(640px 420px at 72% 88%, rgba(196, 176, 255, 0.32), transparent 60%),
    linear-gradient(168deg, #d7e4ff 0%, #eef3fb 42%, #d9f4f0 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

body::before {
  width: 280px;
  height: 280px;
  top: 18%;
  left: 6%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(160, 190, 255, 0.08));
}

body::after {
  width: 220px;
  height: 220px;
  right: 8%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(180, 255, 240, 0.4), rgba(255, 255, 255, 0));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.jump {
  position: absolute;
  left: 14px;
  top: -52px;
  z-index: 90;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--glass-deep);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  color: var(--ink);
}

.jump:focus {
  top: 14px;
}

.shell {
  width: min(var(--width), calc(100% - 2rem));
  margin: 0 auto;
}

.frost {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  box-shadow: var(--float), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.85rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  border-radius: 999px;
}

.topbar.lifted .topbar-inner {
  background: rgba(255, 255, 255, 0.62);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.mark img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--edge);
  box-shadow: var(--float-sm);
}

.mark strong,
.mark small {
  display: block;
}

.mark strong {
  font-size: 0.96rem;
}

.mark small {
  color: var(--fade);
  font-size: 0.74rem;
}

.burger {
  display: none;
  border: 1px solid var(--edge);
  background: var(--glass-thin);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.links ul {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.82rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.links a:hover,
.links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.links a.go {
  background: linear-gradient(135deg, rgba(58, 99, 232, 0.92), rgba(60, 184, 176, 0.88));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(58, 99, 232, 0.28);
}

.links a.go:hover {
  background: linear-gradient(135deg, rgba(36, 72, 196, 0.96), rgba(40, 160, 152, 0.9));
}

.stage,
.band {
  padding: 1.35rem 0 0.35rem;
}

.pane {
  border-radius: 28px;
  padding: 1.45rem 1.4rem 1.55rem;
}

.hint {
  margin: 0 0 0.35rem;
  color: var(--soft);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.55rem;
  line-height: 1.25;
  font-weight: 750;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.88rem);
}

h3 {
  font-size: 1.04rem;
}

.lead,
.brief,
.note p,
.ask p {
  color: var(--fade);
}

.lead,
.brief {
  margin: 0 0 1rem;
  max-width: 64ch;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.35rem;
  align-items: start;
}

.page-head {
  display: grid;
  gap: 0.8rem;
}

.path {
  margin: 0;
  color: var(--fade);
  font-size: 0.9rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.2rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--edge);
  font-size: 0.86rem;
}

.pill.lit {
  background: rgba(58, 99, 232, 0.12);
  border-color: rgba(58, 99, 232, 0.28);
  color: var(--accent-ink);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(60, 184, 176, 0.16);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.2rem 0 1.1rem;
}

.press,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
}

.press {
  background: linear-gradient(135deg, #3a63e8, #3cb8b0);
  color: #fff;
  box-shadow: 0 12px 28px rgba(58, 99, 232, 0.28);
}

.press:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.ghost {
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  border: 1px solid var(--edge);
}

.ghost:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.62);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.stat {
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid var(--edge-dim);
}

.stat b {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  color: var(--fade);
  font-size: 0.86rem;
}

.stat em {
  display: block;
  margin-top: 0.25rem;
  color: var(--soft);
  font-size: 0.75rem;
  font-style: normal;
}

.frame {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--edge);
  box-shadow: var(--float-sm);
}

.frame img {
  width: 100%;
  aspect-ratio: 880 / 700;
  object-fit: cover;
}

.frame figcaption {
  padding: 0.65rem 0.85rem 0.8rem;
  color: var(--soft);
  font-size: 0.82rem;
}

.note {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--edge-dim);
  margin: 0 0 1rem;
}

.note h3 {
  margin-bottom: 0.25rem;
}

.note.warn {
  border-color: rgba(154, 106, 20, 0.28);
  background: rgba(255, 244, 214, 0.45);
}

.note.halt {
  border-color: rgba(178, 69, 69, 0.28);
  background: rgba(255, 230, 230, 0.42);
}

.note.warn h3 {
  color: var(--warn);
}

.note.halt h3 {
  color: var(--halt);
}

.grid-4,
.grid-2 {
  display: grid;
  gap: 0.85rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.tile,
.os {
  display: block;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: inherit;
  text-decoration: none;
}

a.tile:hover,
a.os:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

html.motion-on a.tile,
html.motion-on a.os {
  transition: transform 0.28s ease, background 0.28s ease;
}

.tag {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--accent-ink);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.35rem;
  color: var(--fade);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--mint));
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.glyph {
  width: 42px;
  height: 42px;
  margin-bottom: 0.7rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(180, 200, 255, 0.35));
  border: 1px solid var(--edge);
  position: relative;
}

.glyph::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  opacity: 0.85;
}

.g-core::after {
  border-radius: 50%;
}

.g-yaml::after {
  height: 6px;
  inset: 18px 10px;
}

.g-theme::after {
  clip-path: polygon(50% 8%, 92% 88%, 8% 88%);
  inset: 10px;
}

.g-guard::after {
  border-radius: 10px 10px 6px 6px;
}

.g-win::after {
  border-radius: 2px;
}

.g-mac::after {
  border-radius: 50% 50% 40% 40%;
}

.g-linux::after {
  width: 8px;
  left: 17px;
  right: 17px;
}

.g-and::after {
  border-radius: 8px 8px 4px 4px;
}

.ask details {
  margin: 0.55rem 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid var(--edge-dim);
}

.ask summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 650;
}

.ask summary::-webkit-details-marker {
  display: none;
}

.ask summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.ask details[open] summary::after {
  content: "–";
}

.ask details p {
  margin: 0;
  padding: 0 1rem 0.95rem;
}

.ladder {
  display: grid;
  gap: 0.75rem;
}

.rung {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid var(--edge-dim);
}

.rung b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  color: #fff;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

.sheet-hold {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--edge-dim);
  background: rgba(255, 255, 255, 0.28);
}

.sheet th,
.sheet td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--edge-dim);
  vertical-align: top;
}

.sheet th {
  font-size: 0.82rem;
  color: var(--soft);
}

.sheet tr:last-child td {
  border-bottom: 0;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

.base {
  margin-top: 2rem;
  padding: 0 0 1.4rem;
}

.base-pane {
  border-radius: 28px 28px 0 0;
  padding: 1.5rem 1.4rem 1.2rem;
}

.base-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 1.2rem;
}

.base h3 {
  font-size: 0.92rem;
  color: var(--soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.base ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.base li {
  margin: 0.3rem 0;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--edge-dim);
  color: var(--soft);
  font-size: 0.84rem;
}

[data-float] {
  opacity: 1;
  transform: none;
}

html.motion-on [data-float] {
  opacity: 0;
  transform: translateY(16px);
}

html.motion-on [data-float].seen {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.tray-lock {
  overflow: hidden;
}

@media (max-width: 980px) {
  .hero-split,
  .pair,
  .grid-4,
  .base-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .burger {
    display: inline-flex;
  }

  .links {
    position: fixed;
    inset: 76px 1rem auto;
    display: none;
    padding: 0.7rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--edge);
    box-shadow: var(--float);
  }

  .links.open {
    display: block;
  }

  .links ul {
    flex-direction: column;
    align-items: stretch;
  }

  .links a {
    width: 100%;
  }

  .hero-split,
  .pair,
  .grid-4,
  .grid-2,
  .base-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner,
  .pane,
  .base-pane {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.motion-on [data-float],
  html.motion-on a.tile,
  html.motion-on a.os {
    opacity: 1;
    transform: none;
  }
}
