/* ============================================================================
   FILMES FAVORITOS — CSS PRINCIPAL
   Projeto estático, sem framework e sem código de construtor visual.

   MAPA RÁPIDO:
   1. Variáveis / cores
   2. Base
   3. Cabeçalho
   4. Hero
   5. Benefícios rápidos
   6. Catálogo
   7. Diferenciais
   8. Planos
   9. FAQ
   10. Rodapé
   11. Animações e responsividade
   ========================================================================== */

/* 1. VARIÁVEIS / CORES ------------------------------------------------------ */
:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --surface: #101010;
  --surface-2: #151515;
  --surface-3: #1c1c1c;
  --text: #f7f7f7;
  --text-soft: #b8b8b8;
  --text-faint: #7e7e7e;
  --line: rgba(255, 255, 255, 0.10);
  --red: #e5232c;
  --red-deep: #a80e16;
  --red-bright: #ff3b43;
  --gold: #d5ad4a;
  --gold-light: #f4d77c;
  --silver: #aab0ba;
  --green: #35c56f;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --container: 1180px;
  --header-h: 72px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 18%, rgba(229,35,44,.08), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 9999;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid rgba(255,59,67,.78); outline-offset: 3px; }

/* Botões */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 800; letter-spacing: .015em; cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff; box-shadow: 0 12px 36px rgba(229,35,44,.28);
}
.button-primary:hover { box-shadow: 0 16px 44px rgba(229,35,44,.38); }
.button-ghost { border: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.06); color: #fff; backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.34); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.button-large { min-height: 56px; padding: 0 28px; }
.button-play { font-size: 12px; }
.button[aria-disabled="true"] { opacity: .72; cursor: not-allowed; }
.button[aria-disabled="true"]:hover { transform: none; }

/* Títulos de seção */
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-kicker {
  display: inline-block; margin-bottom: 12px; color: var(--red-bright);
  font-size: 12px; font-weight: 900; letter-spacing: .18em;
}
.section-heading h2, .faq-intro h2 {
  margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.04; letter-spacing: -.035em;
}
.section-heading p, .faq-intro p { margin: 0; color: var(--text-soft); font-size: 17px; }

/* 3. CABEÇALHO -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h); border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(5,5,5,.76); backdrop-filter: blur(18px) saturate(130%);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; }
.brand strong { color: var(--red-bright); }
.brand-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--red-bright); }
.brand-icon svg { width: 100%; height: 100%; }
.header-nav { display: flex; gap: 26px; margin-left: auto; color: #c9c9c9; font-size: 14px; font-weight: 650; }
.header-nav a { transition: color .2s ease; }
.header-nav a:hover { color: #fff; }
.header-cta { margin-left: 4px; }

/* 4. HERO ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 780px; height: min(86vh, 900px); overflow: hidden;
  display: flex; align-items: center; padding-top: var(--header-h); background: #020202;
}
.hero-slides, .hero-fallback, .hero-overlay { position: absolute; inset: 0; }
.hero-fallback {
  background-image: url("../img/filmeflix-preview.png"); background-size: cover; background-position: center;
  filter: blur(10px) saturate(.65); transform: scale(1.05); opacity: .22;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center 25%; transform: scale(1.02);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.16); }
.hero-overlay-side { background: linear-gradient(90deg, #020202 5%, rgba(2,2,2,.93) 34%, rgba(2,2,2,.54) 65%, rgba(2,2,2,.18)); }
.hero-overlay-bottom { background: linear-gradient(0deg, #050505 0%, rgba(5,5,5,.74) 13%, transparent 48%, rgba(0,0,0,.22)); }
.hero-content { position: relative; z-index: 5; padding-top: 38px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 9px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  background: rgba(10,10,10,.48); color: #d8d8d8; font-size: 13px; font-weight: 700; backdrop-filter: blur(10px);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 14px rgba(255,59,67,.8); }
.hero h1 {
  margin: 0 0 22px; max-width: 900px; font-size: clamp(50px, 7.2vw, 100px); line-height: .94;
  letter-spacing: -.055em; font-weight: 950; text-wrap: balance;
}
.hero h1 span { color: var(--red-bright); text-shadow: 0 12px 44px rgba(229,35,44,.18); }
.hero-copy { max-width: 670px; margin: 0 0 30px; color: #d6d6d6; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px 26px; color: #c0c0c0; font-size: 13px; font-weight: 650; }
.hero-points span::first-letter { color: var(--green); }
.hero-dots { position: absolute; z-index: 8; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border-radius: 99px; background: rgba(255,255,255,.38); cursor: pointer; transition: width .25s ease, background .25s ease; }
.hero-dot.is-active { width: 30px; background: var(--red-bright); }

/* 5. BENEFÍCIOS RÁPIDOS ---------------------------------------------------- */
.quick-benefits { position: relative; z-index: 9; margin-top: -1px; background: #090909; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-item { min-height: 112px; display: flex; align-items: center; gap: 14px; padding: 22px 18px; border-right: 1px solid var(--line); }
.quick-item:first-child { padding-left: 0; }
.quick-item:last-child { border-right: 0; padding-right: 0; }
.quick-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(229,35,44,.10); border: 1px solid rgba(229,35,44,.20); }
.quick-item strong, .quick-item small { display: block; }
.quick-item strong { font-size: 14px; }
.quick-item small { margin-top: 2px; color: var(--text-faint); line-height: 1.35; }

/* 6. CATÁLOGO --------------------------------------------------------------- */
.catalog-section { background: linear-gradient(180deg, #050505, #080808); }
.heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.heading-row > div { max-width: 700px; }
.live-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; color: #a7a7a7; font-size: 12px; }
.live-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(53,197,111,.08); }
.poster-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.poster-card { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 14px; background: #151515; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.poster-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.poster-card:hover img { transform: scale(1.045); filter: brightness(.70); }
.poster-overlay { position: absolute; inset: 0; display: flex; align-items: end; padding: 13px; background: linear-gradient(0deg, rgba(0,0,0,.88), transparent 55%); opacity: 0; transition: opacity .25s ease; }
.poster-card:hover .poster-overlay { opacity: 1; }
.poster-title { font-size: 12px; font-weight: 800; }
.poster-fallback { display: grid; place-items: end start; padding: 14px; background: radial-gradient(circle at 70% 15%, rgba(229,35,44,.30), transparent 40%), linear-gradient(145deg,#242424,#0d0d0d 70%); }
.poster-fallback strong { font-size: 14px; }

/* 7. DIFERENCIAIS ----------------------------------------------------------- */
.benefits-section { background: radial-gradient(circle at 80% 10%, rgba(229,35,44,.08), transparent 28rem), #080808; border-top: 1px solid rgba(255,255,255,.04); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); border: 1px solid var(--line); min-height: 235px; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 32px; border-radius: 14px; color: #fff; font-size: 12px; font-weight: 900; background: linear-gradient(135deg, var(--red), #5e080d); box-shadow: 0 10px 30px rgba(229,35,44,.18); }
.feature-card h3 { margin: 0 0 9px; font-size: 20px; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }

/* 8. PLANOS ---------------------------------------------------------------- */
.plans-section { background: #030303; border-top: 1px solid rgba(255,255,255,.06); }
.plans-heading { margin-bottom: 52px; }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 16px; }
.plan-card { position: relative; display: flex; flex-direction: column; min-height: 610px; padding: 26px; border-radius: 22px; overflow: hidden; }
.plan-dark { background: linear-gradient(180deg, #111722, #090c12); border: 1px solid rgba(255,255,255,.11); box-shadow: 0 12px 50px rgba(0,0,0,.34); }
.plan-gold { color: #1b1a17; background: linear-gradient(180deg, #fffdf7, #f2ede2); border: 2px solid var(--gold); box-shadow: 0 0 46px rgba(213,173,74,.18), 0 25px 70px rgba(0,0,0,.55); transform: translateY(-12px); }
.plan-silver { color: #17191c; background: linear-gradient(180deg, #fafbfc, #e9ebef); border: 1px solid #bec4cc; box-shadow: 0 25px 70px rgba(0,0,0,.45); }
.plan-topline { width: fit-content; margin-bottom: 28px; padding: 7px 10px; border-radius: 999px; color: #d5d5d5; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-silver .plan-topline { color: #4f5660; background: rgba(44,49,55,.08); }
.featured-ribbon { margin: -26px -26px 26px; padding: 11px; text-align: center; color: #17140c; font-size: 11px; font-weight: 950; letter-spacing: .13em; background: linear-gradient(90deg, #b78a1a, var(--gold-light), #b78a1a); }
.plan-label { margin: 0 0 5px; color: #7f7f7f; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.plan-card h3 { margin: 0 0 18px; font-size: 27px; line-height: 1.1; }
.price { display: flex; align-items: end; gap: 5px; margin-bottom: 7px; font-size: 17px; font-weight: 800; }
.price strong { font-size: clamp(40px, 3vw, 50px); line-height: .95; letter-spacing: -.05em; }
.price small { margin-bottom: 4px; color: #777; font-size: 12px; font-weight: 600; }
.plan-dark .price { color: #fff; }
.plan-gold .price { color: #9b7516; }
.plan-silver .price { color: #535d69; }
.price-note { min-height: 42px; margin: 0 0 18px; color: #8f8f8f; font-size: 12px; line-height: 1.5; }
.plan-gold .price-note, .plan-silver .price-note { color: #666; }
.bonus-box { display: flex; align-items: center; gap: 9px; margin: 3px 0 20px; padding: 12px; border-radius: 12px; border: 1px dashed rgba(157,117,22,.58); background: rgba(213,173,74,.08); }
.bonus-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #9b7516; border: 1px solid #e9dfc4; font-size: 19px; }
.bonus-box div { display: flex; flex-direction: column; line-height: 1.15; }
.bonus-box strong { font-size: 13px; }
.bonus-box small { margin-top: 3px; color: #777; font-size: 10px; }
.bonus-free { margin-left: auto; color: #1d8a48; font-size: 10px; font-weight: 900; }
.plan-list { list-style: none; display: grid; gap: 12px; margin: 6px 0 25px; padding: 0; }
.plan-list li { position: relative; padding-left: 28px; color: #c7c7c7; font-size: 13px; line-height: 1.45; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: rgba(53,197,111,.10); color: var(--green); font-size: 10px; font-weight: 900; }
.plan-gold .plan-list li, .plan-silver .plan-list li { color: #404040; }
.plan-gold .plan-list li::before { background: rgba(213,173,74,.13); color: #987116; }
.button-plan { width: 100%; margin-top: auto; min-height: 52px; color: #fff; background: linear-gradient(135deg, #252a34, #11141a); border: 1px solid rgba(255,255,255,.08); text-transform: uppercase; font-size: 12px; }
.button-gold { color: #17140c; background: linear-gradient(135deg, #b78a1a, var(--gold-light)); border-color: rgba(150,110,15,.25); box-shadow: 0 12px 32px rgba(213,173,74,.24); }
.button-silver { background: linear-gradient(135deg, #5a6470, #9098a2); }
.plans-disclaimer { max-width: 850px; margin: 30px auto 0; text-align: center; color: #727272; font-size: 12px; line-height: 1.6; }

/* 9. FAQ ------------------------------------------------------------------- */
.faq-section { background: linear-gradient(180deg, #080808, #050505); border-top: 1px solid rgba(255,255,255,.05); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro .button { margin-top: 26px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; cursor: pointer; font-weight: 750; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--red-bright); font-size: 21px; transition: transform .22s ease; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 22px 22px; color: #a8a8a8; font-size: 14px; line-height: 1.7; }

/* 10. RODAPÉ --------------------------------------------------------------- */
.site-footer { padding: 50px 0 22px; border-top: 1px solid var(--line); background: #020202; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: start; }
.brand-footer { margin-bottom: 13px; }
.footer-grid p { max-width: 640px; margin: 0; color: #777; font-size: 12px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 24px; color: #aaa; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); color: #626262; font-size: 11px; }

/* Toast */
.toast {
  position: fixed; z-index: 500; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 12px;
  color: #fff; background: rgba(18,18,18,.96); border: 1px solid rgba(255,255,255,.13);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  font-size: 13px; text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 11. ANIMAÇÕES / RESPONSIVIDADE ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .header-nav { display: none; }
  .header-cta { margin-left: auto; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item { border-bottom: 1px solid var(--line); }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(3), .quick-item:nth-child(4) { border-bottom: 0; }
  .poster-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-inline: auto; }
  .plan-gold { transform: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 70px 0; }
  .site-header { background: rgba(5,5,5,.90); }
  .brand { font-size: 17px; }
  .brand-icon { width: 24px; height: 24px; }
  .header-cta { min-height: 38px; padding-inline: 14px; font-size: 12px; }
  .hero { min-height: 690px; height: auto; padding: 116px 0 92px; align-items: flex-start; }
  .hero-overlay-side { background: linear-gradient(90deg, rgba(2,2,2,.90), rgba(2,2,2,.60)); }
  .hero-overlay-bottom { background: linear-gradient(0deg, #050505 0%, rgba(5,5,5,.62) 20%, transparent 64%); }
  .hero h1 { font-size: clamp(47px, 14vw, 72px); }
  .hero-copy { font-size: 16px; max-width: 580px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-points { display: grid; gap: 9px; }
  .hero-dots { bottom: 22px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item, .quick-item:first-child, .quick-item:last-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-item:last-child { border-bottom: 0; }
  .heading-row { display: block; }
  .live-badge { margin-top: 16px; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .poster-card { border-radius: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .plans-grid { grid-template-columns: 1fr; max-width: 430px; }
  .plan-card { min-height: 0; }
  .button-plan { margin-top: 8px; }
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .brand span:last-child { max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
  .header-cta { display: none; }
  .hero { min-height: 680px; }
  .eyebrow { font-size: 11px; }
  .hero h1 { font-size: clamp(44px, 14.8vw, 62px); }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading h2, .faq-intro h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
