/* EduMitra schools landing — 3D entrance stage */

.em-wow {
  position: relative;
  min-height: calc(100vh - var(--nav-h, 68px));
  min-height: calc(100dvh - var(--nav-h, 68px));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(99, 102, 241, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(124, 58, 237, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(67, 56, 202, 0.12) 0%, transparent 45%),
    linear-gradient(165deg, #0f0e1a 0%, #1a1740 42%, #12101f 100%);
  color: #fff;
}

.em-wow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.em-wow.is-static .em-wow-canvas,
.em-wow.is-fallback .em-wow-canvas {
  display: none;
}

.em-wow-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 900px;
  pointer-events: none;
}

.em-wow.is-static .em-wow-fallback,
.em-wow.is-fallback .em-wow-fallback {
  display: block;
}

.em-wow-tree {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(420px, 78vw);
  height: min(320px, 48vh);
  transform: translate(-50%, -50%) rotateX(18deg) rotateY(-12deg);
  transform-style: preserve-3d;
}

.em-wow-node {
  position: absolute;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  transform-style: preserve-3d;
}

.em-wow-node.is-root {
  left: 50%;
  top: 8%;
  width: 140px;
  height: 44px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4338CA, #7C3AED);
  border-color: transparent;
}

.em-wow-node.is-branch {
  width: 100px;
  height: 36px;
  top: 38%;
}

.em-wow-node.is-branch:nth-of-type(2) { left: 8%; }
.em-wow-node.is-branch:nth-of-type(3) { left: 50%; transform: translateX(-50%); }
.em-wow-node.is-branch:nth-of-type(4) { right: 8%; }

.em-wow-node.is-leaf {
  width: 72px;
  height: 28px;
  font-size: 10px;
  top: 72%;
}

.em-wow-node.is-leaf:nth-of-type(5) { left: 4%; }
.em-wow-node.is-leaf:nth-of-type(6) { left: 24%; }
.em-wow-node.is-leaf:nth-of-type(7) { left: 50%; transform: translateX(-50%); background: rgba(225, 29, 72, 0.35); border-color: rgba(251, 113, 133, 0.55); }
.em-wow-node.is-leaf:nth-of-type(8) { right: 24%; }
.em-wow-node.is-leaf:nth-of-type(9) { right: 4%; }

.em-wow-overlay {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
  text-align: center;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.em-wow-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head, Fraunces, Georgia, serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.em-wow-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4338CA, #7C3AED);
  display: grid;
  place-items: center;
  font-family: var(--ff-body, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.45);
}

.em-wow-beats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 28px;
}

.em-wow-beat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.35s, border-color 0.35s, background 0.35s, transform 0.35s;
}

.em-wow-beat.is-on {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.em-wow-beat.is-done {
  color: rgba(167, 243, 208, 0.95);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(5, 150, 105, 0.22);
}

.em-wow-title {
  font-family: var(--ff-head, Fraunces, Georgia, serif);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  max-width: 16ch;
}

.em-wow-title em {
  font-style: italic;
  background: linear-gradient(120deg, #c4b5fd, #a5b4fc, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.em-wow-lede {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}

.em-wow-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}

.em-wow-ctas .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 26px;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.em-wow-ctas .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4338CA, #7C3AED);
  border: none;
  box-shadow: 0 12px 32px rgba(67, 56, 202, 0.45);
}

.em-wow-ctas .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(67, 56, 202, 0.55);
}

.em-wow-ctas .btn-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.em-wow-ctas .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.em-wow-skip {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  margin-top: 4px;
  transition: color 0.2s;
}

.em-wow-skip:hover {
  color: rgba(255, 255, 255, 0.9);
}

.em-wow.is-static .em-wow-skip,
.em-wow.is-done .em-wow-skip {
  display: none;
}

.em-wow-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.em-wow-scroll i {
  animation: emWowBounce 1.6s ease-in-out infinite;
}

@keyframes emWowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

@media (max-width: 640px) {
  .em-wow-overlay {
    padding-top: 24px;
    gap: 14px;
  }
  .em-wow-beats {
    gap: 6px;
  }
  .em-wow-beat {
    font-size: 9px;
    padding: 5px 8px;
  }
  .em-wow-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .em-wow-scroll i {
    animation: none;
  }
}
