/* ============================================
   VideoGen W2A Landing Page — Mobile-first H5
   ============================================ */

/* -------- Reset & base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0a0612;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-bottom: 80px; /* leave room for sticky CTA */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:root {
  --pink: #ff3d8b;
  --purple: #9b3dff;
  --hot: linear-gradient(135deg, #ff3d8b 0%, #9b3dff 100%);
  --hot-2: linear-gradient(135deg, #ff5e9c 0%, #b85cff 50%, #5d8bff 100%);
  --bg: #0a0612;
  --bg-2: #140a24;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --muted: rgba(255, 255, 255, 0.65);
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--hot);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(255, 61, 139, 0.55), 0 4px 12px -2px rgba(155, 61, 255, 0.4);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--xl { padding: 18px 32px; font-size: 18px; min-width: 260px; }
.btn--small { padding: 8px 18px; font-size: 14px; }

.btn--pulse {
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(255, 61, 139, 0.55), 0 0 0 0 rgba(255, 61, 139, 0.6); }
  50% { box-shadow: 0 10px 30px -8px rgba(255, 61, 139, 0.7), 0 0 0 10px rgba(255, 61, 139, 0); }
}

/* -------- Topbar -------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  padding: env(safe-area-inset-top) 0 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 720px;
  margin: 0 auto;
}
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #222;
  object-fit: cover;
}
.topbar__meta { display: flex; flex-direction: column; line-height: 1.15; }
.topbar__name { font-weight: 700; font-size: 15px; }
.topbar__sub { font-size: 11px; color: var(--muted); }

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(155, 61, 255, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 6, 18, 0.4) 0%, rgba(10, 6, 18, 0.55) 50%, rgba(10, 6, 18, 0.95) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
  animation: fadeInUp 0.8s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title {
  font-size: clamp(38px, 11vw, 64px);
  line-height: 1.02;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero__title em {
  font-style: normal;
  background: var(--hot-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(15px, 4.2vw, 18px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero__sub strong { color: #fff; font-weight: 700; }

.hero__stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 22px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.stars { color: #ffcc00; letter-spacing: 1px; }
.stars__num { font-weight: 700; }
.stars__count { color: var(--muted); }

.hero__cta {
  margin: 0 auto;
}
.hero__hint {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero__scrollcue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scrollcue span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}
.hero__scrollcue span::after {
  content: '';
  position: absolute;
  left: 50%; top: 6px;
  width: 3px; height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* -------- Feature pills -------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px 8px;
  max-width: 720px;
  margin: 0 auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* -------- Showcase grid -------- */
.showcase {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}
.showcase__hero {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}
.showcase__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.showcase__grid .card {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}
.showcase__grid .card video,
.showcase__hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------- Trust strip -------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 24px 16px;
  max-width: 720px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.trust__item {
  text-align: center;
}
.trust__num {
  font-size: clamp(20px, 6vw, 26px);
  font-weight: 800;
  background: var(--hot-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust__lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* -------- Section common -------- */
section {
  padding: 60px 20px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.section-head { text-align: center; margin-bottom: 32px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink);
  margin-bottom: 12px;
}
.eyebrow--light { color: #fff; opacity: 0.8; }
.section-head h2 {
  font-size: clamp(28px, 7.5vw, 40px);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 15px;
}
.gradient-text {
  background: var(--hot-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__cta {
  display: flex;
  margin: 32px auto 0;
  width: max-content;
}

/* -------- Tabs -------- */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -20px 24px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}
.tab.is-active {
  background: var(--hot);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px -4px rgba(255, 61, 139, 0.5);
}

/* -------- Tab panels / cards -------- */
.tab-panel { display: none; animation: fadeInUp 0.4s ease; }
.tab-panel.is-active { display: block; }

.panel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  margin-bottom: 16px;
}
.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 1 / 1;
  transition: transform 0.2s ease;
}
.card:active { transform: scale(0.98); }
.card--tall {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__tag {
  position: absolute;
  left: 10px; bottom: 10px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.panel-caption {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 0 8px;
}
.panel-caption strong { color: #fff; font-weight: 700; }

/* -------- Pitch -------- */
.pitch {
  background: linear-gradient(180deg, transparent 0%, var(--bg-2) 40%, var(--bg-2) 60%, transparent 100%);
  max-width: 100%;
  padding-left: 0; padding-right: 0;
}
.pitch__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 32px;
}
.pitch__copy h2 {
  font-size: clamp(26px, 7vw, 36px);
  margin-bottom: 22px;
}
.pitch__list {
  margin-bottom: 24px;
}
.pitch__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.check {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--hot);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.pitch__media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 20px 60px -10px rgba(255, 61, 139, 0.3);
}
.pitch__media img { width: 100%; height: 100%; object-fit: cover; }

/* -------- Gallery (horizontal infinite) -------- */
.gallery {
  max-width: 100%;
  padding-left: 0; padding-right: 0;
}
.gallery .section-head { padding: 0 20px; }
.gallery__scroll {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gallery__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: scrollX 40s linear infinite;
}
.gallery__track img {
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--card);
}
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------- How it works -------- */
.steps {
  display: grid;
  gap: 16px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hot);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.step:hover::before { opacity: 0.08; }
.step > * { position: relative; z-index: 1; }
.step__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hot);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px -4px rgba(255, 61, 139, 0.5);
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* -------- Reviews -------- */
.reviews__grid {
  display: grid;
  gap: 14px;
}
.review {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.review__stars {
  color: #ffcc00;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.review p {
  font-size: 15px;
  margin-bottom: 12px;
}
.review footer {
  font-size: 13px;
  color: var(--muted);
}

/* -------- FAQ -------- */
.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: background 0.2s ease;
}
.faq__item[open] { background: rgba(255, 255, 255, 0.08); }
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 10px;
}

/* -------- Final CTA -------- */
.final {
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(155, 61, 255, 0.25), transparent 70%);
}
.final h2 {
  font-size: clamp(32px, 9vw, 48px);
  margin-bottom: 14px;
}
.final p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.final__hint {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* -------- Footer -------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
}
.footer__inner { max-width: 720px; margin: 0 auto; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer__icon { width: 28px; height: 28px; border-radius: 7px; }
.footer__links {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}
.footer__links a:active { color: #fff; }
.footer__copy { font-size: 12px; color: var(--muted); }

/* -------- Sticky bottom CTA -------- */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 100;
  background: rgba(15, 8, 26, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 8px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.sticky-cta.is-hidden {
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}
.sticky-cta__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sticky-cta__brand img {
  width: 38px; height: 38px;
  border-radius: 9px;
  flex: 0 0 38px;
}
.sticky-cta__name {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.15;
}
.sticky-cta__sub {
  font-size: 11px;
  color: var(--muted);
}

/* ============================================
   Responsive — Tablet & up
   ============================================ */
@media (min-width: 640px) {
  body { padding-bottom: 0; }
  .sticky-cta { max-width: 380px; }

  .pitch__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

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

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

  .panel-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .card--tall {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }

  .gallery__track img {
    width: 220px;
    height: 300px;
  }
}

@media (min-width: 900px) {
  section { padding: 80px 20px; }
  .hero { padding: 100px 20px; }
}

/* -------- Reveal on scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .gallery__track { animation: none; }
}
