/**
 * FilmMerge — Homepage CSS
 * Page: / (front page, Template Name: FM Home)
 * Depends on: tokens.css → base.css → components.css
 */

/* ── Hero ──────────────────────────────────────────────────── */
.fm-hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.fm-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200,151,58,.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 10% 60%, rgba(200,151,58,.04) 0%, transparent 60%),
    linear-gradient(175deg, #0a0c10 0%, #0d1019 50%, #0a0c10 100%);
}
.fm-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}
.fm-hero__orb--1 { width:300px; height:300px; background:rgba(200,151,58,.07); top:-100px; right:-100px; }
.fm-hero__orb--2 { width:200px; height:200px; background:rgba(200,151,58,.05); bottom:50px; right:100px; }
.fm-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.fm-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.fm-hero h1 em { font-style: italic; color: var(--gold); }
.fm-hero__sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}
.fm-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.fm-hero__stats   { display: flex; gap: 32px; margin-top: 52px; }
.fm-hero__stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.fm-hero__stat span { font-size: .78rem; color: var(--muted); letter-spacing: .05em; }
.fm-hero__visual   { position: relative; display: flex; justify-content: center; }
.fm-hero__frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9/14;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--panel), var(--border));
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(200,151,58,.1);
  display: block;
}
.fm-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.fm-hero__frame-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(0deg, rgba(10,12,16,.95) 0%, transparent 60%);
}
.fm-hero__film-badge {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.fm-hero__film-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}
.fm-hero__film-meta { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.fm-hero__film-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,151,58,.4);
  padding: 7px 14px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.fm-hero__film-cta:hover { background: rgba(200,151,58,.12); color: var(--gold); }
.fm-hero__no-film {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}
.fm-hero__no-film i { font-size: 3rem; color: rgba(200,151,58,.2); }
.fm-hero__no-film p { font-size: .82rem; color: var(--muted); }

/* ── Trust bar ──────────────────────────────────────────────── */
.fm-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  background: var(--deep);
}
.fm-trust__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.fm-trust__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.fm-trust__logos { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fm-trust__logo-pill {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(242,234,216,.35);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(242,234,216,.1);
  transition: var(--transition);
}
.fm-trust__logo-pill:hover { color: var(--cream); border-color: rgba(242,234,216,.3); }

/* ── How It Works ───────────────────────────────────────────── */
.fm-how { background: var(--deep); }
.fm-how__header { text-align: center; margin-bottom: 72px; }
.fm-how__header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}
.fm-how__header p { color: var(--muted); max-width: 480px; margin: 16px auto 0; font-size: 1rem; }
.fm-how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.fm-how__step {
  padding: 40px 28px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}
.fm-how__step:last-child { border-right: none; }
.fm-how__step:hover { background: #1b2130; }
.fm-how__step-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(200,151,58,.18);
  line-height: 1;
  margin-bottom: 20px;
}
.fm-how__step-icon { font-size: 1.8rem; margin-bottom: 16px; color: var(--gold); line-height: 1; }
.fm-how__step h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.fm-how__step p { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.fm-how__step-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.fm-how__step:hover .fm-how__step-line { transform: scaleX(1); }

/* ── Spotlight (featured films) ─────────────────────────────── */
.fm-spotlight { background: var(--ink); }
.fm-spotlight__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.fm-spotlight__header h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
}
.fm-film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fm-film-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.fm-film-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  border-color: rgba(200,151,58,.25);
}
.fm-film-card__thumb {
  aspect-ratio: 2/3;
  width: 100%;
  background: linear-gradient(160deg, #1a2035, #0f141e);
  position: relative;
  overflow: hidden;
}
.fm-film-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.fm-film-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,12,16,.9) 0%, transparent 50%);
}
.fm-film-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
}
.fm-film-card__body { padding: 20px; }
.fm-film-card__genre {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.fm-film-card__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.fm-film-card__desc {
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}
.fm-film-card__footer { display: flex; justify-content: space-between; align-items: center; }
.fm-film-card__meta { font-size: .75rem; color: var(--muted); }

/* Catalog-more card (dashed CTA) */
.fm-cat-card--more {
  background: rgba(200,151,58,.04) !important;
  border: 1.5px dashed rgba(200,151,58,.2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

/* ── For Filmmakers ─────────────────────────────────────────── */
.fm-makers { background: var(--deep); position: relative; overflow: hidden; }
.fm-makers__accent {
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(200,151,58,.06) 0%, transparent 70%);
  pointer-events: none;
}
.fm-makers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.fm-makers__content h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}
.fm-makers__content > p { color: var(--muted); line-height: 1.8; margin-bottom: 32px; }
.fm-makers__benefits { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.fm-makers__benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.fm-makers__benefit:hover { border-color: rgba(200,151,58,.2); background: #1b2130; }
.fm-makers__benefit-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; color: var(--gold); line-height: 1; }
.fm-makers__benefit-title { font-weight: 600; color: var(--cream); font-size: .92rem; margin-bottom: 2px; }
.fm-makers__benefit-desc { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.fm-makers__reqs { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.fm-makers__reqs h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}
.fm-req-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.fm-req-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.fm-req-list li:last-child { border-bottom: none; padding-bottom: 0; }
.fm-req-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(200,151,58,.12);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
}

/* ── For Buyers ─────────────────────────────────────────────── */
.fm-buyers { background: var(--ink); }
.fm-buyers__header { text-align: center; margin-bottom: 64px; }
.fm-buyers__header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
}
.fm-buyers__header p { color: var(--muted); max-width: 500px; margin: 16px auto 0; }
.fm-buyers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.fm-buyers__card {
  padding: 36px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
}
.fm-buyers__card:hover { border-color: rgba(200,151,58,.2); transform: translateY(-4px); }
.fm-buyers__card-icon { font-size: 2rem; margin-bottom: 16px; color: var(--gold); line-height: 1; }
.fm-buyers__card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.fm-buyers__card p { font-size: .86rem; color: var(--muted); line-height: 1.7; }
.fm-buyers__cta {
  text-align: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(200,151,58,.08), rgba(200,151,58,.03));
  border: 1px solid rgba(200,151,58,.15);
  border-radius: 16px;
}
.fm-buyers__cta h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.fm-buyers__cta p { color: var(--muted); margin-bottom: 28px; }

/* ── Catalog Preview ────────────────────────────────────────── */
.fm-catalog-preview { background: var(--deep); }
.fm-catalog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.fm-catalog__header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
}
.fm-catalog__filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.fm-filter-btn {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.fm-filter-btn:hover, .fm-filter-btn.active { color: var(--gold); border-color: rgba(200,151,58,.4); background: rgba(200,151,58,.06); }
.fm-catalog__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fm-cat-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.fm-cat-card:hover { transform: translateY(-4px); border-color: rgba(200,151,58,.2); }
.fm-cat-card.fm-hidden { display: none !important; }
.fm-cat-card__thumb {
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #1a2035, #0f141e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.fm-cat-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fm-cat-card__thumb span {
  font-family: var(--serif);
  font-style: italic;
  font-size: .85rem;
  color: rgba(242,234,216,.12);
  text-align: center;
  padding: 12px;
}
.fm-cat-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,12,16,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.fm-cat-card:hover .fm-cat-card__overlay { opacity: 1; }
.fm-cat-card__body { padding: 14px; }
.fm-cat-card__title {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}
.fm-cat-card__year { font-size: .75rem; color: var(--muted); }

/* ── About ──────────────────────────────────────────────────── */
.fm-about { background: var(--ink); position: relative; overflow: hidden; }
.fm-about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.fm-about__text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.fm-about__text p { color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.fm-about__quote {
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  background: var(--panel);
  border-radius: 0 8px 8px 0;
  margin: 36px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.7;
}
.fm-about__stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fm-about__stat-card {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.fm-about__stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.fm-about__stat-card span { font-size: .8rem; color: var(--muted); }
.fm-about__cross-card {
  padding: 36px;
  background: linear-gradient(135deg, rgba(200,151,58,.1), rgba(200,151,58,.04));
  border: 1px solid rgba(200,151,58,.2);
  border-radius: 12px;
  text-align: center;
  margin-top: 16px;
}
.fm-about__cross-symbol { font-family: var(--serif); font-size: 3rem; color: var(--gold); margin-bottom: 12px; display: block; }
.fm-about__cross-card p { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--cream); line-height: 1.6; margin: 0; }

/* ── FAQ ────────────────────────────────────────────────────── */
.fm-faq { background: var(--deep); }
.fm-faq__header { text-align: center; margin-bottom: 56px; }
.fm-faq__header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
}
.fm-faq__grid { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.fm-faq__item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}
.fm-faq__item:hover { border-color: rgba(200,151,58,.2); }
.fm-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  cursor: pointer;
}
.fm-faq__q::after {
  content: '+';
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: rgba(200,151,58,.1);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--transition);
}
.fm-faq__item.is-open .fm-faq__q::after { content: '−'; }
.fm-faq__a {
  display: none;
  padding: 0 24px 22px;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.fm-faq__item.is-open .fm-faq__a { display: block; }

/* ── Contact section ────────────────────────────────────────── */
.fm-contact { background: var(--ink); }
.fm-contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.fm-contact__info h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.fm-contact__info > p { color: var(--muted); line-height: 1.8; margin-bottom: 36px; }
.fm-contact__details { display: flex; flex-direction: column; gap: 16px; }
.fm-contact__detail { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--muted); }
.fm-contact__detail a { color: var(--muted); transition: color var(--transition); }
.fm-contact__detail a:hover { color: var(--gold); }
.fm-contact__detail-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: rgba(200,151,58,.1);
  border: 1px solid rgba(200,151,58,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
}
.fm-contact__form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fm-how__steps { grid-template-columns: repeat(2, 1fr); }
  .fm-film-grid  { grid-template-columns: repeat(2, 1fr); }
  .fm-catalog__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .fm-hero__inner   { grid-template-columns: 1fr; gap: 48px; }
  .fm-hero__visual  { display: none; }
  .fm-how__steps    { grid-template-columns: 1fr; }
  .fm-makers__grid  { grid-template-columns: 1fr; gap: 48px; }
  .fm-about__inner  { grid-template-columns: 1fr; gap: 48px; }
  .fm-contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .fm-buyers__grid  { grid-template-columns: 1fr; }
  .fm-film-grid     { grid-template-columns: 1fr; }
  .fm-catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .fm-spotlight__header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .fm-catalog__header   { flex-direction: column; gap: 16px; align-items: flex-start; }
  .fm-hero__stats   { gap: 24px; }
  .fm-trust__inner  { gap: 24px; }
}
@media (max-width: 480px) {
  .fm-catalog__grid { grid-template-columns: 1fr 1fr; }
}
