/* METRIDIUM v2 — Nav */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  padding: 0.35rem clamp(1rem, 2.75vw, 2rem);
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(36px);
  background:
    linear-gradient(120deg, rgba(5, 9, 18, 0.9), rgba(6, 13, 28, 0.85)),
    var(--chrome);
  border-bottom: 1px solid var(--white-12);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-emblem {
  display: block;
  width: 58px;
  height: 56px;
  object-fit: contain;
  filter:
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.65))
    drop-shadow(0 -6px 12px rgba(255, 255, 255, 0.35));
}

.logo-type {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.24em;
}

.logo-subtitle {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  display: grid;
  place-items: center;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.control-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.control-btn:hover {
  border-color: var(--primary);
  background: rgba(0, 255, 163, 0.08);
}

.view-toggle {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 26, 0.75);
  box-shadow:
    inset 0 0 12px rgba(0, 255, 200, 0.04),
    0 5px 14px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.view-toggle__btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.65rem 1.2rem 0.55rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.view-toggle__btn.is-active {
  color: #05070f;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(148, 226, 255, 0.5), rgba(39, 140, 180, 0.6));
  box-shadow:
    0 8px 22px rgba(0, 255, 200, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.view-toggle__btn:focus-visible {
  outline: 2px solid rgba(0, 255, 200, 0.8);
  outline-offset: -2px;
}

.view-toggle__divider {
  width: 1px;
  background: var(--white-12);
}

.scene-nav {
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-pill);
  background: rgba(8, 14, 26, 0.75);
  border: 1px solid var(--white-12);
  box-shadow:
    inset 0 0 12px rgba(0, 255, 200, 0.04),
    0 5px 14px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.scene-nav__landing {
  display: flex;
}

.scene-nav--platform {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.35rem;
  background: rgba(6, 12, 22, 0.85);
  border-radius: var(--radius-pill);
  border: 1px solid var(--white-08);
  box-shadow:
    inset 0 0 12px rgba(0, 255, 200, 0.04),
    0 5px 14px rgba(0, 0, 0, 0.35);
}

.platform-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

.platform-pill strong {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.platform-pill--soon {
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.8;
}

.scene-pill {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem 0.5rem;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  position: relative;
  min-width: 0;
}

.scene-pill + .scene-pill {
  border-left: 1px solid var(--white-12);
}

.scene-pill strong {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  line-height: 1;
  margin-top: -0.05rem;
}

.scene-pill span {
  font-size: 0.58rem;
  line-height: 1;
  transform: translateX(0.18rem);
}

.scene-pill:hover {
  background: rgba(148, 226, 255, 0.18);
  color: #010104;
}

.scene-pill.active {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(148, 226, 255, 0.5), rgba(39, 140, 180, 0.6));
  color: #05070f;
  box-shadow:
    0 10px 24px rgba(0, 255, 200, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.scene-nav__coming-soon {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(0, 255, 200, 0.45);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: rgba(0, 20, 32, 0.65);
}

.scene-nav__coming-soon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 255, 200, 0.9);
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.8);
}