:root {
  --bg: #030913;
  --bg-soft: rgba(8, 18, 33, 0.72);
  --panel: rgba(7, 17, 31, 0.76);
  --panel-strong: rgba(8, 21, 39, 0.92);
  --text: #e8f7ff;
  --muted: #a8c1d5;
  --line: rgba(92, 181, 255, 0.22);
  --line-strong: rgba(92, 181, 255, 0.45);
  --glow: #4edcff;
  --glow-2: #7ab6ff;
  --success: #79f1c5;
  --warning: #ffc56b;
  --shadow: 0 0 0 1px rgba(88, 179, 255, 0.16), 0 0 30px rgba(46, 167, 255, 0.14);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(56, 147, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #030913 0%, #020710 100%);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

p {
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
.brand-mark,
.eyebrow,
.btn,
.site-nav a,
.culture-pill,
.status-chip {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-main {
  position: relative;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section-tight {
  padding-top: 30px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(6, 14, 25, 0.3), rgba(6, 14, 25, 0.05));
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 197, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 197, 255, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 95%);
  pointer-events: none;
  z-index: -3;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: -2;
}

.bg-glow-1 {
  width: 40vw;
  height: 40vw;
  left: -10vw;
  top: 5vh;
  background: rgba(66, 204, 255, 0.12);
}

.bg-glow-2 {
  width: 36vw;
  height: 36vw;
  right: -6vw;
  top: 45vh;
  background: rgba(103, 142, 255, 0.1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(2, 8, 18, 0.56);
  border-bottom: 1px solid rgba(85, 170, 255, 0.12);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #9ad8ff 55%, #5cdfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(78, 220, 255, 0.5);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex: 1;
}

.site-nav > a:not(.btn) {
  font-size: 0.8rem;
  color: #d9efff;
  opacity: 0.94;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.culture-pill {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 205, 255, 0.18);
  background: rgba(8, 20, 36, 0.72);
  color: var(--muted);
  font-size: 0.68rem;
}

.culture-pill.is-active {
  color: #03111f;
  background: linear-gradient(90deg, #a7efff 0%, #5fd8ff 100%);
  border-color: transparent;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
}

.hero {
  padding: 72px 0 44px;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: 0.95;
  max-width: 9ch;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.08rem;
}

.eyebrow {
  font-size: 0.78rem;
  color: #7ae4ff;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 191, 255, 0.45);
  background: linear-gradient(180deg, rgba(20, 124, 209, 0.38), rgba(9, 43, 72, 0.8));
  box-shadow: 0 0 0 1px rgba(103, 192, 255, 0.12), 0 0 24px rgba(61, 181, 255, 0.18);
  color: white;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-small {
  min-height: 40px;
  padding: 0.7rem 1rem;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(141, 211, 255, 0.28);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card,
.feature-card,
.tracker-card,
.vr-card,
.standalone-panel,
.cta-card {
  background: linear-gradient(180deg, rgba(12, 24, 43, 0.86), rgba(7, 16, 29, 0.7));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat-card {
  padding: 1rem;
  border-radius: 18px;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.core-panel {
  position: relative;
  width: min(460px, 90vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.core-ring {
  position: absolute;
  border: 1px solid rgba(95, 213, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(78, 220, 255, 0.12), inset 0 0 20px rgba(78, 220, 255, 0.05);
}

.ring-1 {
  inset: 12%;
  animation: spin 24s linear infinite;
}

.ring-2 {
  inset: 22%;
  animation: spin-reverse 18s linear infinite;
}

.ring-3 {
  inset: 32%;
  animation: pulse 4.5s ease-in-out infinite;
}

.core-center {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(111, 231, 255, 0.28), rgba(12, 31, 55, 0.95) 70%);
  border: 1px solid rgba(105, 203, 255, 0.34);
  box-shadow: 0 0 40px rgba(78, 220, 255, 0.25);
}

.core-center span {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 2rem);
}

.orbit-badge {
  position: absolute;
  min-width: 150px;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(95, 213, 255, 0.18);
  background: rgba(6, 17, 30, 0.82);
  box-shadow: var(--shadow);
}

.orbit-badge span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  color: #8bddff;
  text-transform: uppercase;
}

.orbit-badge strong {
  display: block;
  font-size: 0.86rem;
}

.badge-route {
  top: 10%;
  right: -1rem;
}

.badge-mode {
  bottom: 14%;
  left: -1rem;
}

.badge-cache {
  top: 58%;
  right: -2rem;
}

.section-head {
  max-width: 820px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-head p:last-child {
  margin-inline: auto;
  max-width: 72ch;
}

.cards-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  border-radius: 22px;
  padding: 1.5rem;
}

.feature-card h3 {
  margin: 1rem 0 0.7rem;
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(95, 213, 255, 0.22);
  background: rgba(10, 31, 55, 0.5);
  color: #8feeff;
  font-size: 1rem;
}

.operations-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 1.2rem;
  align-items: start;
}

.tracker-card,
.vr-card,
.standalone-panel {
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.panel-head h3 {
  margin-bottom: 0;
  max-width: 26ch;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 211, 255, 0.28);
  background: rgba(6, 18, 33, 0.74);
  color: #8bddff;
  font-size: 0.65rem;
}

.status-chip.is-ready {
  color: #022132;
  background: linear-gradient(90deg, #9df0ff 0%, #7cf0cb 100%);
  border-color: transparent;
}

.tracker-form {
  display: flex;
  gap: 0.9rem;
  margin: 1.4rem 0 0.9rem;
}

.tracker-form input {
  flex: 1;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 18px;
  border: 1px solid rgba(95, 213, 255, 0.22);
  background: rgba(6, 17, 30, 0.84);
  color: var(--text);
  outline: none;
}

.tracker-form input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(78, 220, 255, 0.1);
}

.tracker-note {
  margin-top: 0;
  font-size: 0.95rem;
}

.tracker-note.is-ready {
  color: var(--success);
}

.tracker-note.is-warning {
  color: var(--warning);
}

.map-canvas {
  height: 430px;
  margin-top: 1.2rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(95, 213, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(95, 213, 255, 0.08), 0 0 20px rgba(78, 220, 255, 0.1);
}

.map-canvas .leaflet-control-attribution,
.map-canvas .leaflet-control-zoom a {
  background: rgba(6, 17, 30, 0.9);
  color: var(--text);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.telemetry-grid-single {
  grid-template-columns: 1fr;
}

.telemetry-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(6, 17, 30, 0.72);
  border: 1px solid rgba(95, 213, 255, 0.12);
}

.telemetry-card span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  color: #90c6dd;
  text-transform: uppercase;
}

.telemetry-card strong {
  display: block;
  font-size: 1rem;
  word-break: break-word;
}

.tracker-status {
  margin: 1rem 0 0;
  min-height: 1.5rem;
}

.vr-shell {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(95, 213, 255, 0.18);
  background:
    radial-gradient(circle at top center, rgba(78, 220, 255, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(5, 16, 30, 0.95), rgba(6, 17, 30, 0.68));
  perspective: 1200px;
}

.vr-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-height: 320px;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(95, 213, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 23, 42, 0.78), rgba(4, 12, 23, 0.95)),
    radial-gradient(circle at center, rgba(78, 220, 255, 0.06), transparent 50%);
  transform-style: preserve-3d;
  transition: transform 0.16s ease;
}

.vr-stage::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(96, 204, 255, 0.08);
  background-image:
    linear-gradient(rgba(77, 197, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 197, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.vr-node {
  position: relative;
  z-index: 1;
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(92, 181, 255, 0.2);
  background: linear-gradient(180deg, rgba(14, 43, 73, 0.86), rgba(6, 20, 35, 0.82));
  color: var(--text);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(95, 213, 255, 0.08), 0 18px 32px rgba(0, 0, 0, 0.24);
  transform: translateZ(22px);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
}

.vr-node:hover,
.vr-node.is-active {
  transform: translateZ(28px) translateY(-2px);
  border-color: rgba(132, 231, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(95, 213, 255, 0.16), 0 24px 36px rgba(0, 0, 0, 0.3), 0 0 22px rgba(78, 220, 255, 0.14);
}

.cta-shell {
  margin-top: 2rem;
}

.cta-card {
  border-radius: 28px;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-card h3 {
  margin: 0.4rem 0 0;
  max-width: 24ch;
}

.standalone-panel h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.site-footer {
  border-top: 1px solid rgba(88, 168, 255, 0.12);
  background: rgba(1, 6, 14, 0.7);
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}

.brand-footer {
  margin-bottom: 0.8rem;
}

.site-footer h4 {
  margin: 0 0 0.7rem;
  font-family: "Orbitron", sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .operations-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 84px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(3, 10, 19, 0.96);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .language-switcher {
    justify-content: flex-start;
  }

  .cards-grid,
  .cards-grid-3,
  .hero-stats,
  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .cta-card,
  .panel-head,
  .tracker-form {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .badge-route,
  .badge-mode,
  .badge-cache {
    position: static;
    width: 100%;
    margin-top: 0.8rem;
  }

  .core-panel {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    aspect-ratio: auto;
  }

  .core-center {
    position: relative;
    width: 200px;
    margin: 0 auto;
  }

  .core-ring {
    display: none;
  }
}
