﻿/* ============================================================================
   Episodeo - landing page
   "Premium cinema, after dark" - single committed dark theme.
   Display: Bricolage Grotesque · Body: Montserrat
   ========================================================================== */

:root {
  /* Brand */
  --violet: #B95CFF;
  --violet-dark: #8B1CFF;
  --indigo: #5A4CFF;
  --blue:   #3B82FF;
  --cyan:   #00D5FF;
  --purple: var(--violet);
  --rose:   var(--violet);
  --gold:   var(--cyan);
  --violet-2: var(--violet-dark);

  /* Grounds - neutrals biased toward violet, chosen not defaulted */
  --bg:      #08070d;
  --bg-2:    #0d0b16;
  --panel:   #131120;
  --panel-2: #17142a;

  /* Ink */
  --text:      #f6f3fc;
  --text-dim:  #a9a2c4;
  --text-mute: #736c94;

  /* Lines */
  --line:   rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Signature gradient */
  --grad: linear-gradient(to bottom right, #B95CFF 0%, #8B1CFF 24%, #5A4CFF 50%, #3B82FF 74%, #00D5FF 100%);
  --grad-soft: linear-gradient(to bottom right, rgba(185, 92, 255, 0.9), rgba(139, 28, 255, 0.9), rgba(90, 76, 255, 0.9), rgba(59, 130, 255, 0.9), rgba(0, 213, 255, 0.9));

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --shadow-card: 0 30px 80px -50px rgba(0, 0, 0, 0.95);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

::selection { background: rgba(185, 92, 255, 0.35); color: #fff; }

a { color: inherit; }

/* ---------- Ambient background: base + aurora + grain ---------- */
.bg-gradient,
.bg-glow,
.grain { position: fixed; inset: 0; pointer-events: none; }

.bg-gradient {
  z-index: -4;
  background:
    radial-gradient(60% 42% at 78% -4%, rgba(0, 213, 255, 0.13), transparent 60%),
    radial-gradient(52% 40% at 8% 8%, rgba(185, 92, 255, 0.14), transparent 62%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 620px);
}

/* Slow-drifting aurora blobs - GPU-friendly (transform/opacity only) */
.bg-glow { z-index: -3; overflow: hidden; }
.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.bg-glow::before {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -8vw; right: -6vw;
  background: radial-gradient(circle, rgba(90, 76, 255, 0.52), transparent 68%);
  animation: auroraA 26s ease-in-out infinite alternate;
}
.bg-glow::after {
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  top: 34vh; left: -10vw;
  background: radial-gradient(circle, rgba(0, 213, 255, 0.24), transparent 66%);
  animation: auroraB 32s ease-in-out infinite alternate;
}
@keyframes auroraA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6vw, 6vh, 0) scale(1.14); }
}
@keyframes auroraB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vw, -4vh, 0) scale(1.1); }
}

/* Film grain - very subtle, sells the "cinema" feel */
.grain {
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hidden { display: none; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  z-index: 60; background: var(--grad);
  box-shadow: 0 0 12px rgba(185, 92, 255, 0.8);
  transition: width 0.05s linear;
}

/* ---------- Layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(38px, 5.5vw, 78px) 0; }

/* ---------- Header ---------- */
.site-header {
  padding: 18px max(24px, calc((100% - var(--maxw)) / 2 + 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  background: linear-gradient(180deg, rgba(8, 7, 13, 0.78), rgba(8, 7, 13, 0.30));
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: linear-gradient(180deg, rgba(8, 7, 13, 0.92), rgba(8, 7, 13, 0.66));
  padding-top: 13px; padding-bottom: 13px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: auto; height: 38px; display: block; }
.brand-wordmark { height: 21px; width: auto; display: block; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name-sm { font-size: 1.1rem; }

.header-actions { display: flex; align-items: center; gap: 10px; }
/* Segmented language toggle, mirrors the in-app All/Movies/Series control */
.lang-switch {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.lang-switch a {
  padding: 5px 13px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.03em;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 4px 12px -5px rgba(185, 92, 255, 0.75);
}

/* ---------- Buttons ---------- */
.btn {
  --_lift: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, opacity 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 40px -14px rgba(185, 92, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { transform: translateY(var(--_lift)); box-shadow: 0 22px 54px -14px rgba(185, 92, 255, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.34); }
/* Sheen sweep */
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}
.btn-primary:hover::after { transform: translateX(130%); }

.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(185, 92, 255, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -14px rgba(90, 76, 255, 0.7);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 213, 255, 0.07); transform: translateY(-1px); }

/* ---------- Chips / eyebrow / tags ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c9f6ff;
  background: rgba(0, 213, 255, 0.09);
  border: 1px solid rgba(0, 213, 255, 0.3);
  padding: 8px 15px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: 0 12px 34px -24px rgba(0, 213, 255, 0.75);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #d8c7ff;
  background: rgba(185, 92, 255, 0.12);
  border: 1px solid rgba(185, 92, 255, 0.32);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); }

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.gradient-text {
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 11s ease-in-out infinite;
}
@keyframes gradFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.42rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: clamp(1.0rem, 1.7vw, 1.16rem);
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 30px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 52px;
  padding-top: clamp(44px, 6vw, 78px);
  padding-bottom: clamp(56px, 8vw, 104px);
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
  z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 7, 13, 0.72) 12%, rgba(8, 7, 13, 0.18) 32%, rgba(8, 7, 13, 0.18) 68%, rgba(8, 7, 13, 0.72) 88%, var(--bg) 100%),
    radial-gradient(80% 64% at 52% 12%, transparent 0%, rgba(8, 7, 13, 0.42) 46%, var(--bg) 86%),
    linear-gradient(180deg, transparent 30%, rgba(8, 7, 13, 0.72) 74%, var(--bg) 96%);
}
.hero-copy { max-width: 580px; position: relative; z-index: 1; }

/* Cinema poster field behind hero (populated by tvdb-backdrops.js) */
.cinema-field {
  position: absolute;
  top: -4%; left: 50%; width: 100vw; margin-left: -50vw;
  z-index: -3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: rotate(-7deg) scale(1.05);
  transform-origin: center;
  opacity: 0.52;
  pointer-events: none;
  overflow: hidden;
  padding: 0 24px;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 36%, transparent 78%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 36%, transparent 78%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.poster-row {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: posterSlideLeft 78s linear infinite;
}
.poster-row:nth-child(2) { animation-name: posterSlideRight; transform: translateX(-12%); }
.poster-row:nth-child(3) { animation-duration: 96s; }
.poster-row span {
  flex: 0 0 auto;
  width: 106px; height: 156px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #20135a, var(--violet));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 36px -22px rgba(0, 0, 0, 0.95);
}
.poster-row-wide span { width: 212px; height: 120px; }
.poster-row span::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 55%);
}
.poster-row span:nth-child(4n + 1) { background: linear-gradient(160deg, #20135a, var(--violet)); }
.poster-row span:nth-child(4n + 2) { background: linear-gradient(160deg, #1f1b66, var(--indigo)); }
.poster-row span:nth-child(4n + 3) { background: linear-gradient(160deg, #062f4c, var(--cyan)); }
.poster-row span:nth-child(4n + 4) { background: linear-gradient(160deg, #12256a, var(--blue)); }
.poster-row span.poster-live { background-position: center; background-size: cover; }
@keyframes posterSlideLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes posterSlideRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.hero-visual { display: flex; justify-content: center; position: relative; z-index: 1; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  border-radius: 44px;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(160deg, #2a2340, #0c0914);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.66),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 130px rgba(185, 92, 255, 0.24);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
}
.phone::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 30%, rgba(185, 92, 255, 0.24));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}
.phone img {
  display: block;
  width: 288px;
  max-width: 100%;
  border-radius: 35px;
}
.phone-sm img { width: 258px; }

/* Floating badges around hero phone */
.phone-wrap { position: relative; }
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(19, 17, 32, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 46px -24px rgba(0, 0, 0, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
}
.float-badge .fb-ico {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 0.95rem;
}
.float-badge small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--text-mute); letter-spacing: 0.02em; }
.float-badge-a { top: 12%; left: -8%; animation: floaty 6s ease-in-out infinite; }
.float-badge-b { bottom: 14%; right: -10%; animation: floaty 7s ease-in-out infinite 0.8s; }
.float-badge-a .fb-ico { background: rgba(0, 213, 255, 0.16); color: var(--cyan); }
.float-badge-b .fb-ico { background: rgba(185, 92, 255, 0.16); color: var(--violet); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Signup / notes ---------- */
.waitlist-cta { margin-bottom: 6px; }
.signup-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 14px; }
.age-note { font-size: 0.8rem; color: var(--text-mute); margin-top: 8px; max-width: 48ch; }
.final-age-note { margin: 16px auto 0; }
.success { font-size: 1.15rem; font-weight: 700; color: var(--text); padding: 16px 0; }

/* Trust strip under hero CTA */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 26px;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
}
.trust-strip span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}

/* ---------- Import bridge (TV Time) ---------- */
.import-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(185, 92, 255, 0.16), transparent 56%),
    radial-gradient(120% 130% at 100% 100%, rgba(0, 213, 255, 0.11), transparent 56%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(34px, 6vw, 60px);
  text-align: center;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.import-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c9f6ff;
  background: rgba(0, 213, 255, 0.1);
  border: 1px solid rgba(0, 213, 255, 0.32);
  padding: 8px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.import-card h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.import-card > p { color: var(--text-dim); font-size: 1.08rem; max-width: 50ch; margin: 0 auto; }
.import-actions { margin-top: 26px; }
.import-hint { font-size: 0.84rem; color: var(--text-mute); margin-top: 16px; }

/* ---------- Section titles ---------- */
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 11s ease-in-out infinite;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- Showcase rows ---------- */
.showcase { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 72px); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}
.row-reverse { direction: rtl; }
.row-reverse > * { direction: ltr; }
.row .phone { justify-self: center; }
.row-copy { position: relative; z-index: 1; max-width: 500px; }
@media (min-width: 901px) {
  .row:not(.row-reverse) .row-copy { margin-right: auto; }
  .row-reverse .row-copy { margin-left: auto; }
}

/* Trending poster accent filling the empty outer gutter of each showcase row */
.row-art {
  position: absolute; top: 50%; z-index: 0;
  display: flex; gap: 16px;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(130% 120% at 50% 42%, #000 52%, transparent 100%);
  mask-image: radial-gradient(130% 120% at 50% 42%, #000 52%, transparent 100%);
}
.row:not(.row-reverse) .row-art { right: 6px; transform: translateY(-50%) rotate(6deg); }
.row-reverse .row-art { left: 6px; transform: translateY(-50%) rotate(-6deg); }
.row-art .poster-fill { width: 112px; height: 164px; border-radius: 15px; }
.row-art .poster-fill:nth-child(2) { margin-top: 44px; }

.row-copy h3 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
  text-wrap: balance;
}
.row-copy p { color: var(--text-dim); font-size: 1.06rem; max-width: 46ch; }
.row-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.row-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.96rem; color: var(--text-dim);
}
.row-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px; margin-top: 2px;
  border-radius: 6px;
  background: var(--grad-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.55 17.6 4.9 12.95l1.4-1.4 3.25 3.25 8.15-8.15 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.55 17.6 4.9 12.95l1.4-1.4 3.25 3.25 8.15-8.15 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.row-reverse .row-list li { text-align: left; }

/* ---------- Bento feature grid ---------- */
/* Poster artwork sits inside each card as its background (painted by tvdb-backdrops.js) */
.feature > *:not(.feature-bg) { position: relative; z-index: 1; }
.feature-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #141026 center / cover no-repeat;
}
.feature-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.62) 0%, rgba(8, 7, 13, 0.86) 60%, rgba(8, 7, 13, 0.93) 100%);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(146px, auto);
  gap: 16px;
}
.feature {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 100% at 50% 0%, rgba(185, 92, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature:hover { transform: translateY(-5px); border-color: rgba(185, 92, 255, 0.36); box-shadow: 0 30px 64px -40px rgba(0, 0, 0, 0.95); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 1.18rem;
  border-radius: 11px;
  background: rgba(185, 92, 255, 0.12);
  border: 1px solid rgba(185, 92, 255, 0.24);
  margin-bottom: 14px;
}
.feature h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.01em; }
.feature p { color: rgba(246, 243, 252, 0.86); font-size: 0.92rem; }

/* Import icon - down arrow glyph instead of emoji */
.feature-icon-import svg { width: 19px; height: 19px; color: #c6b8ff; }

/* Poster tile (gradient fallback; real backdrops painted by tvdb-backdrops.js) */
.poster-fill {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(160deg, #20135a, var(--violet));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 30px -20px rgba(0, 0, 0, 0.95);
}
.poster-fill::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.36), transparent 58%);
}

/* Visual feature cards - poster artwork on top, copy pinned at the bottom */
.feature-rank, .feature-swipe {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}
.feature-rank { grid-column: span 2; grid-row: span 2; }
.feature-swipe { grid-row: span 2; }
.feature-rank .feature-body, .feature-swipe .feature-body { margin-top: auto; }
.feature-rank .feature-body p { max-width: 46ch; }

/* Rank it - a shareable leaderboard */
.rank-list { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 4px 2px; }
.rank-item { display: flex; align-items: center; gap: 14px; }
.rank-badge {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.85rem; color: #fff;
}
.rank-1 { background: linear-gradient(160deg, var(--violet), var(--violet-dark)); }
.rank-2 { background: linear-gradient(160deg, var(--indigo), var(--blue)); }
.rank-3 { background: linear-gradient(160deg, var(--blue), var(--cyan)); color: #08070d; }
.rank-item .poster-fill { flex: 0 0 auto; width: 72px; height: 44px; }
.rank-item:nth-child(2) .poster-fill { background-image: linear-gradient(160deg, #1f1b66, var(--indigo)); }
.rank-item:nth-child(3) .poster-fill { background-image: linear-gradient(160deg, #062f4c, var(--cyan)); }
.rank-bar { flex: 1 1 auto; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

/* Swipe it - a fanned discovery stack */
.swipe-stack { position: relative; flex: 1 1 auto; min-height: 150px; }
.swipe-card {
  position: absolute; top: 50%; left: 50%;
  width: 116px; height: 150px; border-radius: 15px;
}
.sc-1 { transform: translate(-50%, -50%) rotate(-4deg); z-index: 3; }
.sc-2 { transform: translate(-42%, -53%) rotate(6deg); z-index: 2; filter: brightness(0.82); background-image: linear-gradient(160deg, #1f1b66, var(--indigo)); }
.sc-3 { transform: translate(-58%, -47%) rotate(-12deg); z-index: 1; filter: brightness(0.62); background-image: linear-gradient(160deg, #062f4c, var(--cyan)); }
.swipe-like {
  position: absolute; top: 9px; right: 9px; z-index: 4;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.92rem; color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 18px -6px rgba(185, 92, 255, 0.85);
}

/* Shared watchlists - full-width social card */
.feature-shared {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 30px 32px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(185, 92, 255, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.feature-shared .feature-body { flex: 1 1 auto; max-width: 46ch; }
.feature-shared .feature-body p { margin-bottom: 0; }
.share-strip { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.share-strip .poster-fill { width: 66px; height: 96px; border-radius: 11px; }
.share-strip .poster-fill:nth-child(2) { background-image: linear-gradient(160deg, #1f1b66, var(--indigo)); }
.share-strip .poster-fill:nth-child(3) { background-image: linear-gradient(160deg, #062f4c, var(--cyan)); }
.share-strip .poster-fill:nth-child(4) { background-image: linear-gradient(160deg, #12256a, var(--blue)); }
.share-avatars { display: flex; align-items: center; margin-left: 6px; }
.share-avatars i {
  width: 34px; height: 34px; border-radius: 50%;
  margin-left: -12px;
  display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: 0.82rem; color: #fff;
  border: 2px solid var(--bg);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.8);
}
.share-avatars i:nth-child(1) { background: linear-gradient(160deg, var(--violet), var(--blue)); }
.share-avatars i:nth-child(2) { background: linear-gradient(160deg, var(--violet-dark), var(--indigo)); }
.share-avatars i:nth-child(3) { background: linear-gradient(160deg, var(--cyan), var(--blue)); color: #08070d; }

/* Score chips inside hero card */
.score-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.score-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem; font-weight: 700;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
}
.score-chip b { color: var(--gold); font-variant-numeric: tabular-nums; }
.score-chip.is-ep b { color: var(--cyan); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(66% 120% at 50% 0%, rgba(185, 92, 255, 0.24), transparent 60%);
}
.cta-mark { width: 66px; height: 66px; margin-bottom: 22px; filter: drop-shadow(0 8px 28px rgba(185, 92, 255, 0.5)); }
.final-cta h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.final-cta > p { color: var(--text-dim); font-size: 1.12rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer .brand-wordmark { height: 20px; margin: 0 auto 8px; }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 12px;
  margin: 20px 0;
}
.footer-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.footer-nav a:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}
/* Language switch - the standout footer button */
.footer-nav a.footer-lang {
  position: relative;
  color: var(--text);
  border-color: transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
}
.footer-nav a.footer-lang svg { width: 15px; height: 15px; }
.footer-nav a.footer-lang:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -14px rgba(185, 92, 255, 0.9);
  background:
    linear-gradient(var(--panel-2), var(--panel-2)) padding-box,
    var(--grad) border-box;
}
.site-footer p { color: var(--text-mute); font-size: 0.84rem; }

/* ---------- Contact page ---------- */
.contact-page {
  position: relative;
  overflow: hidden;
}
.contact-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 213, 255, 0.13), transparent 32%),
    radial-gradient(circle at 18% 14%, rgba(185, 92, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(16, 13, 27, 0.96), var(--bg) 58%);
}
.contact-hero {
  width: min(980px, calc(100% - 48px));
  min-height: 360px;
  margin: 0 auto;
  padding: 138px 0 56px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.contact-copy { max-width: 760px; }
.contact-copy h1 {
  font-size: clamp(3rem, 7.6vw, 6.3rem);
  line-height: 0.92;
  max-width: 760px;
  margin: 0 0 24px;
}
.contact-copy p:not(.section-kicker) {
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.contact-form-section {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 clamp(70px, 8vw, 110px);
}
.contact-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(12, 10, 20, 0.82);
  box-shadow: 0 42px 120px -52px rgba(0, 0, 0, 0.92);
}
.contact-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}
.contact-shell-head {
  padding: clamp(24px, 4vw, 38px) clamp(24px, 4vw, 42px) 18px;
}
.contact-shell-head h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  letter-spacing: -0.035em;
}
.tally-frame {
  padding: 0 clamp(18px, 4vw, 34px) clamp(18px, 4vw, 34px);
}
.tally-frame iframe {
  display: block;
  width: 100%;
  min-height: 690px;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

/* ---------- Legal / content pages ---------- */
.page { max-width: 780px; margin: 0 auto; padding: 30px 24px 80px; }
.back-home { display: inline-block; margin-bottom: 30px; color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.back-home:hover { color: var(--text); }
.page h1 { font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.page .updated { color: var(--text-mute); font-size: 0.9rem; margin-bottom: 30px; }
.page h2 { font-size: 1.32rem; font-weight: 700; margin: 36px 0 12px; font-family: var(--font-display); }
.page h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px; }
.page .lead { color: var(--text-dim); font-size: 1.05rem; line-height: 1.75; }
.page p { color: var(--text-dim); margin-bottom: 14px; }
.page ul { margin: 0 0 16px 22px; }
.page ol { margin: 0 0 16px 22px; }
.page li { color: var(--text-dim); margin-bottom: 8px; }
.page a { color: var(--cyan); }
.page code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #d8ceff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.08em 0.36em;
}
.path-pill {
  display: inline-block;
  padding: 0.18em 0.58em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8ceff;
  font-weight: 700;
}
.step-list {
  counter-reset: step;
  list-style: none;
  margin-left: 0 !important;
  padding-left: 0;
}
.step-list li {
  position: relative;
  padding: 14px 16px 14px 58px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
}
.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 13px;
  left: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(185, 92, 255, 0.16);
  border: 1px solid rgba(185, 92, 255, 0.28);
  color: #cfc7ff;
  font-size: 0.82rem;
  font-weight: 800;
}
.notice-box, .meta-box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 22px 0;
}
.notice-box {
  background: linear-gradient(to bottom right, rgba(185, 92, 255, 0.13), rgba(0, 213, 255, 0.08));
}
.meta-box {
  background: rgba(255, 255, 255, 0.04);
}
.notice-box p, .meta-box p { margin: 0; }
.contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin: 22px 0;
}
.contact-box p { margin: 0; color: var(--text); }
.contact-box a { font-weight: 700; }
.faq {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--violet-2);
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "-"; }
.faq .answer {
  padding: 0 4px 18px;
}
.faq .answer p:first-child { margin-top: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-copy { max-width: 660px; margin: 0 auto; }
  .waitlist-cta, .trust-strip { justify-content: center; }
  .trust-strip { display: flex; }
  .hero-visual { order: -1; }
  .cinema-field { top: -6%; opacity: 0.42; transform: rotate(-8deg) scale(0.98); }

  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .feature-rank { grid-column: span 2; grid-row: auto; }
  .feature-swipe { grid-column: span 1; grid-row: auto; }
  .feature-swipe .swipe-stack { min-height: 190px; }
  .feature-shared { grid-column: span 2; }

  .row, .row-reverse { grid-template-columns: 1fr; text-align: center; direction: ltr; gap: 30px; }
  .row-art { display: none; }
  .row-copy { max-width: 540px; margin: 0 auto; }
  .row-copy p { margin: 0 auto; }
  .row-list { align-items: center; }
  .row-list li { text-align: left; }

  .float-badge-a { left: 2%; }
  .float-badge-b { right: 2%; }

  .contact-hero {
    padding-top: 126px;
    text-align: center;
    justify-content: center;
  }
  .contact-copy { margin: 0 auto; }
  .contact-copy p:not(.section-kicker) { margin: 0 auto; }
}

/* Give the header room: drop the waitlist CTA before it crowds the toggle + Contact */
@media (max-width: 720px) {
  .site-header .btn-waitlist { display: none; }
}

@media (max-width: 560px) {
  .site-header { padding: 14px 18px; gap: 12px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { height: 32px; }
  .brand-wordmark { height: 18px; }
  .header-actions { gap: 8px; }
  .site-header .btn-contact { padding: 8px 14px; font-size: 0.82rem; }
  .lang-switch a { padding: 5px 10px; }

  h1 { font-size: clamp(2.1rem, 11vw, 2.7rem); }
  .hero { gap: 30px; padding-top: 28px; padding-bottom: 60px; }
  .phone img { width: 232px; }
  .phone-sm img { width: 220px; }
  .cinema-field { opacity: 0.32; }
  .poster-row span { width: 82px; height: 120px; border-radius: 11px; }
  .poster-row-wide span { width: 160px; height: 90px; }

  .bento { grid-template-columns: 1fr; }
  .feature-rank, .feature-swipe, .feature-shared { grid-column: span 1; }
  .feature-shared { flex-direction: column; align-items: flex-start; gap: 20px; }
  .share-strip { flex-wrap: wrap; }
  .float-badge { display: none; }
  .eyebrow { margin-bottom: 20px; }

  .contact-hero,
  .contact-form-section { width: min(100% - 32px, 980px); }
  .contact-hero { padding-top: 104px; padding-bottom: 38px; }
  .contact-copy h1 { font-size: clamp(2.35rem, 14vw, 3.6rem); }
  .contact-shell { border-radius: 20px; }
  .contact-shell-head { display: block; padding: 22px 20px 12px; }
  .tally-frame { padding: 0 12px 12px; }
  .tally-frame iframe { min-height: 760px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .poster-row,
  .bg-glow::before, .bg-glow::after,
  .float-badge, .eyebrow::before { animation: none !important; }
  .gradient-text, .section-kicker { animation: none !important; background-size: 100% 100%; background-position: 0 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .phone, .feature { transition: none; }
}
