/* Isolated landing/nav repair layer. Keep new page-specific fixes here. */

#home {
  padding-top: 64px !important;
  background: #02040a !important;
}

#home .hero {
  position: relative;
  min-height: calc(100svh - 64px) !important;
  overflow: hidden;
  align-items: center !important;
  padding: 42px 32px 68px !important;
}

#home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(18, 89, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 50, 100, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  border: 1px solid #6f4bcf;
  mask-image: radial-gradient(circle at 72% 42%, #000 0 42%, transparent 72%);
  animation: gridDrift 14s linear infinite;
}

#home .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(9, 12, 194, 0.92));
  pointer-events: none;
}

#home .landing-hero-inner {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  max-width: 1100px;
}

#home .landing-hero-copy {
  text-align: left;
}

#home .hero h1 {
  max-width: 720px !important;
  text-align: left !important;
  font-size: clamp(44px, 6vw, 76px) !important;
  line-height: 1.04 !important;
}

#home .hero-sub {
  max-width: 560px !important;
  text-align: left !important;
  color: #8fb8ff !important;
}

#home .btn-canvas-wrap {
  margin-left: 0 !important;
}

#home .hero-card-visual {
  position: relative;
  min-height: 430px;
  isolation: isolate;
}

#home .market-grid {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.9;
}

#home .return-card {
  position: absolute;
  width: min(260px, 78vw);
  min-height: 104px;
  padding: 18px 22px;
  border: 1px solid rgba(7, 123, 218, 0.08);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(22, 25, 32, 0.88), rgba(16, 18, 24, 0.62));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cardFloat 7s ease-in-out infinite;
}

#home .return-card span {
  display: block;
  color: #8d96ad;
  font: 800 12px/1.2 'Inter', sans-serif;
  text-transform: uppercase;
}

#home .return-card strong {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font: 900 32px/1 'Inter', sans-serif;
}

#home .return-card small {
  display: block;
  margin-top: 12px;
  color: #b9c3d8;
  font: 700 13px/1.3 'Inter', sans-serif;
}

#home .return-card-a {
  top: 40px;
  right: 38px;
}

#home .return-card-b {
  top: 150px;
  right: 0;
  animation-delay: -2s;
}

#home .return-card-c {
  top: 260px;
  right: 84px;
  opacity: 0.82;
  animation-delay: -4s;
}

@keyframes cardFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 54px 54px, 54px 54px; }
}

@media (max-width: 860px) {
  body:not(#home),
  #home {
    padding-top: 58px !important;
  }

  #home .hero {
    min-height: calc(100svh - 58px) !important;
    padding: 34px 20px 54px !important;
  }

  #home .landing-hero-inner {
    grid-template-columns: 1fr;
  }

  #home .hero-card-visual {
    min-height: 330px;
  }

  #home .return-card-a { top: 18px; right: 10px; }
  #home .return-card-b { top: 120px; right: 0; }
  #home .return-card-c { top: 214px; right: 56px; }
}

/* Reduce font sizes of stats section elements */
#home .stat-num {
  font-size: clamp(1.4rem, 2.8vw, 2.0rem) !important;
}
#home .stat-label {
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

