/* Orbit — orbit.yunzheng.space
   Palette: pure black ground, white text, #9ca3af for secondary copy.
   One typeface (Inter). Glass surfaces via .liquid-glass; entrance via .bfu. */
:root {
  --bg: #000; --fg: #fff; --muted: #9ca3af; --line: rgba(255,255,255,.1);
  --glass-r: 999px; --ease: cubic-bezier(.22,1,.36,1);
  --font-display: "Geist Pixel Circle", ui-monospace, Menlo, monospace;
}
/* The wordmark, section marks, product names and figures keep the pixel
   face of the first Orbit page; everything readable stays Inter. */
@font-face { font-family: "Geist Pixel Circle"; src: url("/fonts/GeistPixel-Circle.woff2") format("woff2"); font-weight: 400; font-display: swap; }
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; color: #e5e7eb; background: rgba(255,255,255,.06); padding: .05em .4em; border-radius: 6px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: .5rem .8rem; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- liquid glass ---------- */
.liquid-glass {
  background: rgba(255,255,255,.01); background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: none; box-shadow: inset 0 1px 1px rgba(255,255,255,.1);
  position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.15) 80%, rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ---------- blur-fade-up entrance ---------- */
@keyframes blurFadeUp { from { opacity: 0; filter: blur(20px); transform: translateY(40px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
.bfu { opacity: 0; animation: blurFadeUp 1s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .bfu { animation: none; opacity: 1; } }

/* ---------- stage (full viewport hero) ---------- */
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.bgvideo { position: fixed; inset: 0; z-index: 0; background: #000; }
.bgvideo-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.blurmask { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 45%); mask-image: linear-gradient(to top, black 0%, transparent 45%); }

/* nav */
.nav { position: relative; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem; }
.logo { font-family: var(--font-display); font-weight: 400; letter-spacing: .2em; font-size: 1.45rem; line-height: 2rem; display: inline-flex; align-items: center; height: 2rem; color: #fff; -webkit-text-stroke: .35px #fff; text-shadow: 0 0 12px rgba(255,255,255,.45); }
.navlinks { display: none; gap: 2rem; }
.navlinks a { font-size: .875rem; transition: color .2s; }
.navlinks a:hover { color: #d1d5db; }
.navright { display: flex; align-items: center; gap: .75rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; border-radius: var(--glass-r); padding: .5rem 1rem; font-size: .875rem; font-weight: 500; }
.circle { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: var(--glass-r); }
.navsearch, .navuser { display: none; }
.burger { display: inline-flex; position: relative; }
.burger .ic { position: absolute; transition: transform .5s ease-out, opacity .5s ease-out; }
.burger .ic-x { opacity: 0; transform: rotate(-180deg) scale(.5); }
.burger[aria-expanded="true"] .ic-menu { opacity: 0; transform: rotate(180deg) scale(.5); }
.burger[aria-expanded="true"] .ic-x { opacity: 1; transform: rotate(0) scale(1); }

/* mobile menu */
.mmenu { position: absolute; left: 0; right: 0; top: 72px; z-index: 40; display: flex; flex-direction: column; padding: .75rem 1rem 1rem;
  background: rgba(17,24,39,.95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid #1f2937; border-bottom: 1px solid #1f2937; box-shadow: 0 25px 50px -12px rgba(0,0,0,.6);
  transform: translateY(-1rem); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .5s ease-out, opacity .5s ease-out, visibility 0s linear .5s; }
.mmenu.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mmenu > a { padding: .75rem .75rem; border-radius: .5rem; font-size: .95rem; transform: translateX(-12px); opacity: 0; transition: background .2s, transform .45s ease-out, opacity .45s ease-out; transition-delay: calc(var(--i) * 50ms); }
.mmenu.open > a { transform: translateX(0); opacity: 1; }
.mmenu > a:hover { background: rgba(31,41,55,.5); }
.mmenu-tools { display: flex; gap: .75rem; padding-top: .9rem; margin-top: .5rem; border-top: 1px solid #1f2937; }
.mmenu-tools .pill { flex: 1; justify-content: center; }

/* hero content */
.hero { position: relative; z-index: 10; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem; padding: 0 1rem 2rem; }
.hero-left { min-width: 0; }
.meta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-bottom: 1.5rem; font-size: .75rem; color: #e5e7eb; }
.meta-item { display: inline-flex; align-items: center; gap: .45rem; }
.meta .ic { width: 16px; height: 16px; }
.meta .strong { font-weight: 500; }
.meta .fig { font-family: var(--font-display); font-size: 1.05em; letter-spacing: .02em; }
.title { font-size: 1.9rem; font-weight: 400; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 1rem; max-width: 18ch; text-wrap: balance; }
html[lang^="zh"] .title { max-width: none; }
.desc { font-size: 1rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 42rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-solid { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: #000; border-radius: var(--glass-r); font-weight: 500; padding: .625rem 1.5rem; transition: background .2s; }
.btn-solid:hover { background: #e5e7eb; }
.btn-solid .ic { fill: #000; stroke: #000; }
.btn-glass { display: inline-flex; align-items: center; gap: .5rem; border-radius: var(--glass-r); font-weight: 500; padding: .625rem 1.5rem; }
.hero-right { display: flex; gap: .75rem; }
.hero-right .pill { padding: .625rem 1rem; }
.hero-swap { animation: blurFadeUp .7s ease-out both; }

@media (min-width: 640px) {
  .nav { padding: 1rem 1.5rem; }
  .navsearch, .navuser { display: inline-flex; }
  .navsearch { padding: .5rem 1rem; }
  .mmenu-tools { display: none; }
  .hero { padding: 0 1.5rem 2rem; }
  .meta { gap: .75rem 1.5rem; font-size: .875rem; }
  .meta .ic { width: 20px; height: 20px; }
  .title { font-size: 3rem; }
  .desc { font-size: 1.125rem; }
  .btn-solid, .btn-glass { padding: .75rem 2rem; }
  .hero-right .pill { padding: .75rem 1.5rem; }
}
@media (min-width: 768px) {
  .nav { padding: 1.5rem 3rem; }
  .logo { height: 2.5rem; line-height: 2.5rem; font-size: 1.25rem; }
  .navsearch { padding: .5rem 1.5rem; }
  .hero { flex-direction: row; align-items: flex-end; padding: 0 3rem 4rem; }
  .hero-left { flex: 1; }
  .hero-right { width: auto; justify-content: flex-end; }
  .meta { margin-bottom: 2rem; }
  .title { font-size: 3.75rem; margin-bottom: 1.5rem; }
  .desc { font-size: 1.25rem; margin-bottom: 3rem; }
}
@media (min-width: 1024px) {
  .navlinks { display: flex; }
  .burger, .mmenu { display: none; }
  .title { font-size: 4.5rem; }
}

/* ---------- document pages (sponsor): same chrome, no video ---------- */
body.doc .nav { position: sticky; top: 0; background: rgba(0,0,0,.75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body.doc .navlinks a[aria-current="page"] { color: #5df0a8; }
body.doc .below { border-top: 0; }
body.doc .lead { font-size: 1.15rem; line-height: 1.7; color: #d1d5db; max-width: 46rem; margin: 0 0 1.5rem; }
body.doc .ctas { margin-bottom: .5rem; }
.steps { margin: 0; padding-left: 1.4rem; display: grid; gap: .7rem; color: #d1d5db; font-size: .95rem; line-height: 1.6; }
.steps li::marker { font-family: var(--font-display); color: var(--muted); }
.steps b { color: #fff; font-weight: 600; }

/* ---------- search palette ---------- */
.palette { border: 0; padding: 0; background: transparent; width: min(560px, 92vw); margin: 12vh auto 0; color: #fff; }
.palette::backdrop { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.palette-box { display: flex; align-items: center; gap: .6rem; border-radius: 14px; padding: .7rem .9rem; background: rgba(20,20,22,.85); }
.palette-box input { flex: 1; background: transparent; border: 0; color: #fff; font: inherit; font-size: 1rem; outline: none; min-width: 0; }
.palette-close { font-size: .7rem; color: var(--muted); background: rgba(255,255,255,.08); border: 0; border-radius: 6px; padding: .2rem .45rem; }
.palette-list { list-style: none; margin: .5rem 0 0; padding: .35rem; border-radius: 14px; background: rgba(20,20,22,.92); border: 1px solid var(--line); max-height: 50vh; overflow: auto; }
.palette-list li { padding: .6rem .7rem; border-radius: 9px; display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; cursor: pointer; }
.palette-list li small { color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.palette-list li[aria-selected="true"], .palette-list li:hover { background: rgba(255,255,255,.08); }

/* ---------- below the fold ---------- */
.below { position: relative; z-index: 5; background: #000; border-top: 1px solid var(--line); }
.section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.wrap { width: min(1180px, 100% - 2rem); margin: 0 auto; }
.sec-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.sec-head .idx { font-family: var(--font-display); color: var(--muted); font-size: .95rem; }
.sec-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; letter-spacing: -.01em; }
.sec-tag { margin-left: auto; font-family: var(--font-display); font-size: .85rem; color: var(--muted); }
.cardgrid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pcard { border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); scroll-margin-top: 2rem; }
.pcard h3 { margin: 0 0 .35rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.pd { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.facts { margin: 0; padding: 0; list-style: none; color: #d1d5db; font-size: .9rem; display: grid; gap: .45rem; }
.facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; align-items: baseline; }
.facts b { font-family: var(--font-display); font-weight: 400; color: var(--muted); font-size: .85rem; letter-spacing: .02em; }
/* Things people copy — addresses, endpoints, name servers — are the one
   place the page uses a colour: a soft green key, brighter and larger than
   the prose around it, and a click copies it. */
.facts code { position: relative; font-size: .98rem; color: #fff; background: rgba(93,240,168,.08); border: 1px solid rgba(93,240,168,.32); padding: .14em .55em; border-radius: 8px; cursor: copy; transition: background .2s, box-shadow .2s; }
.facts code:hover { background: rgba(93,240,168,.16); box-shadow: 0 0 0 3px rgba(93,240,168,.12); }
.facts code[data-copied]::after { content: attr(data-copied); position: absolute; left: 50%; top: -1.7em; transform: translateX(-50%); font: 500 .68rem/1.6 'Inter', system-ui, sans-serif; color: #000; background: #5df0a8; padding: 0 .5em; border-radius: 6px; white-space: nowrap; }
.facts li.big span { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.facts li.big code { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: .02em; padding: .16em .6em; text-shadow: 0 0 14px rgba(93,240,168,.35); }
.facts li.big .sub { color: var(--muted); font-size: .85rem; }
.plans td:first-child { font-family: var(--font-display); font-size: 1rem; }
.tablecard { border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }
.tscroll { overflow-x: auto; }
.plans { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.plans th, .plans td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.plans th { color: var(--muted); font-weight: 500; font-size: .78rem; }
.plans .inf { color: var(--muted); }
.muted { color: var(--muted); }
.tnote { color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }
#map { height: 420px; border-radius: 18px; border: 1px solid var(--line); background: #0a0a0a; overflow: hidden; }
.leaflet-container { background: #0a0a0a; font-family: inherit; }
.leaflet-tile { filter: grayscale(1) invert(1) brightness(.72) contrast(1.15); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #111; color: #fff; }
.faq { display: grid; gap: .5rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: .2rem 1rem; }
.faq summary { cursor: pointer; padding: .8rem 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; color: var(--muted); font-weight: 300; font-size: 1.3rem; }
.faq details[open] summary::after { content: "−" / ""; }
.faq p { margin: 0 0 1rem; color: #d1d5db; font-size: .95rem; }
.foot { padding: 2.5rem 0 3rem; }
.foot-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.foot-brand img { border-radius: 10px; }
.foot-cap { color: var(--muted); font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .88rem; color: #d1d5db; }
.foot-links a:hover { color: #fff; }
@media (min-width: 720px) { .cardgrid { grid-template-columns: 1fr 1fr; } .sec-head h2 { font-size: 2.1rem; } }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: .1rem; } }
