/* Orbit homepage: black-field palette and resilient animation states. */
:root {
  color-scheme: dark;
  --orbit-black: #020203;
  --orbit-surface: #070708;
  --orbit-surface-raised: #0a0a0c;
}

html,
body {
  background-color: var(--orbit-black) !important;
}

body::before {
  background: radial-gradient(circle at 50% -10%, rgba(74, 103, 180, 0.08), transparent 42%) !important;
}

.hero-accent {
  color: #e8efff;
  -webkit-text-fill-color: #e8efff;
  text-shadow: 0 0 32px rgba(110, 168, 255, 0.14);
}

.kinetic-bg {
  background-color: var(--orbit-black) !important;
  opacity: 0.72;
}

.kinetic-grid {
  opacity: 0.2;
}

.orbit-nav,
.pricing-card,
.bento-card,
.glass-panel,
.research-console,
.automation-canvas,
.model-card {
  background-color: rgba(7, 7, 8, 0.78) !important;
}

/* When an optional animation library fails, content remains readable and usable. */
.orbit-animation-fallback main *,
.orbit-animation-fallback header *,
.orbit-animation-fallback footer * {
  visibility: visible !important;
}

.orbit-animation-fallback [style*="opacity"] {
  opacity: 1 !important;
}

.orbit-animation-fallback #orbital-webgl-canvas {
  opacity: 0.34;
}

.orbit-animation-recovered {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.model-roster {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(10, 10, 12, 0.92), rgba(4, 4, 5, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 30px 80px rgba(0, 0, 0, 0.28);
}

.model-roster::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(110, 168, 255, 0.07), transparent 46%);
}

.model-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.model-provider {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.018);
}

.model-provider-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  background: #f4f4f5;
}

.model-provider-icon img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.model-provider-icon--dark {
  background: #111113;
}

.model-provider-name {
  overflow: hidden;
  color: #f7f7f8;
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-provider-type {
  margin-top: 0.1rem;
  color: #73737d;
  font-family: var(--font-mono, monospace);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .model-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Product preview mirrors the structure of the Orbit application. */
.product-app {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  height: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  color: #e7e7ea;
  background: #050506;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.64), inset 0 1px rgba(255, 255, 255, 0.045);
}

.app-sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  background: #080809;
}

.app-brand {
  min-height: 54px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.app-brand img {
  width: 25px;
  height: 25px;
}

.app-brand > span:nth-child(2) {
  min-width: 0;
}

.app-brand strong,
.app-brand small {
  display: block;
}

.app-brand strong {
  color: #f4f4f5;
  font-size: 12px;
  line-height: 1.05;
}

.app-brand small {
  margin-top: 4px;
  color: #5f5f67;
  font: 500 7px/1 var(--font-mono, monospace);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-collapse {
  width: 20px;
  height: 20px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #71717a;
  font-size: 12px;
}

.app-sidebar-body {
  min-height: 0;
  padding: 10px;
  flex: 1;
  overflow: hidden;
}

.app-new-agent,
.app-side-link,
.app-composer,
.app-suggestion {
  text-decoration: none;
}

.app-new-agent {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ededf0;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
}

.app-search {
  height: 32px;
  margin-top: 8px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  color: #66666f;
  font-size: 10px;
}

.app-search kbd {
  color: #4f4f58;
  font: inherit;
}

.app-section-label {
  margin: 20px 7px 7px;
  color: #484850;
  font: 500 7px/1 var(--font-mono, monospace);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.app-side-link {
  min-height: 30px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border-radius: 7px;
  color: #777780;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-side-link:hover,
.app-side-link.active {
  color: #eeeeef;
  background: rgba(255, 255, 255, 0.065);
}

.app-side-link > span {
  width: 13px;
  color: #9898a2;
  text-align: center;
}

.app-sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.app-account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
}

.app-account strong,
.app-account small {
  display: block;
}

.app-account strong {
  color: #c9c9ce;
  font-size: 9px;
}

.app-account small {
  margin-top: 2px;
  color: #5d5d66;
  font-size: 8px;
}

.app-avatar {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #455a78, transparent 28%), radial-gradient(circle at 65% 60%, #1b202b, #070708 72%);
}

.app-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 48px 38px minmax(0, 1fr) 108px;
}

.app-topbar,
.app-modebar,
.app-composer-wrap {
  background: #070708;
}

.app-topbar {
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.app-title strong,
.app-title span {
  display: block;
}

.app-title strong {
  color: #efeff1;
  font-size: 12px;
  font-weight: 500;
}

.app-title span {
  margin-top: 2px;
  color: #606069;
  font-size: 8px;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #787881;
  font-size: 9px;
}

.app-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #59c996;
  box-shadow: 0 0 8px rgba(89, 201, 150, 0.5);
}

.app-modebar {
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-pills {
  height: 24px;
  padding: 3px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: #030304;
}

.app-pill {
  height: 18px;
  padding: 0 11px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #55555d;
  font-size: 8px;
}

.app-pill.active {
  color: #e0e0e3;
  background: rgba(255, 255, 255, 0.095);
}

.app-context-label {
  color: #55555d;
  font: 500 8px/1 var(--font-mono, monospace);
}

.app-workspace {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 42%, rgba(110, 168, 255, 0.035), transparent 42%), #050506;
}

.app-empty-state {
  width: min(620px, 100%);
  text-align: center;
}

.app-empty-mark {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  opacity: 0.65;
}

.app-empty-state h3 {
  margin: 0;
  color: #ededf0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.app-empty-state > p {
  max-width: 420px;
  margin: 8px auto 22px;
  color: #71717a;
  font-size: 11px;
  line-height: 1.55;
}

.app-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

.app-suggestion {
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.app-suggestion:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 168, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.app-suggestion i {
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: #82828c;
  font: normal 8px/1 var(--font-mono, monospace);
}

.app-suggestion strong,
.app-suggestion span {
  display: block;
}

.app-suggestion strong {
  margin-bottom: 5px;
  color: #dedee2;
  font-size: 10px;
  font-weight: 500;
}

.app-suggestion span {
  color: #707079;
  font-size: 9px;
  line-height: 1.45;
}

.app-composer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.app-composer {
  width: min(600px, calc(100% - 44px));
  display: block;
}

.app-input {
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #5f5f68;
  background: #020203;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-size: 11px;
}

.app-input > span:first-child {
  flex: 1;
  padding-left: 15px;
}

.app-input-actions {
  padding: 0 8px;
  display: flex;
  gap: 4px;
}

.app-input-actions i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #aaaab2;
  background: rgba(255, 255, 255, 0.055);
  font-style: normal;
}

.app-input-actions i:last-child {
  color: #050506;
  background: #e8e8ea;
}

.app-chip-row {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.app-chip {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  color: #66666f;
  font-size: 8px;
}

@media (max-width: 760px) {
  .product-app {
    height: 500px;
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .app-main {
    grid-template-rows: 48px 38px minmax(0, 1fr) 105px;
  }

  .app-card-row {
    grid-template-columns: 1fr;
  }

  .app-suggestion {
    min-height: 64px;
  }

  .app-suggestion:nth-child(n + 3) {
    display: none;
  }

  .app-suggestion i {
    float: left;
    margin: 0 10px 18px 0;
  }

  .app-context-label {
    display: none;
  }
}

@media (max-width: 420px) {
  .product-app {
    height: 510px;
    border-radius: 14px;
  }

  .app-workspace {
    padding: 18px 14px;
  }

  .app-pill {
    padding: 0 8px;
  }

  .app-composer {
    width: calc(100% - 24px);
  }

  .app-chip:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  main *,
  header *,
  footer * {
    visibility: visible !important;
  }

  [style*="opacity"] {
    opacity: 1 !important;
  }
}
