/* Happenzia - Under Construction placeholder (standalone) */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy-950: #070d24;
  --navy-900: #0b1437;
  --orange: #ff7a2f;
  --pink:   #ec3b83;
  --purple: #7c5cfc;
  --teal:   #18c2d6;
  --gold:   #ffc234;
  --green:  #46c36a;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font);
  color: #eef1ff;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(124,92,252,.5), transparent 60%),
    radial-gradient(900px 600px at 0% 10%, rgba(24,194,214,.35), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(236,59,131,.4), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  background-size: 200% 200%;
  animation: bgshift 18s ease-in-out infinite;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Expanding radar rings, spawned at random by construction.js */
.bg-rings { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ring-pulse {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 24px var(--glow, rgba(255,255,255,.2));
  transform: translate(-50%, -50%) scale(.06);
  opacity: 0;
  will-change: transform, opacity;
  animation: ringgrow var(--dur, 12s) ease-out forwards;
}
@keyframes ringgrow {
  0%   { transform: translate(-50%, -50%) scale(.06); opacity: 0; }
  12%  { opacity: var(--peak, .28); }
  45%  { opacity: var(--peak, .28); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Floating orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-orbs span {
  position: absolute; border-radius: 50%;
  filter: blur(1px); opacity: .6;
  animation: float 10s ease-in-out infinite;
}
.bg-orbs .a { width: 18px; height: 18px; background: var(--orange); top: 18%; left: 14%; }
.bg-orbs .b { width: 12px; height: 12px; background: var(--teal);   top: 70%; left: 20%; animation-delay: 1.4s; }
.bg-orbs .c { width: 22px; height: 22px; background: var(--pink);   top: 26%; right: 16%; animation-delay: .7s; }
.bg-orbs .d { width: 10px; height: 10px; background: var(--gold);   top: 78%; right: 24%; animation-delay: 2.1s; }
.bg-orbs .e { width: 14px; height: 14px; background: var(--green);  top: 12%; right: 42%; animation-delay: 1.1s; }
.bg-orbs .ring {
  width: 560px; height: 560px; border: 1.5px solid rgba(255,255,255,.08);
  background: transparent; top: -160px; right: -160px; filter: none; opacity: 1;
  animation: spin 70s linear infinite;
}
.bg-orbs .ring2 {
  width: 420px; height: 420px; border: 1.5px solid rgba(255,255,255,.06);
  background: transparent; bottom: -180px; left: -140px; filter: none; opacity: 1;
  animation: spin 90s linear infinite reverse;
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.title-art {
  width: min(620px, 86vw);
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.45));
  animation: rise 1s cubic-bezier(.22,.61,.36,1) both, bob 6s ease-in-out 1s infinite;
}

.tagline {
  margin: 26px 0 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, #ff8a3d, #ec3b83, #7c5cfc, #18c2d6);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 1s ease .15s both, gradientShift 6s ease infinite;
}

.subline {
  margin: 14px auto 0;
  max-width: 40ch;
  color: #c2caf6;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  animation: rise 1s ease .3s both;
}

/* Discovery route progress indicator: a location pin scouting a map route */
.route {
  position: relative;
  width: min(400px, 84vw);
  height: 48px;
  margin: 38px auto 0;
  animation: rise 1s ease .45s both;
}

/* Dashed map route */
.route__track {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.28) 0 9px,
    transparent 9px 17px);
}

/* Waypoint markers that twinkle */
.wp {
  position: absolute;
  top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 0 0 rgba(255,255,255,.35);
  animation: twinkle 2.4s ease-in-out infinite;
}
.wp1 { left: 8%;  background: var(--gold);  animation-delay: 0s; }
.wp2 { left: 50%; background: var(--teal);  animation-delay: .5s; }
.wp3 { left: 92%; background: var(--green); animation-delay: 1s; }

/* The traveling comet: a pin with a glowing gradient tail */
.comet {
  position: absolute;
  top: 0; bottom: 0;
  left: 42%;
  width: 96px;
  animation: scout 3s cubic-bezier(.65,.05,.35,1) infinite;
}
.comet__tail {
  position: absolute;
  top: 50%; right: 18px;
  transform: translateY(-50%);
  height: 4px;
  width: 78px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    transparent,
    var(--orange) 30%,
    var(--pink) 55%,
    var(--purple) 78%,
    var(--teal) 100%);
  filter: drop-shadow(0 0 8px rgba(236,59,131,.55));
}
.comet__pin {
  position: absolute;
  top: 50%; right: 0;
  width: 24px; height: 24px;
  transform: translateY(-62%) rotate(45deg);
  border-radius: 50% 50% 50% 4px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 6px 18px rgba(124,92,252,.55);
}
.comet__pin::before {
  /* sonar pulse radiating from the pin */
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  transform: rotate(-45deg);
  animation: sonar 1.6s ease-out infinite;
}
.comet__pin::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Footer */
.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 22px 24px 28px;
  font-size: .9rem;
  color: #8b94c4;
}
.foot a { color: #c7cef0; text-decoration: none; font-weight: 600; }
.foot a:hover { color: #fff; text-decoration: underline; }

/* Animations */
@keyframes bgshift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes scout { 0% { left: -96px; } 100% { left: 100%; } }
@keyframes twinkle {
  0%, 100% { transform: translate(-50%, -50%) scale(.8); box-shadow: 0 0 0 0 rgba(255,255,255,.4); }
  50% { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 12px 2px rgba(255,255,255,.45); }
}
@keyframes sonar {
  0% { transform: rotate(-45deg) scale(.5); opacity: .9; }
  100% { transform: rotate(-45deg) scale(2.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
