/* Components: nav, hero, rail, capability cards, metric strip, promo banner, corner widget, dialog */

/* ---------- Floating dark navigation ---------- */
.nav {
  position: fixed;
  top: 22px;
  left: 0; right: 0;
  z-index: 60;
  padding-inline: var(--page-gutter);
  pointer-events: none;
  transition: top .25s ease;
}
.nav.is-stuck { top: 10px; }
.nav__bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding: 10px 12px 10px 20px;
  color: #fff;
  background: rgba(8, 31, 62, .88);
  border: 1px solid rgba(139, 179, 218, .22);
  border-radius: var(--radius-navigation);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 40px -12px rgba(2, 14, 30, .55);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav__brand img { width: 34px; height: 34px; }
.nav__brand .tld { color: var(--color-signal-orange); font-weight: 500; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  display: block;
  padding: 8px 10px;
  color: #fff;
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 6px;
  opacity: .92;
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a[aria-current='true'] { opacity: 1; background: rgba(255, 255, 255, .1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
}
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded='true'] .icon-menu { display: none; }
.nav__toggle[aria-expanded='true'] .icon-close { display: block; }

@media (max-width: 1080px) {
  .nav__links a { padding-inline: 7px; }
  .nav__actions .btn--outline-light { display: none; }
}
@media (max-width: 940px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: rgba(8, 31, 62, .97);
    border: 1px solid rgba(139, 179, 218, .22);
    border-radius: var(--radius-navigation);
    box-shadow: 0 20px 50px -10px rgba(2, 14, 30, .6);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 14px; font-size: 17px; }
  .nav__actions .btn--outline-light { display: inline-flex; }
}
@media (max-width: 520px) {
  .nav__brand { font-size: 19px; }
  .nav__brand img { width: 30px; height: 30px; }
  .nav__actions .btn { padding-inline: 12px; }
  .nav__actions .btn--outline-light { display: none; }
}

/* ---------- Hero launch panel ---------- */
.hero-wrap { padding: 20px var(--page-gutter) 0; }
.hero {
  position: relative;
  max-width: 1460px;
  margin-inline: auto;
  color: #fff;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(58, 74, 190, .42), transparent 62%),
    radial-gradient(700px 480px at 8% 92%, rgba(26, 106, 190, .28), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(255, 122, 83, .12), transparent 60%),
    var(--color-launch-bay);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* faint starfield */
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  opacity: .8;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 22% 38%, #cfe5ff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 34% 8%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 47% 24%, #cfe5ff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 58% 6%, #ffd9a8 50%, transparent 52%),
    radial-gradient(1px 1px at 66% 42%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 81% 12%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 30%, #cfe5ff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 15% 62%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 41% 74%, #cfe5ff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 72% 82%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 95% 70%, #ffd9a8 50%, transparent 52%),
    radial-gradient(1px 1px at 4% 86%, #cfe5ff 50%, transparent 52%);
}
.hero__inner {
  max-width: calc(var(--page-max-width) + 40px);
  margin-inline: auto;
  padding: 150px 20px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.hero__inner > * { min-width: 0; }
.hero__copy { position: relative; z-index: 2; }
.hero__copy .chip { white-space: normal; border-radius: 14px; }
.hero__copy h1 { margin-top: 18px; text-wrap: balance; }
.hero__copy .lead {
  margin-top: 22px;
  max-width: 540px;
  color: #fff;
  font-size: 18px;
  line-height: 27px;
  opacity: .96;
}
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px 22px; }
.hero__note { margin-top: 14px; color: var(--color-signal-blue); font-size: 14px; line-height: 22px; }
.hero__proof {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: #fff;
  font-size: 15px; line-height: 22px;
}
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof .icon { color: var(--color-signal-orange); width: 18px; height: 18px; }
.hero__foot {
  grid-column: 1 / -1;
  margin-top: 6px;
  text-align: center;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  opacity: .92;
}

.hero__art {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  aspect-ratio: 640 / 600;
}
.hero__art img { position: absolute; user-select: none; -webkit-user-drag: none; }
.hero__art .art-bg, .hero__art .art-fg { inset: 0; width: 100%; height: 100%; }
.hero__art .art-bg {
  /* the planet/rocket scene is cropped by its own viewBox: fade the cut edges into the panel */
  -webkit-mask-image: linear-gradient(90deg, #000 91%, transparent 100%), linear-gradient(180deg, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 91%, transparent 100%), linear-gradient(180deg, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.hero__art .art-cat {
  left: 23.4375%;   /* 150 / 640 */
  top: 18%;         /* 108 / 600 */
  width: 54.6875%;  /* 350 / 640 */
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35));
  animation: float-cat 7s ease-in-out infinite;
}
.hero__art .art-fg { animation: float-cat 7s ease-in-out infinite; }
@keyframes float-cat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(-.6deg); }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 128px; gap: 6px; }
  .hero__art { max-width: 520px; margin-top: 8px; }
}
@media (max-width: 520px) {
  .hero-wrap { padding-top: 12px; padding-inline: 10px; }
  .hero__inner { padding: 112px 16px 36px; }
  .hero__copy .lead { font-size: 17px; line-height: 26px; }
  .btn--xl { font-size: 18px; --btn-pad-x: 20px; --btn-pad-y: 15px; }
}

/* ---------- Partner / stack rail ---------- */
.rail { padding-block: 34px 8px; }
.rail__label { text-align: center; color: var(--color-graphite); font-size: 14px; line-height: 22px; margin-bottom: 18px; }
.rail__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 46px;
  filter: grayscale(1);
  opacity: .72;
  color: #3e4f63;
}
.rail__list li { font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.01em; }
.rail__list li:nth-child(3n+2) { font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 20px; }
.rail__list li:nth-child(3n) { font-weight: 300; font-size: 26px; }
@media (max-width: 640px) {
  .rail__list { gap: 12px 26px; }
  .rail__list li { font-size: 19px !important; }
}

/* ---------- Product capability cards + central mascot grid ---------- */
.mascot-grid {
  position: relative;
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
}
.mascot-grid__col { position: relative; z-index: 1; display: grid; gap: var(--section-gap); align-content: space-between; }
.mascot-grid__col--right { }
.mascot-grid__center { position: relative; align-self: center; min-height: 520px; display: grid; place-items: center; }
.mascot-grid__orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 168%; max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.mascot-grid__cat {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 18px 22px rgba(24, 61, 109, .22));
  animation: float-cat 8s ease-in-out infinite;
}

.cap-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 18px 32px;
  background: var(--color-white-surface);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-xl);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cap-card:hover { transform: translateY(-3px); box-shadow: 0 14px 44px -8px rgba(24, 61, 109, .16); }
.cap-card__step {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--color-orange-text);
  font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
.cap-card h3 { font-size: var(--text-card-title); line-height: var(--leading-card-title); font-weight: 700; }
.cap-card p { margin-top: 6px; font-size: 16px; line-height: 24px; }
.cap-card img { width: 92px; height: 92px; }

@media (max-width: 1060px) {
  .mascot-grid { grid-template-columns: 1fr 1fr; }
  .mascot-grid__center { grid-column: 1 / -1; grid-row: 1; min-height: 0; padding-block: 8px 0; }
  .mascot-grid__cat { max-width: 300px; }
  .mascot-grid__orbit { width: 150%; }
  .mascot-grid__col { align-content: start; }
}
@media (max-width: 700px) {
  .mascot-grid__orbit { width: 124%; }
  .mascot-grid__cat { max-width: 250px; }
  .mascot-grid { grid-template-columns: minmax(0, 1fr); gap: var(--section-gap); }
  .mascot-grid__col { gap: 15px; }
  .mascot-grid__col--left { margin-bottom: -17px; }
  .cap-card { padding: 16px 16px 16px 22px; grid-template-columns: minmax(0, 1fr) 72px; }
  .cap-card img { width: 72px; height: 72px; }
}

/* ---------- Metric strip ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}
.metrics__cell {
  padding: 8px 24px;
  border-left: 1px solid var(--color-mist-divider);
}
.metrics__cell:first-child { border-left: 0; }
.metrics__value {
  font-size: 45px; line-height: 1.1; font-weight: 700; color: var(--color-edge-navy);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.metrics__value small { font-size: 20px; font-weight: 700; color: var(--color-orange-text); }
.metrics__label { margin-top: 8px; font-size: 18px; line-height: 21.6px; }
.metrics__note { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--color-graphite); }
@media (max-width: 860px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .metrics__cell:nth-child(3) { border-left: 0; }
  .metrics__value { font-size: 38px; }
}
@media (max-width: 460px) {
  .metrics { grid-template-columns: 1fr; }
  .metrics__cell { border-left: 0; border-top: 1px solid var(--color-mist-divider); padding: 18px 4px 0; }
  .metrics__cell:first-child { border-top: 0; padding-top: 8px; }
}

/* ---------- Dark rocket promotion banner ---------- */
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(520px 300px at 85% 20%, rgba(58, 90, 200, .35), transparent 70%),
    var(--color-network-deep);
  border-radius: var(--radius-cards);
  padding: 30px 32px;
}
.banner__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: center; min-height: 340px; }
.banner h2 { max-width: 540px; }
.banner p { margin-top: 14px; max-width: 520px; font-size: 18px; line-height: 27px; color: #fff; opacity: .94; }
.banner__cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.banner__note { margin-top: 12px; color: var(--color-signal-blue); font-size: 14px; line-height: 22px; }
.banner__art { position: relative; align-self: stretch; min-height: 280px; }
.banner__art img { position: absolute; }
.banner__art img:first-child {
  /* soften the scene's cropped edges into the panel */
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 100%), linear-gradient(180deg, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 90%, transparent 100%), linear-gradient(180deg, #000 90%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 860px) {
  .banner { padding: 26px 20px; }
  .banner__grid { grid-template-columns: 1fr; min-height: 0; }
  .banner__art { min-height: 0; aspect-ratio: 520 / 360; max-width: 460px; width: 100%; margin-inline: auto; }
}

/* ---------- Hiring / pilot corner widget ---------- */
.corner {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 55;
  width: min(330px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 40px 12px 12px;
  background: var(--color-white-surface);
  color: var(--color-edge-navy);
  border-radius: var(--radius-cards);
  box-shadow: 0 10px 40px -8px rgba(5, 30, 56, .3), 0 0 0 1px rgba(24, 61, 109, .06);
  transform: translateY(0);
  transition: transform .35s ease, opacity .35s ease;
}
.corner[hidden] { display: none; }
.corner.is-leaving { transform: translateY(24px); opacity: 0; }
.corner img { width: 64px; height: 64px; object-fit: cover; object-position: 50% 12%; border-radius: 12px; background: var(--color-cloud-canvas); }
.corner p { font-size: 15px; line-height: 21px; }
.corner a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.corner a:hover { text-decoration: underline; }
.corner__close {
  position: absolute; top: 4px; right: 4px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--color-edge-navy);
}
.corner__close:hover { background: var(--color-cloud-canvas); }
.corner__close .icon { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .corner { left: 10px; bottom: 10px; grid-template-columns: 48px minmax(0, 1fr); padding: 10px 38px 10px 10px; width: min(300px, calc(100vw - 20px)); }
  .corner img { width: 48px; height: 48px; }
  .corner p { font-size: 14px; line-height: 19px; }
}

/* ---------- Dialog ---------- */
.dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 30px;
  color: var(--color-edge-navy);
  background: var(--color-white-surface);
  border: 0;
  border-radius: var(--radius-cards);
  box-shadow: 0 30px 80px -10px rgba(5, 30, 56, .5);
}
.dialog::backdrop { background: rgba(5, 30, 56, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog h2 { font-size: 28px; line-height: 34px; font-weight: 700; }
.dialog p { margin-top: 12px; font-size: 17px; line-height: 26px; }
.dialog__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.dialog__close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 8px; color: var(--color-edge-navy); }
.dialog__close:hover { background: var(--color-cloud-canvas); }
