:root {
  --void: #03070c;
  --space: #06101b;
  --panel: #08121f;
  --white: #f3f6f9;
  --silver: #c7ced8;
  --muted: #8793a1;
  --stone: #56616e;
  --line: rgba(170, 197, 230, .14);
  --line-strong: rgba(200, 221, 247, .30);
  --glow: #d7e9ff;
  --success: #84d694;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 10%, rgba(38, 75, 118, .13), transparent 25%),
    linear-gradient(180deg, #020509, #06101a 44%, #02060a);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

#stars,
.background-nebula,
.background-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#stars {
  z-index: -4;
}

.background-nebula {
  z-index: -3;
  background:
    radial-gradient(circle at 78% 18%, rgba(55, 101, 157, .13), transparent 19%),
    radial-gradient(circle at 14% 60%, rgba(31, 63, 103, .07), transparent 27%);
}

.background-grain {
  z-index: -2;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.shell {
  width: min(calc(100% - 44px), var(--shell));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 11, .88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.header-brand {
  min-width: max-content;
}

.brand-mark {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(201, 221, 255, .24));
}

.brand-copy,
.brand-type {
  display: grid;
  line-height: 1;
}

.brand-copy strong,
.brand-type strong,
.nav,
.button,
.atlas-intro h1,
.network-footer-heading p,
.network-link-copy strong,
.footer h2 {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
}

.brand-copy strong,
.brand-type strong {
  font-size: 16px;
  letter-spacing: .22em;
}

.brand-copy small,
.brand-type small {
  margin-top: 6px;
  color: var(--silver);
  font-size: 6.5px;
  letter-spacing: .30em;
}

.nav {
  justify-self: center;
  display: flex;
  gap: 43px;
}

.nav a {
  position: relative;
  color: var(--silver);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: .18em;
  bottom: -11px;
  height: 1px;
  background: var(--glow);
  box-shadow: 0 0 9px rgba(215, 233, 255, .55);
}

.button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .15em;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-outline {
  border-color: var(--line-strong);
  background: rgba(7, 15, 26, .62);
  box-shadow: inset 0 0 17px rgba(132, 178, 238, .035);
}

.button-outline:hover {
  border-color: rgba(223, 236, 253, .60);
  box-shadow: 0 0 22px rgba(145, 187, 244, .12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--white);
}

/* Atlas */

.atlas-main {
  padding: 28px 0 0;
}

.atlas-intro {
  min-height: 94px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: .20em;
}

.atlas-intro h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.atlas-description {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.atlas-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.preview-status,
.open-direct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-status {
  color: var(--silver);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.preview-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 11px rgba(132, 214, 148, .6);
}

.open-direct {
  color: var(--muted);
  font-size: 9px;
}

.open-direct:hover {
  color: var(--glow);
}

.atlas-frame-section {
  padding-bottom: 38px;
}

.atlas-frame-shell {
  position: relative;
  height: clamp(650px, calc(100dvh - 190px), 980px);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(47, 86, 133, .12), transparent 38%),
    #02060a;
  box-shadow:
    inset 0 0 50px rgba(113, 157, 215, .035),
    0 22px 80px rgba(0, 0, 0, .32);
}

.atlas-frame-shell::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(224, 238, 255, .045);
  border-radius: inherit;
  pointer-events: none;
}

.atlas-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #02060a;
}

.frame-loading {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: var(--muted);
}

.frame-loading strong {
  margin-top: 18px;
  color: var(--silver);
  font-family: "Michroma", sans-serif;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.frame-loading small {
  margin-top: 6px;
  font-size: 9px;
}

.loader-orbit {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(215, 233, 255, .22);
  border-top-color: var(--glow);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.frame-fallback {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: #02060a;
  color: var(--muted);
}

.frame-fallback a {
  color: var(--glow);
}

.preview-note {
  margin: 10px 0 0;
  color: var(--stone);
  font-size: 8px;
  text-align: center;
}

/*
  IMPORTANT:
  #base44-badge is inside a cross-origin iframe. This parent stylesheet
  cannot target or hide DOM elements inside moon-grid-atlas.base44.app.
*/

/* Footer */

.footer {
  padding: 0 0 16px;
  background: rgba(2, 7, 12, .38);
}

.network-footer {
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(69, 114, 173, .10), transparent 42%),
    rgba(3, 9, 15, .72);
}

.network-footer-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 34px;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}

.network-footer-heading p {
  margin: 0;
  color: var(--white);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .20em;
}

.network-footer-heading span {
  display: block;
  max-width: 210px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
}

.network-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(4, 11, 19, .62);
}

.network-links > a {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.network-links > a:last-child {
  border-right: 0;
}

.network-links > a:hover,
.network-links > a.current {
  z-index: 2;
  background: rgba(21, 39, 62, .58);
  box-shadow: inset 0 0 22px rgba(155, 196, 250, .06);
}

.network-links > a:hover {
  transform: translateY(-2px);
}

.network-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--glow);
  font-size: 12px;
}

.network-link-copy {
  display: grid;
  min-width: 0;
}

.network-link-copy strong {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.network-link-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.network-links i {
  color: var(--stone);
  font-size: 10px;
  font-style: normal;
}

.footer-main {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 35px;
  align-items: start;
}

.footer-brand {
  margin-top: 8px;
}

.brand-symbol {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(210, 231, 255, .20));
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.footer-columns > div {
  min-height: 90px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.footer h2 {
  margin: 0 0 9px;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.footer-columns a {
  display: block;
  margin: 3px 0;
  color: var(--muted);
  font-size: 9px;
}

.footer-columns a:hover {
  color: var(--glow);
}

.connect p {
  display: flex;
  gap: 7px;
  margin: 0;
}

.connect p a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--silver);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #737e8b;
  font-size: 8px;
}

.footer-bottom p {
  margin: 0 0 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1020px) {
  .desktop-claim {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
  }

  .nav.open {
    position: absolute;
    top: 73px;
    left: 22px;
    right: 22px;
    display: grid;
    gap: 0;
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: rgba(2, 7, 12, .98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }

  .nav.open a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav.open a:last-child {
    border-bottom: 0;
  }

  .nav a.active::after {
    display: none;
  }

  .atlas-intro {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .brand-copy strong,
  .brand-type strong {
    font-size: 13px;
  }

  .brand-copy small,
  .brand-type small {
    font-size: 5.5px;
  }

  .atlas-main {
    padding-top: 18px;
  }

  .atlas-intro {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .atlas-actions {
    justify-items: start;
  }

  .atlas-frame-shell {
    height: max(650px, calc(100dvh - 145px));
    min-height: 650px;
    border-radius: 6px;
  }

  .network-footer-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .network-footer-heading span {
    max-width: none;
  }

  .network-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-links > a {
    border-bottom: 1px solid var(--line);
  }

  .network-links > a:nth-child(2n) {
    border-right: 0;
  }

  .network-links > a:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 25px 0;
  }

  .footer-columns > div {
    padding-left: 18px;
  }
}

@media (max-width: 480px) {
  .atlas-frame-section {
    width: 100%;
    padding-bottom: 30px;
  }

  .atlas-frame-shell {
    height: max(680px, calc(100dvh - 122px));
    min-height: 680px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .atlas-frame-section .preview-note {
    padding-inline: 12px;
  }

  .network-links,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .network-links > a,
  .network-links > a:nth-child(2n),
  .network-links > a:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .network-links > a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px), (pointer: coarse) {
  .background-grain {
    opacity: .02;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
