/* ============================================
   POSIE — AI Photo & Video Generator
   Premium Landing Page Stylesheet
   ============================================ */

/* ── Design Tokens ── */
:root {
  /* Colors */
  --clr-bg:             #000000;
  --clr-bg-card:        #1C1C1E;
  --clr-bg-card-hover:  #2C2C2E;
  --clr-surface:        #111113;
  --clr-border:         rgba(255,255,255,0.08);
  --clr-border-hover:   rgba(255,255,255,0.15);

  --clr-white:          #FFFFFF;
  --clr-text:           #FFFFFF;
  --clr-text-secondary: #A1A1AA;
  --clr-text-muted:     #71717A;

  /* Accent Gradients */
  --grad-primary:       linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  --grad-primary-hover: linear-gradient(135deg, #C084FC 0%, #F472B6 100%);
  --grad-gold:          linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --grad-gold-hover:    linear-gradient(135deg, #FBBF24 0%, #F87171 100%);
  --grad-hero-bg:       radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.15) 0%, rgba(0,0,0,0) 60%);
  --grad-cta-glow:      0 0 40px rgba(168,85,247,0.35), 0 0 80px rgba(236,72,153,0.15);
  --grad-card-glow:     0 8px 32px rgba(0,0,0,0.5);

  /* Typography */
  --ff-primary:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fw-regular:         400;
  --fw-medium:          500;
  --fw-semibold:        600;
  --fw-bold:            700;
  --fw-extrabold:       800;

  --fs-xs:              0.75rem;   /* 12px */
  --fs-sm:              0.875rem;  /* 14px */
  --fs-base:            1rem;      /* 16px */
  --fs-lg:              1.125rem;  /* 18px */
  --fs-xl:              1.25rem;   /* 20px */
  --fs-2xl:             1.5rem;    /* 24px */
  --fs-3xl:             1.875rem;  /* 30px */
  --fs-4xl:             2.25rem;   /* 36px */
  --fs-5xl:             3rem;      /* 48px */
  --fs-6xl:             3.75rem;   /* 60px */
  --fs-hero:            4.5rem;    /* 72px */

  --lh-tight:           1.1;
  --lh-snug:            1.25;
  --lh-normal:          1.5;
  --lh-relaxed:         1.65;

  --ls-tight:           -0.025em;
  --ls-normal:          0;
  --ls-wide:            0.05em;

  /* Spacing (8px grid) */
  --sp-1:  0.25rem;   /* 4 */
  --sp-2:  0.5rem;    /* 8 */
  --sp-3:  0.75rem;   /* 12 */
  --sp-4:  1rem;      /* 16 */
  --sp-5:  1.25rem;   /* 20 */
  --sp-6:  1.5rem;    /* 24 */
  --sp-8:  2rem;      /* 32 */
  --sp-10: 2.5rem;    /* 40 */
  --sp-12: 3rem;      /* 48 */
  --sp-16: 4rem;      /* 64 */
  --sp-20: 5rem;      /* 80 */
  --sp-24: 6rem;      /* 96 */
  --sp-32: 8rem;      /* 128 */

  /* Border Radius */
  --br-sm:   8px;
  --br-md:   12px;
  --br-lg:   16px;
  --br-xl:   24px;
  --br-2xl:  32px;
  --br-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl:   0 16px 48px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(168,85,247,0.2);

  /* Transitions */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);

  --dur-fast:     200ms;
  --dur-md:       400ms;
  --dur-slow:     600ms;
  --dur-hero:     800ms;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    72px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ── Loading Screen ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-premium), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.96); }
  50%      { opacity: 1;   transform: scale(1); }
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--clr-bg-card);
  border-radius: var(--br-full);
  margin: var(--sp-6) auto 0;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--br-full);
  animation: loaderFill 1.5s var(--ease-premium) forwards;
}

@keyframes loaderFill {
  to { width: 100%; }
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--dur-md) var(--ease-smooth),
              box-shadow var(--dur-md) var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(0,0,0,0.85);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--br-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  overflow: hidden;
}

.nav-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-logo-text {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-secondary);
  position: relative;
  transition: color var(--dur-fast) var(--ease-smooth);
  padding: var(--sp-2) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width var(--dur-md) var(--ease-premium);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  background: var(--grad-gold);
  color: var(--clr-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--br-full);
  transition: transform var(--dur-fast) var(--ease-premium),
              box-shadow var(--dur-md) var(--ease-smooth);
  will-change: transform;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(245,158,11,0.4);
}

.nav-cta:active {
  transform: scale(0.97);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: var(--br-full);
  transition: all var(--dur-md) var(--ease-premium);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero-bg);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 30% 50%, rgba(168,85,247,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(236,72,153,0.06) 0%, transparent 50%);
  animation: heroGradientShift 12s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroGradientShift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, 2%) rotate(2deg); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(168,85,247,0.3);
  border-radius: 50%;
  animation: heroParticleFloat 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; animation-duration: 9s; }
.hero-particle:nth-child(3) { left: 55%; top: 15%; animation-delay: 2s; animation-duration: 6s; }
.hero-particle:nth-child(4) { left: 75%; top: 45%; animation-delay: 0.5s; animation-duration: 10s; }
.hero-particle:nth-child(5) { left: 90%; top: 70%; animation-delay: 1.5s; animation-duration: 8s; }
.hero-particle:nth-child(6) { left: 40%; top: 80%; animation-delay: 3s; animation-duration: 7s; }

@keyframes heroParticleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
  10%      { opacity: 0.6; }
  50%      { transform: translateY(-80px) scale(1.5); opacity: 0.3; }
  90%      { opacity: 0.6; }
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--br-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: #C084FC;
  margin-bottom: var(--sp-8);
  opacity: 0;
  transform: translateY(20px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #A855F7;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(168,85,247,0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(168,85,247,0); }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-6);
  opacity: 0;
  transform: translateY(30px);
}

.hero-title-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-10);
  max-width: 480px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  opacity: 0;
  transform: translateY(30px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-8);
  background: var(--grad-primary);
  color: var(--clr-white);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--br-full);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-premium),
              box-shadow var(--dur-md) var(--ease-smooth);
  will-change: transform;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary-hover);
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease-smooth);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--grad-cta-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary .btn-icon {
  position: relative;
  z-index: 1;
  transition: transform var(--dur-md) var(--ease-premium);
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-8);
  background: transparent;
  color: var(--clr-white);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  border-radius: var(--br-full);
  border: 1px solid var(--clr-border-hover);
  transition: all var(--dur-md) var(--ease-premium);
  will-change: transform;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.03);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 420px;
  height: 520px;
  border-radius: var(--br-2xl);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--grad-primary);
  border-radius: var(--br-2xl);
  z-index: -1;
  opacity: 0.5;
  filter: blur(20px);
  animation: imageGlow 4s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes imageGlow {
  0%   { opacity: 0.3; }
  100% { opacity: 0.6; }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--br-2xl);
}

/* Floating Cards around hero image */
.hero-float-card {
  position: absolute;
  background: rgba(28,28,30,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--br-lg);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  opacity: 0;
  will-change: transform;
  z-index: 2;
}

.hero-float-card--style {
  top: 15%;
  right: -30px;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-float-card--views {
  bottom: 25%;
  left: -40px;
  animation: floatCard 6s ease-in-out infinite 1s;
}

.hero-float-card--rating {
  bottom: 10%;
  right: -20px;
  animation: floatCard 6s ease-in-out infinite 2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--br-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
}

.float-card-icon--purple {
  background: rgba(168,85,247,0.2);
}

.float-card-icon--pink {
  background: rgba(236,72,153,0.2);
}

.float-card-icon--gold {
  background: rgba(245,158,11,0.2);
}

.float-card-text {
  display: flex;
  flex-direction: column;
}

.float-card-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  font-weight: var(--fw-medium);
}

.float-card-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

/* ── Social Proof Strip ── */
.social-proof {
  padding: var(--sp-16) 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}

.social-proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
  flex-wrap: wrap;
}

.proof-stat {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.proof-stat-number {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-stat-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  margin-top: var(--sp-1);
  font-weight: var(--fw-medium);
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--clr-border);
}

/* ── Section Shared ── */
.section {
  padding: var(--sp-24) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-16);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--br-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: #C084FC;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--sp-6);
}

.section-title {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-4);
}

.section-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--sp-6);
}

.feature-card {
  position: relative;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--br-2xl);
  overflow: hidden;
  transition: transform var(--dur-md) var(--ease-premium),
              box-shadow var(--dur-md) var(--ease-smooth),
              border-color var(--dur-md) var(--ease-smooth);
  will-change: transform;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--grad-card-glow);
  border-color: var(--clr-border-hover);
}

.feature-card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-premium);
}

.feature-card:hover .feature-card-image {
  transform: scale(1.05);
}

.feature-card-body {
  padding: var(--sp-6);
}

.feature-card-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  background: rgba(168,85,247,0.12);
  border-radius: var(--br-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: #C084FC;
  margin-bottom: var(--sp-3);
}

.feature-card-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}

.feature-card-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
}

.feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(236,72,153,0.1));
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease-smooth);
  pointer-events: none;
}

.feature-card:hover .feature-card-overlay {
  opacity: 1;
}

/* ── Viral Styles Gallery ── */
.gallery-section {
  background: var(--clr-surface);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}

.gallery-tab {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--br-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-secondary);
  border: 1px solid var(--clr-border);
  transition: all var(--dur-md) var(--ease-premium);
}

.gallery-tab.active,
.gallery-tab:hover {
  background: var(--grad-primary);
  color: var(--clr-white);
  border-color: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.gallery-item {
  position: relative;
  border-radius: var(--br-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--dur-md) var(--ease-premium);
  will-change: transform;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-premium);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6) var(--sp-4) var(--sp-4);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease-smooth);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.gallery-item-style {
  font-size: var(--fs-xs);
  color: var(--clr-text-secondary);
}

/* ── How It Works ── */
.how-it-works {
  background: var(--clr-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.666% + 26px);
  right: calc(16.666% + 26px);
  height: 2px;
  background: linear-gradient(90deg, rgba(168,85,247,0.3), rgba(236,72,153,0.3), rgba(168,85,247,0.3));
}

.step-card {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  border-radius: 50%;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
}

.step-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 300px;
  margin: 0 auto;
}

/* ── Testimonials ── */
.testimonials {
  background: var(--clr-surface);
  overflow: hidden;
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease-premium);
}

.testimonial-card {
  min-width: 100%;
  padding: var(--sp-10);
  text-align: center;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-xl);
  color: #FBBF24;
}

.testimonial-text {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-8);
  color: var(--clr-text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
}

.testimonial-info {
  text-align: left;
}

.testimonial-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
}

.testimonial-role {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-border-hover);
  transition: all var(--dur-md) var(--ease-premium);
  cursor: pointer;
  border: none;
}

.testimonial-dot.active {
  background: #A855F7;
  width: 24px;
  border-radius: var(--br-full);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.testimonial-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  transition: all var(--dur-md) var(--ease-premium);
  color: var(--clr-text);
}

.testimonial-nav-btn:hover {
  background: rgba(168,85,247,0.2);
  border-color: rgba(168,85,247,0.4);
}

/* ── Pricing Section ── */
.pricing-section {
  background: var(--clr-surface);
}

.pricing-features-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-secondary);
}

.pricing-feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(168,85,247,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C084FC;
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  max-width: 960px;
  margin: 0 auto var(--sp-12);
}

.pricing-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--br-2xl);
  padding: var(--sp-8);
  text-align: center;
  position: relative;
  transition: transform var(--dur-md) var(--ease-premium),
              box-shadow var(--dur-md) var(--ease-smooth),
              border-color var(--dur-md) var(--ease-smooth);
  will-change: transform;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--grad-card-glow);
  border-color: var(--clr-border-hover);
}

.pricing-card--popular {
  border-color: rgba(168,85,247,0.4);
  background: linear-gradient(180deg, rgba(168,85,247,0.08) 0%, var(--clr-bg-card) 30%);
  position: relative;
  transform: scale(1.03);
}

.pricing-card--popular:hover {
  transform: translateY(-8px) scale(1.03);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  right: var(--sp-6);
  padding: var(--sp-1) var(--sp-3);
  background: var(--grad-primary);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  border-radius: var(--br-sm);
  letter-spacing: var(--ls-wide);
}

.pricing-card-header {
  margin-bottom: var(--sp-4);
}

.pricing-card-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
}

.pricing-card-price {
  margin-bottom: var(--sp-4);
}

.pricing-amount {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-period {
  font-size: var(--fs-base);
  color: var(--clr-text-secondary);
  font-weight: var(--fw-medium);
}

.pricing-card-original {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-2);
}

.pricing-strikethrough {
  text-decoration: line-through;
  color: var(--clr-text-muted);
}

.pricing-card-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-6);
  line-height: var(--lh-relaxed);
}

.pricing-card-btn {
  display: block;
  width: 100%;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid var(--clr-border-hover);
  border-radius: var(--br-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  text-align: center;
  transition: all var(--dur-md) var(--ease-premium);
  will-change: transform;
}

.pricing-card-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.03);
}

.pricing-card-btn:active {
  transform: scale(0.97);
}

.pricing-card-btn--primary {
  background: var(--grad-primary);
  border-color: transparent;
}

.pricing-card-btn--primary:hover {
  box-shadow: var(--grad-cta-glow);
  transform: scale(1.05);
}

.pricing-credits-list {
  margin-bottom: var(--sp-6);
}

.pricing-credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.pricing-credit-row:last-child {
  border-bottom: none;
}

.pricing-credit-price {
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
}

.pricing-footer {
  text-align: center;
}

.pricing-footer-text {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-3);
}

.pricing-footer-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
}

.pricing-footer-link {
  color: var(--clr-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.pricing-footer-link:hover {
  color: var(--clr-white);
}

.pricing-footer-sep {
  color: var(--clr-text-muted);
}

/* ── Download Section ── */
.download-section {
  position: relative;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(168,85,247,0.08) 0%, transparent 60%);
}

.download-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-16);
  background: var(--clr-bg-card);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--br-2xl);
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
}

.download-icon {
  font-size: 3rem;
  margin-bottom: var(--sp-4);
}

.download-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-4);
}

.download-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-10);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--lh-relaxed);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.download-store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--br-lg);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  transition: all var(--dur-md) var(--ease-premium);
  will-change: transform;
}

.download-store-btn--apple {
  background: var(--clr-white);
  color: #000;
}

.download-store-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}

.download-store-btn:active {
  transform: scale(0.97);
}

.download-store-icon {
  flex-shrink: 0;
}

.download-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.download-store-small {
  font-size: 10px;
  font-weight: var(--fw-regular);
  opacity: 0.7;
}

.download-store-name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

.download-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.download-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--br-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: #C084FC;
}

/* ── Legal Pages ── */
.legal-page {
  padding-top: calc(var(--nav-height) + var(--sp-12));
  padding-bottom: var(--sp-16);
  min-height: 100vh;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.legal-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--sp-2);
}

.legal-updated {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-10);
}

.legal-content h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
  color: var(--clr-white);
}

.legal-content h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.legal-content p {
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-4);
}

.legal-content ul {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-6);
}

.legal-content li {
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-2);
  list-style: disc;
}

.legal-content a {
  color: #C084FC;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--clr-white);
}

/* ── Footer ── */
.footer {
  padding: var(--sp-16) 0 var(--sp-8);
  border-top: 1px solid var(--clr-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.footer-brand-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
  margin: var(--sp-4) 0 var(--sp-6);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--br-sm);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  font-size: var(--fs-lg);
  transition: all var(--dur-md) var(--ease-premium);
}

.footer-social-link:hover {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.3);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-link {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  transition: color var(--dur-fast) var(--ease-smooth);
  position: relative;
  width: fit-content;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--grad-primary);
  transition: width var(--dur-md) var(--ease-premium);
}

.footer-link:hover {
  color: var(--clr-white);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-copy {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.footer-badges {
  display: flex;
  gap: var(--sp-3);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--br-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  transition: all var(--dur-md) var(--ease-premium);
}

.store-badge:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-2px);
}

.store-badge-icon {
  font-size: var(--fs-xl);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-small {
  font-size: 9px;
  color: var(--clr-text-muted);
}

/* ── Scroll Animation Base Classes ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-premium),
              transform var(--dur-slow) var(--ease-premium);
}

.reveal.revealed {
  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; }
.reveal-delay-6 { transition-delay: 0.6s; }

.reveal-scale {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity var(--dur-slow) var(--ease-premium),
              transform var(--dur-slow) var(--ease-premium);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Counter Animation ── */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ── Mobile Nav Drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--sp-8);
  flex-direction: column;
  gap: var(--sp-6);
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--dur-md) var(--ease-premium);
  pointer-events: none;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-nav-link {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-secondary);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--dur-fast) var(--ease-smooth);
}

.mobile-nav-link:hover {
  color: var(--clr-white);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 3.5rem;
    --fs-5xl:  2.5rem;
    --fs-4xl:  2rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-wrapper {
    width: 320px;
    height: 400px;
  }

  .hero-float-card--style { right: calc(50% - 220px); }
  .hero-float-card--views { left: calc(50% - 220px); }
  .hero-float-card--rating { right: calc(50% - 200px); }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .steps-grid::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card--popular {
    transform: none;
  }

  .pricing-card--popular:hover {
    transform: translateY(-8px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 2.75rem;
    --fs-5xl:  2rem;
    --fs-4xl:  1.75rem;
    --fs-2xl:  1.25rem;
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-proof-inner {
    gap: var(--sp-8);
  }

  .proof-divider {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .download-card {
    padding: var(--sp-8);
  }

  .pricing-features-list {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-float-card {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-hero: 2.25rem;
    --fs-5xl:  1.75rem;
    --sp-6:    1.25rem;
  }

  .hero-image-wrapper {
    width: 280px;
    height: 350px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  .testimonial-text {
    font-size: var(--fs-lg);
  }

  .download-store-btn {
    padding: var(--sp-3) var(--sp-5);
  }

  .download-features {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Parallax helper ── */
[data-parallax] {
  will-change: transform;
}

/* ── Utility ── */
.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
