/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card.reveal:nth-child(2) { transition-delay: 80ms; }
.card.reveal:nth-child(3) { transition-delay: 160ms; }
.step.reveal:nth-child(2) { transition-delay: 70ms; }
.step.reveal:nth-child(3) { transition-delay: 140ms; }
.step.reveal:nth-child(4) { transition-delay: 210ms; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(180deg, #9333ea 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.5);
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.22);
}

.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Cards */
.cards {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 100%;
}
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-secondary); }
.card-accent-purple { border-color: rgba(168, 85, 247, 0.35); }
.card-accent-fire { border-color: rgba(255, 107, 0, 0.35); }
.card-accent-gold { border-color: rgba(255, 215, 0, 0.35); }
.card-highlight {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.12), rgba(91, 33, 182, 0.08));
  border-color: rgba(168, 85, 247, 0.45);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 10px;
}
.step p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }


/* Premium */
.premium-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, #312e81, #5b21b6 50%, #7c3aed);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}
.premium-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.premium-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.92);
}
.premium-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

/* Slot mockup — contenitore flex */
.app-preview-slot {
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-showcase .phone-frame {
  justify-self: center;
  width: min(100%, 280px);
  margin: 0 auto;
}

/* App screenshots in phone frames — fallback mock only */
.phone-screen--has-shot {
  padding: 0;
  background: #0a0a0a;
  display: block;
  line-height: 0;
}

.screen-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2638;
  object-fit: contain;
  object-position: center center;
  vertical-align: top;
}

.screen-fallback {
  display: flex;
  flex-direction: column;
  height: 100%;
}
