/* ============================================
   ViralClips AI — Landing Page Styles
   Bright, Premium, Conversion-Optimized
   ============================================ */

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #fef9f7 0%, #f5f0ff 40%, #f0f7ff 70%, #ffffff 100%);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,107,0.18), transparent 70%);
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  animation: float 10s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%);
  top: 20%;
  right: -5%;
  animation: float 13s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(32,201,151,0.1), transparent 70%);
  bottom: 0;
  left: -5%;
  animation: float 11s ease-in-out infinite;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: var(--space-6);
}

.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary-600);
  background: white;
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 12px rgba(255,107,107,0.12);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,107,107,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(255,107,107,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 800;
}

/* Main CTA Button */
.btn-cta-main {
  padding: 18px 40px;
  font-size: var(--text-lg);
  font-weight: 800;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 30px rgba(255,107,107,0.35), 0 2px 0 rgba(0,0,0,0.05) inset;
  transition: all var(--transition-base);
  animation: cta-pulse 3s ease-in-out infinite;
}

.btn-cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 45px rgba(255,107,107,0.45), 0 2px 0 rgba(0,0,0,0.05) inset;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(255,107,107,0.35); }
  50% { box-shadow: 0 8px 50px rgba(255,107,107,0.5), 0 0 80px rgba(255,107,107,0.1); }
}

.hero-cta {
  margin-bottom: var(--space-5);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.trust-item {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 600;
}

.trust-dot {
  color: var(--text-tertiary);
}

/* ============ GALLERY ============ */
.gallery {
  padding: var(--space-24) 0 var(--space-32);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.gallery-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: white;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-play {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition-base);
}

.gallery-play svg { margin-left: 3px; }

.gallery-card:hover .gallery-play {
  background: rgba(255,107,107,0.6);
  border-color: rgba(255,107,107,0.5);
  transform: scale(1.12);
}

.gallery-badge-overlay {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

.gallery-badge-tag {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.gallery-prompt {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  border-top: 1px solid var(--border-light);
}

/* Video Gallery Cards */
.gallery-video-wrap {
  position: relative;
  background: #0a0a1a;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.gallery-views-overlay {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 2;
}

.gallery-views-overlay span {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: white;
  letter-spacing: 0.02em;
}

.gallery-card:hover .gallery-video {
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

/* ============ VALUE PROPS ============ */
.value-props {
  padding: var(--space-32) 0;
  background: var(--bg-secondary);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.value-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.value-card:hover::before { opacity: 1; }

.value-icon {
  font-size: 3rem;
  margin-bottom: var(--space-5);
  display: block;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.value-card p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  padding: var(--space-32) 0;
}

.steps-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step-card {
  flex: 1;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,107,107,0.35);
}

.step-emoji {
  font-size: 2.8rem;
  margin-bottom: var(--space-4);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector-line {
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
}

/* ============ PERFECT FOR ============ */
.perfect-for {
  padding: var(--space-32) 0;
  background: var(--bg-secondary);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.usecase-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(124,58,237,0.15);
}

.usecase-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
}

.usecase-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.usecase-text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
}

/* ============ REFERRAL ============ */
.referral {
  padding: var(--space-32) 0;
}

.referral-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: center;
  background: linear-gradient(135deg, #fef9f7, #f5f0ff, #f0f7ff);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-3xl);
  padding: var(--space-16) var(--space-12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.referral-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  line-height: 1.15;
}

.referral-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.referral-desc strong {
  color: var(--text-primary);
  font-weight: 800;
}

.referral-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.referral-tier {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
}

.referral-tier.highlight {
  background: linear-gradient(135deg, #fff5f5, #ffe3e3);
  border-color: var(--primary-200);
}

.tier-count {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--primary-500);
  min-width: 40px;
}

.tier-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.tier-equals {
  color: var(--text-tertiary);
  font-size: var(--text-lg);
}

.tier-reward {
  font-weight: 800;
  color: var(--success);
  margin-left: auto;
}

/* Referral Visual */
.referral-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.referral-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.chain-node {
  width: 120px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-2xl);
  text-align: center;
  font-weight: 800;
  font-size: var(--text-sm);
  position: relative;
}

.chain-node span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--success);
  margin-top: 2px;
}

.chain-node.you {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 6px 20px rgba(255,107,107,0.35);
}

.chain-node.friend {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.chain-node.more {
  background: linear-gradient(135deg, #f3f0ff, #e5dbff);
  border-color: var(--purple-200);
}

.chain-line {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--primary-300), var(--purple-300));
  border-radius: var(--radius-full);
}

/* ============ FAQ ============ */
.faq {
  padding: var(--space-32) 0;
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover { background: var(--bg-secondary); }

.faq-chevron {
  transition: transform var(--transition-base);
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-500);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer { max-height: 200px; }

.faq-answer p {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============ FINAL CTA ============ */
.final-cta {
  padding: var(--space-24) 0 var(--space-32);
}

.final-cta-card {
  text-align: center;
  padding: var(--space-20) var(--space-8);
  background: var(--bg-dark-section);
  border-radius: var(--radius-3xl);
  position: relative;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,107,0.15), rgba(124,58,237,0.1), transparent 70%);
  pointer-events: none;
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.text-gradient-light {
  background: linear-gradient(135deg, #ffa8a8, #d0bfff, #63e6be);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-cta-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

.final-cta-card .btn-cta-main {
  position: relative;
  z-index: 1;
}

.final-cta-note {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-4);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Logo accents */
.logo-accent { color: var(--purple-500); }
.logo-accent-light { color: var(--purple-300); }

/* ============ SECTION HEADER (shared) ============ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }

  .referral-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-10) var(--space-6);
  }

  .referral-visual { display: none; }
  .referral-tiers { max-width: 400px; margin: 0 auto var(--space-8); }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .usecases-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }

  .steps-row { flex-direction: column; gap: var(--space-6); max-width: 400px; }
  .step-connector-line { transform: rotate(90deg); padding: 0; }

  .hero-trust { flex-direction: column; gap: var(--space-1); }
  .trust-dot { display: none; }

  .final-cta-card { border-radius: var(--radius-2xl); padding: var(--space-12) var(--space-5); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .navbar-actions .btn-secondary { display: none; }
}
