html {
  scroll-behavior: smooth;
}

body {
  background: 
    radial-gradient(
      circle at top left,
      rgba(126, 60, 255, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at top right,
      rgba(158, 106, 255, 0.14),
      transparent 28%
    ),
    linear-gradient(180deg, #faf5ff 0%, #ffffff 28%, #f8f3ff 100%);
}

.wardfetch-site-header {
  transition: background-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.wardfetch-site-header.is-scrolled {
  background: rgba(27, 7, 60, 0.35);
  box-shadow: 0 8px 24px rgba(18, 5, 48, 0.12);
  backdrop-filter: blur(14px);
}

/* Mobile navigation */
.mobile-menu,
.nav-overlay {
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.mobile-menu {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 40;
  width: min(21rem, calc(100vw - 1.5rem));
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.35rem;
  background: rgba(22, 9, 58, 0.97);
  box-shadow: 0 24px 70px rgba(10, 3, 29, 0.38);
  backdrop-filter: blur(18px);
}

.mobile-menu-link,
.mobile-menu-action,
.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mobile-menu-link:hover,
.mobile-menu-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.mobile-menu-cta {
  min-height: 3.15rem;
  padding-inline: 1rem;
  color: #fff;
  background: #7e3cff;
  box-shadow: 0 12px 24px rgba(126, 60, 255, 0.28);
}

.mobile-menu-cta:hover {
  color: #fff;
  background: #925cff;
}

.mobile-menu-action-primary {
  justify-content: center;
  color: #32106f;
  background: #fff;
}

.mobile-menu-action-primary:hover {
  color: #32106f;
  background: #f5efff;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(9, 3, 26, 0.48);
  backdrop-filter: blur(3px);
}

.hidden-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.75rem);
}

.active-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (min-width: 1024px) {
  .mobile-menu,
  .nav-overlay {
    display: none;
  }
}

.hero-banner {
  background-image: url("./img/wardfetchBanner.png");
  /* background-position: right; */
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(18, 5, 48, 0.9) 0%,
      rgba(28, 10, 83, 0.74) 38%,
      rgba(28, 10, 83, 0.54) 60%,
      rgba(28, 10, 83, 0.78) 100%
    ),
    linear-gradient(180deg, rgba(18, 5, 48, 0.2) 0%, rgba(18, 5, 48, 0.42) 100%);
}

.workflow-banner {
  background-image: url("./img/banner.png");
  /* background-position: center; */
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.workflow-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(28, 9, 82, 0.72) 0%,
      rgba(28, 9, 82, 0.6) 100%
    ),
    linear-gradient(90deg, rgba(23, 8, 66, 0.58) 0%, rgba(23, 8, 66, 0.38) 100%);
}

.outcome-panel {
  background:
    linear-gradient(140deg, rgba(46, 12, 107, 0.98) 0%, rgba(62, 14, 143, 0.95) 46%, rgba(21, 6, 63, 1) 100%);
}

.outcome-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18));
}

.outcome-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.outcome-orb-one {
  top: -4rem;
  right: -3rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(216, 180, 254, 0.45) 0%, rgba(216, 180, 254, 0) 72%);
}

.outcome-orb-two {
  bottom: -5rem;
  left: -3rem;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.28) 0%, rgba(192, 132, 252, 0) 72%);
}

.outcome-card {
  position: relative;
  min-height: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 45px rgba(18, 13, 43, 0.2);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.outcome-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.outcome-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f3e8ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.implementation-card {
  border-radius: 2.25rem;
  background-color: #ffffff;
  border: 1px solid rgba(230, 220, 255, 0.6);
  box-shadow: 
    0 20px 40px -10px rgba(42, 16, 107, 0.05), 
    0 0 1px 1px rgba(42, 16, 107, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.implementation-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 24px 50px -10px rgba(42, 16, 107, 0.08), 
    0 0 1px 1px rgba(42, 16, 107, 0.03);
}

.implementation-node {
  position: absolute;
  z-index: 10;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 
    0 8px 20px -4px rgba(98, 27, 203, 0.12),
    inset 0 0 0 1px rgba(230, 220, 255, 0.8);
}

.implementation-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: #621bcb;
  background: #f5f0ff;
  font-size: 0.875rem;
  font-weight: 700;
}

.grid-fade {
  background-image:
    linear-gradient(rgba(75, 16, 158, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 16, 158, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.45));
}

.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.float-delay {
  animation: floatSlow 7s ease-in-out infinite 1.2s;
}

.glow-pulse {
  animation: glowPulse 4.8s ease-in-out infinite;
}

.rise-in {
  animation: riseIn 0.9s ease-out both;
}

.rise-in-delay {
  animation: riseIn 0.9s ease-out 0.18s both;
}

.rise-in-delay-2 {
  animation: riseIn 0.9s ease-out 0.34s both;
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 rgba(126, 60, 255, 0.12),
      0 20px 50px rgba(26, 16, 63, 0.12);
  }

  50% {
    box-shadow:
      0 0 30px rgba(126, 60, 255, 0.22),
      0 30px 70px rgba(26, 16, 63, 0.16);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
