/* ── FADE IN ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── HERO ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes badgePop {
  0%   { opacity: 0; transform: translateY(-10px) scale(0.9); }
  70%  { transform: translateY(2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.anim-badge      { animation: badgePop 0.6s ease 0.2s both; }
.anim-h1-l1      { animation: fadeInUp 0.7s ease 0.4s both; }
.anim-h1-l2      { animation: fadeInUp 0.7s ease 0.55s both; }
.anim-h1-l3      { animation: fadeInUp 0.7s ease 0.7s both; }
.anim-sub        { animation: fadeInUp 0.7s ease 0.85s both; }
.anim-search     { animation: fadeInUp 0.7s ease 1s both; }
.anim-chips      { animation: fadeInUp 0.7s ease 1.15s both; }
.anim-stats      { animation: fadeInUp 0.7s ease 1.3s both; }
.anim-float      { animation: float 4s ease-in-out infinite; }
.anim-pulse      { animation: pulse 3s ease-in-out infinite; }

/* ── PROGRESS BAR ── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--violet), var(--coral));
  width: 0%;
  transition: width 1.2s ease 0.3s;
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, var(--violet) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── UNDERLINE VIOLET ── */
.underline-violet {
  position: relative;
  display: inline-block;
}
.underline-violet::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--violet);
  border-radius: 2px;
}

/* ── HERO BG PARTICLES ── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.hero-bg::before {
  width: 400px;
  height: 400px;
  background: var(--violet);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-bg::after {
  width: 300px;
  height: 300px;
  background: var(--coral);
  bottom: -80px;
  left: 20%;
  animation: float 10s ease-in-out infinite reverse;
}

/* ── STEP ARROW ── */
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  opacity: 0.4;
  font-size: 24px;
}

/* ── CARD HOVER ── */
.card-hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ── CHIP FILTER ANIMATION ── */
.chip-filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}
.chip-filter:hover,
.chip-filter.active {
  background: var(--white);
  color: var(--violet);
  border-color: var(--white);
}

/* ── IPHONE MOCKUP ── */
.iphone-mockup {
  width: 200px;
  height: 400px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 36px;
  background: linear-gradient(160deg, #1a0845, #0f0524);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.iphone-notch {
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
}
.iphone-screen {
  padding: 8px 12px;
}
.iphone-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 0;
}
.iphone-app-icon {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ── TIMELINE ── */
.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--coral));
  z-index: 0;
}
.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}
.timeline-step .step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline-step .step-num {
  position: absolute;
  top: -6px;
  right: calc(50% - 30px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--violet);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-step h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.timeline-step p { font-size: 13px; color: var(--muted); }

@media (max-width: 768px) {
  .timeline { flex-direction: column; gap: 16px; }
  .timeline::before { display: none; }
  .timeline-step { flex-direction: row; text-align: left; gap: 16px; }
  .timeline-step .step-icon { flex-shrink: 0; margin-bottom: 0; }
}
