/* Shared banner styles for both variants:
     index.html (NSFW) and sfw.html (SFW).
   Layout, breakpoints and animations are identical between them —
   only the headline copy, video files and click URL differ. */

/* FONT: Montserrat, self-hosted (latin subset of Google's variable font —
   one file covers every weight the banner uses). */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/montserrat-var.woff2') format('woff2');
}

:root {
  --bg: #000000;
  --violet-100: #cdb6ff;
  --violet-300: #a98cf7;
  --violet-500: #8b5cf6;
  --violet-700: #6d28d9;
  --violet-900: #3b1a78;
  --text-dim: #b9b4c7;
  --glow: rgba(139, 92, 246, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { width: 100%; height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Whole banner is one click target ─────────────────────────── */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 clamp(10px, 2.5vw, 32px);
  gap: clamp(12px, 2vw, 28px);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

/* ── Brand: headline + watermark, layered in the same slot ─────── */
.brand {
  position: relative;
  z-index: 2; /* keeps the oversized watermark above the video panels */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 1 auto;
  min-width: 0;
}

.swap { position: relative; }

.headline {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: clamp(17px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  filter: drop-shadow(0 2px 14px rgba(139, 92, 246, 0.35));
}

.headline .w {
  display: inline-block;
  background: linear-gradient(180deg, var(--violet-100) 0%, var(--violet-500) 55%, var(--violet-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: word-cycle 8s ease infinite both;
}
/* nth-of-type, not nth-child: the optional <br class="hl-break"> between
   "Your" and "AI" must not shift the stagger order */
.headline .w:nth-of-type(2) { animation-delay: 0.22s; }
.headline .w:nth-of-type(3) { animation-delay: 0.44s; }
.headline .w:nth-of-type(4) { animation-delay: 0.66s; }

/* Words enter at the top of each cycle (0–8%) — exactly while the
   watermark beneath them fades/blurs away — and exit at 44–50% before
   the watermark wipes back in. 0% and 100% frames match: no loop seam. */
@keyframes word-cycle {
  0%       { opacity: 0; transform: translateY(10px); }
  6%       { opacity: 1; transform: none; }
  44%      { opacity: 1; transform: none; }
  50%      { opacity: 0; transform: translateY(-10px); }
  100%     { opacity: 0; transform: translateY(10px); }
}

.watermark {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: min(46vh, 60px);
  width: auto;
  filter: drop-shadow(0 2px 14px rgba(139, 92, 246, 0.35));
  animation: wm-cycle 8s ease infinite both;
}

/* In: L→R wipe (51–63%) once the words are all but gone. Out: fade to 0
   with a blur (2–12%) as the words re-enter above. Clip resets unseen. */
@keyframes wm-cycle {
  0%   { opacity: 1; clip-path: inset(0 0 0 0);    filter: drop-shadow(0 2px 14px rgba(139, 92, 246, 0.35)) blur(0); }
  2%   { opacity: 1; clip-path: inset(0 0 0 0);    filter: drop-shadow(0 2px 14px rgba(139, 92, 246, 0.35)) blur(0); }
  12%  { opacity: 0; clip-path: inset(0 0 0 0);    filter: drop-shadow(0 2px 14px rgba(139, 92, 246, 0.35)) blur(7px); }
  30%  { opacity: 0; clip-path: inset(0 100% 0 0); filter: drop-shadow(0 2px 14px rgba(139, 92, 246, 0.35)) blur(0); }
  51%  { opacity: 1; clip-path: inset(0 100% 0 0); filter: drop-shadow(0 2px 14px rgba(139, 92, 246, 0.35)) blur(0); }
  63%  { opacity: 1; clip-path: inset(0 0 0 0);    filter: drop-shadow(0 2px 14px rgba(139, 92, 246, 0.35)) blur(0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0);    filter: drop-shadow(0 2px 14px rgba(139, 92, 246, 0.35)) blur(0); }
}

/* ── Middle: slanted video panels ─────────────────────────────────
   Three parallelograms side by side on wide screens; the right-most
   drops at <1000px; single panel in the mobile layout. */
.videos {
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 8px 0;
}

.vid {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  /* cap panel width at ~21:9 of its height (banner height minus the
     8px top/bottom padding) so the source footage isn't cropped
     vertically on wide screens; the group centers in the leftover space */
  max-width: calc((100vh - 16px) * 2.4);
  /* px-based slant so the edges stay parallel at any panel width */
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  /* subtle panel tint so the shapes read before the videos are uploaded;
     invisible once a video covers the tile */
  background: linear-gradient(165deg, #16121f, #0a0810);
}

.vid + .vid { margin-left: -8px; }

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

/* ── CTA ──────────────────────────────────────────────────────── */
.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(5px, 1vh, 12px);
  flex: 0 0 auto;
  text-align: center;
}

.try-free {
  font-weight: 900;
  font-size: clamp(13px, 1.4vw, 20px);
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 20%, var(--violet-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-wrap { position: relative; display: inline-flex; transition: transform 0.2s ease; }

/* Glow lives on its own layer, pulsed via opacity only — animating
   box-shadow directly repaints and flickers against the sheen/hover. */
.btn-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 20px var(--glow), 0 0 50px rgba(139, 92, 246, 0.3);
  animation: pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(12px, 1.3vw, 17px);
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  padding: clamp(11px, 2.2vh, 18px) clamp(20px, 2.4vw, 36px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet-500) 0%, var(--violet-700) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

/* sheen sweep across the button */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: sheen 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@keyframes sheen {
  0%, 55% { left: -80%; }
  100%    { left: 160%; }
}

.banner:hover .btn-wrap { transform: scale(1.04); }

.label-mobile { display: none; }
.hl-break { display: none; }

/* ── DESKTOP panel count: 4 only on very wide banners, 3 by default,
     2 when narrow (each panel stays closer to a 16:9 crop) ────────── */
.v4 { display: none; }

@media (min-width: 1450px) and (max-height: 159.9px) {
  .v4 { display: block; }
}

/* down to 2 panels: the headline breaks at its <br class="hl-break">
   into two centered lines, giving the remaining panels back the
   horizontal space; the watermark shrinks to stay inside the headline
   block. Where the break falls is per-variant (see each page's markup) */
@media (max-width: 999px) and (max-height: 159.9px) {
  .v3 { display: none; }
  .hl-break { display: block; }
  .headline { text-align: center; }
  .watermark { height: min(32vh, 42px); }
}

/* narrowest desktop: a single panel playing the all-reels stitch
   (same file as mobile), allowed to run off to the right and sit
   slightly behind the CTA */
@media (max-width: 779px) and (max-height: 159.9px) {
  .v2 { display: none; }
  .vid { max-width: none; }
  .cta { margin-left: -56px; z-index: 2; }
}

/* ── MOBILE: publisher renders the iframe 220px tall (vs 114px desktop).
     Everything centered in a vertical stack: headline (watermark layered
     behind it) top center → single video panel middle → CTA bottom. ──── */
@media (min-height: 160px) {
  .banner {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* bottom padding matches the flex gap so the CTA row sits dead-center
       in the black band below the video */
    padding: 10px 14px 6px;
    gap: 6px;
  }

  .brand { align-items: center; flex: 0 0 auto; }

  .headline {
    white-space: nowrap;
    font-size: clamp(17px, 5.8vw, 26px);
    text-align: center;
  }

  .watermark { height: min(18vh, 40px); }

  /* single full-bleed rectangle, edge to edge */
  .videos {
    flex: 1 1 auto;
    align-self: stretch;
    margin: 0 -14px;
    padding: 0;
    min-height: 0;
  }
  .v2, .v3 { display: none; }
  .vid { clip-path: none; background: #0a0810; max-width: none; }

  /* CTA collapses to one row — text left of the button — so the
     full-width video above gets the reclaimed height */
  .cta { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 12px; }
  .try-free { font-size: clamp(15px, 4.5vw, 20px); line-height: 1; }
  .btn { font-size: clamp(12px, 3.4vw, 15px); padding: 7px 20px; }
  .label-desktop { display: none; }
  .label-mobile { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .headline .w { animation: none; opacity: 1; }
  .watermark { display: none; }
  .btn-wrap::before, .btn::after { animation: none; }
}
