:root {
  --bg: #01030c;
  --bg-alt: rgba(10, 16, 32, 0.72);
  --surface: rgba(7, 13, 25, 0.78);
  --surface-strong: rgba(12, 20, 39, 0.92);
  --accent: #00f5ff;
  --accent-secondary: #4c6fff;
  --accent-warm: #ff8e66;
  --text: #f0f6ff;
  --text-muted: rgba(214, 226, 255, 0.65);
  --border: rgba(0, 245, 255, 0.18);
  --shadow: 0 30px 80px rgba(0, 12, 45, 0.55);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --grid-color: rgba(0, 245, 255, 0.06);
  --grid-glow: rgba(0, 245, 255, 0.22);
  --gradient-1: rgba(0, 245, 255, 0.32);
  --gradient-2: rgba(76, 111, 255, 0.32);
  --gradient-3: rgba(255, 142, 102, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 245, 255, 0.25), transparent 55%),
    radial-gradient(circle at 75% 0%, rgba(76, 111, 255, 0.22), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(255, 142, 102, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(0deg, transparent 48%, var(--grid-color) 50%, transparent 52%),
    linear-gradient(90deg, transparent 48%, var(--grid-color) 50%, transparent 52%);
  background-size: 140px 140px;
  mask: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.55), transparent 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 90%);
  -webkit-mask: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.55), transparent 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 90%);
  opacity: 0.65;
}

body::after {
  background: radial-gradient(circle at 20% 15%, var(--gradient-1), transparent 55%),
    radial-gradient(circle at 70% 20%, var(--gradient-2), transparent 60%),
    radial-gradient(circle at 65% 75%, var(--gradient-3), transparent 65%);
  mix-blend-mode: screen;
  animation: aurora-shift 24s ease-in-out infinite alternate;
  opacity: 0.35;
}

@keyframes aurora-shift {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1.02);
    filter: hue-rotate(0deg) saturate(1);
  }

  50% {
    transform: translate3d(1%, 1%, 0) scale(1.04);
    filter: hue-rotate(12deg) saturate(1.1);
  }

  100% {
    transform: translate3d(3%, -1%, 0) scale(1.01);
    filter: hue-rotate(-8deg) saturate(1.05);
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: #ffffff;
}

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(1, 3, 12, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.12);
  overflow: visible;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--grid-glow), transparent);
  opacity: 0.8;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
  flex-wrap: wrap;
  row-gap: 1.5rem;
}

.header__status {
  order: 2;
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(6, 12, 24, 0.85), rgba(4, 8, 20, 0.65));
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: 0 18px 38px rgba(0, 12, 45, 0.35);
}

.status-pill {
  position: relative;
  display: grid;
  grid-template-columns: auto;
  gap: 0.1rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 245, 255, 0.26);
  background: rgba(0, 245, 255, 0.06);
  min-width: clamp(140px, 18vw, 220px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.status-pill::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.4), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.status-pill:hover::before,
.status-pill:focus-visible::before {
  opacity: 0.5;
}

.status-pill__value {
  font-family: 'Space Grotesk', system-ui;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.status-pill__meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.status-pill__label {
  color: var(--text);
}

.status-pill__hint {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  order: 1;
}

.brand__title {
  font-family: 'Space Grotesk', system-ui;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav {
  flex: 1 1 100%;
  order: 3;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.site-nav > a {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.site-nav > a:hover,
.site-nav > a:focus {
  border-color: rgba(0, 245, 255, 0.4);
  background: rgba(0, 245, 255, 0.08);
}

.site-nav--tree {
  display: block;
  flex: 1 1 100%;
}

.nav-tree,
.nav-tree__children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.nav-tree__item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 245, 255, 0.18);
  background: rgba(6, 12, 24, 0.75);
  box-shadow: 0 16px 38px rgba(0, 12, 40, 0.35);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav-tree__item:hover,
.nav-tree__item:focus-within {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 255, 0.42);
  box-shadow: 0 24px 52px rgba(0, 12, 40, 0.45);
}

.nav-tree__item[data-depth='1'] {
  background: rgba(5, 10, 22, 0.72);
  border-color: rgba(0, 245, 255, 0.22);
}

.nav-tree__item[data-depth='2'] {
  background: rgba(8, 14, 26, 0.75);
  border-color: rgba(0, 245, 255, 0.28);
}

.nav-tree__label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.35rem 0.2rem 0.35rem 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.nav-tree__label:hover,
.nav-tree__label:focus {
  border-color: rgba(0, 245, 255, 0.4);
  background: rgba(0, 245, 255, 0.08);
  color: #ffffff;
}

.nav-tree__label.is-active {
  border-color: rgba(0, 245, 255, 0.65);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.22), rgba(76, 111, 255, 0.22));
  box-shadow: 0 18px 40px rgba(0, 245, 255, 0.32);
}

.nav-tree__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.35);
  background: rgba(0, 245, 255, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.nav-tree__text {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  text-transform: none;
  letter-spacing: 0.04em;
}

.nav-tree__children {
  display: grid;
  gap: 0.55rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(0, 245, 255, 0.22);
}

.nav-tree__children .nav-tree__item {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  order: 2;
  margin-left: auto;
}

.header__action {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.22);
  background: rgba(0, 245, 255, 0.06);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition),
    color var(--transition);
}

.header__action:hover,
.header__action:focus-visible {
  transform: translateY(-1px);
  background: rgba(0, 245, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 245, 255, 0.24);
  color: #ffffff;
}

@media (min-width: 960px) {
  .header__inner {
    flex-wrap: nowrap;
    align-items: flex-end;
  }

  .site-nav {
    order: 2;
    flex: 1 1 auto;
  }

  .site-nav--tree {
    flex: 1 1 100%;
  }

  .header__actions {
    order: 3;
    margin-left: 0;
  }
}

.language-toggle {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.35);
  background: rgba(0, 245, 255, 0.08);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.language-toggle:hover,
.language-toggle:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 245, 255, 0.24);
  background: rgba(0, 245, 255, 0.18);
}

.hero {
  position: relative;
  min-height: clamp(32rem, 80vh, 46rem);
  display: flex;
  align-items: stretch;
}

#earth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 60px 120px rgba(0, 12, 40, 0.85));
}

.hero__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(115deg, rgba(1, 3, 12, 0.84) 10%, rgba(1, 3, 12, 0.38) 52%, rgba(1, 3, 12, 0.85) 90%);
  padding: clamp(3.2rem, 6vw, 4.5rem) 0;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.hero__text {
  max-width: 52ch;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__content h1 {
  font-family: 'Space Grotesk', system-ui;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
}

.hero__description {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.22), rgba(76, 111, 255, 0.2));
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition);
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 245, 255, 0.3);
}

.button--ghost {
  background: transparent;
  color: var(--accent);
}

.hero__stats {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero__stats .stat-card {
  position: relative;
  display: grid;
  gap: 0.75rem;
  background: linear-gradient(160deg, rgba(6, 12, 24, 0.92), rgba(3, 6, 14, 0.78));
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.hero__stats .stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 28px 60px rgba(0, 12, 45, 0.48);
}

.hero__stats .stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.35), transparent 60%);
  opacity: 0.18;
  pointer-events: none;
}

.hero__stats .stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-card strong {
  display: block;
  font-family: 'Space Grotesk', system-ui;
  font-size: 2.2rem;
  color: #ffffff;
}

.hero__stats .stat-card h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__stats .stat-card p {
  margin: 0;
  color: var(--text-muted);
}

.hero__control {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 245, 255, 0.18);
  background: linear-gradient(135deg, rgba(6, 12, 24, 0.82), rgba(4, 9, 22, 0.6));
  box-shadow: 0 20px 48px rgba(0, 12, 45, 0.35);
  display: grid;
  gap: 1.1rem;
}

.hero__control-slider label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero__control-track {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__control-track input[type='range'] {
  flex: 1 1 auto;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 245, 255, 0.18);
  outline: none;
  position: relative;
  overflow: hidden;
}

.hero__control-track input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero__control-track input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero__control-track input[type='range']::-moz-range-track {
  background: transparent;
}

.hero__control-track input[type='range']:hover::-webkit-slider-thumb,
.hero__control-track input[type='range']:focus::-webkit-slider-thumb,
.hero__control-track input[type='range']:hover::-moz-range-thumb,
.hero__control-track input[type='range']:focus::-moz-range-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(0, 245, 255, 0.28), 0 0 18px rgba(0, 245, 255, 0.45);
}

.hero__slider-value {
  font-family: 'Space Grotesk', system-ui;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.hero__control-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero__control-actions {
  display: grid;
  gap: 0.6rem;
}

.hero__control-actions .button {
  justify-content: center;
}

.stat-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-card__meta li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.35);
  background: rgba(0, 245, 255, 0.12);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.35), rgba(5, 9, 18, 0.85));
}

main {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  z-index: 1;
}

.ia-branch {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.ia-branch--nested {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ia-surface {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(6, 12, 24, 0.78);
  border: 1px solid rgba(0, 245, 255, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ia-surface > .inner {
  position: relative;
  z-index: 1;
}

.ia-surface::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(160deg, rgba(0, 245, 255, 0.12), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }

  .status-pill::before,
  .hero__stats .stat-card::before {
    transition-duration: 0s;
  }
}

@media (max-width: 720px) {
  .header__status {
    padding: 0.65rem 0.8rem;
  }

  .status-pill {
    min-width: calc(50% - 0.4rem);
  }

  .hero__control {
    margin-top: 1.25rem;
    padding: 1.1rem 1.25rem;
  }
}

.ia-surface--nested {
  background: rgba(8, 14, 28, 0.8);
  border-color: rgba(0, 245, 255, 0.22);
  padding: clamp(3rem, 6vw, 4.2rem) 0;
}

[data-ia-depth]:not(#hero) {
  position: relative;
}

[data-ia-depth]:not(#hero)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(140deg, rgba(0, 245, 255, 0.12), rgba(76, 111, 255, 0.18));
  opacity: 0.85;
  pointer-events: none;
}

[data-ia-depth]:not(#hero)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 245, 255, 0.16);
  pointer-events: none;
  z-index: 0;
}

[data-ia-depth='1']:not(#hero)::before {
  background: radial-gradient(circle at 18% -20%, rgba(0, 245, 255, 0.3), transparent 60%),
    linear-gradient(160deg, rgba(0, 245, 255, 0.1), rgba(76, 111, 255, 0.18));
}

[data-ia-depth='2']:not(#hero) {
  background: rgba(10, 18, 34, 0.82);
}

[data-ia-depth='2']:not(#hero)::before {
  background: radial-gradient(circle at 12% -10%, rgba(76, 111, 255, 0.32), transparent 70%),
    linear-gradient(165deg, rgba(76, 111, 255, 0.2), rgba(0, 245, 255, 0.1));
}

[data-ia-depth='2']:not(#hero)::after {
  border-color: rgba(0, 245, 255, 0.22);
}

[data-ia-depth='3']:not(#hero) {
  background: rgba(14, 20, 36, 0.86);
}

[data-ia-depth='3']:not(#hero)::before {
  background: radial-gradient(circle at 12% -15%, rgba(255, 142, 102, 0.28), transparent 65%),
    linear-gradient(170deg, rgba(76, 111, 255, 0.2), rgba(255, 142, 102, 0.2));
}

[data-ia-depth='3']:not(#hero)::after {
  border-color: rgba(255, 142, 102, 0.4);
}

[data-ia-index] .section__eyebrow::before {
  content: attr(data-ia-index);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.35);
  background: rgba(0, 245, 255, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

[data-ia-index] .hero__eyebrow::before {
  content: attr(data-ia-index);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.38);
  background: rgba(0, 245, 255, 0.16);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

[data-ia-index] .hero__eyebrow,
[data-ia-index] .section__eyebrow {
  letter-spacing: 0.18em;
}

.section__header {
  max-width: 70ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent-secondary);
  margin-bottom: 0.8rem;
}

.section__header h2 {
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', system-ui;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.alliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.4rem);
}

.alliance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.alliance-card:hover,
.alliance-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.4);
}

.alliance-card h3 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui;
  font-size: 1.35rem;
}

.alliance-card p {
  margin: 0;
  color: var(--text-muted);
}

.alliance-card__note {
  border-left: 3px solid rgba(0, 245, 255, 0.35);
  padding-left: 0.9rem;
  font-size: 0.9rem;
}

.alliance-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.alliance-card ul li {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.12);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.alliance-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.alliance-card a span {
  font-size: 1.1em;
}

.alliance-card--detailed {
  min-height: 100%;
}

.alliance-card--featured {
  border-color: rgba(255, 142, 102, 0.55);
  background: linear-gradient(135deg, rgba(255, 142, 102, 0.16), rgba(0, 245, 255, 0.08));
  position: relative;
  overflow: hidden;
}

.alliance-card--featured::after {
  content: '';
  position: absolute;
  inset: -60% -40% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 142, 102, 0.55), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
}

.friend-featured {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.friend-network {
  display: flex;
  flex-direction: column;
}

.friend-featured__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: stretch;
}

.friend-featured__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  box-shadow: var(--shadow);
}

.friend-featured__badge {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.friend-featured__title {
  margin: 0;
  font-family: 'Space Grotesk', system-ui;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.friend-featured__summary {
  margin: 0;
  color: var(--text-muted);
  max-width: 48ch;
}

.friend-cluster + .friend-cluster {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.friend-cluster__header {
  margin-bottom: 1.5rem;
}

.friend-cluster__title {
  margin: 0 0 0.75rem;
  font-family: 'Space Grotesk', system-ui;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.friend-cluster__summary {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.friend-cluster__grid {
  margin-top: 1.2rem;
}

@media (max-width: 640px) {
  .friend-featured__meta {
    padding: 1.25rem;
  }

  .friend-featured__summary,
  .friend-cluster__summary {
    font-size: 0.92rem;
  }
}

.alliance-cta {
  margin-top: clamp(2rem, 6vw, 3rem);
  display: flex;
  justify-content: center;
}

.subpage-hero {
  padding: clamp(6rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4rem);
  background: linear-gradient(145deg, rgba(10, 16, 32, 0.9), rgba(6, 11, 22, 0.7));
}

.subpage-hero__inner {
  display: flex;
  justify-content: center;
}

.subpage-hero__content {
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subpage-hero__content h1 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.subpage-hero__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.subpage-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

body.command-open {
  overflow: hidden;
}

.command-palette {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1.5rem 4vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 60;
}

.command-palette[aria-hidden='false'] {
  opacity: 1;
  pointer-events: auto;
}

.command-palette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 12, 0.72);
  backdrop-filter: blur(18px);
}

.command-palette__panel {
  position: relative;
  width: min(720px, 92vw);
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 245, 255, 0.22);
  background: var(--surface-strong);
  box-shadow: 0 50px 140px rgba(0, 12, 45, 0.75);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}

.command-palette__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.command-palette__hint {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.command-palette__search {
  position: relative;
}

#command-search {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 245, 255, 0.22);
  background: rgba(6, 12, 24, 0.9);
  color: #ffffff;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(0, 245, 255, 0.12);
}

#command-search:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.22);
}

.command-palette__body {
  overflow-y: auto;
  max-height: 46vh;
  display: grid;
  gap: 1rem;
  padding-right: 0.35rem;
}

.command-group {
  display: grid;
  gap: 0.5rem;
}

.command-group h3 {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.command-group__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.command-item {
  width: 100%;
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(4, 9, 20, 0.78);
  color: var(--text);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.35rem;
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.command-item:hover,
.command-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 26px 70px rgba(0, 12, 45, 0.55);
  background: rgba(6, 12, 26, 0.92);
  outline: none;
}

.command-item__title {
  font-family: 'Space Grotesk', system-ui;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.command-item__description {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.command-palette__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.command-palette__body::-webkit-scrollbar {
  width: 6px;
}

.command-palette__body::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.2);
  border-radius: 999px;
}

.focus-highlight {
  box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.4), 0 0 32px rgba(0, 245, 255, 0.3) !important;
  transition: box-shadow 0.35s ease;
}

.section__header p {
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.deck-grid {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.deck-cluster {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.deck-cluster__intro h3 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui;
  font-size: 1.5rem;
}

.deck-cluster__intro p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.deck-cluster__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.stack-card,
.deck-card {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(0, 245, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.stack-card::after,
.deck-card::after {
  content: '';
  position: absolute;
  inset: -30% 30% 60% -30%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.stack-card:hover,
.deck-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 40px 100px rgba(0, 12, 45, 0.55);
}

.stack-card:hover::after,
.deck-card:hover::after {
  opacity: 1;
  transform: translate3d(0, -6%, 0);
}

.deck-card--active {
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 42px 110px rgba(0, 12, 45, 0.6);
}

.deck-card--active::after {
  opacity: 1;
  transform: translate3d(0, -10%, 0);
}

.stack-card h3,
.deck-card h3 {
  margin-top: 0;
  font-family: 'Space Grotesk', system-ui;
  font-size: 1.3rem;
}

.stack-card p,
.deck-card p {
  color: var(--text-muted);
}

.stack-card ul,
.deck-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stack-card li,
.deck-card li,
.telemetry li {
  background: rgba(0, 245, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.deck-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.deck-card a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.16);
}

.lab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

#deck-search {
  flex: 1 1 240px;
  background: rgba(1, 4, 16, 0.75);
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  color: #ffffff;
  font-size: 0.92rem;
}

#deck-search::placeholder {
  color: rgba(180, 205, 240, 0.45);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-chip {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.22);
  background: rgba(0, 245, 255, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.filter-chip[aria-pressed='true'] {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.45), rgba(76, 111, 255, 0.3));
  border-color: rgba(0, 245, 255, 0.55);
  color: #ffffff;
  transform: translateY(-2px);
}

.browser-summary {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.signals-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.signals-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(0, 245, 255, 0.16);
  box-shadow: var(--shadow);
}

.signals-panel h3 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui;
}

.signals-panel p {
  margin: 0;
  color: var(--text-muted);
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.telemetry-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 245, 255, 0.18);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.telemetry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(0, 245, 255, 0.25), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.telemetry-card h3 {
  margin-top: 0;
  font-family: 'Space Grotesk', system-ui;
}

.telemetry-card strong {
  display: block;
  font-size: 2.2rem;
  font-family: 'Space Grotesk', system-ui;
  margin: 0.6rem 0 0.8rem;
}

.telemetry-card p {
  color: var(--text-muted);
  margin: 0;
}

.telemetry-card--pulse {
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 28px 64px rgba(0, 12, 45, 0.48);
}

.telemetry-card--pulse::before {
  animation: telemetry-glow 1.6s ease-in-out infinite alternate;
}

.telemetry--pulsing {
  position: relative;
}

.telemetry--pulsing::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.12), transparent 70%);
  animation: telemetry-field 1.6s ease-in-out infinite alternate;
}

@keyframes telemetry-glow {
  0% {
    opacity: 0.4;
  }

  100% {
    opacity: 0.75;
  }
}

@keyframes telemetry-field {
  0% {
    opacity: 0.08;
    transform: scale(1);
  }

  100% {
    opacity: 0.18;
    transform: scale(1.03);
  }
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.6rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.3), rgba(76, 111, 255, 0.45));
}

.timeline-item {
  position: relative;
  margin-left: 3rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(0, 245, 255, 0.18);
  box-shadow: var(--shadow);
}

.timeline-item::before {
  content: attr(data-year);
  position: absolute;
  left: -3.4rem;
  top: 1.2rem;
  font-family: 'Space Grotesk', system-ui;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 1.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.6);
}

.timeline-item h3 {
  margin-top: 0;
  font-family: 'Space Grotesk', system-ui;
}

.timeline-item p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.timeline-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.timeline-item--active {
  border-color: rgba(0, 245, 255, 0.48);
  box-shadow: 0 28px 66px rgba(0, 12, 45, 0.48);
}

.timeline-item--active::before {
  color: #ffffff;
}

.timeline-item--active::after {
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.9);
}

.interpreter-layout {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.6rem);
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.interpreter-grid {
  display: grid;
  gap: 1.5rem;
}

.interpreter-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 245, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 12, 40, 0.35);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.interpreter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(0, 245, 255, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.interpreter-card__title {
  font-family: 'Space Grotesk', system-ui;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  z-index: 1;
}

.interpreter-card__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 1;
}

.interpreter-card h4 {
  margin: 0.5rem 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 245, 255, 0.88);
  z-index: 1;
}

.interpreter-card__list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.interpreter-card__list li {
  padding: 0.75rem 0.85rem;
  background: rgba(0, 245, 255, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 245, 255, 0.18);
  line-height: 1.5;
}

.interpreter-card__verdict {
  background: rgba(76, 111, 255, 0.14);
  border-radius: var(--radius-md);
  border: 1px solid rgba(76, 111, 255, 0.28);
  padding: 1rem;
  margin: 0;
  z-index: 1;
}

.interpreter-card__verdict strong {
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.interpreter-panel {
  display: grid;
  gap: 1.5rem;
}

.interpreter-log,
.interpreter-summary {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 245, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 12, 40, 0.35);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.interpreter-log h3,
.interpreter-summary h3 {
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', system-ui;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.interpreter-log-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.interpreter-log-entry {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(1, 8, 22, 0.75);
  border: 1px solid rgba(0, 245, 255, 0.12);
}

.interpreter-log-entry__speaker {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.interpreter-log-entry__message {
  margin: 0;
  color: var(--text-muted);
}

.interpreter-summary p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.interpreter-summary-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.interpreter-summary-list li {
  line-height: 1.5;
}

@media (max-width: 720px) {
  .interpreter-card,
  .interpreter-log,
  .interpreter-summary {
    border-radius: var(--radius-md);
  }
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 245, 255, 0.18);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-card h3 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
}

.contact-card a {
  align-self: flex-start;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  background: rgba(1, 3, 12, 0.92);
  border-top: 1px solid rgba(0, 245, 255, 0.12);
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
}

.footer-note {
  margin-top: 0.6rem;
}

@media (max-width: 768px) {
  .site-nav {
    justify-content: flex-end;
  }

  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .timeline::before {
    left: 0.6rem;
  }

  .timeline-item {
    margin-left: 2.2rem;
  }

  .timeline-item::before {
    left: -2.7rem;
  }

  .timeline-item::after {
    left: -1.6rem;
  }
}

@media (max-width: 520px) {
  .site-nav {
    display: none;
  }

  .header__inner {
    padding: 1rem 0.3rem;
  }
}
