/* ============================================================
   HOW
   ============================================================ */

@keyframes glowWhite {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(255,255,255,0.6); opacity: 0.8; }
  50% { box-shadow: 0 0 8px 3px rgba(255,255,255,1); opacity: 1; }
}

@keyframes glowGreen {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 10px 4px rgba(34,197,94,0.8); }
}

@keyframes glowGray {
  0%, 100% { box-shadow: 0 0 2px 1px rgba(170,170,170,0.3); }
  50% { box-shadow: 0 0 7px 3px rgba(170,170,170,0.6); }
}

@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---- VIDEO ---- */

.video-section {
  width: 100%; height: 100vh; background: #111; position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}

.video-section video { width: 100%; display: block; max-height: 90vh; object-fit: cover; }

.video-placeholder {
  font-size: 13px; color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 0.5px solid rgba(255,255,255,0.1);
  padding: 16px 28px; border-radius: 4px; position: absolute;
}

/* ---- HOW SECTION ---- */

.how-wrapper {
  position: relative;
  z-index: 3;
  transform: translateZ(0);
}

.how-slides-block {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Background image with alpha fade to top */

.how-bg-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,0.8) 50%, black 75%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,0.8) 50%, black 75%);
}

/* Title overlay — centered top */

.how-header-overlay {
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  z-index: 3;
  text-align: center;
  padding: 0 320px;
}

.how-h {
  font-size: 64px;
  font-weight: 600;
  color: #111;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

/* Steps centered — icon left of text, both centered in right half */

.step-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  z-index: 2;
}

.step-slide.active {
  opacity: 1;
  pointer-events: all;
}

.step-side {
  width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  text-align: right;
}

.step-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: iconFloat 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
}

@keyframes iconFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0px); }
}

/* Each slide gets slightly different animation timing */

#slide-0 .step-icon { animation-delay: 0s; }

#slide-1 .step-icon { animation-delay: -1.2s; }

#slide-2 .step-icon { animation-delay: -2.4s; }

#slide-3 .step-icon { animation-delay: -0.8s; }

.step-text {
  max-width: 300px;
  text-align: left;
  flex-shrink: 0;
}

.step-slide .step-text {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.step-slide.active .step-text {
  opacity: 1;
  transform: translateY(0);
}

.step-slide .step-icon-wrap {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease 0.05s, transform 0.9s ease 0.05s;
}

.step-slide.active .step-icon-wrap {
  opacity: 1;
  transform: translateY(0);
}

.step-nr {
  font-size: 80px;
  font-weight: 600;
  color: #818CF8;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.step-title {
  font-size: 56px;
  font-weight: 600;
  color: #111;
  line-height: 1.0;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.step-body {
  font-size: 18px;
  color: #444;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 24px;
}

.step-dots {
  display: none; /* moved outside step-text */
}

.step-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(129,140,248,0.3);
  transition: all 0.5s ease;
  cursor: pointer;
}

.step-dot.on {
  background: #818CF8;
  width: 20px;
  border-radius: 3px;
}

/* Persistent dots — always visible at bottom center */

.how-dots-bar {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 10;
}

.how-dot-global {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(129,140,248,0.35);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.how-dot-global.on {
  background: #818CF8;
  width: 22px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(129,140,248,0.6);
}

@keyframes emotionPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes sharedFloat {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes uniqueMorph {
  0%, 100% { border-radius: 8px; transform: rotate(0deg); }
  33% { border-radius: 50%; transform: rotate(120deg); }
  66% { border-radius: 24px 4px 24px 4px; transform: rotate(240deg); }
}
