/**
 * One-time launch ceremony overlay — scoped under #biz-launch-ceremony only.
 */

#biz-launch-ceremony {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#biz-launch-ceremony.biz-launch-ceremony--exit {
  pointer-events: none;
  animation: biz-launch-fade-out 1.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes biz-launch-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
  }
}

/* ─── Background layers ─── */
.biz-launch-ceremony__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #060b1a 0%, #1a1035 38%, #0c1633 72%, #070d1f 100%);
}

.biz-launch-ceremony__bg::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.55), transparent 52%),
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(236, 72, 153, 0.35), transparent 48%),
    radial-gradient(ellipse 60% 50% at 50% 95%, rgba(56, 189, 248, 0.22), transparent 45%);
  animation: biz-launch-aurora 14s ease-in-out infinite alternate;
}

.biz-launch-ceremony__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes biz-launch-aurora {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(4%, 3%) rotate(4deg);
  }
}

/* Floating orbs */
.biz-launch-ceremony__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.biz-launch-ceremony__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: biz-launch-float 18s ease-in-out infinite;
}

.biz-launch-ceremony__orb--1 {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  left: -12%;
  top: 18%;
  background: rgba(129, 140, 248, 0.9);
  animation-delay: 0s;
}

.biz-launch-ceremony__orb--2 {
  width: min(340px, 45vw);
  height: min(340px, 45vw);
  right: -8%;
  top: 42%;
  background: rgba(244, 114, 182, 0.65);
  animation-delay: -6s;
}

.biz-launch-ceremony__orb--3 {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  left: 28%;
  bottom: -5%;
  background: rgba(56, 189, 248, 0.5);
  animation-delay: -12s;
}

@keyframes biz-launch-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, -3%) scale(1.05);
  }
  66% {
    transform: translate(-3%, 4%) scale(0.96);
  }
}

.biz-launch-ceremony__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
}

/* ─── Panel & glass card ─── */
.biz-launch-ceremony__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 26rem);
  padding: clamp(1rem, 4vw, 1.75rem);
  margin: 0 auto;
}

.biz-launch-ceremony__card {
  position: relative;
  text-align: center;
  padding: clamp(1.75rem, 5vw, 2.35rem) clamp(1.35rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: 24px;
  animation: biz-launch-card-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(15, 23, 42, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 120px rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.biz-launch-ceremony__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(129, 140, 248, 0.25) 40%,
    rgba(236, 72, 153, 0.15) 70%,
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes biz-launch-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.biz-launch-ceremony__brand {
  margin: 0 auto 1.25rem;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(129, 140, 248, 0.25);
}

.biz-launch-ceremony__brand img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.biz-launch-ceremony__eyebrow-wrap {
  margin-bottom: 0.85rem;
}

.biz-launch-ceremony__eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.88);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.biz-launch-ceremony__title {
  font-size: clamp(1.45rem, 5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  background: linear-gradient(
    115deg,
    #ffffff 0%,
    #e0e7ff 28%,
    #fce7f3 55%,
    #ffffff 85%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: biz-launch-title-glow 8s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(129, 140, 248, 0.15);
}

@keyframes biz-launch-title-glow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.biz-launch-ceremony__sub {
  font-size: clamp(0.92rem, 2.8vw, 1.02rem);
  color: rgba(226, 232, 240, 0.78);
  margin: 0 0 1.85rem;
  line-height: 1.55;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.biz-launch-ceremony__count-wrap {
  margin-bottom: 0.25rem;
}

.biz-launch-ceremony__count-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.45);
  margin-bottom: 1rem;
}

.biz-launch-ceremony__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 2.5vw, 0.75rem);
  max-width: 100%;
}

.biz-launch-ceremony__unit {
  position: relative;
  border-radius: 16px;
  padding: 0.85rem 0.25rem 0.65rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.biz-launch-ceremony__unit:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.biz-launch-ceremony__unit--pulse {
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 28px rgba(129, 140, 248, 0.22),
    0 0 0 1px rgba(129, 140, 248, 0.35) inset;
  animation: biz-launch-tick-pulse 1s ease infinite;
}

@keyframes biz-launch-tick-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.25),
      0 0 20px rgba(129, 140, 248, 0.18),
      0 0 0 1px rgba(129, 140, 248, 0.28) inset;
  }
  50% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.25),
      0 0 36px rgba(244, 114, 182, 0.2),
      0 0 0 1px rgba(244, 114, 182, 0.35) inset;
  }
}

.biz-launch-ceremony__num {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.45rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.biz-launch-ceremony__unit-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.42);
  margin-top: 0.45rem;
}

.biz-launch-ceremony__live-wrap {
  padding: 0.5rem 0 0.25rem;
}

.biz-launch-ceremony__live {
  font-size: clamp(1.65rem, 6vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fde68a, #fb923c, #f472b6, #a78bfa);
  background-size: 150% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: biz-launch-title-glow 5s ease-in-out infinite;
}

.biz-launch-ceremony__live-sub {
  margin: 0;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.88);
}

.biz-launch-ceremony__skip {
  margin-top: 1.65rem;
}

.biz-launch-ceremony__skip button {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.65);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.biz-launch-ceremony__skip button:hover,
.biz-launch-ceremony__skip button:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.biz-launch-ceremony__skip button:focus-visible {
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.45);
}

.biz-launch-ceremony__panel[hidden],
.biz-launch-ceremony__count-wrap[hidden],
.biz-launch-ceremony__live-wrap[hidden] {
  display: none !important;
}

@media (max-width: 380px) {
  .biz-launch-ceremony__grid {
    gap: 0.35rem;
  }
  .biz-launch-ceremony__unit {
    padding: 0.65rem 0.15rem 0.5rem;
    border-radius: 12px;
  }
  .biz-launch-ceremony__unit-label {
    font-size: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #biz-launch-ceremony.biz-launch-ceremony--exit {
    animation: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
  }
  .biz-launch-ceremony__bg::before,
  .biz-launch-ceremony__orb,
  .biz-launch-ceremony__title,
  .biz-launch-ceremony__live,
  .biz-launch-ceremony__unit--pulse,
  .biz-launch-ceremony__card {
    animation: none !important;
  }
  .biz-launch-ceremony__card {
    opacity: 1;
    transform: none;
  }
}
