/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.nav.is-scrolled {
  background: rgba(9, 36, 40, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark), 0 18px 40px -30px rgba(0, 0, 0, 0.8);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 80px;
}

.nav__logo img {
  height: 46px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--on-dark-2);
  font-size: 15px;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav__cta {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 170px 0 0;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(120% 80% at 50% 0%, var(--deep-2) 0%, var(--deep) 55%, #061b1e 100%);
  --x: 50%;
  --y: 30%;
}

.hero__network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--x) var(--y), rgba(107, 196, 160, 0.16), transparent 60%);
  pointer-events: none;
}

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.75;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  background: rgba(107, 196, 160, 0.45);
}

.aurora span:nth-child(2) {
  width: 420px;
  height: 420px;
  top: 120px;
  left: -140px;
  background: rgba(229, 224, 56, 0.2);
  animation-duration: 28s;
  animation-delay: -6s;
}

.aurora span:nth-child(3) {
  width: 640px;
  height: 640px;
  bottom: -360px;
  left: 30%;
  background: rgba(30, 120, 110, 0.55);
  animation-duration: 32s;
  animation-delay: -12s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-80px, 60px, 0) scale(1.15);
  }

  100% {
    transform: translate3d(60px, -40px, 0) scale(0.95);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 26px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  border: 1px solid rgba(107, 196, 160, 0.3);
  border-radius: 999px;
  background: rgba(107, 196, 160, 0.08);
  color: var(--on-dark-2);
  font-size: 14px;
}

.hero__badge strong {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--deep);
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.25;
}

.hero__lead {
  max-width: 720px;
  color: var(--on-dark-2);
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  padding: 0;
  list-style: none;
  color: var(--on-dark-3);
  font-size: 14px;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

/* Hero stage: tilted app window with floating cards */
.hero__stage {
  position: relative;
  z-index: 2;
  width: min(1120px, 100% - 48px);
  margin: 72px auto 0;
  perspective: 1800px;
}

.hero__window {
  --tilt: 1;
  transform: rotateX(calc(var(--tilt) * 20deg)) scale(calc(1 - var(--tilt) * 0.06));
  transform-origin: 50% 0;
  transition: transform 0.12s linear;
  will-change: transform;
}

.app-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #0b2c30;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, 0.03);
}

.app-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  background: linear-gradient(#10393c, #0c3134);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--on-dark-3);
  font-size: 12px;
}

.app-frame__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.app-frame__bar i:nth-child(1) {
  background: #6bc4a0;
}

.app-frame__bar i:nth-child(2) {
  background: #e5e038;
}

.app-frame__bar span {
  margin-inline-start: auto;
}

.app-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.hero__fade {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: 3;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(13, 50, 54, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
  animation: bob 6s ease-in-out infinite;
  translate: var(--px, 0) var(--py, 0);
}

.float-card small {
  display: block;
  color: var(--on-dark-3);
  font-size: 12px;
}

.float-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(107, 196, 160, 0.18);
  color: var(--mint);
}

.float-card__icon svg {
  width: 20px;
  height: 20px;
}

.float-card--yellow .float-card__icon {
  background: rgba(229, 224, 56, 0.16);
  color: var(--yellow);
}

.float-card--a {
  top: 12%;
  right: -4%;
}

.float-card--b {
  top: 44%;
  left: -5%;
  animation-delay: -2s;
}

.float-card--c {
  top: 70%;
  right: -2%;
  animation-delay: -4s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 980px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav.is-open {
    background: rgba(9, 36, 40, 0.96);
  }

  .nav.is-open .nav__links {
    position: absolute;
    top: 80px;
    inset-inline: 16px;
    display: grid;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    background: var(--deep);
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open .nav__links a {
    padding: 12px 16px;
  }

  .float-card {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 130px;
  }

  .hero__stage {
    width: calc(100% - 32px);
    margin-top: 48px;
  }

  .app-frame__bar span {
    display: none;
  }
}
