/* ─── Miz Pulse · My Village Connect ─── */
.mizpulse-hero {
  position: relative;
  padding: clamp(64px, 10vw, 100px) 0;
  overflow: hidden;
}

.mizpulse-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mizpulse-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 30%, rgba(20, 184, 166, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 70%, rgba(245, 158, 11, 0.1), transparent 55%);
}

.mizpulse-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

.mizpulse-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseOrbFloat 8s ease-in-out infinite;
}

.mizpulse-float-1 {
  width: 280px;
  height: 280px;
  top: 10%;
  left: -5%;
  background: rgba(20, 184, 166, 0.2);
}

.mizpulse-float-2 {
  width: 220px;
  height: 220px;
  bottom: 5%;
  right: -3%;
  background: rgba(245, 158, 11, 0.15);
  animation-delay: -3s;
}

@keyframes pulseOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -20px) scale(1.06); }
}

.mizpulse-hero .container {
  position: relative;
  z-index: 1;
}

.mizpulse-hero .section-header {
  max-width: 720px;
  margin-bottom: clamp(36px, 6vw, 56px);
}

.badge-pulse {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(45, 212, 191, 0.35);
  color: #5eead4;
}

.text-gradient-pulse {
  background: linear-gradient(135deg, #2dd4bf, #fbbf24, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mizpulse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* Tutorial steps */
.mizpulse-tutorial {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pulse-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.pulse-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.5), rgba(245, 158, 11, 0.3));
  border-radius: 2px;
}

.pulse-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 14px 16px 14px 0;
  border-radius: var(--radius-md, 12px);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.25s var(--ease-out, ease);
}

.pulse-step:hover {
  background: rgba(20, 184, 166, 0.06);
}

.pulse-step.is-active {
  background: rgba(20, 184, 166, 0.1);
}

.pulse-step-marker {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(28, 22, 52, 0.9);
  border: 2px solid rgba(45, 212, 191, 0.35);
  font-family: var(--font-display, 'Baloo 2', sans-serif);
  font-weight: 800;
  font-size: 0.85rem;
  color: #94a3b8;
  transition: all 0.35s var(--ease-spring, ease);
}

.pulse-step.is-active .pulse-step-marker,
.pulse-step.is-complete .pulse-step-marker {
  border-color: #2dd4bf;
  color: #0f172a;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.45);
}

.pulse-step.is-complete .pulse-step-marker::after {
  content: '✓';
  font-size: 0.9rem;
}

.pulse-step.is-complete .pulse-step-marker span {
  display: none;
}

.pulse-step-body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--color-text, #f1f5f9);
}

.pulse-step-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted, #94a3b8);
  line-height: 1.5;
}

.pulse-step.is-active .pulse-step-body strong {
  color: #5eead4;
}

.pulse-tutorial-progress {
  margin-top: 20px;
  height: 4px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  overflow: hidden;
}

.pulse-tutorial-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #fbbf24);
  transition: width 0.4s var(--ease-out, ease);
}

.pulse-tutorial-hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted, #64748b);
}

/* Phone demo */
.mizpulse-demo {
  position: relative;
}

.pulse-demo-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22), transparent 68%);
  filter: blur(28px);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 0;
}

.pulse-phone {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(45, 212, 191, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: phoneFloat 5s ease-in-out infinite;
}

.pulse-phone-notch {
  width: 80px;
  height: 22px;
  margin: 0 auto 8px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
}

.pulse-phone-screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f8fafc;
  min-height: 420px;
  aspect-ratio: 9 / 16;
}

.pulse-screens {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.pulse-screen {
  position: absolute;
  inset: 0;
  padding: 0;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: opacity 0.45s var(--ease-out, ease), transform 0.45s var(--ease-out, ease);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
}

.pulse-screen.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.pulse-screen.is-exiting {
  opacity: 0;
  transform: translateX(-20px) scale(0.98);
}

/* Screen: status bar */
.pulse-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
}

.pulse-app-header {
  padding: 12px 14px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: white;
}

.pulse-app-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.pulse-app-header span {
  font-size: 0.68rem;
  opacity: 0.9;
}

.pulse-app-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* Screen 1: Join village */
.pulse-map-card {
  background: white;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  animation: pulseCardIn 0.5s var(--ease-out, ease) 0.15s both;
}

.pulse-map-visual {
  height: 100px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.05)),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%2394a3b8' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
  position: relative;
  margin-bottom: 10px;
}

.pulse-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -80%);
  font-size: 1.8rem;
  animation: pulsePinDrop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 0.3s both;
}

@keyframes pulsePinDrop {
  from { transform: translate(-50%, -180%) scale(0); opacity: 0; }
  to { transform: translate(-50%, -80%) scale(1); opacity: 1; }
}

.pulse-map-card strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
}

.pulse-map-card p {
  margin: 4px 0 10px;
  font-size: 0.72rem;
  color: #64748b;
}

.pulse-btn-highlight {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
  animation: pulseBtnGlow 2s ease-in-out infinite;
}

@keyframes pulseBtnGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4); }
  50% { box-shadow: 0 4px 22px rgba(20, 184, 166, 0.65); transform: scale(1.02); }
}

/* Screen 2: Feed */
.pulse-feed-item {
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  animation: pulseCardIn 0.45s var(--ease-out, ease) both;
}

.pulse-feed-item:nth-child(1) { animation-delay: 0.1s; }
.pulse-feed-item:nth-child(2) { animation-delay: 0.25s; }
.pulse-feed-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse-feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pulse-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-feed-meta strong {
  font-size: 0.72rem;
  color: #0f172a;
}

.pulse-feed-meta span {
  font-size: 0.62rem;
  color: #94a3b8;
}

.pulse-feed-item p {
  margin: 0;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.45;
}

.pulse-feed-reactions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.65rem;
  color: #64748b;
}

/* Screen 3: Events */
.pulse-event-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  animation: pulseCardIn 0.5s var(--ease-out, ease) both;
}

.pulse-event-banner {
  height: 72px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.pulse-event-body {
  padding: 12px;
}

.pulse-event-body strong {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
}

.pulse-event-body p {
  margin: 4px 0 0;
  font-size: 0.68rem;
  color: #64748b;
}

.pulse-event-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0d9488;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Screen 4: Alert */
.pulse-alert-banner {
  padding: 10px 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulseAlertPulse 2s ease-in-out infinite;
}

@keyframes pulseAlertPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.pulse-alert-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.pulse-alert-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  border-left: 4px solid #f59e0b;
  animation: pulseCardIn 0.45s var(--ease-out, ease) 0.2s both;
}

.pulse-alert-card strong {
  display: block;
  font-size: 0.78rem;
  color: #0f172a;
}

.pulse-alert-card p {
  margin: 4px 0 0;
  font-size: 0.68rem;
  color: #64748b;
}

/* Screen 5: Connect */
.pulse-member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pulse-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  animation: pulseCardIn 0.4s var(--ease-out, ease) both;
}

.pulse-member:nth-child(1) { animation-delay: 0.1s; }
.pulse-member:nth-child(2) { animation-delay: 0.22s; }
.pulse-member:nth-child(3) { animation-delay: 0.34s; }

.pulse-member-info {
  flex: 1;
}

.pulse-member-info strong {
  display: block;
  font-size: 0.75rem;
  color: #0f172a;
}

.pulse-member-info span {
  font-size: 0.62rem;
  color: #94a3b8;
}

.pulse-msg-btn {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0d9488;
  font-size: 0.62rem;
  font-weight: 700;
}

.pulse-tutorial-pointer {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.9);
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, top 0.5s var(--ease-out, ease), left 0.5s var(--ease-out, ease);
}

.pulse-tutorial-pointer.is-visible {
  opacity: 1;
  animation: pulsePointerTap 1.2s ease-in-out infinite;
}

@keyframes pulsePointerTap {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(0.88); }
}

.pulse-nav-bar {
  display: flex;
  justify-content: space-around;
  padding: 10px 8px 12px;
  background: white;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

.pulse-nav-bar span {
  font-size: 0.55rem;
  color: #94a3b8;
  text-align: center;
}

.pulse-nav-bar span.is-active {
  color: #0d9488;
  font-weight: 700;
}

/* Feature cards row */
.mizpulse-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.pulse-feat-card {
  padding: 20px 18px;
  border-radius: var(--radius-md, 14px);
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.15);
  transition: transform 0.25s var(--ease-out, ease), border-color 0.25s, box-shadow 0.25s;
}

.pulse-feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.12);
}

.pulse-feat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
  color: #2dd4bf;
  margin-bottom: 12px;
}

.pulse-feat-icon svg {
  width: 22px;
  height: 22px;
}

.pulse-feat-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.pulse-feat-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted, #94a3b8);
  line-height: 1.45;
}

.btn-pulse {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: white;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.35);
}

.btn-pulse:hover {
  color: white;
  box-shadow: 0 8px 28px rgba(20, 184, 166, 0.45);
  transform: translateY(-2px);
}

.mizpulse-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.mizpulse-tags span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: #5eead4;
}

.audience-pulse {
  border-color: rgba(45, 212, 191, 0.3);
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.08), rgba(28, 22, 52, 0.5));
}

.product-label-pulse {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
}

@media (max-width: 960px) {
  .mizpulse-grid {
    grid-template-columns: 1fr;
  }

  .mizpulse-tutorial {
    order: 2;
  }

  .mizpulse-demo {
    order: 1;
  }

  .mizpulse-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .mizpulse-features {
    grid-template-columns: 1fr;
  }

  .pulse-phone {
    max-width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mizpulse-float,
  .pulse-demo-glow,
  .pulse-phone,
  .pulse-btn-highlight,
  .pulse-alert-banner,
  .pulse-tutorial-pointer.is-visible {
    animation: none;
  }

  .pulse-screen {
    transition: opacity 0.2s ease;
    transform: none;
  }
}
