/* ════════════════════════════════════════════════════════════════
   FilmMerge Platform Theme — r50 Light Mode Visual System

   Purpose:
   - Keep the accepted r49 dark mode untouched.
   - Rebuild light mode as a clean white-led, premium editorial system.
   - Load after public-visual.css so it becomes the final public light layer.
   - Use html[data-theme="light"] and system-light fallback only.
   ════════════════════════════════════════════════════════════════ */

html[data-theme="light"] {
  color-scheme: light;
  --ink: #ffffff;
  --deep: #f6f7f9;
  --panel: #ffffff;
  --border: #d7dce3;
  --cream: #111827;
  --muted: #4b5563;
  --white: #0f172a;
  --gold: #8a5b0f;
  --gold-lt: #a87316;
  --gold-dk: #5f3d08;
  --fm-light-bg: #ffffff;
  --fm-light-bg-soft: #f7f8fa;
  --fm-light-bg-muted: #eef1f5;
  --fm-light-card: #ffffff;
  --fm-light-card-raised: #ffffff;
  --fm-light-text: #111827;
  --fm-light-heading: #0f172a;
  --fm-light-muted: #4b5563;
  --fm-light-soft: #667085;
  --fm-light-border: rgba(15, 23, 42, 0.12);
  --fm-light-border-strong: rgba(15, 23, 42, 0.18);
  --fm-light-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  --fm-light-shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.055);
  --fm-light-gold-soft: rgba(138, 91, 15, 0.10);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: var(--fm-light-bg) !important;
  color: var(--fm-light-text) !important;
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 9% 10%, rgba(168, 115, 22, 0.055), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(15, 23, 42, 0.035), transparent 20%) !important;
  opacity: 1;
}

/* ── White-led public surfaces ─────────────────────────────────── */
html[data-theme="light"] :is(
  .fm-section,
  .fm-how,
  .fm-catalog,
  .fm-faq,
  .fm-contact,
  .fm-news-shell,
  .fm-news-grid-section,
  .fm-art-main,
  .fm-article-related,
  .cat-shell,
  .byr-main,
  .fm-services-main,
  .fm-submit-shell,
  .fm-page-main,
  .fm-public-shell
) {
  background: var(--fm-light-bg) !important;
  color: var(--fm-light-text) !important;
}

html[data-theme="light"] :is(
  .fm-section--alt,
  .fm-featured,
  .fm-proof,
  .fm-news-featured,
  .fm-art-hero,
  .fm-news-hero,
  .cat-hero,
  .byr-process,
  .fm-services-hero + section,
  .fm-contact__wrap,
  .fm-submit-panel,
  .fm-submit-section
) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,248,250,0.98)) !important;
  color: var(--fm-light-text) !important;
}

html[data-theme="light"] :is(
  .fm-card,
  .fm-step,
  .film-card,
  .fm-cat-card,
  .cat-card,
  .cat-filter,
  .cat-empty,
  .byr-card,
  .byr-rail,
  .byr-step,
  .fm-services-card,
  .fm-news-card,
  .fm-news-featured,
  .fm-news-empty,
  .fm-art-author-card,
  .fm-faq__item,
  .fm-contact__panel,
  .fm-submit-card,
  .fm-native-form,
  .msf-wrap,
  .fmlog-card,
  .fmteam-card,
  .fm-access-panel,
  .fm-access-card,
  .fmteam-side-note
) {
  background: var(--fm-light-card) !important;
  color: var(--fm-light-text) !important;
  border-color: var(--fm-light-border) !important;
  box-shadow: var(--fm-light-shadow-soft) !important;
}

html[data-theme="light"] :is(.film-card, .fm-cat-card, .cat-card, .byr-card, .fm-services-card, .fm-news-card):hover {
  box-shadow: var(--fm-light-shadow) !important;
  border-color: rgba(138, 91, 15, 0.22) !important;
  transform: translateY(-2px);
}

/* ── Typography hierarchy ──────────────────────────────────────── */
html[data-theme="light"] :is(
  h1, h2, h3, h4,
  .fm-section__title,
  .fm-section__head h2,
  .fm-how__head h2,
  .fm-featured__head h2,
  .fm-catalog__head h2,
  .fm-faq__head h2,
  .fm-contact__title,
  .cat-hero h1,
  .byr-section-title,
  .fm-services-title,
  .fm-news-hero h1,
  .fm-news-grid-header h2,
  .fm-news-featured__title,
  .fm-news-card__title,
  .fm-art-title,
  .fm-art-prose h2,
  .fmlog-title,
  .fmteam-title,
  .fm-access-head h1,
  .fm-access-card h2
) {
  color: var(--fm-light-heading) !important;
  text-shadow: none !important;
}

html[data-theme="light"] :is(
  p,
  li,
  .fm-section__sub,
  .fm-section__kicker,
  .fm-how__sub,
  .fm-featured__sub,
  .fm-catalog__sub,
  .fm-faq__sub,
  .fm-contact__copy,
  .film-card__meta,
  .film-card__excerpt,
  .fm-cat-card__meta,
  .cat-hero__sub,
  .cat-card__meta,
  .byr-copy,
  .byr-card p,
  .fm-services-copy,
  .fm-news-hero__sub,
  .fm-news-featured__subtitle,
  .fm-news-card__excerpt,
  .fm-news-meta,
  .fm-art-deck,
  .fm-art-prose p,
  .fm-art-prose li,
  .fmlog-copy,
  .fmteam-copy,
  .fmteam-subtle,
  .fm-access-head p,
  .fm-access-card p,
  .fm-access-note__text,
  .fm-access-footer,
  .fmlog-help,
  .fmteam-help
) {
  color: var(--fm-light-muted) !important;
}

html[data-theme="light"] :is(
  .eyebrow,
  .fm-eyebrow,
  .fm-kicker,
  .film-card__kicker,
  .cat-card__kicker,
  .fm-news-card__kicker,
  .fmlog-eyebrow,
  .fmteam-eyebrow,
  .fmteam-badge,
  .fm-access-eyebrow,
  .fm-access-card__kicker
) {
  color: var(--gold) !important;
  background: var(--fm-light-gold-soft) !important;
  border-color: rgba(138, 91, 15, 0.18) !important;
}

/* ── Light-mode hero: same structure, white-led treatment ─────── */
html[data-theme="light"] .fm-hero,
html[data-theme="light"] .fm-hero__bg {
  background-color: #ffffff !important;
}

html[data-theme="light"] .fm-hero {
  color: var(--fm-light-text) !important;
}

html[data-theme="light"] .fm-hero::before,
html[data-theme="light"] .fm-hero::after {
  opacity: 0.55;
}

html[data-theme="light"] .fm-hero__bg {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.76) 48%, rgba(255,255,255,0.56)),
    radial-gradient(ellipse 80% 60% at 72% 34%, rgba(168,115,22,.12) 0%, transparent 65%),
    radial-gradient(ellipse 52% 80% at 8% 62%, rgba(15,23,42,.05) 0%, transparent 62%) !important;
}

html[data-theme="light"] .fm-hero :is(h1, .fm-hero__title) {
  color: var(--fm-light-heading) !important;
  text-shadow: none !important;
}

html[data-theme="light"] .fm-hero :is(.fm-hero__sub, .fm-hero__eyebrow, .fm-hero__stat span) {
  color: var(--fm-light-muted) !important;
}

html[data-theme="light"] .fm-hero .eyebrow,
html[data-theme="light"] .fm-hero__eyebrow {
  color: var(--gold) !important;
}

html[data-theme="light"] .fm-hero__stat strong {
  color: var(--fm-light-heading) !important;
}

html[data-theme="light"] .fm-hero__stats,
html[data-theme="light"] .fm-hero__stat {
  border-color: var(--fm-light-border) !important;
}

html[data-theme="light"] :is(.cat-hero, .byr-hero, .fm-services-hero, .fm-news-hero, .fm-art-hero, .fm-page-hero) {
  background:
    radial-gradient(circle at top right, rgba(168,115,22,.09), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%) !important;
  color: var(--fm-light-text) !important;
}

html[data-theme="light"] :is(.cat-hero, .byr-hero, .fm-services-hero, .fm-news-hero, .fm-art-hero, .fm-page-hero) :is(h1,h2,p,span,strong) {
  text-shadow: none !important;
}

html[data-theme="light"] :is(.byr-hero, .fm-services-hero) :is(h1, h2, .byr-hero__title, .fm-services-hero__title) {
  color: var(--fm-light-heading) !important;
}

html[data-theme="light"] :is(.byr-hero__sub, .fm-services-hero__sub, .cat-hero__sub) {
  color: var(--fm-light-muted) !important;
}

/* ── Header/navigation in light mode ───────────────────────────── */
html[data-theme="light"] .fm-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055) !important;
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .fm-nav--hero:not(.is-scrolled) {
  background: rgba(255,255,255,0.70) !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .fm-nav__links a,
html[data-theme="light"] .fm-nav--hero:not(.is-scrolled) .fm-nav__links a {
  color: #1f2937 !important;
}

html[data-theme="light"] .fm-nav__links a:hover,
html[data-theme="light"] .fm-nav__links a.is-active {
  color: var(--gold) !important;
}

/* ── Buttons and CTAs ─────────────────────────────────────────── */
html[data-theme="light"] :is(.btn-gold, .fm-btn--gold, .fm-nav__btn--gold, .fm-access-btn--primary, .fmlog-submit, .fmteam-submit) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #a87316, #7d510d) !important;
  border-color: rgba(95, 61, 8, 0.44) !important;
  box-shadow: 0 16px 32px rgba(138, 91, 15, 0.18) !important;
}

html[data-theme="light"] :is(.btn-outline, .btn-ghost, .fm-btn--outline, .fm-access-btn:not(.fm-access-btn--primary), .fmlog-links a:not(.is-primary), .fmteam-footer a, .fm-access-footer__links a) {
  color: #1f2937 !important;
  background: rgba(255,255,255,0.82) !important;
  border-color: var(--fm-light-border-strong) !important;
}

html[data-theme="light"] :is(.btn-outline, .btn-ghost, .fm-btn--outline, .fm-access-btn:not(.fm-access-btn--primary)):hover {
  color: var(--gold-dk) !important;
  border-color: rgba(138, 91, 15, 0.28) !important;
  background: #ffffff !important;
}

/* ── Forms and controls ───────────────────────────────────────── */
html[data-theme="light"] :is(input, select, textarea, .fm-native-form input, .fm-native-form select, .fm-native-form textarea, .msf-wrap input, .msf-wrap select, .msf-wrap textarea, .fmlog-field input, .fmteam-field input, .fmteam-field select, .fmteam-field textarea) {
  background: #ffffff !important;
  color: var(--fm-light-text) !important;
  border-color: var(--fm-light-border-strong) !important;
  box-shadow: none !important;
}

html[data-theme="light"] :is(input, select, textarea)::placeholder {
  color: #8b95a5 !important;
}

html[data-theme="light"] :is(label, .fmlog-field label, .fmteam-field label, .fm-native-form label, .msf-wrap label) {
  color: #273244 !important;
}

html[data-theme="light"] :is(input, select, textarea):focus {
  border-color: rgba(138, 91, 15, 0.44) !important;
  box-shadow: 0 0 0 3px rgba(138, 91, 15, 0.12) !important;
  outline: none !important;
}

/* ── Access/login pages: white-led without changing templates ─── */
html[data-theme="light"] body.filmmerge-buyer-login-page,
html[data-theme="light"] body.filmmerge-filmmaker-login-page,
html[data-theme="light"] body.filmmerge-portal-access-page,
html[data-theme="light"] body.filmmerge-team-access-page {
  background: #ffffff !important;
  color: var(--fm-light-text) !important;
}

html[data-theme="light"] :is(.fmlog-shell, .fmteam-shell, .fm-access-shell) {
  background:
    radial-gradient(circle at 12% 8%, rgba(168,115,22,.08), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(15,23,42,.055), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%) !important;
}

html[data-theme="light"] :is(.fmlog-card, .fmteam-card, .fm-access-panel, .fm-access-card) {
  background: rgba(255,255,255,.94) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 20px 58px rgba(15, 23, 42, 0.10) !important;
}

html[data-theme="light"] :is(.fmlog-title, .fmteam-title, .fm-access-head h1, .fm-access-card h2) {
  color: var(--fm-light-heading) !important;
}

html[data-theme="light"] :is(.fmlog-footer a, .fmteam-footer a, .fm-access-footer__links a, .fmteam-help a, .fmlog-help a) {
  color: #1f2937 !important;
}

/* ── News/articles: stronger white editorial system ───────────── */
html[data-theme="light"] :is(.fm-news-hero, .fm-news-featured, .fm-news-empty, .fm-article-related) {
  background: #ffffff !important;
  border-color: var(--fm-light-border) !important;
}

html[data-theme="light"] :is(.fm-news-card, .fm-news-featured) {
  background: #ffffff !important;
}

html[data-theme="light"] .fm-news-hero__bg,
html[data-theme="light"] .fm-art-hero__bg {
  opacity: 0.16 !important;
}

/* ── Footer: clean contrast, still premium ────────────────────── */
html[data-theme="light"] .fm-footer {
  background:
    radial-gradient(circle at 10% 10%, rgba(168,115,22,.08), transparent 24%),
    linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%) !important;
  color: var(--fm-light-text) !important;
  border-top-color: var(--fm-light-border) !important;
}

html[data-theme="light"] .fm-footer :is(h2,h3,h4,strong) {
  color: var(--fm-light-heading) !important;
}

html[data-theme="light"] .fm-footer :is(p,a,li,span) {
  color: var(--fm-light-muted) !important;
}

html[data-theme="light"] .fm-footer a:hover {
  color: var(--gold) !important;
}

/* ── System light fallback for users without manual selection ─── */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    color-scheme: light;
    --ink: #ffffff;
    --deep: #f6f7f9;
    --panel: #ffffff;
    --border: #d7dce3;
    --cream: #111827;
    --muted: #4b5563;
    --white: #0f172a;
    --gold: #8a5b0f;
    --gold-lt: #a87316;
    --gold-dk: #5f3d08;
  }
  html:not([data-theme="dark"]),
  html:not([data-theme="dark"]) body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  html:not([data-theme="dark"]) :is(.fm-section,.fm-how,.fm-catalog,.fm-faq,.fm-contact,.fm-news-shell,.cat-shell,.byr-main,.fm-services-main,.fm-submit-shell) {
    background: #ffffff !important;
    color: #111827 !important;
  }
  html:not([data-theme="dark"]) :is(.fm-card,.fm-step,.film-card,.fm-cat-card,.cat-card,.byr-card,.fm-services-card,.fm-news-card,.fm-faq__item,.fm-contact__panel,.fmlog-card,.fmteam-card,.fm-access-panel,.fm-access-card) {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(15,23,42,.12) !important;
    box-shadow: 0 12px 30px rgba(15,23,42,.055) !important;
  }
  html:not([data-theme="dark"]) :is(h1,h2,h3,h4,.fm-section__title,.fm-news-hero h1,.cat-hero h1,.fmlog-title,.fmteam-title,.fm-access-head h1,.fm-access-card h2) {
    color: #0f172a !important;
    text-shadow: none !important;
  }
  html:not([data-theme="dark"]) :is(p,li,.fm-section__sub,.fm-news-hero__sub,.cat-hero__sub,.fmlog-copy,.fmteam-copy,.fm-access-head p,.fm-access-card p) {
    color: #4b5563 !important;
  }
  html:not([data-theme="dark"]) .fm-hero,
  html:not([data-theme="dark"]) .fm-hero__bg,
  html:not([data-theme="dark"]) :is(.cat-hero,.byr-hero,.fm-services-hero,.fm-news-hero,.fm-art-hero,.fm-page-hero) {
    background: linear-gradient(180deg,#ffffff 0%,#f7f8fa 100%) !important;
    color: #111827 !important;
  }
  html:not([data-theme="dark"]) .fm-hero :is(h1,.fm-hero__title),
  html:not([data-theme="dark"]) :is(.cat-hero,.byr-hero,.fm-services-hero,.fm-news-hero,.fm-art-hero,.fm-page-hero) :is(h1,h2) {
    color: #0f172a !important;
  }
  html:not([data-theme="dark"]) .fm-nav {
    background: rgba(255,255,255,.92) !important;
    border-bottom-color: rgba(15,23,42,.10) !important;
  }
  html:not([data-theme="dark"]) .fm-nav__links a,
  html:not([data-theme="dark"]) .fm-nav--hero:not(.is-scrolled) .fm-nav__links a {
    color: #1f2937 !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   r51 — Light Mode Final Polish + Header/Footer Consistency
   Keep accepted r49 dark mode untouched; refine white-led light mode.
   ════════════════════════════════════════════════════════════════ */

html[data-theme="light"] {
  --fm-light-bg: #ffffff;
  --fm-light-bg-soft: #f8fafc;
  --fm-light-card: #ffffff;
  --fm-light-heading: #0b1220;
  --fm-light-text: #182235;
  --fm-light-muted: #4f5d73;
  --fm-light-soft: #66758b;
  --fm-light-border: rgba(15, 23, 42, 0.105);
  --fm-light-border-strong: rgba(15, 23, 42, 0.17);
  --fm-light-shadow: 0 22px 58px rgba(15, 23, 42, 0.10);
  --fm-light-shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.065);
  --fm-light-gold: #98670f;
  --fm-light-gold-dark: #704607;
  --fm-light-gold-soft: rgba(152, 103, 15, 0.105);
}

html[data-theme="light"] .fm-hero {
  min-height: clamp(660px, 86vh, 860px);
  padding-top: clamp(112px, 13vh, 150px);
  padding-bottom: clamp(54px, 8vh, 80px);
  background:
    radial-gradient(circle at 74% 24%, rgba(152, 103, 15, 0.10), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 68%, #f7f8fb 100%) !important;
}

html[data-theme="light"] .fm-hero__bg {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 45%, rgba(255,255,255,0.68) 100%),
    radial-gradient(ellipse 52% 46% at 75% 34%, rgba(152,103,15,.16) 0%, rgba(152,103,15,.05) 38%, transparent 70%),
    radial-gradient(ellipse 58% 62% at 88% 52%, rgba(15,23,42,.055) 0%, transparent 66%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.98)) !important;
  background-color: #ffffff !important;
  filter: none !important;
}

html[data-theme="light"] .fm-hero__inner--full .fm-hero__text {
  transform: translateY(-1.25vh);
  max-width: 660px;
}

html[data-theme="light"] .fm-hero h1 { margin-bottom: 18px; }
html[data-theme="light"] .fm-hero__sub { margin-bottom: 30px; font-weight: 400; }
html[data-theme="light"] .fm-hero__stats { margin-top: 40px; gap: 26px; }
html[data-theme="light"] .fm-hero__orb--1 { background: rgba(152,103,15,.10) !important; filter: blur(74px); }
html[data-theme="light"] .fm-hero__orb--2 { background: rgba(15,23,42,.055) !important; filter: blur(68px); }

html[data-theme="light"] .fm-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: rgba(15, 23, 42, 0.085) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}
html[data-theme="light"] .fm-nav--hero:not(.is-scrolled) {
  background: rgba(255, 255, 255, 0.76) !important;
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
  box-shadow: none !important;
}
html[data-theme="light"] .fm-nav__inner { gap: clamp(16px, 2vw, 28px); }
html[data-theme="light"] .fm-nav__links { gap: clamp(18px, 2.2vw, 34px); }
html[data-theme="light"] .fm-nav__links a { color: #273244 !important; font-weight: 700; }
html[data-theme="light"] .fm-nav__search-btn,
html[data-theme="light"] .fm-nav__theme-toggle {
  background: #ffffff !important;
  color: #273244 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055) !important;
}
html[data-theme="light"] .fm-nav__search-form {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09) !important;
}
html[data-theme="light"] .fm-nav__search-input { color: #182235 !important; }

html[data-theme="light"] :is(.fm-trust, .fm-how, .fm-spotlight, .fm-makers, .fm-buyers, .fm-catalog-preview, .fm-about, .fm-faq, .fm-contact) {
  background: #ffffff !important;
}
html[data-theme="light"] :is(.fm-how, .fm-spotlight, .fm-makers, .fm-buyers, .fm-catalog-preview, .fm-about, .fm-faq, .fm-contact) {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
html[data-theme="light"] .fm-trust { padding: 34px 0; background: #f7f8fa !important; }
html[data-theme="light"] .fm-trust__logo-chip {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.105) !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.045);
}
html[data-theme="light"] .fm-trust__logo-pill { color: #465166 !important; }

html[data-theme="light"] :is(.fm-step, .fm-how__step, .fm-makers__benefit, .fm-makers__reqs, .fm-buyers__feature, .fm-buyers__panel, .fm-cat-card, .fm-film-card, .fm-faq__item, .fm-contact__panel) {
  background: #ffffff !important;
  border-color: var(--fm-light-border) !important;
  box-shadow: var(--fm-light-shadow-soft) !important;
}
html[data-theme="light"] :is(.fm-step p, .fm-how__step p, .fm-makers__benefit-desc, .fm-buyers__feature p, .fm-cat-card__meta, .fm-film-card__desc, .fm-faq__answer, .fm-contact__copy) {
  color: var(--fm-light-muted) !important;
  font-size: max(0.88rem, 14px);
}
html[data-theme="light"] :is(.fm-film-card__title, .fm-cat-card__title, .fm-makers__benefit-title, .fm-buyers__feature h3, .fm-faq__question) {
  color: var(--fm-light-heading) !important;
}
html[data-theme="light"] .fm-catalog-preview,
html[data-theme="light"] .fm-buyers,
html[data-theme="light"] .fm-contact {
  background:
    radial-gradient(circle at 88% 16%, rgba(152, 103, 15, .06), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}
html[data-theme="light"] :is(.cat-hero, .byr-hero, .fm-services-hero, .fm-news-hero, .fm-art-hero, .fm-page-hero) {
  background:
    radial-gradient(circle at 83% 18%, rgba(152, 103, 15, .10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%) !important;
}
html[data-theme="light"] :is(.cat-hero, .byr-hero, .fm-services-hero, .fm-news-hero, .fm-art-hero, .fm-page-hero) :is(p, li, span) {
  color: var(--fm-light-muted) !important;
}

html[data-theme="light"] .fm-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(152, 103, 15, .13), transparent 24%),
    linear-gradient(180deg, #17130f 0%, #11100d 100%) !important;
  color: rgba(242, 234, 216, .78) !important;
  border-top-color: rgba(152, 103, 15, .22) !important;
}
html[data-theme="light"] .fm-footer__logo-img--darkbg { display: block !important; }
html[data-theme="light"] .fm-footer__logo-img--lightbg { display: none !important; }
html[data-theme="light"] .fm-footer :is(h2, h3, h4, strong) { color: rgba(255, 250, 240, .94) !important; }
html[data-theme="light"] .fm-footer :is(p, li, span, a) { color: rgba(242, 234, 216, .68) !important; }
html[data-theme="light"] .fm-footer a:hover { color: #d7a848 !important; }
html[data-theme="light"] .fm-footer .btn-gold {
  color: #120f0b !important;
  background: linear-gradient(135deg, #d7a848, #a87618) !important;
  border-color: rgba(215, 168, 72, .38) !important;
}
html[data-theme="light"] .fm-footer .btn-outline {
  color: rgba(255, 250, 240, .86) !important;
  background: transparent !important;
  border-color: rgba(242, 234, 216, .26) !important;
}
html[data-theme="light"] .fm-footer__top,
html[data-theme="light"] .fm-footer__bottom { border-color: rgba(242, 234, 216, .10) !important; }

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .fm-hero {
    min-height: clamp(660px, 86vh, 860px);
    padding-top: clamp(112px, 13vh, 150px);
    padding-bottom: clamp(54px, 8vh, 80px);
    background:
      radial-gradient(circle at 74% 24%, rgba(152, 103, 15, 0.10), transparent 26%),
      linear-gradient(180deg, #ffffff 0%, #fbfcfe 68%, #f7f8fb 100%) !important;
  }
  html:not([data-theme="dark"]) .fm-hero__bg {
    background-image:
      linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 45%, rgba(255,255,255,0.68) 100%),
      radial-gradient(ellipse 52% 46% at 75% 34%, rgba(152,103,15,.16) 0%, rgba(152,103,15,.05) 38%, transparent 70%),
      radial-gradient(ellipse 58% 62% at 88% 52%, rgba(15,23,42,.055) 0%, transparent 66%),
      linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.98)) !important;
    background-color: #ffffff !important;
  }
  html:not([data-theme="dark"]) .fm-nav {
    background: rgba(255,255,255,.94) !important;
    border-bottom-color: rgba(15,23,42,.085) !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.06) !important;
  }
  html:not([data-theme="dark"]) .fm-nav--hero:not(.is-scrolled) {
    background: rgba(255,255,255,.76) !important;
    box-shadow: none !important;
  }
  html:not([data-theme="dark"]) :is(.fm-how, .fm-spotlight, .fm-makers, .fm-buyers, .fm-catalog-preview, .fm-about, .fm-faq, .fm-contact) {
    padding-top: clamp(64px, 8vw, 104px);
    padding-bottom: clamp(64px, 8vw, 104px);
    background: #ffffff !important;
  }
  html:not([data-theme="dark"]) .fm-footer {
    background:
      radial-gradient(circle at 12% 0%, rgba(152, 103, 15, .13), transparent 24%),
      linear-gradient(180deg, #17130f 0%, #11100d 100%) !important;
    color: rgba(242, 234, 216, .78) !important;
    border-top-color: rgba(152, 103, 15, .22) !important;
  }
  html:not([data-theme="dark"]) .fm-footer__logo-img--darkbg { display: block !important; }
  html:not([data-theme="dark"]) .fm-footer__logo-img--lightbg { display: none !important; }
  html:not([data-theme="dark"]) .fm-footer :is(h2,h3,h4,strong) { color: rgba(255,250,240,.94) !important; }
  html:not([data-theme="dark"]) .fm-footer :is(p,li,span,a) { color: rgba(242,234,216,.68) !important; }
  html:not([data-theme="dark"]) .fm-footer .btn-gold { color: #120f0b !important; background: linear-gradient(135deg, #d7a848, #a87618) !important; }
  html:not([data-theme="dark"]) .fm-footer .btn-outline { color: rgba(255,250,240,.86) !important; background: transparent !important; border-color: rgba(242,234,216,.26) !important; }
}

@media (max-width: 920px) {
  html[data-theme="light"] .fm-hero { min-height: auto; padding-top: 118px; }
  html[data-theme="light"] .fm-hero__inner--full .fm-hero__text { transform: none; }
}
@media (max-width: 640px) {
  html[data-theme="light"] :is(.fm-how, .fm-spotlight, .fm-makers, .fm-buyers, .fm-catalog-preview, .fm-about, .fm-faq, .fm-contact) {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  html[data-theme="light"] .fm-hero { padding-top: 104px; padding-bottom: 50px; }
  html[data-theme="light"] .fm-hero__stats { gap: 18px; }
}
