*, *::before, *::after { box-sizing: border-box; }

/* Header backdrop blur via pseudo-element so iOS Safari doesn't clip children */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

html, body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #080808;
  color: #ffffff;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

/* ── Gradient utilities ───────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #833AB4 0%, #C13584 35%, #E1306C 60%, #F77737 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #833AB4, #C13584, #F77737);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Glassmorphism card ───────────────────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ── Gradient CTA button ─────────────────────────────────────────────────── */
.btn-gradient {
  background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #F77737);
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-gradient:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ── Instagram icon background ───────────────────────────────────────────── */
.ig-bg {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  border-radius: 22%;
}

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

/* Stagger helpers */
.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.19s; }
.d4 { transition-delay: 0.26s; }
.d5 { transition-delay: 0.33s; }
.d6 { transition-delay: 0.40s; }

/* ── Ambient animation ────────────────────────────────────────────────────── */

/* Animated gradient sweep (hero title, CTA background) */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.gradient-anim {
  background-size: 220% 220%;
  animation: gradient-shift 7s ease infinite;
}
.cta-animated-bg {
  background: linear-gradient(135deg,
      rgba(131,58,180,0.16) 0%, rgba(193,53,132,0.14) 35%,
      rgba(247,119,55,0.09) 65%, rgba(131,58,180,0.16) 100%);
  background-size: 280% 280%;
  animation: gradient-shift 14s ease infinite;
}

/* Floating orbs behind the hero */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.orb-a {
  width: 340px; height: 340px;
  top: 14%; left: 6%;
  background: radial-gradient(circle, rgba(131,58,180,0.55) 0%, transparent 70%);
  animation: float-a 14s ease-in-out infinite;
}
.orb-b {
  width: 300px; height: 300px;
  bottom: 12%; right: 5%;
  background: radial-gradient(circle, rgba(247,119,55,0.45) 0%, transparent 70%);
  animation: float-b 17s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(34px, -44px) scale(1.08); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-44px, 30px) scale(0.94); }
}

/* Breathing glow on the hero app badge */
.pulse-glow { animation: pulse-glow 3.6s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 18px 50px rgba(193,53,132,0.28); }
  50%      { box-shadow: 0 18px 74px rgba(193,53,132,0.52); }
}

/* Shine sweep across gradient buttons on hover */
.btn-gradient { position: relative; overflow: hidden; }
.btn-gradient::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-gradient:hover::after { animation: btn-shine 0.9s ease; }
@keyframes btn-shine { to { left: 125%; } }

/* ── Platform marquee ─────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px; /* keeps spacing consistent across the loop seam */
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Horizontal feature scroller ─────────────────────────────────────────── */
.hscroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Align first card with the max-w-6xl (72rem) container on wide screens */
  padding: 8px max(calc((100% - 72rem) / 2 + 1.25rem), 1.25rem) 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}
.hscroll::-webkit-scrollbar { display: none; }
.feature-card {
  width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.hscroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hscroll-btn:hover {
  background: rgba(193,53,132,0.2);
  border-color: rgba(193,53,132,0.45);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
  /* Marquee falls back to a static, centered, wrapping chip row */
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { width: auto; justify-content: center; }
  .marquee-group { flex-wrap: wrap; justify-content: center; }
  .marquee-dup { display: none; }
  .hero-orb { display: none; }
}

/* ── Stat numbers ─────────────────────────────────────────────────────────── */
.stat-number {
  color: #ffffff;
}

/* ── Section divider ─────────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 auto;
  max-width: 600px;
}

/* ── Platform chips ──────────────────────────────────────────────────────── */
.platform-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  flex-shrink: 0;
  white-space: nowrap;
  transition: border-color 0.3s, background 0.3s;
}
.platform-chip:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
}
.platform-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.platform-chip-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* Platform icon brand backgrounds */
.bg-tiktok    { background: #010101; }
.bg-youtube   { background: #FF0000; }
.bg-x         { background: #000000; border: 1px solid rgba(255,255,255,0.15); }
.bg-threads   { background: #101010; border: 1px solid rgba(255,255,255,0.12); }
.bg-facebook  { background: #1877F2; }

/* ── Why-section highlight cards ─────────────────────────────────────────── */
.why-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.why-card:hover { border-color: rgba(255,255,255,0.16); transform: translateY(-2px); }
.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(193,53,132,0.15);
}

/* ── Pricing cards ───────────────────────────────────────────────────────── */
.pricing-card {
  border-radius: 24px;
  padding: 36px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.pro {
  background: rgba(255,255,255,0.04);
  border-color: rgba(193,53,132,0.35);
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #833AB4, #C13584);
  color: white;
  margin-bottom: 20px;
  width: fit-content;
}
.pricing-price-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: white;
}
.pricing-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  padding: 7px 0;
  color: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pricing-feature-row:last-child { border-bottom: none; }
.pricing-feature-row.dim { color: rgba(255,255,255,0.28); }
.pricing-check { color: #C13584; flex-shrink: 0; margin-top: 1px; }
.pricing-check.dim { color: rgba(255,255,255,0.2); }

/* ── Sign-up form ─────────────────────────────────────────────────────────── */
.signup-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.signup-input::placeholder { color: rgba(255,255,255,0.3); }
.signup-input:focus {
  border-color: rgba(193,53,132,0.6);
  background: rgba(255,255,255,0.07);
}
.signup-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* ── Content type showcase ───────────────────────────────────────────────── */
.content-type-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s, border-color 0.3s;
}
.content-type-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(193,53,132,0.35);
}
.content-type-thumb {
  aspect-ratio: 9/16;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.content-type-thumb-wide {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
}
