.portal-page {
  --portal-bg: #070a12;
  --portal-panel: #0d1320;
  --portal-panel-2: #121a29;
  --portal-line: rgba(255, 255, 255, 0.1);
  --portal-text: #f6f8fc;
  --portal-muted: #9ba9bc;
  --portal-cyan: #4ee7d2;
  --portal-blue: #4f7cff;
  color: var(--portal-text);
  background: var(--portal-bg);
}

.portal-page .topbar {
  color: var(--portal-text);
  background: rgba(7, 10, 18, 0.88);
  border-color: var(--portal-line);
}
.portal-page .brand,
.portal-page nav a,
.portal-page .login-link { color: var(--portal-text); }
.portal-page nav a:hover { color: var(--portal-cyan); }
.portal-page .account-name { color: var(--portal-muted); }

.portal-home section { padding: 88px max(6vw, 24px); }
.portal-hero {
  position: relative;
  min-height: clamp(720px, calc(100svh - 72px), 960px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #070a12;
  isolation: isolate;
}
.portal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78, 231, 210, 0.42), transparent);
}
.hero-space,
.hero-grid,
.hero-stars,
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-space { z-index: -3; overflow: hidden; }
.hero-grid {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(115, 137, 175, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 137, 175, 0.12) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 72%);
}
.hero-stars {
  opacity: 0.8;
  background-image:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 18%, rgba(109, 139, 255, 0.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 31% 73%, rgba(78, 231, 210, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 68%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px);
  background-size: 230px 190px, 310px 270px, 370px 320px, 450px 380px;
  animation: starDrift 28s linear infinite;
}
.hero-glow {
  inset: 18% 13%;
  opacity: 0.46;
  filter: blur(42px);
  background:
    radial-gradient(ellipse at 30% 48%, rgba(31, 112, 255, 0.2), transparent 44%),
    radial-gradient(ellipse at 72% 52%, rgba(37, 210, 188, 0.16), transparent 42%);
}
@keyframes starDrift {
  to { transform: translate3d(-42px, 28px, 0); }
}
.portal-kicker {
  margin: 0 0 18px;
  color: var(--portal-cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.portal-copy {
  position: relative;
  z-index: 12;
  width: min(780px, calc(100vw - 48px));
  text-align: center;
}
.portal-copy h1 {
  max-width: 780px;
  min-height: 168px;
  margin: 0 auto;
  font-size: clamp(52px, 6.2vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}
.portal-copy h1 span {
  display: inline;
  color: var(--portal-cyan);
  white-space: nowrap;
}
.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.8em;
  margin-left: 8px;
  background: var(--portal-cyan);
  vertical-align: -0.04em;
  animation: caretBlink 0.9s steps(1) infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}
.portal-lead {
  max-width: 720px;
  min-height: 0;
  margin: 22px auto 0;
  color: #b3bfd0;
  font-size: 18px;
  line-height: 1.8;
}
.portal-endpoint {
  width: min(650px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 28px auto 0;
  padding: 12px 12px 12px 18px;
  border: 1px solid rgba(126, 149, 194, 0.25);
  background: rgba(8, 14, 27, 0.88);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}
.portal-endpoint span { color: var(--portal-muted); font-size: 12px; font-weight: 900; }
.portal-endpoint code { overflow: hidden; color: var(--portal-text); text-overflow: ellipsis; }
.portal-endpoint button { border-radius: 6px; }
.portal-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.portal-actions .button { border-radius: 6px; }
.portal-actions .button.secondary {
  color: var(--portal-text);
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--portal-line);
}
.portal-trust {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
  color: var(--portal-muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.portal-trust strong { color: var(--portal-text); }

.model-universe {
  position: absolute;
  z-index: 2;
  inset: 56px 0 44px;
  pointer-events: none;
  transform: perspective(1200px) rotateX(var(--orbit-tilt-x, 0deg)) rotateY(var(--orbit-tilt-y, 0deg));
  transition: transform 0.5s ease-out;
}
.orbit-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(122, 151, 204, 0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 50px rgba(64, 116, 221, 0.025);
}
.plane-outer { width: min(94vw, 1480px); height: min(76vh, 690px); }
.plane-middle { width: min(74vw, 1160px); height: min(57vh, 510px); }
.plane-inner { width: min(48vw, 760px); height: min(35vh, 310px); }
.orbit-plane::before,
.orbit-plane::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}
.orbit-plane::before { top: 15%; left: 9%; width: 4px; height: 4px; color: rgba(78, 231, 210, 0.75); }
.orbit-plane::after { right: 8%; bottom: 18%; width: 3px; height: 3px; color: rgba(92, 129, 255, 0.72); }
#modelOrbit { position: absolute; inset: 0; }
.orbit-model {
  --node-color: #4f7cff;
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--node-color) 58%, rgba(255, 255, 255, 0.18));
  border-radius: 50%;
  color: #fff;
  background: color-mix(in srgb, var(--node-color) 16%, #0c1423);
  box-shadow: 0 0 22px color-mix(in srgb, var(--node-color) 28%, transparent);
  transform: translate3d(calc(var(--orbit-x, 0px) - 50%), calc(var(--orbit-y, 0px) - 50%), 0) scale(var(--orbit-scale, 1));
  opacity: var(--orbit-opacity, 1);
  pointer-events: auto;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}
.orbit-model:hover,
.orbit-model:focus-visible,
.orbit-model.is-focused {
  z-index: 20;
  border-color: var(--portal-cyan);
  background: #17283a;
  box-shadow: 0 0 0 5px rgba(78, 231, 210, 0.08), 0 0 34px rgba(78, 231, 210, 0.42);
  outline: 0;
}
.orbit-model-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.orbit-model-name {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  max-width: 180px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: #eef5ff;
  background: rgba(7, 13, 24, 0.94);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.orbit-model:hover .orbit-model-name,
.orbit-model:focus-visible .orbit-model-name,
.orbit-model.is-focused .orbit-model-name {
  opacity: 1;
  transform: translate(-50%, 0);
}
.orbit-focus-card {
  position: absolute;
  z-index: 8;
  left: max(24px, 5vw);
  bottom: 12%;
  width: min(290px, 24vw);
  padding: 14px 16px;
  border-left: 2px solid var(--portal-cyan);
  color: var(--portal-text);
  background: linear-gradient(90deg, rgba(8, 16, 29, 0.88), rgba(8, 16, 29, 0));
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.orbit-focus-card.is-visible { opacity: 1; transform: translateX(0); }
.orbit-focus-card.is-right {
  right: max(24px, 5vw);
  left: auto;
  border-right: 2px solid var(--portal-cyan);
  border-left: 0;
  text-align: right;
  background: linear-gradient(270deg, rgba(8, 16, 29, 0.88), rgba(8, 16, 29, 0));
}
.orbit-focus-card span { display: block; color: var(--portal-cyan); font-size: 11px; font-weight: 900; }
.orbit-focus-card strong { display: block; margin-top: 4px; font-size: 18px; }
.orbit-focus-card small { display: block; margin-top: 5px; overflow: hidden; color: var(--portal-muted); text-overflow: ellipsis; white-space: nowrap; }
.hero-scroll-cue {
  position: absolute;
  z-index: 14;
  bottom: 18px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--portal-muted);
  font-size: 11px;
  text-decoration: none;
  transform: translateX(-50%);
}
.hero-scroll-cue b {
  width: 1px;
  height: 24px;
  background: linear-gradient(var(--portal-cyan), transparent);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  50% { transform: translateY(5px); opacity: 0.45; }
}

.portal-band { background: #0a0e17; border-bottom: 1px solid var(--portal-line); }
.portal-band.alt { background: #0d121d; }
.portal-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto 34px;
}
.portal-section-head h2 { margin: 0; font-size: 36px; }
.portal-section-head p { max-width: 640px; margin: 8px 0 0; color: var(--portal-muted); }
.portal-section-head > a { color: var(--portal-cyan); text-decoration: none; font-weight: 900; }

.capability-summary {
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 auto;
  border: 1px solid var(--portal-line);
}
.capability-summary a {
  min-height: 116px;
  padding: 24px;
  color: var(--portal-text);
  text-decoration: none;
  border-right: 1px solid var(--portal-line);
}
.capability-summary a:last-child { border-right: 0; }
.capability-summary strong { display: block; font-size: 34px; color: var(--portal-cyan); }
.capability-summary span { color: var(--portal-muted); }

.creation-grid,
.agent-grid,
.developer-grid,
.pricing-grid {
  max-width: 1280px;
  display: grid;
  gap: 14px;
  margin: 0 auto;
}
.creation-grid { grid-template-columns: repeat(4, 1fr); }
.agent-grid { grid-template-columns: repeat(3, 1fr); }
.developer-grid { grid-template-columns: 1.2fr 0.8fr; }
.pricing-grid { grid-template-columns: repeat(3, 1fr); }
.portal-tile,
.agent-tile,
.developer-panel,
.pricing-item {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--portal-line);
  background: var(--portal-panel);
}
.portal-tile h3,
.agent-tile h3,
.pricing-item h3 { margin: 0 0 10px; font-size: 19px; }
.portal-tile p,
.agent-tile p,
.pricing-item p { min-height: 44px; color: var(--portal-muted); }
.portal-tile a,
.agent-tile a { color: var(--portal-cyan); text-decoration: none; font-weight: 900; }
.portal-tile.is-controlled { opacity: 0.72; }
.portal-tile small { display: block; color: #f7c76f; }

.portal-model-grid {
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto;
}
.portal-model-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--portal-line);
  background: var(--portal-panel);
}
.portal-model-head { display: flex; justify-content: space-between; align-items: center; }
.portal-model-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--model-color, var(--portal-blue)) 35%, transparent);
  border-radius: 6px;
  background: rgba(11, 18, 30, 0.92);
  font-size: 11px;
  font-weight: 900;
}
.portal-model-mark img { width: 100%; height: 100%; object-fit: contain; }
.portal-model-mark b { color: #fff; }
.portal-tile:nth-child(4n + 1) { border-top: 2px solid var(--portal-cyan); }
.portal-tile:nth-child(4n + 2) { border-top: 2px solid #5f83ff; }
.portal-tile:nth-child(4n + 3) { border-top: 2px solid #d58a46; }
.portal-tile:nth-child(4n + 4) { border-top: 2px solid #a765d1; }
.availability-dot { color: #6ee7b7; font-size: 12px; }
.availability-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.portal-model-card h3 { margin: 18px 0 8px; font-size: 18px; }
.portal-model-card code { display: block; overflow: hidden; color: #9ab6ff; text-overflow: ellipsis; white-space: nowrap; }
.portal-model-card p { min-height: 44px; color: var(--portal-muted); }
.portal-model-meta { display: grid; gap: 5px; margin: 18px 0; color: var(--portal-muted); font-size: 12px; }
.portal-model-card > a { color: var(--portal-cyan); text-decoration: none; font-weight: 900; }
.portal-empty { color: var(--portal-muted); }

.developer-panel pre {
  min-height: 260px;
  margin: 0;
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--portal-line);
  border-radius: 0;
  background: #070b13;
  color: #c5d6f2;
}
.developer-steps { display: grid; gap: 0; border: 1px solid var(--portal-line); }
.developer-steps div { padding: 20px; border-bottom: 1px solid var(--portal-line); }
.developer-steps div:last-child { border-bottom: 0; }
.developer-steps strong { display: block; margin-bottom: 5px; }
.developer-steps span { color: var(--portal-muted); }

.pricing-item strong { display: block; margin: 14px 0; color: var(--portal-cyan); font-size: 26px; }
.portal-notice {
  max-width: 1280px;
  margin: 30px auto 0;
  padding: 18px 20px;
  border-left: 3px solid #f7c76f;
  background: rgba(247, 199, 111, 0.07);
  color: #d8c9a5;
}
.portal-footer {
  padding: 42px max(6vw, 24px);
  border-top: 1px solid var(--portal-line);
  background: #06080d;
}
.portal-footer-inner {
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: auto;
}
.portal-footer p { color: var(--portal-muted); }
.portal-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.portal-footer a { color: var(--portal-text); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 980px) {
  .portal-home section { padding: 70px 24px; }
  .portal-hero { min-height: 760px; padding: 70px 24px 82px; }
  .model-universe { inset: 50px 0 48px; }
  .plane-outer { width: 124vw; height: 66vh; }
  .plane-middle { width: 94vw; height: 48vh; }
  .plane-inner { width: 66vw; height: 31vh; }
  .orbit-focus-card { display: none; }
  .creation-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-model-grid, .agent-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .developer-grid { grid-template-columns: 1fr; }
  .capability-summary { grid-template-columns: repeat(3, 1fr); }
  .capability-summary a { border-bottom: 1px solid var(--portal-line); }
}

@media (max-width: 640px) {
  .portal-page .topbar {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
  }
  .portal-page .brand strong { display: none; }
  .portal-page .brand img { width: 118px; }
  .portal-page nav { grid-column: 1 / -1; grid-row: 2; }
  .portal-page .account-actions { grid-column: 2; grid-row: 1; }
  .portal-hero { min-height: 720px; padding: 62px 18px 78px; }
  .portal-copy { width: min(100%, 430px); }
  .portal-copy h1 { min-height: 108px; font-size: 42px; }
  .portal-copy h1 span { font-size: 37px; white-space: normal; }
  .portal-kicker { margin-bottom: 14px; font-size: 11px; }
  .portal-lead { max-width: 350px; margin-top: 15px; font-size: 15px; line-height: 1.65; }
  .portal-endpoint { grid-template-columns: 1fr auto; }
  .portal-endpoint span { grid-column: 1 / -1; }
  .portal-actions { gap: 8px; }
  .portal-actions .button { padding: 10px 13px; font-size: 13px; }
  .portal-trust { gap: 7px 14px; margin-top: 20px; font-size: 11px; }
  .model-universe { inset: 42px 0 44px; }
  .plane-outer { width: 162vw; height: 66vh; }
  .plane-middle { width: 120vw; height: 48vh; }
  .plane-inner { width: 82vw; height: 31vh; }
  .orbit-model { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
  .orbit-model-mark { width: 24px; height: 24px; font-size: 8px; }
  .orbit-model-name { display: none; }
  .hero-scroll-cue { bottom: 12px; }
  .creation-grid,
  .portal-model-grid,
  .agent-grid,
  .pricing-grid,
  .capability-summary { grid-template-columns: 1fr; }
  .capability-summary a { border-right: 0; }
  .portal-section-head { align-items: flex-start; flex-direction: column; }
  .portal-section-head h2 { font-size: 30px; }
  .portal-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-model { will-change: auto; }
  .type-caret { opacity: 1; }
}

/* Full-screen model graph v2 */
.portal-hero {
  min-height: 760px;
  height: calc(100svh - 88px);
  max-height: 980px;
  padding: 58px 24px 48px !important;
}
.portal-hero .hero-grid {
  opacity: 0.16;
  background-size: 84px 84px;
}
.portal-hero .hero-glow {
  inset: 0;
  opacity: 0.34;
  filter: blur(70px);
}
.hero-sweep {
  position: absolute;
  pointer-events: none;
}
.sweep-one {
  top: 54%;
  left: -14vw;
  width: 128vw;
  height: 58vh;
  border-top: 5px solid rgba(27, 216, 188, 0.14);
  border-radius: 50%;
  transform: rotate(4deg);
}
.sweep-two {
  top: 4%;
  right: 27%;
  width: 5px;
  height: 58%;
  background: rgba(88, 91, 214, 0.18);
  transform: rotate(38deg);
  transform-origin: bottom;
}
.portal-hero .model-universe {
  inset: 0;
  transform: none;
  transition: none;
}
.orbit-halo {
  position: absolute;
  top: 53%;
  left: 50%;
  width: min(72vw, 980px);
  aspect-ratio: 1;
  border: 1px solid rgba(103, 135, 183, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(29, 197, 180, 0.04);
  transform: translate(-50%, -50%);
}
.portal-hero .portal-copy {
  width: min(650px, calc(100vw - 48px));
  margin-top: 12px;
}
.hero-chip {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 24px;
  padding: 8px 17px;
  border: 1px solid rgba(78, 231, 210, 0.24);
  border-radius: 999px;
  color: var(--portal-cyan);
  background: rgba(8, 24, 31, 0.8);
  font-size: 12px;
  font-weight: 900;
}
.hero-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portal-cyan);
  box-shadow: 0 0 12px var(--portal-cyan);
}
.portal-hero .portal-copy h1 {
  min-height: 164px;
  font-size: clamp(56px, 5.6vw, 82px);
  line-height: 1.08;
}
.portal-hero .portal-copy h1 span {
  font-size: 0.88em;
}
.portal-hero .portal-lead {
  max-width: 630px;
  margin-top: 20px;
  color: #9eabba;
  font-size: 16px;
  line-height: 1.8;
}
.portal-hero .portal-actions {
  margin-top: 28px;
}
.portal-hero .portal-actions .button {
  min-width: 142px;
  min-height: 48px;
  border-radius: 24px;
}
.portal-hero .portal-actions .hero-primary {
  color: #051018;
  background: #24d6e8;
  box-shadow: 0 10px 34px rgba(36, 214, 232, 0.27);
}
.hero-primary b { margin-left: 8px; }
.hero-numbers {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 34px;
}
.hero-numbers span {
  min-width: 112px;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-numbers span:last-child { border-right: 0; }
.hero-numbers strong {
  display: block;
  color: #eaf7f8;
  font-size: 26px;
  line-height: 1;
}
.hero-numbers small {
  display: block;
  margin-top: 8px;
  color: #778797;
  font-size: 11px;
}
.portal-hero .hero-scroll-cue { display: none; }

.portal-hero #modelOrbit { inset: 0; }
.portal-hero .orbit-model {
  top: 53%;
  width: 44px;
  min-width: 44px;
  height: 62px;
  min-height: 62px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: filter 0.24s ease;
}
.portal-hero .orbit-model-mark {
  width: 40px;
  height: 40px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(15, 22, 35, 0.94);
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.26);
}
.portal-hero .orbit-model-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.portal-hero .orbit-model-mark b {
  color: #fff;
  font-size: 9px;
}
.portal-hero .orbit-model-name {
  top: 45px;
  width: max-content;
  max-width: 112px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #92a0b2;
  background: transparent;
  font-size: 9px;
  opacity: 1;
  text-overflow: ellipsis;
  transform: translateX(-50%);
}
.portal-hero .orbit-model:hover .orbit-model-name,
.portal-hero .orbit-model:focus-visible .orbit-model-name,
.portal-hero .orbit-model.is-focused .orbit-model-name,
.portal-hero .orbit-model.is-side-focus .orbit-model-name {
  color: var(--portal-cyan);
  opacity: 1;
  transform: translateX(-50%);
}
.portal-hero .orbit-model:hover,
.portal-hero .orbit-model:focus-visible,
.portal-hero .orbit-model.is-focused,
.portal-hero .orbit-model.is-side-focus {
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: brightness(1.2);
}
.portal-hero .orbit-model.is-side-focus .orbit-model-mark,
.portal-hero .orbit-model.is-focused .orbit-model-mark {
  border-color: rgba(78, 231, 210, 0.58);
  box-shadow: 0 0 0 5px rgba(78, 231, 210, 0.06), 0 0 30px rgba(78, 231, 210, 0.33);
}
.orbit-spotlight {
  position: absolute;
  z-index: 16;
  top: 52%;
  width: min(290px, 20vw);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--portal-text);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}
.orbit-spotlight.is-visible { opacity: 1; }
.orbit-spotlight-left { left: max(34px, 4vw); }
.orbit-spotlight-right {
  right: max(34px, 4vw);
  flex-direction: row-reverse;
  text-align: right;
}
.spotlight-icon {
  width: 50px;
  min-width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 1px solid rgba(78, 231, 210, 0.36);
  border-radius: 11px;
  background: #101827;
  box-shadow: 0 0 30px rgba(78, 231, 210, 0.18);
}
.spotlight-icon img { width: 100%; height: 100%; object-fit: contain; }
.orbit-spotlight span { display: block; color: var(--portal-cyan); font-size: 11px; font-weight: 900; }
.orbit-spotlight strong { display: block; margin-top: 5px; font-size: 17px; }
.orbit-spotlight small {
  display: block;
  max-width: 210px;
  margin-top: 5px;
  overflow: hidden;
  color: #7f8da0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .portal-hero {
    height: calc(100svh - 88px);
    min-height: 700px;
    padding: 58px 18px 42px !important;
  }
  .orbit-halo { width: 108vw; }
  .orbit-spotlight { display: none; }
  .portal-hero .portal-copy { margin-top: 0; }
}

@media (max-width: 640px) {
  .portal-hero {
    height: calc(100svh - 112px);
    min-height: 670px;
    padding: 40px 16px 36px !important;
  }
  .portal-hero .portal-copy { width: min(100%, 370px); }
  .hero-chip { margin-bottom: 17px; padding: 7px 13px; font-size: 10px; }
  .portal-hero .portal-copy h1 { min-height: 112px; font-size: 44px; }
  .portal-hero .portal-copy h1 span { font-size: 39px; }
  .portal-hero .portal-lead { max-width: 330px; margin-top: 14px; font-size: 13px; line-height: 1.65; }
  .portal-hero .portal-actions { margin-top: 20px; }
  .portal-hero .portal-actions .button { min-width: 120px; min-height: 42px; padding: 8px 12px; }
  .hero-numbers { margin-top: 24px; }
  .hero-numbers span { min-width: 88px; padding: 0 12px; }
  .hero-numbers strong { font-size: 21px; }
  .portal-hero .orbit-model { width: 34px; min-width: 34px; height: 48px; min-height: 48px; }
  .portal-hero .orbit-model-mark { width: 31px; height: 31px; padding: 5px; border-radius: 7px; }
  .portal-hero .orbit-model-name { top: 34px; max-width: 64px; font-size: 7px; }
  .sweep-one { top: 57%; }
  .sweep-two { right: 20%; }
}

/* Model graph v3: balanced brands, softer depth and reference-grade focus. */
.portal-page .topbar {
  background: rgba(5, 9, 16, 0.82);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12);
}
.portal-page .brand img {
  width: 124px;
  height: 34px;
}
.portal-hero {
  background:
    radial-gradient(circle at 96% 31%, rgba(0, 220, 210, 0.12), transparent 28%),
    radial-gradient(circle at 50% 48%, rgba(20, 87, 111, 0.1), transparent 31%),
    radial-gradient(circle at 4% 90%, rgba(0, 133, 122, 0.08), transparent 25%),
    #050911;
  box-shadow: inset 0 -150px 180px rgba(0, 18, 24, 0.2);
}
.portal-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 28%, transparent 72%, rgba(0, 22, 27, 0.08)),
    radial-gradient(ellipse at 50% 110%, rgba(10, 207, 190, 0.07), transparent 48%);
}
.portal-hero .hero-grid { opacity: 0.035; }
.portal-hero .hero-stars { opacity: 0.72; }
.portal-hero .hero-glow {
  opacity: 0.48;
  filter: blur(92px);
  background:
    radial-gradient(ellipse at 35% 52%, rgba(22, 76, 160, 0.12), transparent 43%),
    radial-gradient(ellipse at 75% 46%, rgba(18, 208, 189, 0.1), transparent 40%);
}
.orbit-halo {
  border-color: rgba(118, 151, 193, 0.045);
  box-shadow: 0 0 150px rgba(26, 227, 205, 0.025);
}
.sweep-one {
  top: 51%;
  height: 61vh;
  border-top-width: 4px;
  border-top-color: rgba(8, 210, 186, 0.13);
  transform: rotate(3deg);
}
.sweep-two {
  right: 25%;
  width: 6px;
  height: 62%;
  opacity: 0.68;
  background: rgba(73, 75, 190, 0.18);
  transform: rotate(39deg);
}
.portal-hero .portal-copy {
  width: min(620px, calc(100vw - 48px));
}
.portal-hero .portal-copy h1 {
  min-height: 158px;
  font-size: clamp(58px, 5.25vw, 78px);
  line-height: 1.06;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.24);
}
.portal-hero .portal-lead {
  max-width: 590px;
  color: #8998a8;
}
.portal-hero .orbit-model-mark {
  width: 42px;
  height: 42px;
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.085);
  background: rgba(13, 20, 32, 0.9);
  box-shadow: 0 7px 26px rgba(0, 0, 0, 0.32);
}
.portal-hero .orbit-model-name {
  top: 48px;
  max-width: 96px;
  color: #7d8a9c;
  font-size: 8px;
  opacity: 0.52;
}
.portal-hero .orbit-model.is-side-focus .orbit-model-mark,
.portal-hero .orbit-model.is-focused .orbit-model-mark {
  border-color: rgba(78, 231, 210, 0.5);
  box-shadow: 0 0 0 4px rgba(78, 231, 210, 0.045), 0 0 28px rgba(78, 231, 210, 0.24);
}
.orbit-spotlight {
  top: 53%;
  width: min(280px, 19vw);
  gap: 12px;
}
.orbit-spotlight-left { left: max(52px, 10vw); }
.orbit-spotlight-right { right: max(52px, 10vw); }
.spotlight-icon {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 8px;
  border-color: rgba(78, 231, 210, 0.24);
  background: rgba(12, 21, 31, 0.88);
  box-shadow: 0 0 32px rgba(78, 231, 210, 0.14);
}
.orbit-spotlight span { font-size: 10px; }
.orbit-spotlight strong { font-size: 16px; }
.orbit-spotlight small { color: #687789; }

@media (max-width: 980px) {
  .portal-page .brand img { width: 108px; }
}

@media (max-width: 640px) {
  .portal-page .brand img { width: 96px; height: 30px; }
  .portal-hero .portal-copy h1 {
    min-height: 108px;
    font-size: 43px;
  }
  .portal-hero .portal-copy h1 span { font-size: 37px; }
  .portal-hero .orbit-model-mark {
    width: 31px;
    height: 31px;
    padding: 5px;
  }
  .portal-hero .orbit-model-name {
    top: 34px;
    max-width: 58px;
    font-size: 6.5px;
    opacity: 0.38;
  }
}

/* Model graph v4: elastic entrance, side rebound and strict depth ordering. */
.portal-hero .hero-space {
  z-index: 0;
}
.portal-hero .hero-sweep {
  z-index: 0;
}
.portal-hero .model-universe {
  z-index: 4;
}
.portal-hero .portal-copy {
  z-index: 12;
}
.portal-hero #modelOrbit {
  z-index: 5;
  transform-origin: 50% 53%;
}
.portal-hero #modelOrbit.orbit-enter {
  animation: orbitEntranceV4 2.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes orbitEntranceV4 {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-360deg);
  }
  15% { opacity: 1; }
  78% { transform: scale(1.035) rotate(4deg); }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
.portal-hero .orbit-model-mark {
  position: relative;
  z-index: 2;
  background: #0d1420;
}
.portal-hero .orbit-model-name {
  z-index: 3;
}
.portal-hero .orbit-model.is-side-focus .orbit-model-mark {
  animation: orbitNodeReboundV4 0.72s cubic-bezier(0.22, 1.45, 0.36, 1) both;
}
@keyframes orbitNodeReboundV4 {
  0% { transform: scale(0.72); }
  58% { transform: scale(1.17); }
  78% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.orbit-spotlight-left.is-popping {
  animation: spotlightPopLeftV4 0.72s cubic-bezier(0.16, 1.25, 0.3, 1) both;
}
.orbit-spotlight-right.is-popping {
  animation: spotlightPopRightV4 0.72s cubic-bezier(0.16, 1.25, 0.3, 1) both;
}
@keyframes spotlightPopLeftV4 {
  0% { opacity: 0; transform: translate(-34px, -50%) scale(0.82); }
  62% { opacity: 1; transform: translate(8px, -50%) scale(1.05); }
  100% { opacity: 1; transform: translate(0, -50%) scale(1); }
}
@keyframes spotlightPopRightV4 {
  0% { opacity: 0; transform: translate(34px, -50%) scale(0.82); }
  62% { opacity: 1; transform: translate(-8px, -50%) scale(1.05); }
  100% { opacity: 1; transform: translate(0, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-hero #modelOrbit.orbit-enter,
  .portal-hero .orbit-model.is-side-focus .orbit-model-mark,
  .orbit-spotlight.is-popping {
    animation: none;
  }
}

/* Model graph v5: source-to-spotlight spring flight and clear hero boundary. */
.portal-hero::after {
  z-index: 1;
  opacity: 0.28;
}
.portal-hero .sweep-one {
  z-index: 1;
  top: 68%;
  opacity: 0.54;
}
.portal-hero .sweep-two {
  z-index: 1;
}
.portal-hero .model-universe {
  z-index: 4;
}
.portal-hero .orbit-halo {
  width: min(64vw, 860px);
}
.portal-hero .orbit-model {
  transition: filter 0.24s ease, opacity 0.3s ease;
}
.portal-hero .orbit-model.is-spotlight-source {
  opacity: 0 !important;
  pointer-events: none;
}
.portal-hero .orbit-model.is-side-focus .orbit-model-mark {
  animation: none;
}
.portal-hero .orbit-spotlight {
  top: auto;
  right: auto;
  width: min(224px, 18vw);
  min-width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  will-change: left, top, transform, opacity;
  animation: none !important;
}
.portal-hero .orbit-spotlight > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.portal-hero .spotlight-icon {
  width: 54px;
  min-width: 54px;
  height: 54px;
  margin-bottom: 8px;
  padding: 8px;
  border-color: rgba(78, 231, 210, 0.28);
  border-radius: 11px;
  background: rgba(13, 20, 32, 0.96);
  box-shadow: 0 0 34px rgba(78, 231, 210, 0.22);
}
.portal-hero .orbit-spotlight span {
  order: 0;
  margin-bottom: 4px;
  font-size: 10px;
}
.portal-hero .orbit-spotlight strong {
  order: 1;
  margin: 0;
  color: var(--portal-cyan);
  font-size: 17px;
  white-space: nowrap;
}
.portal-hero .orbit-spotlight small {
  order: 2;
  min-height: 34px;
  max-width: 210px;
  margin-top: 7px;
  overflow: visible;
  color: rgba(229, 238, 247, 0.68);
  font-size: 10px;
  line-height: 1.6;
  text-overflow: clip;
  white-space: normal;
}
.portal-hero .orbit-spotlight small.is-typing::after {
  content: "|";
  margin-left: 2px;
  color: var(--portal-cyan);
  animation: caretBlink 0.9s steps(1) infinite;
}

@media (max-width: 980px) {
  .portal-hero .orbit-halo { width: 102vw; }
  .portal-hero .orbit-spotlight { display: none; }
}

@media (max-width: 640px) {
  .portal-hero .sweep-one { top: 72%; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-hero .orbit-model {
    transition: none;
  }
}
