/* Benny — minimal landing.
   A CSS-rendered cyan orb on white, a quiet tagline, one frosted-glass CTA.
   Motion: a one-time staggered entrance (transitions.dev fade-rise / scale-in) —
   no perpetual float. All motion gated on prefers-reduced-motion. */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* transitions.dev primary ease */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: #0a0a0a;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
}

/* ---- Orb (pure CSS sphere, static) ---- */
.orb-wrap { position: relative; display: inline-block; line-height: 0; }

.orb {
  position: relative;
  z-index: 1;
  isolation: isolate;                  /* keep the light's blend on the sphere */
  width: clamp(72px, 15vw, 96px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 46%,
    #34d3ec 0%,
    #1cc6e6 50%,
    #0aa3c6 78%,
    #06889f 100%);
  box-shadow:
    inset 0 0 12px rgba(0, 80, 105, 0.35),         /* rim volume */
    inset 0 -7px 12px rgba(0, 75, 100, 0.32),      /* bottom grounding */
    0 8px 18px rgba(0, 190, 220, 0.24);            /* soft ambient */
  animation: orb-in 0.7s var(--ease) both;
}
/* Flashlight: a big, soft pool of light that follows the cursor (--mx/--my from the
   inline script). `screen` blend makes the white ADD to the cyan, so it brightens the
   sphere like a real beam instead of sitting on top as a dot. */
.orb::before {
  content: "";
  position: absolute;
  left: var(--mx, 38%);
  top: var(--my, 32%);
  width: 155%;
  height: 155%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.30) 20%,
    rgba(255, 255, 255, 0.10) 38%,
    rgba(255, 255, 255, 0) 56%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: left 0.18s ease-out, top 0.18s ease-out;
}
/* a softer, brighter hot-core inside the pool (no hard edge) */
.orb::after {
  content: "";
  position: absolute;
  left: var(--mx, 38%);
  top: var(--my, 32%);
  width: 64%;
  height: 64%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 62%);
  mix-blend-mode: screen;
  filter: blur(5px);
  pointer-events: none;
  transition: left 0.12s ease-out, top 0.12s ease-out;
}

/* static contact shadow on the ground */
.orb-ground {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -4px;
  width: 56%;
  height: 12px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(10, 50, 66, 0.22), rgba(10, 50, 66, 0) 70%);
  filter: blur(5px);
  border-radius: 50%;
}

/* ---- Tagline ---- */
.tagline {
  margin: 30px 0 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #9a9aa1;
  animation: rise-in 0.6s var(--ease) 0.18s both;
}

/* ---- Add to Discord — liquid glass, full pill ---- */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;                  /* full pill */
  overflow: hidden;                      /* clip the gloss sheen to the pill */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #0a4a54;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(188, 248, 255, 0.30) 0%, rgba(40, 210, 236, 0.30) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.80);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),   /* crisp top edge */
    0 6px 18px rgba(0, 150, 180, 0.18),          /* soft ambient */
    0 0 26px rgba(0, 210, 240, 0.22);            /* cyan halo glow */
  animation: fade-in 0.6s var(--ease) 0.3s both;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
/* glossy sheen across the top half — the key glass cue */
.pill::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.12) 65%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.pill span { position: relative; z-index: 1; }   /* label stays above the sheen */
.pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(188, 248, 255, 0.38) 0%, rgba(40, 210, 236, 0.40) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    0 10px 26px rgba(0, 150, 180, 0.24),
    0 0 32px rgba(0, 210, 240, 0.30);
}
.pill:active { transform: translateY(1px); }

/* ---- Entrance keyframes (transitions.dev fade-rise / scale-in) ---- */
@keyframes orb-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .orb, .tagline, .pill { animation: none; }
  .pill:hover, .pill:active { transform: none; }
}
