/* 天枢 API storefront — "deep orbit": one dark world, planet seen from orbit, holo blue for structure, gold only for what matters most. */
:root {
  --space: #03050c;
  --ink: #080c1c;
  --line: rgba(140, 170, 255, 0.16);
  --line2: rgba(140, 170, 255, 0.32);
  --star: #eef2ff;
  --soft: #b4bbd3;
  --mut: #8790ad;
  --holo: #62b0ff;
  --holo2: #9fd4ff;
  --gold: #ffcf6e;
  --f-brand: 'Michroma', 'Sora', sans-serif;
  --f-body: 'Sora', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-cjk: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-data: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--space);
  color: var(--star);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
}
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--space); }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--holo2); outline-offset: 3px; }
.track { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--star); color: var(--space); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 500; border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-p { background: var(--star); color: var(--space); }
.btn-p:hover { background: var(--holo2); }
.btn-g { border-color: var(--line2); color: var(--star); }
.btn-g:hover { border-color: var(--holo2); }
.btn-gold { background: var(--gold); color: #1d1300; }
.btn-gold:hover { background: #ffe0a0; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(3, 5, 12, 0.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-cjk); font-weight: 700; font-size: 17px; letter-spacing: .06em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.links { display: flex; gap: 28px; font-size: 14px; color: var(--mut); }
.links a:hover, .link-quiet:hover { color: var(--star); }
.acts { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.link-quiet { color: var(--soft); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 10px; background: transparent; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--star); }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.mobile-nav { border-top: 1px solid var(--line); display: grid; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
@media (min-width: 861px) { .mobile-nav { display: none; } }
@media (max-width: 860px) {
  .links, .acts .link-quiet, .acts .btn-p { display: none; }
  .menu-toggle { display: block; }
}

/* hero */
.hero { position: relative; height: min(820px, max(640px, 92vh)); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-copy { position: relative; z-index: 2; height: 100%; display: grid; align-content: center; padding-block: 40px 140px; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-data); font-size: 12px; letter-spacing: .16em; color: var(--holo2); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--holo); box-shadow: 0 0 10px var(--holo); }
.hero h1 { margin: 20px 0 0; font-family: var(--f-cjk); font-weight: 900; font-size: clamp(44px, 7.2vw, 100px); line-height: 1.04; letter-spacing: -.02em; max-width: 9.5em; text-wrap: balance; }
.hero h1 .sub { display: block; font-family: var(--f-brand); font-weight: 400; font-size: .24em; letter-spacing: .32em; color: var(--mut); margin-bottom: 1em; }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #fff 10%, var(--holo2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 22px 0 0; max-width: 36ch; color: var(--soft); font-size: 17px; }
.ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.ctas.center { justify-content: center; }
.tele { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: linear-gradient(0deg, rgba(3, 5, 12, .88), rgba(3, 5, 12, .35)); }
.tele-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 18px 18px 18px 0; border-right: 1px solid var(--line); margin-right: 18px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat small { display: block; font-family: var(--f-data); font-size: 11px; letter-spacing: .12em; color: var(--mut); }
.stat b { display: block; font-family: var(--f-brand); font-weight: 400; font-size: 20px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat b span { font-family: var(--f-body); font-size: 13px; color: var(--mut); margin-left: 6px; }
@media (max-width: 760px) {
  .hero { height: 780px; }
  .hero-copy { align-content: start; padding-top: 48px; }
  .tele-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; margin-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* sections */
.band { padding-block: 110px; border-bottom: 1px solid var(--line); }
.sh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.sh .k { font-family: var(--f-data); font-size: 12px; letter-spacing: .16em; color: var(--holo2); text-transform: uppercase; }
.sh h2 { margin: 10px 0 0; font-family: var(--f-cjk); font-weight: 700; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.sh p { margin: 0; color: var(--mut); max-width: 46ch; }
@media (max-width: 760px) { .sh { grid-template-columns: 1fr; gap: 14px; } .band { padding-block: 80px; } }

/* star chart */
.chart { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 30% 40%, rgba(98, 176, 255, .08), transparent 60%), var(--ink); }
.chart svg { width: 100%; height: auto; display: block; }
.star { cursor: pointer; }
.star .core { fill: var(--star); }
.star .halo { fill: rgba(98, 176, 255, .18); }
.star:hover .halo, .star.on .halo, .star:focus .halo { fill: rgba(255, 207, 110, .28); }
.star.on .core { fill: var(--gold); }
.star:focus { outline: none; }
.star text { font-family: var(--f-data); font-size: 11px; fill: #aeb6d2; }
.star.on text { fill: var(--gold); }
.galaxy-label { fill: var(--mut); font-family: var(--f-brand); font-size: 10px; letter-spacing: .2em; }
.detail { border-left: 1px solid var(--line); padding: 28px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.detail .pv { font-family: var(--f-data); font-size: 12px; color: var(--mut); letter-spacing: .1em; }
.detail h3 { margin: 0; font-family: var(--f-data); font-weight: 500; font-size: 24px; overflow-wrap: anywhere; }
.detail p { margin: 0; color: var(--mut); font-size: 14px; }
.detail .btn { justify-self: start; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-size: 12px; border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; color: #c4cbe3; }
@media (max-width: 860px) { .chart { grid-template-columns: 1fr; } .detail { border-left: 0; border-top: 1px solid var(--line); } }

/* route */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.route::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; border-top: 1px dashed var(--line2); }
.step { position: relative; padding-right: 24px; display: grid; gap: 12px; align-content: start; }
.step .dot { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: var(--space); display: grid; place-items: center; font-family: var(--f-brand); font-size: 13px; color: var(--holo2); }
.step:last-child .dot { border-color: var(--gold); color: var(--gold); }
.step h3 { margin: 0; font-family: var(--f-cjk); font-size: 20px; font-weight: 700; }
.step p { margin: 0; color: var(--mut); font-size: 14px; max-width: 30ch; }
.code { margin-top: 44px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink); overflow: hidden; }
.code .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-data); font-size: 12px; color: var(--mut); }
.code .bar button { background: transparent; border: 1px solid var(--line2); border-radius: 8px; padding: 4px 12px; font-size: 12px; }
.code .bar button:hover { border-color: var(--holo2); }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; font-family: var(--f-data); font-size: 13.5px; line-height: 1.75; color: #c9d1ea; }
.code .s { color: var(--holo2); }
.code .k { color: var(--gold); }
.code .f { color: #ffffff; }
.code .c { color: #5d6785; }
@media (max-width: 860px) { .route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; } .route::before { display: none; } }
@media (max-width: 520px) { .route { grid-template-columns: 1fr; } }

/* fleet */
.fleet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tier { border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 16px; align-content: start; background: var(--ink); }
.tier.featured { border-color: rgba(255, 207, 110, .5); background: radial-gradient(ellipse at 80% 0%, rgba(255, 207, 110, .12), transparent 60%), var(--ink); }
.tier .cls { font-family: var(--f-brand); font-size: 11px; letter-spacing: .2em; color: var(--mut); }
.tier.featured .cls { color: var(--gold); }
.tier h3 { margin: 0; font-family: var(--f-cjk); font-size: 24px; font-weight: 700; }
.tier .amt { font-family: var(--f-brand); font-size: 32px; line-height: 1; }
.tier .amt small { font-family: var(--f-body); font-size: 14px; color: var(--mut); margin-left: 6px; }
.tier .desc { margin: 0; color: var(--mut); font-size: 14px; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; color: #c4cbe3; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--holo); margin-top: 9px; }
.tier.featured li::before { background: var(--gold); }
@media (max-width: 860px) { .fleet { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--holo2); font-family: var(--f-data); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--mut); font-size: 14px; max-width: 52ch; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* end + footer */
.end { padding-block: 120px; text-align: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.end h2 { margin: 0; font-family: var(--f-cjk); font-weight: 900; font-size: clamp(34px, 5vw, 64px); line-height: 1.12; text-wrap: balance; }
.end p { color: var(--mut); margin: 16px auto 0; max-width: 40ch; }
.ring { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.ring.r2 { width: 620px; height: 620px; border-style: dashed; }
.footer { padding-block: 36px 48px; font-size: 13px; color: var(--mut); padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-row a:hover { color: var(--star); }
.foot-note { margin-top: 14px; font-size: 12px; color: #5d6785; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav { transition: none; }
}
