/* Webavix — under-construction landing page.
   The logo PNG is never altered; all motion comes from the SVG overlays in
   index.html plus the CSS animations below. */

:root {
  --navy: #0B132B;
  --cyan: #00C6FF;
  --sky-blue: #1890FF;
  --electric-blue: #2962FF;
  --cobalt-blue: #4B39EF;
  --deep-indigo: #6A11CB;
  --violet: #8A2BE2;
  --ink: #ffffff;
  --ink-muted: #c9d0ea;
  --ink-faint: #8994ba;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem clamp(1.25rem, 3vw, 2rem);
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Depth behind the content — light only, no imagery. */
.ambient {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 8%, rgba(0, 198, 255, 0.13), transparent 70%),
    radial-gradient(46% 40% at 82% 34%, rgba(138, 43, 226, 0.14), transparent 72%),
    radial-gradient(60% 50% at 14% 62%, rgba(41, 98, 255, 0.1), transparent 74%),
    var(--navy);
}

.shell {
  width: 100%;
  max-width: 46rem;
  margin: 0 0 auto;
  padding-top: clamp(1rem, 8vh, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Logo stage ---------- */

.stage {
  position: relative;
  /* Own stacking context so the halo sits behind the PNG and the screen-blended
     overlay composites against the logo rather than the page background. */
  z-index: 0;
  isolation: isolate;
  width: clamp(15rem, 44vw, 26rem);
  aspect-ratio: 1232 / 914;
  margin-bottom: clamp(1.75rem, 5vw, 3rem);
}

.logo,
.fx,
.halo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo {
  z-index: 1;
  display: block;
  object-fit: contain;
  /* Slow breathing bloom around the whole mark. */
  animation: breathe 7s ease-in-out infinite;
}

.fx {
  overflow: visible;
  pointer-events: none;
}

.fx-back {
  z-index: 0;
}

.fx-front {
  z-index: 2;
  mix-blend-mode: screen;
}

/* Wide ambient halo, in step with the drop-shadow breathing. */
.halo {
  z-index: -1;
  transform: scale(1.35);
  background: radial-gradient(
    50% 48% at 50% 52%,
    rgba(0, 198, 255, 0.16),
    rgba(41, 98, 255, 0.12) 32%,
    rgba(106, 17, 203, 0.1) 52%,
    rgba(138, 43, 226, 0.06) 64%,
    transparent 72%
  );
  animation: halo-breathe 7s ease-in-out infinite;
  will-change: opacity, transform;
}

.beat {
  transform-box: fill-box;
  transform-origin: center;
  animation: heartbeat 2.4s cubic-bezier(0.4, 0, 0.5, 1) infinite;
  will-change: opacity, transform;
}

@keyframes breathe {
  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(0, 198, 255, 0.16))
      drop-shadow(0 0 34px rgba(41, 98, 255, 0.1))
      drop-shadow(0 0 54px rgba(138, 43, 226, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 26px rgba(0, 198, 255, 0.34))
      drop-shadow(0 0 58px rgba(75, 57, 239, 0.25))
      drop-shadow(0 0 92px rgba(138, 43, 226, 0.22));
  }
}

@keyframes halo-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1.28);
  }
  50% {
    opacity: 1;
    transform: scale(1.45);
  }
}

/* Two-beat rhythm, then rest. */
@keyframes heartbeat {
  0% {
    opacity: 0.34;
    transform: scale(0.9);
  }
  8% {
    opacity: 0.9;
    transform: scale(1.06);
  }
  17% {
    opacity: 0.46;
    transform: scale(0.97);
  }
  26% {
    opacity: 1;
    transform: scale(1.12);
  }
  42% {
    opacity: 0.36;
    transform: scale(0.94);
  }
  70%,
  100% {
    opacity: 0.34;
    transform: scale(0.9);
  }
}

/* ---------- Copy ---------- */

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--ink);
}

/* Brand set in caps for display only; the accessible text stays "Webavix". */
.brand {
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.lede {
  margin: clamp(0.9rem, 2.4vw, 1.35rem) 0 0;
  max-width: 32rem;
  font-size: clamp(1rem, 1.9vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ---------- Status pill ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: clamp(1.6rem, 4vw, 2.25rem) 0 0;
  padding: 0.46rem 0.95rem 0.46rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(0, 198, 255, 0.1), rgba(138, 43, 226, 0.07)) padding-box,
    linear-gradient(90deg, #00C6FF 0%, #1890FF 20%, #2962FF 40%, #4B39EF 60%, #6A11CB 80%, #8A2BE2 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-muted);
}

.status-dot {
  position: relative;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #5CFFC4;
  box-shadow: 0 0 8px rgba(92, 255, 196, 0.85);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -0.28rem;
  border-radius: 50%;
  border: 1px solid rgba(92, 255, 196, 0.7);
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  0% {
    opacity: 0.85;
    transform: scale(0.55);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

/* ---------- Call to action ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(1.5rem, 3.6vw, 2rem);
  padding: 0.82rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(0, 198, 255, 0.16), rgba(138, 43, 226, 0.14)) padding-box,
    linear-gradient(90deg, #00C6FF 0%, #1890FF 20%, #2962FF 40%, #4B39EF 60%, #6A11CB 80%, #8A2BE2 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 30px -14px rgba(0, 198, 255, 0.5);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.7vw, 1.02rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(0, 198, 255, 0.26), rgba(138, 43, 226, 0.2)) padding-box,
    linear-gradient(90deg, #00C6FF 0%, #1890FF 20%, #2962FF 40%, #4B39EF 60%, #6A11CB 80%, #8A2BE2 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 38px -14px rgba(0, 198, 255, 0.7),
    0 8px 28px -16px rgba(138, 43, 226, 0.7);
}

.cta:focus-visible {
  outline: 2px solid rgba(0, 198, 255, 0.8);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

@media (max-width: 30rem) {
  .stage {
    width: min(78vw, 17rem);
  }

  .status {
    max-width: 20rem;
    text-align: left;
    line-height: 1.45;
  }
}

/* ---------- Reduced motion: static logo ---------- */

@media (prefers-reduced-motion: reduce) {
  .fx {
    display: none;
  }

  .halo,
  .beat,
  .logo,
  .status-dot::after {
    animation: none !important;
  }

  .halo {
    opacity: 0.8;
    transform: scale(1.35);
  }

  .logo {
    filter: drop-shadow(0 0 22px rgba(0, 198, 255, 0.2))
      drop-shadow(0 0 54px rgba(138, 43, 226, 0.12));
  }

  .cta {
    transition: none;
  }
}
