* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Orbitron", sans-serif;
  color: #F3F5F7;
  background: #0b0d10;
  overflow-x: hidden;
  line-height: 1.5;
  padding-top: 96px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* BACKGROUND */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/bg-main.png") center / cover no-repeat;
  opacity: 0.9;
  z-index: -3;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/hex-grid.svg") center / 320px repeat;
  opacity: 0.05;
  animation: hexDrift 90s linear infinite;
  z-index: -2;
  pointer-events: none;
}

.signal-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.signal-layer .node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0,174,239,0.6);
  border-radius: 50%;
  opacity: 0;
  animation: nodePulse 6s ease-in-out infinite;
}

.signal-layer .n1 { top: 20%; left: 30%; animation-delay: 0s; }
.signal-layer .n2 { top: 40%; left: 45%; animation-delay: 2s; }
.signal-layer .n3 { top: 60%; left: 25%; animation-delay: 4s; }
.signal-layer .n4 { top: 70%; left: 60%; animation-delay: 3s; }
.signal-layer .n5 { top: 35%; left: 70%; animation-delay: 5s; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* UNIVERSAL NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 86px;
  z-index: 1000;
  background: rgba(5, 7, 11, 0.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 234, 255, 0.22);
  overflow: visible;
}

.navbar > .container,
.navbar .nav-container {
  max-width: none;
  height: 86px;
  padding: 0 28px;
}

.navbar .nav-inner {
  position: relative;
  width: 100%;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .floating-logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  width: auto;
  max-width: 128px;
  padding: 8px 14px;
  background: rgba(5, 7, 11, 0.96);
  border-right: 1px solid rgba(0, 234, 255, 0.28);
  border-bottom: 1px solid rgba(0, 234, 255, 0.22);
  border-radius: 0 0 12px 0;
  box-shadow:
    0 0 14px rgba(0, 234, 255, 0.35),
    0 0 26px rgba(57, 255, 20, 0.18);
  overflow: hidden;
}

.navbar .floating-logo > img {
  width: auto !important;
  height: 54px !important;
  max-width: 98px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 0 8px rgba(0, 234, 255, 0.75))
    drop-shadow(0 0 16px rgba(57, 255, 20, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.navbar .floating-logo:hover > img {
  transform: scale(1.05);
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-left: 126px;
  padding-right: 205px;
  white-space: nowrap;
}

.navbar .nav-item {
  color: #d3d8de;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.navbar .nav-item:hover,
.navbar .nav-item.active {
  color: #00eaff;
  text-shadow:
    0 0 8px rgba(0, 234, 255, 0.75),
    0 0 16px rgba(57, 255, 20, 0.28);
}

.navbar .cta {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: linear-gradient(90deg, #00eaff, #39ff14);
  color: #000;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow:
    0 0 12px rgba(0, 234, 255, 0.45),
    0 0 22px rgba(57, 255, 20, 0.18);
}

/* FOOTER */

.footer {
  margin-top: 96px;
  background: rgba(10,12,15,0.95);
  padding: 64px 0 48px;
  border-top: 1px solid rgba(0,174,239,0.25);
}

.footer-top {
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #8F98A3;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  color: #AAB4BE;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 32px 0;
}

/* SHARED BUTTONS */

.cta-large,
.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: #00AEEF;
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0,174,239,0.35);
  transition: all 0.25s ease;
  border: 0;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
}

.cta-large:hover,
.btn-primary:hover {
  background: #00c8ff;
  box-shadow:
    0 0 16px rgba(0,174,239,0.55),
    0 0 28px rgba(57,255,20,0.22);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(2, 4, 7, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(0,174,239,0.32);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.95),
    0 0 28px rgba(0,174,239,0.24);
}

.lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(92vw, 900px);
  color: #D8E2EA;
  text-align: center;
  font-size: 0.9rem;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,238,255,0.32);
  border-radius: 50%;
  background: rgba(10,12,15,0.90);
  color: #FFFFFF;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes hexDrift {
  0% { background-position: 0 0; }
  50% { background-position: -160px -80px; }
  100% { background-position: 0 0; }
}

@keyframes nodePulse {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1.2); }
  60% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.5); }
}

@media (max-width: 900px) {
  body {
    padding-top: 92px;
  }

  .navbar,
  .navbar > .container,
  .navbar .nav-container,
  .navbar .nav-inner {
    height: 86px;
  }

  .navbar .floating-logo {
    height: 72px;
    max-width: 108px;
    padding: 8px 10px;
  }

  .navbar .floating-logo > img {
    height: 48px !important;
    max-width: 86px !important;
    max-height: 48px !important;
  }

  .navbar .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 12px;
    width: 100%;
    padding-left: 104px;
    padding-right: 12px;
    scrollbar-width: none;
  }

  .navbar .nav-links::-webkit-scrollbar {
    display: none;
  }

  .navbar .nav-item {
    font-size: 0.64rem;
    flex: 0 0 auto;
  }

  .navbar .cta {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
