/* Header + Footer chrome */

/* ---------- Header (light/ice) ---------- */
.atlas-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(251, 253, 255, 0.85);
  border-bottom: 1px solid var(--surface-line);
}
.atlas-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}
.atlas-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--ink-100);
  text-transform: uppercase;
}
.atlas-logo__mark {
  width: 28px;
  height: 28px;
  position: relative;
  display: inline-grid;
  place-items: center;
}
.atlas-logo__mark svg { width: 100%; height: 100%; display: block; }
.atlas-logo__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--atlas-cyan);
  font-weight: 500;
  text-transform: uppercase;
  margin-left: 4px;
  opacity: 0.85;
}

.atlas-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.atlas-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-80);
  transition: color 0.2s var(--ease-out);
}
.atlas-nav a:hover { color: var(--ink-100); }
.atlas-nav a.is-active {
  background: rgba(14,165,255,0.10);
  color: var(--ink-100);
}
.atlas-nav a.is-active::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--atlas-cyan);
  opacity: 0.7;
}

.atlas-header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-60);
  text-transform: uppercase;
}
.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse-cyan 2s ease-in-out infinite;
}

@media (max-width: 880px) {
  .atlas-nav { display: none; }
  .status-dot { display: none; }
}

/* ---------- Footer ---------- */
.atlas-footer {
  position: relative;
  margin-top: 80px;
  border-top: 1px solid var(--surface-line);
  background: linear-gradient(180deg, transparent, rgba(0,102,204,0.06));
}
.atlas-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding: 80px 0 60px;
}
.atlas-footer__brand h3 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink-100);
  margin: 24px 0 16px;
}
.atlas-footer__brand h3 span {
  color: var(--atlas-blue-bright);
  font-style: italic;
  font-weight: 500;
}
.atlas-footer__brand p {
  font-size: 14px;
  color: var(--ink-60);
  max-width: 38ch;
}
.atlas-footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 0 0 20px;
}
.atlas-footer__col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.atlas-footer__col a {
  font-size: 14px;
  color: var(--ink-80);
  transition: color 0.2s var(--ease-out);
}
.atlas-footer__col a:hover { color: var(--atlas-cyan); }

.atlas-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 28px;
  border-top: 1px solid var(--surface-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.atlas-footer__bottom .meta { display: flex; gap: 24px; }

@media (max-width: 880px) {
  .atlas-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
  }
  .atlas-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}


/* ---------- Mobile burger menu ---------- */
.atlas-burger {
  display: none;
  width: 44px; height: 44px;
  background: rgba(14,165,255,0.08);
  border: 1px solid var(--atlas-blue);
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.atlas-burger:hover { background: rgba(14,165,255,0.15); }
.atlas-burger span {
  display: block;
  width: 20px; height: 2.5px;
  background: var(--atlas-blue-deep);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.atlas-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.atlas-burger.is-open span:nth-child(2) { opacity: 0; }
.atlas-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.atlas-drawer {
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(251, 253, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 49;
  padding: 32px 24px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.atlas-drawer.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.atlas-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.atlas-drawer nav a {
  display: block;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-100);
  border-bottom: 1px solid var(--surface-line);
  transition: color 0.2s, padding-left 0.2s;
}
.atlas-drawer nav a:hover { color: var(--atlas-cyan); padding-left: 28px; }
.atlas-drawer nav a.is-active { color: var(--atlas-cyan); }
.atlas-drawer__cross {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--surface-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.atlas-drawer__cross a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-80);
  padding: 12px 16px;
  background: rgba(10,22,40,0.04);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.atlas-drawer__cross a:hover { border-color: rgba(0,225,255,0.4); color: var(--atlas-cyan); }

@media (max-width: 880px) {
  .atlas-burger { display: flex; }
  .atlas-header__cta .btn,
  .atlas-header__cta .status-dot { display: none; }
}
@media (min-width: 881px) {
  .atlas-drawer { display: none; }
}
