/* ==========================================================================
   ORBIT — the dark product desk (Linear grammar).
   Near-black ground, glass cards on hairline borders, violet→cyan gradient
   accents, soft glows, Inter Tight display. The site as a product you
   already opened.
   ========================================================================== */

.theme-orbit {
  --paper:        #08090c;
  --paper-2:      #0d0f14;
  --paper-3:      #12151c;
  --dark:         #050608;
  --dark-2:       #0a0c10;
  --dark-3:       #0f1218;
  --ink:          #e8eaf2;
  --ink-2:        #b4bacb;
  --muted:        #6f7589;
  --muted-dark:   #8f96ab;
  --clay:         #7c6cff;
  --clay-deep:    #9a8bff;
  --clay-soft:    rgba(124, 108, 255, 0.14);
  --sky:          #4cc9f0;
  --sage:         #4cc9f0;
  --line:         rgba(232, 234, 242, 0.08);
  --line-strong:  rgba(232, 234, 242, 0.22);
  --line-dark:    rgba(8, 9, 12, 0.5);
  --r-xs: 8px;
  --r-sm: 10px;
  --r:    12px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;
  --serif: "Inter Tight", "Inter", sans-serif;
  --sans:  "Inter", sans-serif;
}

.theme-orbit ::selection { background: rgba(124, 108, 255, 0.35); }
.theme-orbit :focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ---- chrome ---------------------------------------------------------- */

.theme-orbit .site-header {
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.theme-orbit .site-header.is-scrolled { border-bottom-color: var(--line-strong); }
.theme-orbit .promo { background: linear-gradient(90deg, rgba(124, 108, 255, 0.2), rgba(76, 201, 240, 0.16)), var(--dark); border-bottom: 1px solid var(--line); }
.theme-orbit .promo a:hover { color: var(--clay-deep); }
.theme-orbit .promo__close:hover { color: var(--clay-deep); }

.theme-orbit .brand { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.theme-orbit .brand-mark { color: var(--clay); }
.theme-orbit .nav-link, .theme-orbit .nav-trigger { font-size: 14px; font-weight: 500; }
.theme-orbit .nav-link:hover, .theme-orbit .nav-trigger:hover { background: var(--paper-3); color: var(--ink); }
.theme-orbit .nav-trigger .chev { color: var(--muted); }

.theme-orbit .mega {
  background: rgba(13, 15, 20, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.9);
}
.theme-orbit .mega__link:hover { background: var(--paper-3); color: var(--clay-deep); }
.theme-orbit .drawer { background: var(--paper); }

/* ---- buttons & links -------------------------------------------------- */

.theme-orbit .btn { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; }
.theme-orbit .btn--primary {
  background: linear-gradient(135deg, #7c6cff, #4cc9f0);
  color: #060710;
}
.theme-orbit .btn--primary:hover { filter: brightness(1.1); }
.theme-orbit .btn--clay { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.theme-orbit .btn--clay:hover { border-color: var(--clay); color: var(--clay-deep); background: var(--clay-soft); }
.theme-orbit .btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #08090c; }
.theme-orbit .btn--on-dark:hover { background: var(--clay); border-color: var(--clay); color: #060710; }
.theme-orbit .arrow-link { color: var(--clay-deep); font-weight: 500; }
.theme-orbit .arrow-link:hover { color: var(--sky); }
.theme-orbit .arrow-link--ink:hover { color: var(--clay-deep); }
.theme-orbit .hub-link:hover, .theme-orbit .lang-toggle:hover {
  background: var(--ink); border-color: var(--ink); color: #08090c;
}

/* ---- type ------------------------------------------------------------- */

.theme-orbit .hero h1,
.theme-orbit .page-hero h1,
.theme-orbit .section-head h2,
.theme-orbit .callout__copy h2,
.theme-orbit .card h3,
.theme-orbit .tile__title,
.theme-orbit .release__title,
.theme-orbit .timeline__item h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.theme-orbit .hero h1 { line-height: 1.05; }
.theme-orbit .hero h1 a {
  background: linear-gradient(120deg, #9a8bff, #4cc9f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration-color: rgba(124, 108, 255, 0.5);
}
.theme-orbit .eyebrow { color: var(--clay-deep); }
.theme-orbit .mission em {
  font-style: normal;
  background: linear-gradient(120deg, #9a8bff, #4cc9f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-orbit .prose blockquote { border-left-color: var(--clay); }
.theme-orbit .prose ul li::before { background: linear-gradient(135deg, #7c6cff, #4cc9f0); }
.theme-orbit .chip { font-weight: 500; border-color: var(--line-strong); background: var(--paper-2); }
.theme-orbit .chip--clay { color: var(--clay-deep); border-color: rgba(124, 108, 255, 0.5); background: var(--clay-soft); }

/* CJK tuning */
html[lang^="zh"] .theme-orbit .hero h1,
html[lang^="zh"] .theme-orbit .page-hero h1 { line-height: 1.18; letter-spacing: 0; }

/* ---- surfaces --------------------------------------------------------- */

.theme-orbit .hero__glow {
  background:
    radial-gradient(closest-side, rgba(124, 108, 255, 0.16), transparent 72%),
    radial-gradient(closest-side at 62% 58%, rgba(76, 201, 240, 0.12), transparent 70%);
}

.theme-orbit .card {
  background: linear-gradient(180deg, rgba(232, 234, 242, 0.03), rgba(232, 234, 242, 0.012)), var(--paper-2);
  border-color: var(--line-strong);
}
.theme-orbit .card:hover {
  border-color: rgba(124, 108, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 108, 255, 0.2), 0 16px 40px -16px rgba(124, 108, 255, 0.25);
  transform: translateY(-2px);
}
.theme-orbit .card--dark { background: var(--dark-2); }

.theme-orbit .tile { background: var(--paper-2); border: 1px solid var(--line); }
.theme-orbit .tile:hover { background: var(--paper-3); border-color: var(--line-strong); }
.theme-orbit .tile__arrow { color: var(--clay-deep); }

.theme-orbit .callout { background: var(--dark); }
.theme-orbit .callout__viz {
  background:
    radial-gradient(120% 90% at 80% 15%, rgba(124, 108, 255, 0.4), transparent 60%),
    radial-gradient(90% 80% at 12% 90%, rgba(76, 201, 240, 0.22), transparent 62%),
    var(--dark-3);
}

.theme-orbit .table-wrap { background: var(--paper-2); border: 1px solid var(--line-strong); }
.theme-orbit .table thead th { background: var(--paper-3); }
.theme-orbit .table tbody tr:hover { background: var(--clay-soft); }
.theme-orbit .tier { background: linear-gradient(135deg, #7c6cff, #4cc9f0); color: #060710; }

.theme-orbit .note { background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--clay); }
.theme-orbit .codeblock { border-color: var(--line-strong); }
.theme-orbit .codeblock__dot:first-child { background: var(--clay); }

.theme-orbit .stat dd {
  background: linear-gradient(120deg, #9a8bff, #4cc9f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-orbit .section--paper2 { background: var(--paper-2); }
.theme-orbit .release:hover { background: var(--paper-2); }
.theme-orbit .release__date { color: var(--clay-deep); }
.theme-orbit .timeline__year { color: var(--clay-deep); font-family: var(--serif); }
.theme-orbit .job:hover { color: var(--clay-deep); }
.theme-orbit .person__photo { background: linear-gradient(160deg, var(--paper-3), var(--paper-2)); }

/* ---- forms ------------------------------------------------------------ */

.theme-orbit .field input, .theme-orbit .field select, .theme-orbit .field textarea, .theme-orbit .subscribe input {
  background: var(--paper-2);
  border-color: var(--line-strong);
  color: var(--ink);
}
.theme-orbit .field input:focus, .theme-orbit .field textarea:focus, .theme-orbit .subscribe input:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}
.theme-orbit .filter { border-color: var(--line-strong); }
.theme-orbit .filter.is-active {
  background: linear-gradient(135deg, #7c6cff, #4cc9f0);
  border-color: transparent;
  color: #060710;
}

/* ---- footer ----------------------------------------------------------- */

.theme-orbit .site-footer { background: var(--dark); border-top: 1px solid var(--line); }
.theme-orbit .footer__brand .brand-mark { color: var(--clay); }
.theme-orbit .footer__social a:hover { background: var(--clay); border-color: var(--clay); color: #060710; }

/* ---- sub-page polish --------------------------------------------------- */

/* eyebrow becomes a Linear-style pill chip */
.theme-orbit .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  letter-spacing: 0.16em;
}
.theme-orbit .eyebrow--clay { border-color: rgba(124, 108, 255, 0.5); background: var(--clay-soft); }

/* gradient rule under page titles */
.theme-orbit .page-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c6cff, #4cc9f0);
}

.theme-orbit .table-wrap { border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.theme-orbit .table thead th { letter-spacing: 0.04em; }
.theme-orbit .note { border-radius: var(--r-sm); }
.theme-orbit .codeblock { border-radius: var(--r); }
.theme-orbit .subscribe input { border-radius: var(--r-pill); }
.theme-orbit .timeline__item { border-top-color: var(--line); }
.theme-orbit .timeline__item:hover { padding-left: 12px; }
.theme-orbit .job { border-radius: var(--r-sm); }
.theme-orbit .person { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.theme-orbit .person__photo { border-radius: var(--r-sm); }

/* ==========================================================================
   ORBIT home — the product, already open.
   ========================================================================== */

.ob-hero { max-width: 1120px; margin-inline: auto; padding: clamp(48px, 8vw, 104px) var(--gutter) 0; text-align: center; position: relative; }
.ob-hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto;
  height: 70%;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(124, 108, 255, 0.18), transparent 70%),
    radial-gradient(closest-side at 70% 40%, rgba(76, 201, 240, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.ob-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ob-badge:hover { border-color: var(--clay); color: var(--ink); }
.ob-badge i {
  font-style: normal;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #7c6cff, #4cc9f0);
  color: #060710;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ob-hero h1 {
  position: relative;
  margin: 26px 0 0;
  max-width: 21ch;
  margin-inline: auto;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.ob-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #9a8bff 20%, #4cc9f0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ob-lede { position: relative; margin: 22px 0 0; max-width: 56ch; margin-inline: auto; font-size: clamp(16px, 1.8vw, 18.5px); line-height: 1.65; color: var(--ink-2); }
.ob-actions { position: relative; margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* the product mock — glass console frame */
.ob-mock {
  position: relative;
  max-width: 1020px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(232, 234, 242, 0.035), rgba(232, 234, 242, 0.01)), var(--paper-2);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(124, 108, 255, 0.06);
  overflow: hidden;
  text-align: left;
}
.ob-mock::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 139, 255, 0.6), rgba(76, 201, 240, 0.5), transparent);
}
.ob-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.ob-mock-bar b { color: var(--ink-2); font-weight: 500; }
.ob-mock-bar .ob-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ob-mock-bar .ob-dot--live { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.ob-mock-grid { display: grid; grid-template-columns: 176px 1fr 220px; }
.ob-mock-nav { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.ob-mock-nav span {
  padding: 7px 10px;
  border-radius: var(--r-xs);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.ob-mock-nav span.is-on { background: var(--clay-soft); color: var(--clay-deep); }
.ob-mock-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.ob-issue {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(232, 234, 242, 0.015);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.ob-issue:hover { border-color: var(--line-strong); }
.ob-issue.is-on { border-color: rgba(124, 108, 255, 0.5); background: var(--clay-soft); }
.ob-issue-dot { width: 9px; height: 9px; border-radius: 50%; }
.ob-issue-dot--done { background: #4ade80; }
.ob-issue-dot--run { background: #4cc9f0; box-shadow: 0 0 8px rgba(76, 201, 240, 0.8); }
.ob-issue-dot--hold { background: #f4b942; }
.ob-issue b { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.ob-issue small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ob-issue-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  padding: 3px 8px;
  white-space: nowrap;
}
.ob-mock-side { border-left: 1px solid var(--line); padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.ob-prop { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.ob-prop b { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.ob-prop .ob-bar { margin-top: 7px; height: 5px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.ob-prop .ob-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7c6cff, #4cc9f0); }
@media (max-width: 880px) { .ob-mock-grid { grid-template-columns: 1fr; } .ob-mock-nav, .ob-mock-side { display: none; } }

/* wordmark strip under the hero */
.ob-strip {
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(8px, 2vw, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px clamp(28px, 4vw, 56px);
}
.ob-strip span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.ob-strip b { font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: rgba(232, 234, 242, 0.38); transition: color 0.25s var(--ease); }
.ob-strip:hover b { color: rgba(232, 234, 242, 0.6); }

/* sections */
.ob-section { max-width: 1120px; margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.ob-section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.ob-label {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0 0 22px;
}
.ob-h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.8vw, 44px); letter-spacing: -0.03em; line-height: 1.08; }
.ob-h2 em { font-style: normal; color: var(--clay-deep); }

/* value cards */
.ob-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ob-value {
  display: block;
  padding: 26px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(232, 234, 242, 0.03), rgba(232, 234, 242, 0.01)), var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ob-value:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 108, 255, 0.5);
  box-shadow: 0 20px 44px -20px rgba(124, 108, 255, 0.3);
}
.ob-value:hover .ob-value-glyph {
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.28), rgba(76, 201, 240, 0.22));
  color: var(--ink);
}
.ob-value-glyph {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--clay-soft);
  color: var(--clay-deep);
  margin-bottom: 16px;
}
.ob-value h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.015em; }
.ob-value p { margin: 9px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.ob-value .arrow-link { display: inline-block; margin-top: 16px; opacity: 0.75; }
.ob-value:hover .arrow-link { opacity: 1; }
@media (max-width: 880px) { .ob-values { grid-template-columns: 1fr; } }

/* feature split */
.ob-feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.ob-feature h2 { margin: 14px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -0.025em; line-height: 1.1; }
.ob-feature p { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.ob-feature .arrow-link { display: inline-block; margin-top: 20px; }
@media (max-width: 880px) { .ob-feature { grid-template-columns: 1fr; } }

/* stats line */
.ob-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px clamp(40px, 5vw, 64px);
  padding: 22px 0 0;
}
.ob-stat { text-align: center; }
@media (min-width: 900px) {
  .ob-stat + .ob-stat { border-left: 1px solid var(--line); padding-left: clamp(40px, 5vw, 64px); }
}
.ob-stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #9a8bff, #4cc9f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ob-stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* final CTA with glow */
.ob-cta {
  position: relative;
  margin: 0 var(--gutter);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(124, 108, 255, 0.22), transparent 60%),
    radial-gradient(60% 100% at 80% 100%, rgba(76, 201, 240, 0.14), transparent 60%),
    var(--paper-2);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  text-align: center;
}
.ob-cta h2 { margin: 12px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 4.2vw, 52px); letter-spacing: -0.03em; line-height: 1.06; }
.ob-cta h2 em { font-style: normal; background: linear-gradient(120deg, #9a8bff, #4cc9f0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ob-cta p { margin: 16px 0 0; max-width: 52ch; margin-inline: auto; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.ob-cta .ob-actions { margin-top: 28px; }

/* colophon footer (shared markup, self-styled here) */
.theme-orbit .at-colophon {
  max-width: 1120px;
  margin-inline: auto;
  padding: 18px var(--gutter) 48px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.theme-orbit .at-colophon a { color: var(--clay-deep); font-weight: 500; }

/* CJK tuning */
html[lang^="zh"] .ob-hero h1 { letter-spacing: 0.005em; line-height: 1.22; }
html[lang^="zh"] .ob-h2, html[lang^="zh"] .ob-feature h2 { letter-spacing: 0; }
html[lang^="zh"] .ob-lede { line-height: 1.85; }
html[lang^="zh"] .ob-value p, html[lang^="zh"] .ob-feature p { line-height: 1.8; }
html[lang^="zh"] .ob-stat span { letter-spacing: 0.02em; }
