:root {
  --bg: #000;
  --surface: #141414;
  --surface-2: #2d2d2d;
  --surface-3: #414141;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.5);
  --brand: #ff521c;
  --brand-hover: #e2410f;
  --brand-glow: rgba(255, 82, 28, 0.55);
  --radius: 8px;
  --max: 1220px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding: 22px 0;
}
.site-header.solid { position: sticky; top: 0; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid #222; padding: 14px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 900; font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.5px; }
.brand b { color: var(--brand); font-weight: 900; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-select {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
}
.lang-select select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--text);
  font-size: 14px; font-weight: 600; padding: 7px 30px 7px 32px; cursor: pointer;
}
.lang-select select option { color: #000; }
.lang-select::before { content: "🌐"; position: absolute; left: 9px; font-size: 13px; pointer-events: none; }
.lang-select::after {
  content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); pointer-events: none;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 4px; cursor: pointer; text-decoration: none; font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-brand { background: var(--brand); color: #fff; padding: 7px 16px; font-size: 14px; white-space: nowrap; }
.btn-brand:hover { background: var(--brand-hover); }
.btn-lg { padding: 14px 26px; font-size: clamp(17px, 2.2vw, 22px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 900px); display: grid; place-items: center;
  text-align: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate;
}
.poster-wall {
  position: absolute; inset: -12% -12%; z-index: -2;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
  transform: rotate(-12deg) scale(1.12); opacity: 0.85;
}
.poster-wall div { aspect-ratio: 2 / 3; border-radius: 6px; background: #1b1b1b center / cover no-repeat; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.85) 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.55) 70%, #000 100%);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(32px, 6vw, 60px); line-height: 1.08; font-weight: 900; margin: 0 0 16px; letter-spacing: -1px; }
.hero .lead { font-size: clamp(17px, 2.4vw, 22px); font-weight: 600; margin: 0 0 22px; }
.hero .cta-text { font-size: clamp(15px, 2vw, 19px); color: var(--muted); margin: 0 0 18px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; text-align: left;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 10px;
  padding: 9px 18px 9px 14px; text-decoration: none; min-width: 190px;
  transition: border-color 0.15s, transform 0.15s;
}
.store-btn:hover { border-color: #fff; transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; color: var(--muted); line-height: 1.1; }
.store-btn strong { display: block; font-size: 18px; line-height: 1.2; }
.store-btn.primary { background: var(--brand); border-color: var(--brand); }
.store-btn.primary small { color: rgba(255, 255, 255, 0.85); }
.store-btn.primary:hover { background: var(--brand-hover); }

/* Curved glow divider (Netflix-style arc) */
.curve { position: relative; height: 100px; margin-top: -60px; overflow: hidden; }
.curve::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: 20px; height: 300%;
  border-radius: 50% 50% 0 0 / 100px 100px 0 0;
  border-top: 4px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, rgba(255, 82, 28, 0) 0%, var(--brand) 25%, #ffb199 50%, var(--brand) 75%, rgba(255, 82, 28, 0) 100%) border-box;
  box-shadow: 0 -30px 60px -10px var(--brand-glow);
}

/* ---------- Sections ---------- */
section { padding: 28px 0; }
.section-title { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin: 0 0 16px; }

/* Trending row with big outlined numbers */
.trending { position: relative; }
.rail {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 2px 18px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rank-card {
  position: relative; flex: 0 0 auto; scroll-snap-align: start; text-decoration: none;
  display: flex; align-items: flex-end; padding-left: 46px;
  transition: transform 0.2s ease;
}
.rank-card:hover { transform: scale(1.05); }
.rank-card .num {
  position: absolute; left: 0; bottom: -18px; z-index: 1;
  font-size: 128px; font-weight: 900; line-height: 1; letter-spacing: -8px;
  color: #000; -webkit-text-stroke: 3px rgba(255, 255, 255, 0.85);
  paint-order: stroke fill;
}
.rank-card .poster {
  position: relative; z-index: 2; width: clamp(118px, 15vw, 182px); aspect-ratio: 2 / 3;
  border-radius: 8px; background: #1b1b1b center / cover no-repeat; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}
.rank-card .badge {
  position: absolute; top: 6px; right: 6px; background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.5px;
}
.rank-card .title {
  position: absolute; inset: auto 0 0 0; padding: 22px 8px 8px; font-size: 12px; font-weight: 700;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}
.rail-btn {
  position: absolute; top: 50%; z-index: 3; width: 34px; height: 110px; transform: translateY(-40%);
  border: 0; border-radius: 6px; background: rgba(40, 40, 40, 0.85); color: #fff; font-size: 22px; cursor: pointer;
}
.rail-btn.prev { left: -6px; } .rail-btn.next { right: -6px; }
.rail-btn:hover { background: rgba(70, 70, 70, 0.95); }
.rail-btn[hidden] { display: none; }

/* Reasons cards */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.reason {
  position: relative; min-height: 220px; padding: 20px 18px 64px; border-radius: 16px;
  background: linear-gradient(149deg, #1d1530 0%, #1a1c3a 45%, #1d0f0a 100%);
}
.reason h3 { font-size: 21px; line-height: 1.2; margin: 0 0 10px; font-weight: 800; }
.reason p { margin: 0; color: var(--muted); font-size: 15px; }
.reason .ico { position: absolute; right: 16px; bottom: 14px; width: 56px; height: 56px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan {
  border: 1px solid #2a2a2a; border-radius: 14px; padding: 18px; background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.plan.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 10px 30px -12px var(--brand-glow); }
.plan .tag { align-self: flex-start; font-size: 11px; font-weight: 800; color: #fff; background: var(--brand); padding: 2px 8px; border-radius: 999px; }
.plan h3 { margin: 4px 0 0; font-size: 17px; }
.plan .price { font-size: 28px; font-weight: 900; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan p { margin: 0; color: var(--muted); font-size: 14px; }
.plans-note { color: var(--faint); font-size: 13px; margin-top: 12px; }

/* FAQ accordion */
.faq-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.faq-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  background: var(--surface-2); border: 0; padding: 22px 24px; font-size: clamp(17px, 2.2vw, 22px); cursor: pointer;
  transition: background 0.15s;
}
.faq-item button:hover { background: var(--surface-3); }
.faq-item .plus { flex: none; width: 28px; height: 28px; position: relative; }
.faq-item .plus::before, .faq-item .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 2px; background: #fff;
  transform: translate(-50%, -50%); transition: transform 0.25s ease;
}
.faq-item .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .plus::before { transform: translate(-50%, -50%) rotate(45deg); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(135deg); }
.faq-answer {
  display: grid; grid-template-rows: 0fr; background: var(--surface-2); margin-top: 1px;
  transition: grid-template-rows 0.25s ease;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { margin: 0; padding: 22px 24px; font-size: clamp(16px, 2vw, 20px); }
.faq-answer p + p { padding-top: 0; }

.cta-block { text-align: center; padding: 34px 0 10px; }
.cta-block p { font-size: clamp(16px, 2vw, 19px); margin: 0 0 16px; }

/* ---------- Footer ---------- */
.site-footer { color: var(--faint); padding: 56px 0 40px; font-size: 14px; }
.site-footer .contact { margin: 0 0 24px; }
.site-footer .contact a { color: var(--faint); }
.footer-links {
  list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px;
}
.footer-links a { color: var(--faint); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.site-footer .lang-select { margin-bottom: 18px; }
.site-footer .copy { font-size: 13px; margin: 0; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 24px; }
.legal .wrap { max-width: 860px; }
.legal .eyebrow { color: var(--brand); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 8px; font-weight: 900; }
.legal .updated { color: var(--faint); margin: 0 0 28px; }
.legal .toc { background: var(--surface); border: 1px solid #262626; border-radius: 12px; padding: 18px 22px; margin: 0 0 32px; }
.legal .toc strong { display: block; margin-bottom: 8px; }
.legal .toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 32px; color: var(--muted); }
.legal .toc li { margin: 4px 0; break-inside: avoid; }
.legal .toc a { color: var(--muted); text-decoration: none; }
.legal .toc a:hover { color: var(--text); text-decoration: underline; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; padding-top: 8px; scroll-margin-top: 80px; }
.legal h3 { font-size: 17px; margin: 20px 0 6px; }
.legal p, .legal li { color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--brand); }
.legal .callout { border-left: 3px solid var(--brand); background: #1a120f; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.legal .callout p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .reasons, .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .poster-wall { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 600px) {
  .reasons, .plans { grid-template-columns: 1fr; }
  .reason { min-height: 0; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 20px; }
  .lang-select select { padding: 6px 26px 6px 28px; font-size: 13px; }
  .rank-card { padding-left: 34px; }
  .rank-card .num { font-size: 96px; letter-spacing: -6px; }
  .rail-btn { display: none; }
  .store-btn { min-width: 0; flex: 1 1 160px; }
  .legal .toc ol { columns: 1; }
  .poster-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  /* The hero already has a large download button; keep the header to logo + language */
  .site-header:not(.solid) .header-actions .btn-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
