/* Animated, on-brand front page. Sits on top of shell.css (brand tokens + reset). */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--brand-navy-deep) 0%,
    var(--brand-navy) 42%,
    var(--brand-teal) 100%
  );
  background-size: 220% 220%;
  animation: heroGradient 24s ease-in-out infinite;
}

@keyframes heroGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Drifting layer of soft orbs + brand emblems */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.45;
  will-change: transform;
}
.orb--mint {
  width: 46vmin;
  height: 46vmin;
  left: -8vmin;
  top: -6vmin;
  background: radial-gradient(circle at 30% 30%, var(--brand-mint), transparent 70%);
  animation: drift1 26s ease-in-out infinite;
}
.orb--sky {
  width: 40vmin;
  height: 40vmin;
  right: -6vmin;
  top: 18%;
  background: radial-gradient(circle at 50% 50%, var(--brand-sky), transparent 70%);
  animation: drift2 32s ease-in-out infinite;
}
.orb--orange {
  width: 26vmin;
  height: 26vmin;
  right: 14%;
  bottom: -8vmin;
  background: radial-gradient(circle at 50% 50%, var(--brand-orange), transparent 70%);
  opacity: 0.4;
  animation: drift3 22s ease-in-out infinite;
}

/* moliri emblem silhouettes, tinted + floating */
.emblem {
  position: absolute;
  -webkit-mask: url("moliri-emblem.svg") no-repeat center / contain;
  mask: url("moliri-emblem.svg") no-repeat center / contain;
  opacity: 0.14;
  will-change: transform;
}
.emblem--a {
  width: 34vmin;
  height: 27vmin;
  left: 8%;
  bottom: 8%;
  background: var(--brand-mint);
  animation: float1 18s ease-in-out infinite;
}
.emblem--b {
  width: 22vmin;
  height: 17vmin;
  right: 10%;
  top: 12%;
  background: var(--brand-sky);
  animation: float2 15s ease-in-out infinite;
}
.emblem--c {
  width: 14vmin;
  height: 11vmin;
  left: 44%;
  top: 8%;
  background: var(--brand-orange);
  opacity: 0.18;
  animation: float1 21s ease-in-out infinite reverse;
}

@keyframes drift1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(6vmin, 4vmin) rotate(12deg);
  }
}
@keyframes drift2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-5vmin, 5vmin);
  }
}
@keyframes drift3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-4vmin, -6vmin);
  }
}
@keyframes float1 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3vmin) rotate(6deg);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(3vmin) rotate(-8deg);
  }
}

/* Foreground card — always a light surface (the hero is dark in both themes) */
.hero__card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: var(--brand-navy-deep);
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 32rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 20, 40, 0.4);
  animation: cardIn 0.85s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__logo {
  width: 190px;
  max-width: 62%;
  height: auto;
  margin: 0 auto 1.4rem;
  display: block;
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero__card h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
  color: var(--brand-navy);
  margin: 0 0 0.4rem;
}

.hero__tag {
  color: var(--brand-teal);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.accent-rule {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand-orange);
  margin: 1.4rem auto;
}

.hero__card p {
  color: var(--muted);
  margin: 0 0 1rem;
}
.hero__card p:last-of-type {
  margin-bottom: 0;
}

.hero__card code {
  background: #eef3f6;
  border: 1px solid #d6e0e6;
  border-radius: 5px;
  padding: 0.12em 0.4em;
  font-size: 0.9em;
  color: var(--brand-navy);
}

.hero__footer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c8b98;
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-mint);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .orb,
  .emblem,
  .hero__card,
  .hero__logo,
  .hero__dot {
    animation: none !important;
  }
  .hero {
    background-position: 0% 50%;
  }
}
