/* ==========================================================================
   VELVIX – Landing page styles
   --------------------------------------------------------------------------
   01. Design tokens
   02. Reset & base
   03. Utilities (container, text, icons, glass, badges)
   04. Buttons
   05. Background lighting
   06. Navigation
   07. Hero
   08. Poster artwork (.art)
   09. Phone mockup & fictional app UI
   10. Section heads
   11. Categories
   12. Why Velvix
   13. Showcase
   14. Install steps
   15. Download CTA
   16. FAQ
   17. Footer
   18. Mobile download bar & toast
   19. Legal pages
   20. Scroll reveal & keyframes
   21. Responsive breakpoints
   22. Reduced motion
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Surfaces */
  --bg: #05060f;
  --bg-2: #0a0c1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f4f3ff;
  --muted: #a9abc8;
  --muted-2: #8184a8;

  /* Brand – sampled from the Velvix app icon */
  --red-700: #931024;   /* icon: dark ribbon */
  --red-600: #b8172f;
  --red-500: #d42a45;   /* icon: light ribbon */
  --red-400: #ff4d67;
  --rose-300: #ff8a9b;
  --rose-200: #ffc2cb;
  --navy: #151e2e;      /* icon background */
  --amber: #fbbf24;
  --sky: #7dd3fc;
  --green: #34d399;
  --android: #3ddc84;
  --accent-soft: #ff9aa9; /* light accent for small text & icons */

  --grad-brand: linear-gradient(110deg, #ff4d67 0%, #d42a45 48%, #931024 100%);
  --grad-text: linear-gradient(90deg, #ffd3d9 0%, #ff8a9b 30%, #ff4d67 60%, #ffd3d9 100%);

  /* Shape & depth */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --header-h: 68px;
  --container: 1200px;

  /* System font stack: zero network cost, renders as Roboto on Android */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

::selection {
  background: rgba(212, 42, 69, 0.45);
  color: #fff;
}

/* ==========================================================================
   03. UTILITIES
   ========================================================================== */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 32px, 860px);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #0b0c1c;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.text-gradient {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s linear infinite;
}

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

/* Cards with a cursor-following spotlight (JS sets --mx / --my) */
.glass-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 42, 69, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 110, 130, 0.32);
  box-shadow: 0 24px 50px -24px rgba(212, 42, 69, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.4em 1em 0.4em 0.45em;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #dcdcf7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge__icon {
  width: 1.75em;
  height: 1.75em;
  padding: 0.32em;
  border-radius: 50%;
  color: var(--android);
  background: rgba(61, 220, 132, 0.13);
}

.badge__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid;
  transition: transform 0.45s var(--ease);
}

.icon-badge .icon {
  width: 24px;
  height: 24px;
}

.icon-badge--red { color: #ff9aa9; border-color: rgba(255, 77, 103, 0.35); background: linear-gradient(135deg, rgba(255, 77, 103, 0.28), rgba(255, 77, 103, 0.06)); box-shadow: 0 10px 30px -12px rgba(255, 77, 103, 0.7); }
.icon-badge--amber   { color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(245, 158, 11, 0.06)); box-shadow: 0 10px 30px -12px rgba(245, 158, 11, 0.7); }
.icon-badge--rose   { color: #fda4af; border-color: rgba(244, 63, 94, 0.35); background: linear-gradient(135deg, rgba(244, 63, 94, 0.28), rgba(244, 63, 94, 0.06)); box-shadow: 0 10px 30px -12px rgba(244, 63, 94, 0.7); }
.icon-badge--sky   { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.35); background: linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(56, 189, 248, 0.05)); box-shadow: 0 10px 30px -12px rgba(56, 189, 248, 0.7); }

.glass-card:hover .icon-badge {
  transform: translateY(-2px) rotate(-6deg) scale(1.06);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 650;
  color: var(--accent-soft);
  transition: gap 0.3s var(--ease), color 0.3s;
}

.text-link:hover {
  gap: 0.7em;
  color: #fff;
}

.device-hint {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}

.device-hint .icon {
  color: var(--rose-300);
}

/* ==========================================================================
   04. BUTTONS
   ========================================================================== */
.btn {
  --sheen: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.32) 50%, transparent 60%);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.5em;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-position 0.8s var(--ease), border-color 0.3s, background-color 0.3s;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  color: #fff;
  background: var(--sheen) no-repeat -150% 0 / 60% 100%, var(--grad-brand);
  background-size: 60% 100%, 200% 100%;
  /* Default shows the deep-crimson end of the gradient; hover slides to the bright end */
  background-position: -150% 0, 100% 0;
  box-shadow: 0 12px 30px -10px rgba(184, 23, 47, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 250% 0, 0% 0;
  box-shadow: 0 18px 40px -10px rgba(212, 42, 69, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Soft animated glow behind important CTAs (opacity-only animation) */
.btn--glow::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad-brand);
  filter: blur(20px);
  opacity: 0.55;
  animation: glow-pulse 3.2s ease-in-out infinite;
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(196, 181, 253, 0.45);
}

.btn--ghost .icon {
  transition: transform 0.3s var(--ease);
}

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

.btn--sm {
  min-height: 42px;
  padding: 0 1.1em;
  font-size: 0.9rem;
}

.btn--lg {
  min-height: 56px;
  padding: 0 1.8em;
  font-size: 1.05rem;
}

.btn--xl {
  min-height: 64px;
  padding: 0 2.2em;
  font-size: 1.125rem;
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   05. BACKGROUND LIGHTING
   ========================================================================== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(110, 12, 32, 0.35), transparent 60%),
    linear-gradient(180deg, #070912 0%, var(--bg) 40%, #04050d 100%);
}

.page-bg__orb {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: 0.5;
  will-change: transform;
}

.page-bg__orb--1 {
  top: -30vmax;
  left: -25vmax;
  background: radial-gradient(circle, rgba(212, 42, 69, 0.45), transparent 62%);
  animation: orb-drift-1 26s ease-in-out infinite alternate;
}

.page-bg__orb--2 {
  top: 10vmax;
  right: -35vmax;
  background: radial-gradient(circle, rgba(64, 96, 160, 0.28), transparent 62%);
  animation: orb-drift-2 30s ease-in-out infinite alternate;
}

.page-bg__orb--3 {
  bottom: -40vmax;
  left: 10vmax;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18), transparent 62%);
  animation: orb-drift-3 34s ease-in-out infinite alternate;
}

/* ==========================================================================
   06. NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: rgba(7, 9, 18, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: background-color 0.35s, border-color 0.35s;
}

/* Darker once the page scrolls (class added by script.js) or the menu is open */
.site-header.is-scrolled,
.site-header.is-menu-open {
  background-color: rgba(7, 9, 18, 0.88);
  border-bottom-color: var(--border);
}

.site-header:has(.mobile-menu:popover-open) {
  background-color: rgba(7, 9, 18, 0.88);
  border-bottom-color: var(--border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.logo__mark {
  width: 36px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(212, 42, 69, 0.45));
  transition: transform 0.5s var(--ease);
}

.logo:hover .logo__mark {
  transform: rotate(-8deg) scale(1.06);
}

.logo__text {
  color: #fff;
}

.nav__link {
  position: relative;
  display: block;
  color: var(--muted);
  font-weight: 550;
  transition: color 0.25s, background-color 0.25s;
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Same "X" state without JavaScript (browsers that support :has + popover) */
.site-header:has(.mobile-menu:popover-open) .nav__toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header:has(.mobile-menu:popover-open) .nav__toggle-bar:nth-child(2) { opacity: 0; }
.site-header:has(.mobile-menu:popover-open) .nav__toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop link pill is hidden on small screens (see section 21) */
.nav__links {
  display: none;
}

/* Mobile menu panel – a native [popover]: opens, closes on outside tap
   and on Escape without any JavaScript. */
.mobile-menu {
  position: fixed;
  inset: calc(var(--header-h) + 8px) 12px auto 12px;
  width: auto;
  height: auto;
  max-height: calc(100vh - var(--header-h) - 24px);
  margin: 0;
  padding: 12px;
  overflow-y: auto;
  color: var(--text);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #151a2a, #0b0e18);
  box-shadow: var(--shadow-lg);
  display: none;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}

.mobile-menu:popover-open {
  display: block;
  opacity: 1;
  transform: none;
}

/* Fallback for browsers without popover support (toggled by script.js) */
.mobile-menu.is-open {
  display: block;
  opacity: 1;
  transform: none;
}

@starting-style {
  .mobile-menu:popover-open {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
}

.mobile-menu::backdrop {
  background: rgba(3, 4, 10, 0.45);
}

body:has(.mobile-menu:popover-open) {
  overflow: hidden;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__list li {
  transition: opacity 0.35s var(--ease), translate 0.45s var(--ease);
}

@starting-style {
  .mobile-menu:popover-open li {
    opacity: 0;
    translate: 0 -8px;
  }
}

.mobile-menu__list li:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu__list li:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu__list li:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu__list li:nth-child(5) { transition-delay: 0.16s; }

.mobile-menu__link {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
  color: #fff;
  background: rgba(212, 42, 69, 0.14);
}

.mobile-menu__cta {
  margin-top: 8px;
}

/* ==========================================================================
   07. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 36px) 0 40px;
  overflow: hidden;
  overflow: clip;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: hero-in 1s var(--ease) both;
}

/* Content-type pill at the top of the hero: Movies · Series · Short Dramas.
   Sizes scale with the viewport so it always stays on a single line. */
.hero__genres {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: clamp(0.6875rem, 0.5rem + 0.9vw, 0.8125rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -14px rgba(212, 42, 69, 0.6);
}

.hero__genres li {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5em;
  padding: 0.6em clamp(0.55em, 0.2em + 1.6vw, 1em);
  border-radius: 999px;
  font-weight: 650;
  color: #f3e9ec;
  background: rgba(255, 255, 255, 0.04);
}

.hero__genres .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--rose-300);
}

.hero__title {
  margin: 24px 0 20px;
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.5rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero__kicker {
  display: block;
  margin-bottom: 0.7em;
  font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff8a9b;
}

.hero__lead {
  max-width: 34em;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero__lead strong {
  color: #fff;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta .icon {
  width: 1em;
  height: 1em;
  color: var(--green);
}

/* Hero visual: --px/--py (pointer) and --sy (scroll) are set by script.js */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0 36px;
  translate: 0 var(--sy, 0px);
  animation: hero-visual-in 1.2s 0.15s var(--ease) both;
}

.hero__halo {
  position: absolute;
  width: min(130%, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 23, 47, 0.55) 0%, rgba(64, 96, 160, 0.18) 38%, transparent 66%);
  animation: halo-pulse 7s ease-in-out infinite;
  pointer-events: none;
}

.hero__ring {
  position: absolute;
  width: min(108%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(255, 77, 103, 0.85) 75%, rgba(64, 96, 160, 0.85) 88%, transparent 100%);
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  opacity: 0.7;
  animation: spin 16s linear infinite;
  pointer-events: none;
}

.float-wrap {
  --depth: 1;
  position: absolute;
  z-index: 3;
  transform: translate3d(calc(var(--px, 0) * var(--depth) * 14px), calc(var(--py, 0) * var(--depth) * 14px), 0);
  transition: transform 0.8s var(--ease);
}

.float-wrap--phone { --depth: 0.5; position: relative; z-index: 2; }
.float-wrap--a { --depth: 1.4; top: 12%; left: 0; }
.float-wrap--b { --depth: 1.9; top: 50%; right: 0; }
.float-wrap--c { --depth: 1.1; bottom: -4px; left: 0; right: 0; display: flex; justify-content: center; }

.float-card {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.7em 1em 0.7em 0.7em;
  border-radius: 1.1em;
  font-size: clamp(0.66rem, 0.55rem + 0.5vw, 0.85rem);
  box-shadow: 0 1.5em 3em -1em rgba(0, 0, 0, 0.75);
  animation: float 7s ease-in-out infinite;
}

.float-wrap--b .float-card { animation-delay: -2.5s; }
.float-wrap--c .float-card { animation-delay: -4.5s; animation-duration: 8s; }

.float-card__thumb {
  width: 3.8em;
  height: 2.6em;
  border-radius: 0.6em;
  flex-shrink: 0;
}

.float-card__vertical {
  width: 2.9em;
  height: 4.8em;
  border-radius: 0.6em;
  flex-shrink: 0;
}

.float-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.float-card__play .icon {
  width: 1.3em;
  height: 1.3em;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.float-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  min-width: 0;
}

.float-card__text small {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.float-card__text strong {
  font-size: 1.02em;
  white-space: nowrap;
}

.float-card__sub {
  font-size: 0.78em;
  color: var(--muted);
}

.float-card--cats {
  gap: 0.4em;
  padding: 0.5em;
  border-radius: 999px;
}

.float-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 0.85em;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.07);
}

.float-pill:first-child {
  background: var(--grad-brand);
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px rgba(255, 77, 103, 0.9);
  animation: twinkle 4s ease-in-out infinite;
  pointer-events: none;
}

.spark--1 { top: 8%; right: 18%; }
.spark--2 { bottom: 24%; left: 10%; animation-delay: -1.5s; box-shadow: 0 0 12px 3px rgba(64, 96, 160, 0.9); }
.spark--3 { top: 38%; right: 6%; width: 4px; height: 4px; animation-delay: -3s; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: none;
  padding: 8px;
  translate: -50% 0;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.scroll-cue:hover {
  opacity: 1;
}

.scroll-cue__mouse {
  position: relative;
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}

.scroll-cue__mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

/* ==========================================================================
   08. POSTER ARTWORK
   Real photos (Unsplash License, see assets/images/posters/CREDITS.md) used
   as artwork for fictional titles. Each .art--N is one title; the
   background-position keeps the subject in frame for any crop
   (portrait poster, wide thumbnail or full-screen short).
   ========================================================================== */
.art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #141826;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.art > * {
  z-index: 2;
}

/* Soft bottom shade so overlaid titles stay readable on any photo */
.ui-wide::after,
.ui-poster::after,
.ui-grid__item i::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 6, 15, 0.7));
  pointer-events: none;
}

.art--1 { background-image: url("assets/images/posters/sunset-drive.webp");    background-position: 28% 62%; } /* Sunset Drive */
.art--2 { background-image: url("assets/images/posters/neon-hearts.webp");     background-position: 30% 55%; } /* Neon Hearts */
.art--3 { background-image: url("assets/images/posters/midnight-echo.webp");   background-position: 42% 45%; } /* Midnight Echo */
.art--4 { background-image: url("assets/images/posters/crimson-vow.webp");     background-position: 50% 30%; } /* Crimson Vow */
.art--5 { background-image: url("assets/images/posters/the-last-orbit.webp");  background-position: 40% 50%; } /* The Last Orbit */
.art--6 { background-image: url("assets/images/posters/silent-harbor.webp");   background-position: 50% 50%; } /* Silent Harbor */
.art--7 { background-image: url("assets/images/posters/kingdom-of-dust.webp"); background-position: 30% 70%; } /* Kingdom of Dust */
.art--8 { background-image: url("assets/images/posters/paper-moons.webp");     background-position: 46% 65%; } /* Paper Moons */

/* ==========================================================================
   09. PHONE MOCKUP & FICTIONAL APP UI
   Everything inside a phone is sized in em, and the phone's font-size is
   derived from its width (--pw), so the whole UI scales as one unit.
   ========================================================================== */
.phone {
  --pw: 280px;
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 19.5;
  padding: 0.5em;
  font-size: calc(var(--pw) / 24);
  line-height: 1.3;
  border-radius: 3.4em;
  background: linear-gradient(150deg, #3d4060 0%, #14162c 28%, #0b0c1c 70%, #2c2f4c 100%);
  box-shadow:
    inset 0 0 0 0.12em rgba(255, 255, 255, 0.14),
    0 3em 6em -1.5em rgba(0, 0, 0, 0.85),
    0 0 5em -0.5em rgba(184, 23, 47, 0.45);
}

.phone::before {
  content: "";
  position: absolute;
  top: 22%;
  right: -0.2em;
  width: 0.22em;
  height: 4.5em;
  border-radius: 0 0.2em 0.2em 0;
  background: #2c2f4c;
}

.phone--hero {
  --pw: clamp(230px, 62vw, 290px);
  animation: float 6.5s ease-in-out infinite;
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  border-radius: 2.9em;
  color: #fff;
  background: radial-gradient(120% 55% at 50% 0%, #2a0d19 0%, #07081a 60%);
}

.phone__island {
  position: absolute;
  top: 0.65em;
  left: 50%;
  z-index: 10;
  width: 6.2em;
  height: 1.7em;
  border-radius: 1em;
  background: #000;
  translate: -50% 0;
}

.ui-status {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.6em;
  padding: 0.7em 2.2em 0;
  font-size: 0.85em;
  font-weight: 650;
  flex-shrink: 0;
}

.ui-status__icons {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.ui-bars {
  width: 1.2em;
  height: 0.75em;
  background: linear-gradient(90deg, #fff 0 18%, transparent 18% 27%, #fff 27% 45%, transparent 45% 54%, #fff 54% 72%, transparent 72% 81%, #fff 81%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.ui-batt {
  width: 1.7em;
  height: 0.8em;
  padding: 0.1em;
  border: 0.1em solid rgba(255, 255, 255, 0.8);
  border-radius: 0.25em;
  background: linear-gradient(90deg, #fff 0 72%, transparent 72%) content-box;
}

.ui-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.1em;
}

.ui-logo {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ui-logo__mark {
  width: 1.45em;
  height: auto;
}

.ui-appbar__actions {
  display: flex;
  gap: 0.8em;
}

.ui-appbar__actions .icon {
  width: 1.3em;
  height: 1.3em;
  opacity: 0.85;
}

.ui-chips {
  display: flex;
  gap: 0.45em;
  padding: 0 1.1em;
}

.ui-chips span {
  padding: 0.4em 0.85em;
  border-radius: 2em;
  font-size: 0.8em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ui-chips .is-active {
  color: #fff;
  background: linear-gradient(110deg, #ff4d67, #b8172f);
  border-color: transparent;
}

.ui-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  height: 13.5em;
  margin: 0 1.1em;
  padding: 0.9em;
  border-radius: 1.2em;
  box-shadow: 0 1em 2em -1em rgba(0, 0, 0, 0.6);
}

.ui-feature__tag {
  position: relative;
  align-self: flex-start;
  padding: 0.35em 0.75em;
  border-radius: 2em;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ui-feature__body {
  position: relative;
  margin: 0 -0.9em -0.9em;
  padding: 2.2em 0.9em 0.9em;
  border-radius: 0 0 1.2em 1.2em;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 15, 0.88));
}

.ui-feature__body strong {
  display: block;
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ui-feature__body small {
  display: block;
  margin-top: 0.2em;
  font-size: 0.75em;
  opacity: 0.78;
}

.ui-feature__btns {
  display: flex;
  gap: 0.5em;
  margin-top: 0.7em;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 2.4em;
  padding: 0 1.1em;
  border-radius: 2em;
  font-size: 0.85em;
  font-weight: 700;
}

.ui-btn .icon {
  width: 1.1em;
  height: 1.1em;
}

.ui-btn--play {
  color: #0b0c1c;
  background: #fff;
}

.ui-btn--ghost {
  width: 2.4em;
  padding: 0;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ui-dots {
  display: flex;
  justify-content: center;
  gap: 0.3em;
  margin-top: -0.25em;
}

.ui-dots i {
  width: 0.4em;
  height: 0.4em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.25);
}

.ui-dots .is-active {
  width: 1.2em;
  background: #ff6b81;
}

.ui-rail {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding-left: 1.1em;
}

.ui-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-right: 1.1em;
}

.ui-rail__head strong {
  font-size: 0.95em;
}

.ui-rail__head small {
  font-size: 0.7em;
  color: #ff6b81;
}

.ui-rail__head--pad {
  padding: 0 1.1em;
}

.ui-rail__row {
  display: flex;
  gap: 0.55em;
  overflow: hidden;
}

.ui-wide {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 0 0 11em;
  height: 6.4em;
  padding: 0.5em;
  border-radius: 0.8em;
}

.ui-wide__title {
  position: relative;
  font-size: 0.75em;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.ui-poster {
  flex: 0 0 4.9em;
  height: 7.3em;
  border-radius: 0.7em;
}

.ui-poster b {
  position: absolute;
  left: 0.15em;
  bottom: -0.12em;
  font-size: 2.4em;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  -webkit-text-stroke: 0.035em rgba(255, 255, 255, 0.95);
}

.ui-progress {
  position: relative;
  display: block;
  height: 0.25em;
  margin-top: 0.35em;
  overflow: hidden;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.25);
}

.ui-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4d67, #931024);
}

.ui-progress--card { width: 8em; height: 0.3em; }
.ui-progress--thin { height: 0.2em; margin-top: 0.6em; }

.p-30 { width: 30%; }
.p-62 { width: 62%; }
.p-80 { width: 80%; }
.p-100 { width: 100%; }

.ui-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: space-around;
  padding: 0.7em 0.5em 1.5em;
  background: rgba(8, 9, 22, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ui-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  font-size: 0.64em;
  color: rgba(255, 255, 255, 0.5);
}

.ui-tabbar .icon {
  width: 1.9em;
  height: 1.9em;
}

.ui-tabbar .is-active {
  color: var(--accent-soft);
}

.ui-tabbar--dark {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88) 40%);
  border-top: 0;
}

/* Discover screen */
.ui-title {
  padding: 0.1em 0.65em 0;
  font-size: 1.7em;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ui-search {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 3.2em;
  margin: 0 1.3em;
  padding: 0 0.9em;
  flex-shrink: 0;
  border-radius: 0.9em;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-search .icon {
  width: 1.25em;
  height: 1.25em;
}

.ui-genres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
  padding: 0 1.1em;
}

.ui-genre {
  display: flex;
  align-items: flex-end;
  height: 3.4em;
  padding: 0.5em 0.75em;
  border-radius: 0.8em;
  font-size: 0.8em;
  font-weight: 750;
}

.ui-genre--1 { background: linear-gradient(135deg, #f97316, #db2777); }
.ui-genre--2 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.ui-genre--3 { background: linear-gradient(135deg, #0ea5e9, #4338ca); }
.ui-genre--4 { background: linear-gradient(135deg, #a855f7, #931024); }

.ui-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7em 0.5em;
  padding: 0 1.1em;
}

.ui-grid__item {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  min-width: 0;
  overflow: hidden;
  font-size: 0.64em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ui-grid__item i {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 1em;
}

/* Short drama screen */
.ui-shorts {
  background: #000;
}

.ui-shorts::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 22%, transparent 48%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.ui-shorts__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ui-shorts__tabs {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 1.3em;
  font-size: 0.95em;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.6);
}

.ui-shorts__tabs .is-active {
  position: relative;
  color: #fff;
}

.ui-shorts__tabs .is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.45em;
  width: 1.3em;
  height: 0.18em;
  margin-left: -0.65em;
  border-radius: 1em;
  background: #fff;
}

.ui-shorts__actions {
  position: absolute;
  right: 0.8em;
  bottom: 16.5em;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.ui-shorts__actions span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  font-size: 0.62em;
  font-weight: 600;
}

.ui-shorts__actions .icon {
  width: 2.7em;
  height: 2.7em;
  padding: 0.6em;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
}

.ui-shorts__info {
  position: absolute;
  left: 1.1em;
  right: 1.1em;
  bottom: 5.4em;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.ui-shorts__chip {
  align-self: flex-start;
  padding: 0.3em 0.75em;
  border-radius: 2em;
  font-size: 0.65em;
  font-weight: 750;
  background: var(--grad-brand);
}

.ui-shorts__info strong {
  font-size: 1.4em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ui-shorts__info small,
.ui-shorts__info p {
  max-width: 15em;
  font-size: 0.75em;
  line-height: 1.4;
  opacity: 0.82;
}

.ui-shorts__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45em;
  margin-top: 0.35em;
  padding: 0.6em 0.95em;
  border-radius: 0.8em;
  font-size: 0.75em;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ui-shorts__cta .icon {
  width: 1.2em;
  height: 1.2em;
}

/* ==========================================================================
   10. SECTION HEADS
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(48px, 5.5vw, 80px) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb3bf;
  background: rgba(212, 42, 69, 0.1);
  border: 1px solid rgba(212, 42, 69, 0.25);
}

.section-title {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem);
}

.section-lead {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   11. CATEGORIES
   ========================================================================== */
.cat-grid {
  display: grid;
  gap: 22px;
}

.cat-card {
  padding: 14px 14px 28px;
}

.cat-card__body {
  padding: 0 14px;
}

.cat-card__title {
  margin: 18px 0 10px;
  font-size: 1.4rem;
}

.cat-card__body p {
  color: var(--muted);
  line-height: 1.65;
}

.cat-card__art {
  position: relative;
  height: 224px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(80% 70% at 50% 110%, rgba(184, 23, 47, 0.4), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.cat-art__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  translate: -50% -50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-art__play .icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

/* Movies: fanned posters */
.cat-art--movies .cat-art__poster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease);
}

.cat-art--movies .cat-art__poster:nth-child(1) { transform: translate(-50%, -50%) translateX(-72px) rotate(-12deg) scale(0.86); }
.cat-art--movies .cat-art__poster:nth-child(2) { transform: translate(-50%, -50%) translateX(72px) rotate(12deg) scale(0.86); }
.cat-art--movies .cat-art__poster:nth-child(3) { z-index: 2; transform: translate(-50%, -50%); }

.cat-card:hover .cat-art--movies .cat-art__poster:nth-child(1) { transform: translate(-50%, -50%) translateX(-92px) rotate(-17deg) scale(0.86); }
.cat-card:hover .cat-art--movies .cat-art__poster:nth-child(2) { transform: translate(-50%, -50%) translateX(92px) rotate(17deg) scale(0.86); }
.cat-card:hover .cat-art--movies .cat-art__poster:nth-child(3) { transform: translate(-50%, -54%) scale(1.05); }

/* Series: banner + episode list */
.cat-art__wide {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  height: 96px;
  border-radius: 12px;
  transition: transform 0.6s var(--ease);
}

.cat-art__label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cat-art__episodes {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-art__ep {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.5s var(--ease), background-color 0.3s;
}

.cat-art__ep i {
  width: 44px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.cat-art__ep b {
  flex: 1;
  font-weight: 600;
}

.cat-art__ep .ui-progress {
  width: 56px;
  margin: 0;
}

.cat-card:hover .cat-art__wide { transform: scale(1.03); }
.cat-card:hover .cat-art__ep:nth-child(2) { transform: translateX(6px); background-color: rgba(212, 42, 69, 0.14); }

/* Short dramas: vertical clips */
.cat-art__clip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease), opacity 0.6s;
}

.cat-art__clip:nth-child(1) { transform: translate(-50%, -50%) translateX(-96px) scale(0.84); opacity: 0.75; }
.cat-art__clip:nth-child(2) { z-index: 2; transform: translate(-50%, -50%); }
.cat-art__clip:nth-child(3) { transform: translate(-50%, -50%) translateX(96px) scale(0.84); opacity: 0.75; }

.cat-card:hover .cat-art__clip:nth-child(1) { transform: translate(-50%, -50%) translateX(-104px) translateY(14px) scale(0.84); opacity: 1; }
.cat-card:hover .cat-art__clip:nth-child(2) { transform: translate(-50%, -56%) scale(1.05); }
.cat-card:hover .cat-art__clip:nth-child(3) { transform: translate(-50%, -50%) translateX(104px) translateY(-14px) scale(0.84); opacity: 1; }

.cat-art__swipe {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
  animation: bob 2s ease-in-out infinite;
}

.cat-art__swipe .icon {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   12. WHY VELVIX
   ========================================================================== */
.why-grid {
  display: grid;
  gap: 18px;
}

.why-card {
  padding: 28px;
}

.why-card h3 {
  margin: 20px 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

.why-card p {
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================================================
   13. SHOWCASE
   ========================================================================== */
.showcase {
  overflow: hidden;
  overflow: clip;
}

.showcase__glow {
  position: absolute;
  top: 45%;
  left: 50%;
  width: min(1100px, 140vw);
  height: 700px;
  translate: -50% -50%;
  background:
    radial-gradient(closest-side, rgba(184, 23, 47, 0.35), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(64, 96, 160, 0.18), transparent);
  pointer-events: none;
}

.showcase__track {
  --pw-m: min(66vw, 270px);
  position: relative;
  display: flex;
  gap: 20px;
  padding: 20px calc(50% - var(--pw-m) / 2) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.showcase__track::-webkit-scrollbar {
  display: none;
}

.showcase__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  scroll-snap-align: center;
}

.showcase__track .phone {
  --pw: var(--pw-m);
}

.phone--showcase {
  animation: float 7s ease-in-out infinite;
}

.showcase__item--center .phone { animation-delay: -2.3s; }
.showcase__item--right .phone { animation-delay: -4.6s; }

.phone--featured {
  box-shadow:
    inset 0 0 0 0.12em rgba(255, 255, 255, 0.16),
    0 3em 6em -1.5em rgba(0, 0, 0, 0.85),
    0 0 6em 0 rgba(255, 77, 103, 0.5);
}

.showcase__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.showcase__caption strong {
  font-size: 1.08rem;
}

.showcase__caption span {
  font-size: 0.875rem;
  color: var(--muted);
}

.showcase__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.showcase__dots button {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.showcase__dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  translate: -50% -50%;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.35s var(--ease), background-color 0.35s;
}

.showcase__dots button.is-active::before {
  width: 24px;
  background: var(--accent-soft);
}

.showcase__note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* ==========================================================================
   14. INSTALL STEPS
   ========================================================================== */
.steps-grid {
  display: grid;
  gap: 18px;
}

.step-card {
  padding: 30px 28px;
  overflow: hidden;
}

.step-card__num {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(255, 110, 130, 0.5), rgba(255, 110, 130, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.5s var(--ease);
}

.step-card:hover .step-card__num {
  transform: translateY(-4px) scale(1.06);
}

.step-card h3 {
  margin: 22px 0 10px;
  font-size: 1.25rem;
}

.step-card p {
  color: var(--muted);
  line-height: 1.65;
}

.step-card .text-link {
  margin-top: 16px;
}

.step-card .text-link .icon {
  width: 1em;
  height: 1em;
}

.safety-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--muted);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.safety-note strong {
  color: #fff;
}

.safety-note .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--green);
}

/* ==========================================================================
   15. DOWNLOAD CTA
   ========================================================================== */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.cta-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(184, 23, 47, 0.4), transparent 50%),
    radial-gradient(100% 100% at 100% 100%, rgba(64, 96, 160, 0.25), transparent 50%),
    linear-gradient(160deg, #1c0a14, #0a0c16);
  box-shadow: 0 40px 90px -30px rgba(212, 42, 69, 0.55);
}

/* Animated gradient border */
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgba(255, 255, 255, 0.08) 0 55%, #ff4d67 72%, #931024 86%, rgba(255, 255, 255, 0.08) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: border-spin 6s linear infinite;
  pointer-events: none;
}

.cta-card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 70%);
}

.cta-card__bg::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 103, 0.45), transparent 65%);
  animation: halo-pulse 8s ease-in-out infinite;
}

.cta-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-card__title {
  margin: 22px 0 16px;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem);
  letter-spacing: -0.035em;
}

.cta-card__lead {
  max-width: 32em;
  margin-bottom: 32px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.app-info {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.app-info__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.app-info__icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-info__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-info__tag {
  font-size: 0.875rem;
  color: var(--muted);
}

.app-info__list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.app-info__list dt {
  color: var(--muted);
}

.app-info__list dd {
  font-weight: 650;
  text-align: right;
}

/* ==========================================================================
   16. FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: border-color 0.35s, background-color 0.35s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.faq-item.is-open {
  border-color: rgba(255, 110, 130, 0.4);
  background: rgba(184, 23, 47, 0.08);
}

.faq-item__heading {
  font-size: inherit;
  letter-spacing: normal;
}

.faq-item__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 18px 20px 18px 22px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
}

.faq-item__chevron {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-soft);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
  background: rgba(212, 42, 69, 0.25);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 1fr;
}

/* Collapsed only when JS is available, so answers stay readable without it */
.js .faq-item__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease), visibility 0s linear 0.45s;
}

.js .faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.faq-item__inner {
  min-height: 0;
  overflow: hidden;
}

.faq-item__inner p {
  padding: 0 22px 22px;
  line-height: 1.75;
  color: var(--muted);
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 56px 0 calc(28px + env(safe-area-inset-bottom));
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 12, 31, 0.6), #04040b);
}

.site-footer__glow {
  position: absolute;
  bottom: -320px;
  left: 50%;
  width: 900px;
  height: 500px;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(184, 23, 47, 0.28), transparent);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  gap: 40px;
}

.footer-brand p {
  max-width: 340px;
  margin: 16px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-col__title {
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col a {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  background: linear-gradient(90deg, var(--accent-soft), var(--rose-300)) no-repeat 0 85% / 0 1px;
  transition: color 0.25s, background-size 0.35s var(--ease);
}

.footer-col a:hover {
  color: #fff;
  background-size: 100% 1px;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-2);
}

/* ==========================================================================
   18. MOBILE DOWNLOAD BAR & TOAST
   ========================================================================== */
.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 20px;
  background: rgba(14, 15, 38, 0.9);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(212, 42, 69, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translateY(140%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}

.mobile-bar.is-visible {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.mobile-bar img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.mobile-bar__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.mobile-bar__text small {
  font-size: 0.75rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.92rem;
  background: rgba(16, 18, 44, 0.96);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast .icon {
  color: var(--green);
}

/* ==========================================================================
   19. LEGAL PAGES (privacy-policy.html, terms.html)
   ========================================================================== */
.legal {
  padding: calc(var(--header-h) + 48px) 0 96px;
}

.legal .container {
  max-width: 780px;
}

.legal h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.75;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  padding-left: 1.2em;
  list-style: disc;
}

.legal a {
  color: var(--accent-soft);
  text-decoration: underline;
}

.legal__updated {
  font-size: 0.9rem;
}

.legal__notice {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 110, 130, 0.5);
  background: rgba(184, 23, 47, 0.08);
}

.legal .site-header {
  background-color: rgba(6, 7, 22, 0.72);
}

/* ==========================================================================
   20. SCROLL REVEAL & KEYFRAMES
   Reveal uses an animation on opacity + the independent `translate`
   property, so it never fights with hover `transform` effects.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
}

.js [data-reveal].is-visible {
  animation: reveal-up 0.9s var(--ease) both;
}

.js [data-reveal-delay="1"].is-visible { animation-delay: 0.08s; }
.js [data-reveal-delay="2"].is-visible { animation-delay: 0.16s; }
.js [data-reveal-delay="3"].is-visible { animation-delay: 0.24s; }

@keyframes reveal-up {
  from { opacity: 0; translate: 0 30px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes hero-in {
  from { opacity: 0.001; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes hero-visual-in {
  from { opacity: 0; scale: 0.94; }
  to   { opacity: 1; scale: 1; }
}

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

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes border-spin {
  to { --angle: 360deg; }
}

@keyframes gradient-shift {
  to { background-position: 200% 0; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

@keyframes halo-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.8; }
  50%      { transform: scale(1.05); opacity: 1; }
}

@keyframes twinkle {
  0%, 100% { transform: scale(0.6); opacity: 0.3; }
  50%      { transform: scale(1.2); opacity: 1; }
}

@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes orb-drift-1 {
  to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); }
}

@keyframes orb-drift-2 {
  to { transform: translate3d(-14vmax, 10vmax, 0) scale(0.9); }
}

@keyframes orb-drift-3 {
  to { transform: translate3d(10vmax, -12vmax, 0) scale(1.1); }
}

/* ==========================================================================
   21. RESPONSIVE BREAKPOINTS (mobile-first)
   ========================================================================== */

/* Very small phones (≤ 359px): icon-only header CTA, tighter hero */
@media (max-width: 359px) {
  .nav__cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav__cta {
    padding: 0 12px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .float-wrap--c {
    display: none;
  }
}

/* Small phones (≤ 479px): full-width hero buttons */
@media (max-width: 479px) {
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .cta-card .btn--xl {
    width: 100%;
    padding: 0 1.2em;
  }

  .cat-art--movies .cat-art__poster {
    width: 92px;
  }
}

/* ≥ 640px: two-column grids */
@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ≥ 768px: tablets */
@media (min-width: 768px) {
  :root {
    --header-h: 76px;
  }

  .container {
    width: min(100% - 48px, var(--container));
  }

  .container--narrow {
    width: min(100% - 48px, 860px);
  }

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

  .cat-grid > :last-child {
    grid-column: 1 / -1;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .mobile-bar {
    display: none;
  }

  .toast {
    bottom: 28px;
  }

  .phone--hero {
    --pw: 290px;
  }
}

/* ≥ 900px: desktop navigation, side-by-side showcase */
@media (min-width: 900px) {
  .nav__toggle {
    display: none;
  }

  .mobile-menu,
  .mobile-menu.is-open {
    display: none !important;
  }

  .nav__links {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__links .nav__link {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
  }

  .nav__links .nav__link.is-active {
    background: linear-gradient(120deg, rgba(212, 42, 69, 0.3), rgba(147, 16, 36, 0.2));
    box-shadow: inset 0 0 0 1px rgba(255, 110, 130, 0.3);
  }

  .showcase__track {
    justify-content: center;
    align-items: flex-start;
    gap: clamp(28px, 4vw, 64px);
    padding: 20px 24px 40px;
    overflow: visible;
  }

  .showcase__track .phone {
    --pw: clamp(220px, 21vw, 270px);
  }

  .showcase__track .phone--featured {
    --pw: clamp(250px, 24vw, 305px);
  }

  .showcase__item--left,
  .showcase__item--right {
    margin-top: 64px;
  }

  .showcase__item--left .phone { rotate: -5deg; }
  .showcase__item--right .phone { rotate: 5deg; }

  .showcase__dots {
    display: none;
  }

  .cta-card {
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
  }

  .cta-card__content {
    align-items: flex-start;
    text-align: left;
  }
}

/* Below 900px the showcase is a swipe carousel: reveal is skipped so
   off-screen slides are never left invisible. */
@media (max-width: 899px) {
  .js .showcase__item[data-reveal] {
    opacity: 1;
    animation: none;
  }
}

/* ≥ 1024px: laptops – two-column hero */
@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 24px) 0 48px;
  }

  .hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 32px;
  }

  .hero__content {
    align-items: flex-start;
    text-align: left;
  }

  .hero__ctas,
  .hero__meta {
    justify-content: flex-start;
  }

  .hero__visual {
    padding: 40px 0;
  }

  .phone--hero {
    --pw: 300px;
  }

  .float-wrap--a { top: 14%; left: -2%; }
  .float-wrap--b { top: 50%; right: -4%; }
  .float-wrap--c { bottom: 6px; }

  .scroll-cue {
    display: block;
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-grid > :last-child {
    grid-column: auto;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ≥ 1280px: large desktops */
@media (min-width: 1280px) {
  .phone--hero {
    --pw: 316px;
  }

  .hero__inner {
    gap: 56px;
  }
}

/* Hover effects only on devices that truly hover */
@media (hover: none) {
  .glass-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   22. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    animation: none !important;
  }

  .float-wrap {
    transform: none;
  }

  .hero__visual {
    translate: none;
  }
}
