/* DramaFliks landing — tokens mirror drama-web/src/styles/tokens.css (app Color.kt / Type.kt). */

@font-face { font-family: "Archivo"; src: url("fonts/archivo_bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest_regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest_medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0B0F1A;
  --tile: #151B29;
  --sheet: #1D2333;
  --chip: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.11);
  --text: #FFFFFF;
  --body: #D6DCEA;
  --muted: #9EA8C5;
  --brand: #FF006E;
  --brand-2: #FF7A00;
  --grad: linear-gradient(90deg, #FF006E 0%, #FF7A00 100%);
  --glow: 0 12px 40px rgba(255,0,110,.45);
  --font-display: "Archivo", "Onest", ui-sans-serif, system-ui, sans-serif;
  --font-core: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1160px;
  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 16px/1.55 var(--font-core);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--text); margin: 0; letter-spacing: -.02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 5;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; color: var(--text); }
.brand img { border-radius: 10px; }
.brand--sm { font-size: 16px; }
.brand--sm img { border-radius: 6px; }
.topbar__cta {
  font-weight: 500; font-size: 14px; color: var(--text);
  padding: 9px 16px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--border);
  transition: background .2s;
}
.topbar__cta:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 8px var(--gutter) 48px;
  display: grid; gap: 40px;
  text-align: center;
}
.hero__glow {
  position: absolute; inset: -140px -40% auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(255,0,110,.30), transparent 70%),
    radial-gradient(35% 45% at 70% 55%, rgba(255,122,0,.20), transparent 70%);
  filter: blur(10px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,0,110,.12); border: 1px solid rgba(255,0,110,.28);
  color: #FFB3D4; font-size: 13px; font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3ED69B; box-shadow: 0 0 0 4px rgba(62,214,155,.18); }
.hero h1 { font-size: clamp(40px, 11vw, 72px); line-height: 1.02; }
.lede { margin: 18px auto 0; max-width: 34ch; font-size: 17px; color: var(--muted); }

.cta-block { margin-top: 28px; display: grid; justify-items: center; gap: 12px; }
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  min-width: min(100%, 300px); justify-content: center;
  padding: 14px 28px 14px 22px; border-radius: 999px;
  background: var(--grad); color: #fff; box-shadow: var(--glow);
  transition: transform .2s var(--ease), box-shadow .2s;
  animation: pulse 2.6s ease-in-out infinite;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(.97); }
.cta[aria-disabled="true"] { background: var(--sheet); box-shadow: none; animation: none; cursor: default; }
.cta__icon { width: 30px; height: 30px; display: grid; place-items: center; }
.cta__icon svg { width: 26px; height: 26px; }
.cta__text { display: grid; text-align: left; line-height: 1.15; }
.cta__text small { font-size: 12px; opacity: .9; text-transform: uppercase; letter-spacing: .06em; }
.cta__text b { font-family: var(--font-display); font-size: 21px; }
@keyframes pulse { 0%, 100% { box-shadow: var(--glow); } 50% { box-shadow: 0 12px 54px rgba(255,0,110,.7); } }
.cta-note { margin: 0; font-size: 14px; color: var(--muted); max-width: 34ch; }
.open-app { font-size: 14px; color: var(--muted); }
.open-app b { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.badges { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; min-width: 156px; border-radius: 12px;
  background: #000; border: 1px solid rgba(255,255,255,.22); color: #fff;
  transition: border-color .2s, transform .2s var(--ease);
}
.badge:hover { border-color: rgba(255,255,255,.5); transform: translateY(-1px); }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge span { display: grid; text-align: left; font-size: 17px; font-weight: 500; line-height: 1.1; }
.badge small { font-size: 10px; letter-spacing: .04em; opacity: .85; }
.badge[aria-disabled="true"] { opacity: .5; cursor: default; }

.qr-card {
  margin-top: 24px; padding: 14px; border-radius: 18px;
  display: flex; align-items: center; gap: 16px; text-align: left; max-width: 380px;
  background: var(--tile); border: 1px solid var(--border);
}
.qr-card[hidden] { display: none; }
.qr-card__code { width: 104px; height: 104px; flex: none; padding: 6px; border-radius: 10px; background: #fff; }
.qr-card__code svg { width: 100%; height: 100%; display: block; }
.qr-card b { color: var(--text); font-family: var(--font-display); }
.qr-card p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* Phone mockup */
.hero__visual { position: relative; display: grid; place-items: center; padding: 10px 0 20px; }
.phone {
  position: relative; z-index: 2;
  width: min(68vw, 280px); aspect-ratio: 9 / 19;
  border-radius: 42px; padding: 9px;
  background: linear-gradient(160deg, #2A3247, #11151F);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08), 0 0 90px rgba(255,0,110,.22);
}
.phone__notch { position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 76px; height: 22px; border-radius: 20px; background: #05070C; z-index: 3; }
/* "For you" player (mirrors the app screen). Sizes are in cqw so it scales with the phone. */
.phone { container-type: inline-size; }
.player { position: absolute; inset: 9px; border-radius: 34px; overflow: hidden; color: #fff; background: #000; text-align: left; pointer-events: none; user-select: none; }
.player__track { position: absolute; inset: 0; will-change: transform; }
.slide { position: relative; height: 100%; }
.slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.slide__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 16%, transparent 52%, rgba(0,0,0,.82) 88%); }
.slide__actions { position: absolute; right: 3cqw; bottom: 46cqw; display: grid; gap: 5cqw; }
.slide__actions span { display: grid; justify-items: center; gap: 1cqw; font-size: 3.6cqw; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.slide__actions svg { width: 10cqw; height: 10cqw; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.slide__actions .gold { color: #FFCE4D; }
.slide__info { position: absolute; left: 4.6cqw; right: 24cqw; bottom: 30cqw; display: grid; justify-items: start; gap: .6cqw; }
.slide__chips { display: flex; gap: 1.6cqw; margin-bottom: 1.4cqw; }
.pill { font-size: 3.5cqw; font-weight: 500; line-height: 1; padding: 1.4cqw 2.6cqw; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.pill--on { background: rgba(255,122,0,.22); color: #FFB37A; box-shadow: inset 0 0 0 1px rgba(255,122,0,.4); }
.slide__title { font-family: var(--font-display); font-size: 7.4cqw; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.slide__info small { font-size: 4.2cqw; color: var(--body); }
.slide__btn { margin-top: 3cqw; display: inline-flex; align-items: center; gap: 2cqw; padding: 2.8cqw 5.4cqw 2.8cqw 4.4cqw; border-radius: 999px;
  background: var(--grad); font-size: 4.4cqw; font-weight: 500; box-shadow: 0 4px 16px rgba(255,0,110,.4); }
.slide__btn svg { width: 4.6cqw; height: 4.6cqw; }
.slide__progress { position: absolute; left: 4.6cqw; right: 4.6cqw; bottom: 25cqw; height: 2px; border-radius: 2px; background: rgba(255,255,255,.22); }
.slide__progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; }

.player__top { position: absolute; z-index: 2; top: 13cqw; left: 4.6cqw; right: 4.6cqw; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.round { width: 11cqw; height: 11cqw; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.round svg { width: 6.4cqw; height: 6.4cqw; }
.coins { display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1cqw 3.6cqw 1cqw 1.2cqw; border-radius: 999px; font-size: 4.6cqw; font-weight: 500; color: #FFDE8A;
  background: rgba(58,38,6,.6); box-shadow: inset 0 0 0 1px rgba(240,185,60,.4); backdrop-filter: blur(8px); }
.coins img { width: 7cqw; height: 7cqw; }

.player__nav { position: absolute; z-index: 2; left: 2.4cqw; right: 2.4cqw; bottom: 2.4cqw; height: 19cqw; padding: 0 1.4cqw; border-radius: 7cqw;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(20,24,36,.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.player__nav span { position: relative; display: grid; justify-items: center; gap: .8cqw; padding: 2cqw 0; border-radius: 5cqw; font-size: 3.2cqw; color: var(--muted); }
.player__nav svg { width: 7cqw; height: 7cqw; }
.player__nav .is-on { color: var(--brand); background: rgba(255,0,110,.14); }
.player__nav .has-dot svg { color: #FF5C97; }
.player__nav .has-dot::after { content: ""; position: absolute; top: 1.6cqw; right: 3.6cqw; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--brand); }
.player__nav .has-badge::after { content: attr(data-badge-count); position: absolute; top: .6cqw; right: 2cqw; min-width: 3.8cqw; height: 3.8cqw; padding: 0 .8cqw; border-radius: 999px;
  display: grid; place-items: center; font-size: 2.6cqw; font-weight: 500; color: #fff; background: var(--brand); }

.float {
  position: absolute; width: min(36vw, 160px); height: auto; border-radius: 18px; z-index: 1; opacity: .75;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.float--l { left: max(0px, calc(50% - min(68vw, 280px) / 2 - 26vw)); top: 14%; rotate: -10deg; animation: bob 6s ease-in-out infinite; }
.float--r { right: max(0px, calc(50% - min(68vw, 280px) / 2 - 26vw)); top: 32%; rotate: 9deg; animation: bob 6s ease-in-out -3s infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }

/* ---------- Poster wall ---------- */
.wall { padding: 12px 0 56px; display: grid; gap: 14px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { overflow: hidden; }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll 50s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 58s; }
.marquee img { width: 132px; aspect-ratio: 9 / 16; height: auto; object-fit: cover; border-radius: 14px; background: var(--tile); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.features { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 64px; text-align: center; }
.features h2, .final h2 { font-size: clamp(28px, 7vw, 44px); line-height: 1.1; }
.features__grid { margin-top: 32px; display: grid; gap: 14px; }
.feature { text-align: left; padding: 22px; border-radius: 20px; background: var(--tile); border: 1px solid var(--border); }
.feature__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--grad); box-shadow: 0 6px 22px rgba(255,0,110,.34); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-top: 16px; font-size: 19px; }
.feature p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.genres { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.genres li { padding: 7px 14px; border-radius: 999px; background: var(--chip); border: 1px solid var(--border); font-size: 14px; color: var(--body); }

/* ---------- Final CTA ---------- */
.final {
  margin: 0 var(--gutter) 56px; padding: 44px 20px; border-radius: 28px; text-align: center;
  display: grid; justify-items: center; gap: 26px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255,0,110,.28), transparent 70%),
    var(--tile);
  border: 1px solid var(--border);
}
@media (min-width: 1192px) { .final { max-width: var(--max); margin-inline: auto; } }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) calc(110px + env(safe-area-inset-bottom));
  display: grid; justify-items: center; gap: 14px; text-align: center;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 14px;
}
.footer nav { display: flex; gap: 20px; }
.footer nav a:hover { color: var(--text); }
.footer [hidden] { display: none; }

/* ---------- Sticky mobile CTA ---------- */
.sticky {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border-radius: 20px; background: rgba(29,35,51,.86); border: 1px solid var(--border);
  backdrop-filter: saturate(150%) blur(22px); -webkit-backdrop-filter: saturate(150%) blur(22px);
  box-shadow: 0 18px 48px rgba(0,0,0,.55);
  transform: translateY(140%); transition: transform .38s var(--ease);
}
.sticky.is-on { transform: none; }
.sticky img { border-radius: 10px; }
.sticky div { flex: 1; display: grid; line-height: 1.2; min-width: 0; }
.sticky b { color: var(--text); font-family: var(--font-display); }
.sticky small { color: var(--muted); font-size: 13px; }
.sticky__btn { padding: 11px 22px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 500; box-shadow: 0 6px 22px rgba(255,0,110,.34); }

/* ---------- In-app browser hint ---------- */
.iab-hint {
  position: fixed; z-index: 30; top: calc(8px + env(safe-area-inset-top)); left: 12px; right: 12px;
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px;
  background: #FFF4E5; color: #3A2606; font-size: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  animation: drop .4s var(--ease);
}
.iab-hint[hidden] { display: none; }
.iab-hint span { flex: 1; }
.iab-hint__close { border: 0; background: rgba(58,38,6,.1); color: inherit; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes drop { from { transform: translateY(-120%); } }

/* ---------- Desktop ---------- */
@media (min-width: 640px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .marquee img { width: 168px; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; text-align: left; padding-top: 32px; padding-bottom: 72px; }
  .lede { margin-left: 0; }
  .cta-block { justify-items: start; }
  .badges { justify-content: flex-start; }
  .phone { width: 300px; }
  .float { width: 180px; }
  .float--l { left: 4%; top: 10%; }
  .float--r { right: 4%; top: 30%; }
  .sticky { display: none; }
  .footer { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; padding-bottom: 32px; }
  .footer nav { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
