/* MATRIX V81 — CMS futuristic videogame stylesheet (no deps).
   Tokens come from inline :root overrides in layout (admin-editable). */

/* ─── Reset / base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.cms-body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cms-text-hi);
  background: radial-gradient(ellipse at top, rgba(124,58,237,.08) 0%, transparent 55%) var(--cms-bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  .cms-body * { animation: none !important; transition: none !important; }
}

/* ─── FX background stack ─────────────────────────────────────── */
.cms-fx-stack { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.cms-fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.cms-fx-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, .07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 100%);
  opacity: .55;
}

.cms-fx-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  animation: cms-glow 22s ease-in-out infinite alternate;
}
.cms-fx-glow--a { top: -150px; left: -100px; background: var(--cms-accent); }
.cms-fx-glow--b { bottom: -200px; right: -80px; background: var(--cms-accent-2); animation-delay: -8s; }

@keyframes cms-glow {
  0%   { transform: translate(0,0) scale(1);   opacity: .25; }
  50%  { transform: translate(60px,40px) scale(1.15); opacity: .45; }
  100% { transform: translate(-40px,-20px) scale(.95); opacity: .3; }
}

.cms-fx-cursor {
  position: fixed; pointer-events: none;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.25) 0%, rgba(124,58,237,0) 70%);
  transform: translate(-50%,-50%);
  transition: opacity .25s ease;
  opacity: 0;
  z-index: 1;
  mix-blend-mode: screen;
}
.cms-body[data-fx-cursor="1"] .cms-fx-cursor { opacity: 1; }

/* ─── Navbar ──────────────────────────────────────────────────── */
.cms-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(4, 7, 20, .55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cms-nav__bar {
  display: flex; align-items: center; gap: 16px;
  max-width: 1400px; margin: 0 auto;
}
.cms-nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--cms-text-hi);
  font-weight: 700;
}
.cms-nav__logo img { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; }
.cms-nav__logo-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: #FFFFFF;
  color: #fff; font-weight: 800;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35);
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
img.cms-nav__logo-mark {
  background: #FFFFFF;
  object-fit: contain;
}
html[data-cms-theme="light"] .cms-nav__logo-mark,
html[data-cms-theme="light"] img.cms-nav__logo-mark {
  background: #FFFFFF !important;
  box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .25) !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-cms-theme="dark"] .cms-nav__logo-mark,
html[data-cms-theme="dark"] img.cms-nav__logo-mark {
  background: #FFFFFF !important;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55) !important;
}
.cms-nav__logo-text { font-size: 16px; letter-spacing: .02em; }

.cms-nav__links { display: flex; gap: 24px; margin-left: auto; }
.cms-nav__links a {
  color: var(--cms-text-lo); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color .2s, transform .2s;
}
.cms-nav__links a:hover { color: var(--cms-text-hi); transform: translateY(-1px); }

.cms-nav__cta { display: flex; align-items: center; gap: 10px; }
.cms-nav__locale {
  background: rgba(255,255,255,.04); color: var(--cms-text-hi);
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  padding: 6px 10px; font-size: 13px;
}

/* MATRIX V81 — botón "Descargar Aplicaciones..." en navbar (largo, prominente) */
.cms-nav__download {
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.cms-nav__download span:not(.cms-btn__shine) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 280px;
}

@media (max-width: 1280px) { .cms-nav__download { max-width: 220px; } .cms-nav__download span:not(.cms-btn__shine) { max-width: 170px; } }
@media (max-width: 1100px) { .cms-nav__links a:nth-child(n+5) { display: none; } }
@media (max-width: 920px)  { .cms-nav__links { display: none; } .cms-nav__download { display: none; } }

/* ─── Buttons ─────────────────────────────────────────────────── */
.cms-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  overflow: hidden;
}
.cms-btn--sm { padding: 8px 14px; font-size: 13px; }
.cms-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cms-accent), #4F46E5);
  box-shadow: 0 12px 32px -10px var(--cms-accent);
}
.cms-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px var(--cms-accent); }
.cms-btn--secondary {
  color: var(--cms-text-hi);
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}
.cms-btn--secondary:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.cms-btn--ghost {
  color: var(--cms-text-hi);
  background: transparent;
  border-color: rgba(255,255,255,.16);
}
.cms-btn--ghost:hover { background: rgba(255,255,255,.05); }
.cms-btn__shine {
  position: absolute; top: 0; left: -120%;
  width: 120%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left .8s ease;
}
.cms-btn--primary:hover .cms-btn__shine { left: 130%; }

/* ─── Pills / chips ───────────────────────────────────────────── */
.cms-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--cms-text-hi);
}
.cms-pill--accent { color: var(--cms-accent); border-color: rgba(124,58,237,.3); background: rgba(124,58,237,.08); }
.cms-pill--accent2 { color: var(--cms-accent-2); border-color: rgba(34,211,238,.3); background: rgba(34,211,238,.08); }

.cms-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; color: var(--cms-text-lo);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

/* ─── Hero ────────────────────────────────────────────────────── */
.cms-main { position: relative; z-index: 2; }

.cms-hero {
  padding: 140px clamp(16px, 4vw, 48px) 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cms-hero__inner { max-width: 980px; margin: 0 auto; }
.cms-hero__title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  margin: 18px 0 16px;
  font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cms-hero__subtitle { font-size: clamp(16px, 1.4vw, 18px); color: var(--cms-text-lo); margin-bottom: 32px; }
.cms-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.cms-hero__platforms { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ─── Stats ───────────────────────────────────────────────────── */
.cms-stats {
  max-width: 1280px; margin: 40px auto 80px; padding: 0 clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px;
}
.cms-stat {
  padding: 22px 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease;
}
.cms-stat:hover { border-color: rgba(124,58,237,.4); transform: translateY(-3px); }
.cms-stat__num { font-size: 32px; font-weight: 800; color: var(--cms-text-hi); letter-spacing: -.02em; }
.cms-stat__label { color: var(--cms-text-lo); font-size: 13px; margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }

/* ─── Sectors grid (Bento) ────────────────────────────────────── */
.cms-sectors { max-width: 1400px; margin: 0 auto; padding: 60px clamp(16px, 4vw, 48px); }
.cms-sectors__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.cms-sectors__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; letter-spacing: -.02em;
  margin: 14px 0 12px;
  color: var(--cms-text-hi);
}
.cms-sectors__lead { color: var(--cms-text-lo); font-size: 16px; }

.cms-sectors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
@media (min-width: 1100px) {
  .cms-sectors__grid { grid-template-columns: repeat(4, 1fr); }
}

.cms-sector-card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  text-decoration: none; color: inherit;
  isolation: isolate;
}
.cms-sector-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%),
              color-mix(in oklab, var(--sector-accent) 30%, transparent) 0%,
              transparent 50%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.cms-sector-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--sector-accent) 60%, transparent);
  box-shadow: 0 24px 48px -16px color-mix(in oklab, var(--sector-accent) 50%, transparent);
}
.cms-sector-card:hover::before { opacity: 1; }
.cms-sector-card[aria-expanded="true"]::before { opacity: 1; }

.cms-sector-card__btn {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px;
  background: transparent; border: 0;
  width: 100%; text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.cms-sector-card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--sector-accent) 18%, transparent);
  color: var(--sector-accent);
  font-size: 22px;
  flex-shrink: 0;
}
.cms-sector-card__body { flex: 1; min-width: 0; }
.cms-sector-card__index {
  font-size: 11px; color: var(--cms-text-lo); font-weight: 600; letter-spacing: .14em;
}
.cms-sector-card__name {
  margin: 4px 0 6px;
  font-size: 16px; font-weight: 700; line-height: 1.25;
  color: var(--cms-text-hi);
}
.cms-sector-card__desc {
  margin: 0; font-size: 13px; color: var(--cms-text-lo);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cms-sector-card__count {
  display: inline-block; margin-top: 10px;
  font-size: 11px; color: var(--sector-accent);
  text-transform: uppercase; letter-spacing: .08em;
}
.cms-sector-card__chev {
  align-self: center;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: var(--cms-text-lo);
  transition: transform .3s ease, color .3s ease;
}
.cms-sector-card[data-open="1"] .cms-sector-card__chev { transform: rotate(180deg); color: var(--sector-accent); }

.cms-sector-card__shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.cms-sector-card:hover .cms-sector-card__shine { opacity: 1; }

.cms-sector-card__subs {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 14px 18px 18px;
  display: none;
  animation: cms-fade-down .25s ease both;
}
.cms-sector-card[data-open="1"] .cms-sector-card__subs { display: block; }

@keyframes cms-fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cms-sub-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.cms-sub-list__item {
  display: grid; grid-template-columns: 22px 1fr 16px; gap: 12px; align-items: center;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--cms-text-hi);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  transition: background .2s, border-color .2s, transform .2s;
}
.cms-sub-list__item:hover {
  background: rgba(255,255,255,.05);
  border-color: color-mix(in oklab, var(--sector-accent) 50%, transparent);
  transform: translateX(2px);
}
.cms-sub-list__item i:first-child { color: var(--sector-accent); }
.cms-sub-list__item strong { display: block; font-size: 13px; }
.cms-sub-list__item small { font-size: 12px; color: var(--cms-text-lo); }
.cms-sub-list__arrow { color: var(--cms-text-lo); transition: transform .2s; }
.cms-sub-list__item:hover .cms-sub-list__arrow { transform: translateX(2px); color: var(--sector-accent); }

.cms-empty { color: var(--cms-text-lo); text-align: center; grid-column: 1 / -1; padding: 40px; }

/* ─── CTA band ────────────────────────────────────────────────── */
.cms-cta-band {
  max-width: 1100px; margin: 80px auto; padding: 0 clamp(16px, 4vw, 48px);
}
.cms-cta-band__inner {
  position: relative;
  padding: 56px 40px;
  text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(800px circle at top right, rgba(34,211,238,.15), transparent 50%),
    radial-gradient(700px circle at bottom left, rgba(124,58,237,.18), transparent 50%),
    rgba(10,18,48,.6);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.cms-cta-band__inner h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em;
}
.cms-cta-band__inner p { color: var(--cms-text-lo); margin-bottom: 28px; }

/* ─── Sector detail page ──────────────────────────────────────── */
.cms-sector-page {
  max-width: 1200px; margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) 80px;
}
.cms-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cms-text-lo); text-decoration: none; font-size: 14px;
  margin-bottom: 22px;
  transition: color .2s;
}
.cms-back:hover { color: var(--cms-text-hi); }

.cms-sector-page__title-row { display: flex; align-items: center; gap: 18px; }
.cms-sector-page__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: color-mix(in oklab, var(--sector-accent) 18%, transparent);
  color: var(--sector-accent);
  font-size: 30px;
}
.cms-sector-page__title {
  font-size: clamp(28px, 4vw, 44px); margin: 0; font-weight: 800; letter-spacing: -.02em;
}
.cms-sector-page__lead { color: var(--cms-text-lo); font-size: 18px; margin-top: 14px; }

.cms-section-h {
  margin-top: 56px; margin-bottom: 24px;
  font-size: 22px; font-weight: 700; color: var(--cms-text-hi);
}

.cms-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cms-sub-card {
  display: block;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  text-decoration: none; color: inherit;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cms-sub-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--sector-accent) 55%, transparent);
  box-shadow: 0 18px 36px -12px color-mix(in oklab, var(--sector-accent) 45%, transparent);
}
.cms-sub-card__icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in oklab, var(--sector-accent) 18%, transparent);
  color: var(--sector-accent); font-size: 18px;
}
.cms-sub-card h3 { margin: 14px 0 6px; font-size: 16px; font-weight: 700; }
.cms-sub-card p  { margin: 0; color: var(--cms-text-lo); font-size: 13px; }
.cms-sub-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 12px; color: var(--sector-accent); text-transform: uppercase; letter-spacing: .08em;
}

.cms-prose { color: var(--cms-text-lo); line-height: 1.75; max-width: 760px; }
.cms-prose p, .cms-prose ul, .cms-prose ol { margin: 1em 0; }

.cms-feature-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 8px; }
.cms-feature-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--cms-text-hi); font-size: 14px;
}
.cms-feature-list li i { color: var(--sector-accent); }

/* ─── Sector intro video overlay ─────────────────────────────── */
.cms-sector-video {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  display: grid; place-items: center;
  cursor: pointer;
  transition: opacity .5s ease;
}
.cms-sector-video__el { width: 100vw; height: 100vh; object-fit: cover; }
.cms-sector-video__skip {
  position: absolute; bottom: 28px; right: 28px;
  background: rgba(255,255,255,.06);
}
.cms-sector-video--hide { opacity: 0; pointer-events: none; }

/* ─── Footer ──────────────────────────────────────────────────── */
.cms-footer {
  position: relative; z-index: 2;
  margin-top: 80px;
  padding: 60px clamp(16px, 4vw, 48px) 30px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(4,7,20,.6);
}
.cms-footer__grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 760px) { .cms-footer__grid { grid-template-columns: 1fr; } }
.cms-footer__logo { font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.cms-footer__tagline { color: var(--cms-text-lo); font-size: 14px; max-width: 380px; }
.cms-footer__col h4 { color: var(--cms-text-hi); margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.cms-footer__col ul { list-style: none; padding: 0; margin: 0; }
.cms-footer__col li, .cms-footer__col a {
  color: var(--cms-text-lo); font-size: 14px;
  text-decoration: none; padding: 4px 0; display: block;
  transition: color .2s;
}
.cms-footer__col a:hover { color: var(--cms-text-hi); }
.cms-footer__bottom {
  max-width: 1280px; margin: 28px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--cms-text-lo);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.cms-footer__matrix {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  letter-spacing: .12em;
  color: var(--cms-accent);
}

/* ─── 3D tilt utility ─────────────────────────────────────────── */
.cms-tilt { transform-style: preserve-3d; transition: transform .25s ease; }
.cms-body[data-fx-tilt="0"] .cms-tilt { transform: none !important; }

/* MATRIX V81 — CmsForm partial ──────────────────────────────── */
.cms-form-wrap {
  max-width: 880px; margin: 0 auto; padding: 36px 32px; border-radius: 26px;
  background:
    radial-gradient(800px circle at top right, rgba(34,211,238,.12), transparent 50%),
    radial-gradient(700px circle at bottom left, rgba(124,58,237,.16), transparent 50%),
    rgba(10,18,48,.6);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative; z-index: 2;
}
.cms-form__head { text-align: center; margin-bottom: 28px; }
.cms-form__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em;
  margin: 14px 0 10px;
  background: linear-gradient(180deg, #fff, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cms-form__lead { color: var(--cms-text-lo); font-size: 15px; line-height: 1.55; max-width: 600px; margin: 0 auto; }

.cms-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cms-form__field { display: flex; flex-direction: column; gap: 6px; }
.cms-form__field--full { grid-column: 1 / -1; }
.cms-form__field label { color: var(--cms-text-hi); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; }
.cms-form__req { color: #EF4444; font-style: normal; font-weight: 700; }

.cms-form__field input[type=text],
.cms-form__field input[type=email],
.cms-form__field input[type=tel],
.cms-form__field input[type=number],
.cms-form__field input[type=date],
.cms-form__field select,
.cms-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--cms-text-hi);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cms-form__field input:focus,
.cms-form__field select:focus,
.cms-form__field textarea:focus {
  outline: 0;
  border-color: var(--cms-accent);
  box-shadow: 0 0 0 4px rgba(124,58,237,.15);
  background: rgba(255,255,255,.06);
}
.cms-form__field textarea { resize: vertical; min-height: 110px; }
.cms-form__field select option { background: var(--cms-bg-panel); color: var(--cms-text-hi); }

.cms-form__checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  color: var(--cms-text-lo); font-size: 13.5px; line-height: 1.5; }
.cms-form__checkbox input[type=checkbox] {
  width: 18px; height: 18px; margin-top: 2px; cursor: pointer; accent-color: var(--cms-accent);
}

.cms-form__bottom { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cms-form__submit { min-width: 240px; justify-content: center; }
.cms-form__submit[disabled] { opacity: .7; cursor: wait; }
.cms-form__notice { color: var(--cms-text-lo); font-size: 12px; margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.cms-form__notice i { color: #22C55E; }
.cms-form__spinner { display: none; }
.cms-form__submit.is-loading .cms-form__submit-label { display: none; }
.cms-form__submit.is-loading .cms-form__spinner { display: inline-flex; }

.cms-form__feedback { margin-top: 18px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(34,197,94,.4); background: rgba(34,197,94,.08); color: #22C55E;
  display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.cms-form__feedback.is-error {
  border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.08); color: #EF4444;
}
.cms-form__feedback i { margin-top: 2px; flex-shrink: 0; }

.cms-form__field-error { color: #EF4444; font-size: 12px; margin-top: 4px; }
.cms-form__field input.is-invalid,
.cms-form__field select.is-invalid,
.cms-form__field textarea.is-invalid {
  border-color: rgba(239,68,68,.6);
  box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}

@media (max-width: 760px) {
  .cms-form-wrap { padding: 28px 22px; border-radius: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   MATRIX V81.20 — DUAL-THEME ULTRA-CONTRAST SYSTEM
   - Dark theme (default): pure-black surfaces, ULTRA-WHITE text (#FFFFFF)
   - Light theme:           ULTRA-LIGHT surfaces, ULTRA-BLACK text (#000000)
   - Toggle: html[data-cms-theme="light"|"dark"] (persisted via localStorage)
   - WCAG AAA contrast on body copy; no reliance on opacity for legibility.
   ═══════════════════════════════════════════════════════════════ */

/* ── DARK THEME — force ULTRA WHITE text on pure-black surfaces ── */
html[data-cms-theme="dark"] {
  --cms-bg-deep:   #000000;
  --cms-bg-panel:  #0A0A12;
  --cms-text-hi:   #FFFFFF;
  --cms-text-lo:   #E2E8F0;
  --cms-surface-1: rgba(255, 255, 255, 0.06);
  --cms-surface-2: rgba(255, 255, 255, 0.10);
  --cms-border-1:  rgba(255, 255, 255, 0.14);
  --cms-border-2:  rgba(255, 255, 255, 0.22);
  --cms-overlay:   rgba(0, 0, 0, 0.65);
}
html[data-cms-theme="dark"] .cms-body,
html[data-cms-theme="dark"] body.cms-body,
html[data-cms-theme="dark"] body.cms-body.fxl-v87 {
  background:
    radial-gradient(ellipse at top, rgba(124,58,237,.10) 0%, transparent 55%)
    var(--cms-bg-deep) !important;
  background-color: var(--cms-bg-deep) !important;
  color: #FFFFFF !important;
}
/* Navbar — SOLID black in dark mode (overrides translucent base) */
html[data-cms-theme="dark"] .cms-nav,
html[data-cms-theme="dark"] header.cms-nav,
html[data-cms-theme="dark"] body.fxl-v87 .cms-nav {
  background: #000000 !important;
  background-color: #000000 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}
html[data-cms-theme="dark"] .cms-nav__logo-text,
html[data-cms-theme="dark"] .cms-nav__logo { color: #FFFFFF !important; }
html[data-cms-theme="dark"] .cms-nav__links a { color: #FFFFFF !important; }
html[data-cms-theme="dark"] .cms-nav__links a:hover { color: var(--cms-accent-2) !important; }
html[data-cms-theme="dark"] .cms-nav .cms-btn--ghost {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
html[data-cms-theme="dark"] .cms-hero__title,
html[data-cms-theme="dark"] .cms-form__title {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #FFFFFF;
}
html[data-cms-theme="dark"] .cms-sectors__title,
html[data-cms-theme="dark"] .cms-sector-page__title,
html[data-cms-theme="dark"] .cms-section-h,
html[data-cms-theme="dark"] .cms-sector-card__name,
html[data-cms-theme="dark"] .cms-stat__num,
html[data-cms-theme="dark"] .cms-footer__col h4,
html[data-cms-theme="dark"] .cms-cta-band__inner h2 { color: #FFFFFF; }
html[data-cms-theme="dark"] .cms-hero__subtitle,
html[data-cms-theme="dark"] .cms-sectors__lead,
html[data-cms-theme="dark"] .cms-sector-page__lead,
html[data-cms-theme="dark"] .cms-stat__label,
html[data-cms-theme="dark"] .cms-sector-card__desc,
html[data-cms-theme="dark"] .cms-sector-card__index,
html[data-cms-theme="dark"] .cms-sub-list__item small,
html[data-cms-theme="dark"] .cms-prose,
html[data-cms-theme="dark"] .cms-form__lead,
html[data-cms-theme="dark"] .cms-form__checkbox,
html[data-cms-theme="dark"] .cms-form__notice,
html[data-cms-theme="dark"] .cms-cta-band__inner p,
html[data-cms-theme="dark"] .cms-footer__tagline,
html[data-cms-theme="dark"] .cms-footer__col li,
html[data-cms-theme="dark"] .cms-footer__col a,
html[data-cms-theme="dark"] .cms-footer__bottom,
html[data-cms-theme="dark"] .cms-nav__links a {
  color: #E2E8F0;
}
html[data-cms-theme="dark"] .cms-pill { color: #FFFFFF; }
html[data-cms-theme="dark"] .cms-chip { color: #E2E8F0; }
html[data-cms-theme="dark"] .cms-feature-list li { color: #FFFFFF; }
html[data-cms-theme="dark"] .cms-sub-list__item,
html[data-cms-theme="dark"] .cms-sub-list__item strong { color: #FFFFFF; }
html[data-cms-theme="dark"] .cms-form__field label { color: #FFFFFF; }
html[data-cms-theme="dark"] .cms-form__field input[type=text],
html[data-cms-theme="dark"] .cms-form__field input[type=email],
html[data-cms-theme="dark"] .cms-form__field input[type=tel],
html[data-cms-theme="dark"] .cms-form__field input[type=number],
html[data-cms-theme="dark"] .cms-form__field input[type=date],
html[data-cms-theme="dark"] .cms-form__field select,
html[data-cms-theme="dark"] .cms-form__field textarea { color: #FFFFFF; }

/* ── LIGHT THEME — ULTRA BLACK text on ULTRA-LIGHT surfaces ── */
html[data-cms-theme="light"] {
  --cms-bg-deep:   #FFFFFF;
  --cms-bg-panel:  #F8FAFC;
  --cms-accent:    #4F46E5;
  --cms-accent-2:  #0284C7;
  --cms-text-hi:   #000000;
  --cms-text-lo:   #111827;
  --cms-surface-1: rgba(15, 23, 42, 0.04);
  --cms-surface-2: rgba(15, 23, 42, 0.08);
  --cms-border-1:  rgba(15, 23, 42, 0.12);
  --cms-border-2:  rgba(15, 23, 42, 0.20);
  --cms-overlay:   rgba(255, 255, 255, 0.85);
}
html[data-cms-theme="light"] .cms-body,
html[data-cms-theme="light"] body.cms-body,
html[data-cms-theme="light"] body.cms-body.fxl-v87 {
  background:
    radial-gradient(ellipse at top, rgba(79,70,229,.08) 0%, transparent 55%)
    #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #000000 !important;
}
/* Kill the FXL cyberpunk noise overlay on light CMS pages */
html[data-cms-theme="light"] body.cms-body.fxl-v87::before { display: none !important; }

/* FX layer — soften neon glows on white */
html[data-cms-theme="light"] .cms-fx-grid {
  background-image:
    linear-gradient(rgba(79, 70, 229, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, .08) 1px, transparent 1px);
  opacity: .35;
}
html[data-cms-theme="light"] .cms-fx-glow { opacity: .18; }
html[data-cms-theme="light"] .cms-fx-glow--a { background: #6366F1; }
html[data-cms-theme="light"] .cms-fx-glow--b { background: #0EA5E9; }
html[data-cms-theme="light"] .cms-fx-cursor {
  background: radial-gradient(circle, rgba(79,70,229,.18) 0%, rgba(79,70,229,0) 70%);
  mix-blend-mode: multiply;
}

/* Navbar — SOLID light backdrop (no blur — beats translucent dark base) */
html[data-cms-theme="light"] .cms-nav,
html[data-cms-theme="light"] header.cms-nav,
html[data-cms-theme="light"] body.fxl-v87 .cms-nav {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 6px 24px -12px rgba(15, 23, 42, 0.18) !important;
}
html[data-cms-theme="light"] .cms-nav *,
html[data-cms-theme="light"] .cms-nav__logo,
html[data-cms-theme="light"] .cms-nav__logo-text { color: #000000 !important; }
html[data-cms-theme="light"] .cms-nav__logo-mark { color: #FFFFFF !important; }
html[data-cms-theme="light"] .cms-nav__links a {
  color: #000000 !important;
  font-weight: 600;
}
html[data-cms-theme="light"] .cms-nav__links a:hover { color: #4F46E5 !important; }
html[data-cms-theme="light"] .cms-nav__locale {
  background: rgba(15, 23, 42, 0.04);
  color: #000000 !important;
  border-color: rgba(15, 23, 42, 0.10);
}
/* CTA buttons inside navbar — white pill for ghost, primary keeps gradient */
html[data-cms-theme="light"] .cms-nav .cms-btn--ghost {
  color: #000000 !important;
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.20) !important;
}
html[data-cms-theme="light"] .cms-nav .cms-btn--ghost:hover {
  background: rgba(15, 23, 42, 0.10) !important;
}
html[data-cms-theme="light"] .cms-nav .cms-btn--primary {
  /* keep purple gradient + white text — high-contrast on light bg */
  color: #FFFFFF !important;
}
html[data-cms-theme="light"] .cms-nav .cms-btn--primary span:not(.cms-btn__shine) {
  color: #FFFFFF !important;
}

/* Hero — kill the white-on-blue gradient, force ULTRA-BLACK */
html[data-cms-theme="light"] .cms-hero__title,
html[data-cms-theme="light"] .cms-form__title,
html[data-cms-theme="light"] .cms-blog-list__title,
html[data-cms-theme="light"] .cms-blog-detail__title,
html[data-cms-theme="light"] .cms-widget-page__title,
html[data-cms-theme="light"] .cms-page-detail__title,
html[data-cms-theme="light"] .cms-page-list__title,
html[data-cms-theme="light"] .cms-modules-list__title,
html[data-cms-theme="light"] .cms-pricing__title {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #000000;
  color: #000000;
}
/* Catch-all for ANY inline gradient-text heading (overrides style="" attr) */
html[data-cms-theme="light"] [style*="text-fill-color"],
html[data-cms-theme="light"] [style*="background-clip:text"],
html[data-cms-theme="light"] [style*="background-clip: text"] {
  -webkit-text-fill-color: #000000 !important;
  color: #000000 !important;
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
}
html[data-cms-theme="light"] .cms-hero__subtitle { color: #111827; }
html[data-cms-theme="light"] .cms-chip {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.10);
  color: #000000;
}
html[data-cms-theme="light"] .cms-pill {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #000000;
}
html[data-cms-theme="light"] .cms-pill--accent {
  color: #4F46E5;
  border-color: rgba(79, 70, 229, .35);
  background: rgba(79, 70, 229, .08);
}
html[data-cms-theme="light"] .cms-pill--accent2 {
  color: #0284C7;
  border-color: rgba(2, 132, 199, .35);
  background: rgba(2, 132, 199, .08);
}

/* Stats — light card surfaces with ultra-black numbers */
html[data-cms-theme="light"] .cms-stat {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 6px 24px -16px rgba(15, 23, 42, 0.25);
}
html[data-cms-theme="light"] .cms-stat:hover {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 12px 32px -16px rgba(79, 70, 229, 0.35);
}
html[data-cms-theme="light"] .cms-stat__num { color: #000000; }
html[data-cms-theme="light"] .cms-stat__label { color: #111827; }

/* Sectors heads + cards */
html[data-cms-theme="light"] .cms-sectors__title,
html[data-cms-theme="light"] .cms-sector-page__title,
html[data-cms-theme="light"] .cms-section-h,
html[data-cms-theme="light"] .cms-sector-card__name { color: #000000; }
html[data-cms-theme="light"] .cms-sectors__lead,
html[data-cms-theme="light"] .cms-sector-page__lead,
html[data-cms-theme="light"] .cms-sector-card__desc,
html[data-cms-theme="light"] .cms-sector-card__index { color: #111827; }
html[data-cms-theme="light"] .cms-sector-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 6px 24px -16px rgba(15, 23, 42, 0.20);
}
html[data-cms-theme="light"] .cms-sector-card:hover {
  box-shadow: 0 24px 48px -16px color-mix(in oklab, var(--sector-accent) 35%, transparent);
}
html[data-cms-theme="light"] .cms-sector-card__chev {
  background: rgba(15, 23, 42, 0.04);
  color: #111827;
}
html[data-cms-theme="light"] .cms-sector-card__shine {
  background: linear-gradient(115deg, transparent 30%, rgba(15, 23, 42, 0.04) 50%, transparent 70%);
}
html[data-cms-theme="light"] .cms-sector-card__subs {
  border-top-color: rgba(15, 23, 42, 0.08);
}

/* Sub list — used inside expanded sector cards & sector detail */
html[data-cms-theme="light"] .cms-sub-list__item {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.08);
  color: #000000;
}
html[data-cms-theme="light"] .cms-sub-list__item:hover {
  background: rgba(15, 23, 42, 0.05);
}
html[data-cms-theme="light"] .cms-sub-list__item strong { color: #000000; }
html[data-cms-theme="light"] .cms-sub-list__item small { color: #111827; }
html[data-cms-theme="light"] .cms-sub-list__arrow { color: #111827; }

html[data-cms-theme="light"] .cms-sub-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.10);
  color: #000000;
  box-shadow: 0 6px 24px -16px rgba(15, 23, 42, 0.18);
}
html[data-cms-theme="light"] .cms-sub-card p { color: #111827; }
html[data-cms-theme="light"] .cms-prose,
html[data-cms-theme="light"] .cms-prose p,
html[data-cms-theme="light"] .cms-prose li { color: #111827; }
html[data-cms-theme="light"] .cms-feature-list li { color: #000000; }
html[data-cms-theme="light"] .cms-empty { color: #111827; }
html[data-cms-theme="light"] .cms-back { color: #111827; }
html[data-cms-theme="light"] .cms-back:hover { color: #000000; }

/* CTA band — light surface */
html[data-cms-theme="light"] .cms-cta-band__inner {
  background:
    radial-gradient(800px circle at top right, rgba(2, 132, 199, .12), transparent 50%),
    radial-gradient(700px circle at bottom left, rgba(79, 70, 229, .14), transparent 50%),
    #FFFFFF;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.20);
}
html[data-cms-theme="light"] .cms-cta-band__inner h2 { color: #000000; }
html[data-cms-theme="light"] .cms-cta-band__inner p { color: #111827; }

/* Buttons — ghost/secondary need dark text on light */
html[data-cms-theme="light"] .cms-btn--secondary {
  color: #000000;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.14);
}
html[data-cms-theme="light"] .cms-btn--secondary:hover {
  background: rgba(15, 23, 42, 0.08);
}
html[data-cms-theme="light"] .cms-btn--ghost {
  color: #000000;
  border-color: rgba(15, 23, 42, 0.20);
}
html[data-cms-theme="light"] .cms-btn--ghost:hover { background: rgba(15, 23, 42, 0.05); }

/* Forms — light fields, ultra-black input text */
html[data-cms-theme="light"] .cms-form-wrap {
  background:
    radial-gradient(800px circle at top right, rgba(2, 132, 199, .08), transparent 50%),
    radial-gradient(700px circle at bottom left, rgba(79, 70, 229, .10), transparent 50%),
    #FFFFFF;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.20);
}
html[data-cms-theme="light"] .cms-form__lead { color: #111827; }
html[data-cms-theme="light"] .cms-form__field label { color: #000000; }
html[data-cms-theme="light"] .cms-form__field input[type=text],
html[data-cms-theme="light"] .cms-form__field input[type=email],
html[data-cms-theme="light"] .cms-form__field input[type=tel],
html[data-cms-theme="light"] .cms-form__field input[type=number],
html[data-cms-theme="light"] .cms-form__field input[type=date],
html[data-cms-theme="light"] .cms-form__field select,
html[data-cms-theme="light"] .cms-form__field textarea {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.18);
  color: #000000;
}
html[data-cms-theme="light"] .cms-form__field input::placeholder,
html[data-cms-theme="light"] .cms-form__field textarea::placeholder { color: #6B7280; }
html[data-cms-theme="light"] .cms-form__field input:focus,
html[data-cms-theme="light"] .cms-form__field select:focus,
html[data-cms-theme="light"] .cms-form__field textarea:focus {
  background: #FFFFFF;
  border-color: #4F46E5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .18);
}
html[data-cms-theme="light"] .cms-form__field select option {
  background: #FFFFFF;
  color: #000000;
}
html[data-cms-theme="light"] .cms-form__checkbox { color: #111827; }
html[data-cms-theme="light"] .cms-form__notice { color: #111827; }

/* Footer — light variant */
html[data-cms-theme="light"] .cms-footer {
  background: #F8FAFC;
  border-top-color: rgba(15, 23, 42, 0.08);
}
html[data-cms-theme="light"] .cms-footer__logo { color: #000000; }
html[data-cms-theme="light"] .cms-footer__tagline { color: #111827; }
html[data-cms-theme="light"] .cms-footer__col h4 { color: #000000; }
html[data-cms-theme="light"] .cms-footer__col li,
html[data-cms-theme="light"] .cms-footer__col a { color: #111827; }
html[data-cms-theme="light"] .cms-footer__col a:hover { color: #000000; }
html[data-cms-theme="light"] .cms-footer__bottom {
  color: #111827;
  border-top-color: rgba(15, 23, 42, 0.06);
}

/* Blog cards — themeable backgrounds + dark gradient overlay fix */
html[data-cms-theme="light"] .cms-blog-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 6px 24px -16px rgba(15, 23, 42, 0.20) !important;
  color: #000000 !important;
}
html[data-cms-theme="light"] .cms-blog-card:hover {
  border-color: var(--cms-accent) !important;
  box-shadow: 0 18px 36px -16px rgba(79, 70, 229, 0.30) !important;
}
html[data-cms-theme="light"] .cms-blog-card__title { color: #000000 !important; }
html[data-cms-theme="light"] .cms-blog-card__excerpt { color: #111827 !important; }
html[data-cms-theme="light"] .cms-blog-card__img {
  background: linear-gradient(135deg, rgba(79,70,229,.18), rgba(14,165,233,.16)) #E2E8F0 !important;
}
html[data-cms-theme="light"] .cms-blog-card__img::after {
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.35) 100%) !important;
}
html[data-cms-theme="light"] .cms-blog-card__tag {
  background: rgba(79, 70, 229, .08) !important;
  border-color: rgba(79, 70, 229, .25) !important;
  color: #4F46E5 !important;
}
html[data-cms-theme="light"] .cms-blog-card::before {
  background: linear-gradient(115deg, transparent 30%, rgba(15, 23, 42, 0.04) 50%, transparent 70%) !important;
}

/* Sliding card on blogs detail / page hero gradients in light mode */
html[data-cms-theme="light"] .cms-page-hero__bg::after {
  background: linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.92) 100%) !important;
}
html[data-cms-theme="light"] .cms-page-hero__crumbs { color: #111827 !important; }
html[data-cms-theme="light"] .cms-page-hero__excerpt { color: #111827 !important; }
html[data-cms-theme="light"] .cms-page-hero__title { color: #000000 !important; }

/* Pricing toggle — themeable */
html[data-cms-theme="light"] .cms-pricing-toggle {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
}
html[data-cms-theme="light"] .cms-pricing-toggle__btn {
  color: #111827 !important;
}
html[data-cms-theme="light"] .cms-pricing-toggle__btn.is-active {
  color: #FFFFFF !important;
}

/* Footer social icons — themeable */
.cms-footer__social {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.cms-footer__social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cms-surface-1, rgba(255,255,255,.06));
  border: 1px solid var(--cms-border-1, rgba(255,255,255,.10));
  color: var(--cms-text-lo);
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.cms-footer__social-icon:hover {
  transform: translateY(-2px);
  color: var(--cms-accent);
  border-color: var(--cms-accent);
  background: var(--cms-surface-2, rgba(255,255,255,.10));
}
html[data-cms-theme="light"] .cms-footer__social-icon {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #111827;
}
html[data-cms-theme="light"] .cms-footer__social-icon:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #4F46E5;
  border-color: #4F46E5;
}

/* ─── Theme toggle button (works in both themes) ───────────────── */
.cms-theme-toggle {
  appearance: none;
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--cms-border-1, rgba(255,255,255,.14));
  background: var(--cms-surface-1, rgba(255,255,255,.04));
  color: var(--cms-text-hi);
  cursor: pointer;
  font-size: 16px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.cms-theme-toggle:hover {
  transform: translateY(-2px) rotate(-12deg);
  background: var(--cms-surface-2, rgba(255,255,255,.08));
  border-color: var(--cms-border-2, rgba(255,255,255,.22));
}
.cms-theme-toggle:focus-visible {
  outline: 2px solid var(--cms-accent);
  outline-offset: 2px;
}
.cms-theme-toggle .cms-theme-toggle__sun { display: none; }
.cms-theme-toggle .cms-theme-toggle__moon { display: inline-block; }
html[data-cms-theme="light"] .cms-theme-toggle .cms-theme-toggle__sun { display: inline-block; }
html[data-cms-theme="light"] .cms-theme-toggle .cms-theme-toggle__moon { display: none; }
html[data-cms-theme="light"] .cms-theme-toggle {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(15, 23, 42, 0.04);
  color: #000000;
}
html[data-cms-theme="light"] .cms-theme-toggle:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.28);
}
@media (max-width: 920px) {
  .cms-theme-toggle { width: 36px; height: 36px; font-size: 15px; }
}
/* ═══ END V81.20 DUAL-THEME ULTRA-CONTRAST SYSTEM ═══ */
