/* The stellar scene shares one full first screen with the storefront actions. */
html:has(.hub-hero) { scroll-padding-top: var(--orbit-head); }

.hub-hero {
  --hub-universe-travel: 220px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: transparent;
  border-bottom: 0;
}


.hub-hero > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hub-hero .hub-intro {
  min-height: max(31rem, min(780px, calc(100svh - var(--orbit-head) - 28px)));
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  align-content: center;
  justify-items: start;
  column-gap: clamp(19px, 3.35vw, 57px);
  padding-block: clamp(30px, 5svh, 64px);
  pointer-events: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hub-hero:has([data-universe-ready])::after { content: ""; display: block; height: var(--hub-universe-travel); pointer-events: none; }
  .hub-hero:has([data-universe-ready]) .hub-intro { position: sticky; top: var(--orbit-head); }
}

.hub-hero-main { position: relative; z-index: 1; min-width: 0; }

.hub-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.25rem, 6.6vw, 5.5rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.048em;
}

.hub-hero h1 span { display: block; }
.hub-hero h1 em { color: var(--hub-accent); font-style: normal; }

.hub-hero-main > p {
  margin: clamp(17px, 3svh, 25px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 630;
  line-height: 1.48;
}

.hub-hero .hub-intro-actions {
  justify-content: start;
  gap: 9px 12px;
  margin-top: clamp(22px, 3.5svh, 31px);
}

.dh2-site[data-context="site"] .hub-intro-actions :is(.orbit-button, .orbit-link) {
  min-height: 53px;
  padding-inline: clamp(13px, 1.8vw, 22px);
  text-decoration: none;
}

.hub-effects {
  position: absolute;
  z-index: 2;
  inset: auto 0 clamp(12px, 4svh, 32px) auto;
  color: var(--muted);
  font-size: 12px;
}

.hub-effects > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--hub-rim);
  border-radius: 99px;
  background: var(--hub-sheet);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-weight: 730;
  list-style: none;
}

.hub-effects > summary::-webkit-details-marker { display: none; }
.hub-effects > summary:hover { color: var(--ink); }
.hub-effects > summary svg { transform: rotate(-90deg); transition: transform 180ms var(--hub-control-ease); }
.hub-effects[open] > summary svg { transform: rotate(90deg); }

.hub-effects > .hub-pause {
  position: absolute;
  inset: auto 0 calc(100% + 7px) auto;
  min-height: 44px;
  width: max-content;
  padding-inline: 14px;
  border: 1px solid var(--hub-rim);
  border-radius: 13px;
  background: var(--hub-button);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.hub-effects > .hub-pause:hover { background: var(--hub-button-hover); }

.hub-hero + .orbit-collection {
  scroll-margin-top: 0;
  padding-block: clamp(25px, 3.8vw, 50px) clamp(36px, 4.5vw, 62px);
  background: transparent;
}

.hub-section-title { align-items: center; }

.hub-section-title h2 {
  font-size: clamp(2rem, 5.15vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.orbit-collection .orbit-choices {
  gap: 7px;
  margin-bottom: 13px;
  padding: 5px;
  border: 1px solid var(--hub-rim);
  border-radius: 17px;
  background: var(--hub-sheet);
  backdrop-filter: blur(13px);
}

.orbit-collection .orbit-choices > a {
  min-height: 50px;
  border-radius: 12px;
  outline-offset: -3px;
}

.orbit-collection .orbit-choices > a:is(:hover, [aria-selected="true"]) {
  background: var(--surface-soft);
}

.orbit-collection .orbit-choice-indicator { height: 2px; bottom: 3px; }

.orbit-collection .orbit-offer.orbit-service-panel {
  border-color: var(--hub-rim);
  border-radius: 23px;
  background: var(--hub-sheet);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--ink) 5%, transparent);
  backdrop-filter: blur(15px);
}

.orbit-collection .orbit-offer.orbit-service-panel .orbit-service-intro {
  --hub-service-tint: var(--orbit-pearl);
  border-color: var(--hub-rim);
  background: radial-gradient(ellipse at 12% 20%, var(--hub-service-tint), transparent 78%);
}

.orbit-collection .orbit-offer[data-orbit-panel="telegram"] {
  --orbit-pearl: color-mix(in srgb, var(--surface) 86%, #70b7db);
}
.orbit-collection .orbit-service-emblem { box-shadow: 0 7px 19px #101a161b; }
.orbit-collection .orbit-service-intro h3 { letter-spacing: -.045em; }
.orbit-collection .orbit-plan-list { padding-block: clamp(11px, 2vw, 25px); }
.orbit-collection .orbit-plan { min-height: 60px; }
.orbit-collection .orbit-codex-fold {
  margin-top: 9px;
  border-radius: 13px;
  background: var(--hub-button);
}
.orbit-collection .orbit-codex-fold > summary:hover { color: var(--link); }

.orbit-activation { background: color-mix(in srgb, var(--surface) 56%, transparent); border-block: 1px solid var(--line); }
.orbit-activation-grid { min-height: 0; padding-block: clamp(31px, 5.25vw, 74px); }

.orbit-help .faq {
  display: grid;
  gap: 9px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.orbit-help .faq > details {
  border: 1px solid var(--hub-rim);
  border-radius: 17px;
  background: var(--hub-sheet);
}

.orbit-help .faq > details > summary {
  gap: 13px;
  min-height: 54px;
  padding: 11px 16px;
  border-radius: 16px;
}

.orbit-help .faq > details > summary:hover { background: var(--hub-button-hover); }
.orbit-help .faq > details > summary > span { color: var(--link); }
.orbit-help .faq > details > p { padding: 2px 16px 15px; }

@media (max-width: 900px) {
  .hub-hero h1 { font-size: clamp(2.9rem, 8vw, 4.5rem); }
}

@media (max-width: 700px) {
  .hub-hero { --hub-universe-travel: 180px; }
  .hub-hero .hub-intro {
    min-height: max(440px, min(700px, calc(100svh - var(--orbit-head) - 28px)));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-content: start;
    row-gap: 8px;
    padding-block: clamp(32px, 6.5svh, 58px) 18px;
  }

  .hub-hero h1 { font-size: clamp(2.06rem, 10.3vw, 4.15rem); line-height: 1; }
  .hub-desktop-break { display: none; }
  .hub-hero-main > p { margin-top: 15px; }
  .hub-hero .hub-intro-actions { margin-top: 19px; }
  .dh2-site[data-context="site"] .hub-intro-actions :is(.orbit-button, .orbit-link) { min-height: 45px; }
  .orbit-collection .orbit-choices { gap: 4px; padding: 4px; }
  .orbit-collection .orbit-offer.orbit-service-panel { border-radius: 18px; }
  .orbit-collection .orbit-plan { min-height: 56px; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hub-hero .hub-intro { min-height: 18rem; padding-block: 24px 51px; }
  .hub-hero h1 { font-size: clamp(2.35rem, 6.9vw, 3.35rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hub-effects { display: none; }
}
