/* Custom styles for MetaFuZe marketing site */

.mfz-lockup {
	width: min(4rem, 20vw);
	height: auto;
}

.mfz-hero-list {
	display: grid;
	gap: 1.5rem;
}

.mfz-hero {
	background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.12), transparent 55%),
	            radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 45%),
	            rgba(17, 24, 39, 0.92);
	border: 1px solid rgba(168, 85, 247, 0.25);
	box-shadow: 0 25px 55px -25px rgba(59, 130, 246, 0.35);
}

.mfz-persona-card {
	display: block;
	padding: 1.25rem;
	border-radius: 1rem;
	border: 1px solid rgba(148, 163, 184, 0.2);
	background: rgba(12, 17, 27, 0.8);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.mfz-persona-card:hover {
	transform: translateY(-4px);
	border-color: rgba(168, 85, 247, 0.45);
}

.mfz-persona-label {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(196, 181, 253, 1);
	margin-bottom: 0.75rem;
}

.mfz-persona-copy {
	font-size: 0.85rem;
	color: rgba(226, 232, 240, 0.85);
}

.mfz-offerings {
	background: rgba(13, 17, 29, 0.95);
	border: 1px solid rgba(79, 70, 229, 0.2);
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.05);
}

.mfz-pill {
	border: 1px solid rgba(148, 163, 184, 0.25);
	border-radius: 9999px;
	padding: 0.4rem 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	background: rgba(31, 41, 55, 0.55);
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	font-size: 0.65rem;
}

.mfz-pill::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 9999px;
	background: linear-gradient(135deg, #22d3ee, #8b5cf6);
	box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}


/* --- MetaFuze Theme System (System default + user override) --- */
:root {
  --mf-accent: 0, 194, 255;
  --mf-bg: #070b12;
  --mf-surface: #0b1220;
  --mf-surface-2: #0f1a2d;
  --mf-text: rgba(255, 255, 255, 0.92);
  --mf-text-muted: rgba(255, 255, 255, 0.68);
  --mf-border: rgba(255, 255, 255, 0.1);
  --mf-border-2: rgba(255, 255, 255, 0.16);
  --mf-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] {
  --mf-bg: #f6f7fb;
  --mf-surface: #ffffff;
  --mf-surface-2: #f0f3fa;
  --mf-text: rgba(8, 12, 20, 0.92);
  --mf-text-muted: rgba(8, 12, 20, 0.62);
  --mf-border: rgba(8, 12, 20, 0.1);
  --mf-border-2: rgba(8, 12, 20, 0.16);
  --mf-shadow: 0 18px 60px rgba(10, 20, 40, 0.12);
}

html,
body {
  background: var(--mf-bg);
  color: var(--mf-text);
}

/* Persistent compact footer bar (so the footer is visible even if the user doesn't scroll). */
#mfz-footer-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(7, 11, 18, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: saturate(160%) blur(10px);
}
html[data-theme="light"] #mfz-footer-fixed {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(8, 12, 20, 0.12);
}
#mfz-footer-fixed .mfz-footer-fixed-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}
html[data-theme="light"] #mfz-footer-fixed .mfz-footer-fixed-inner {
  color: rgba(8, 12, 20, 0.62);
}
#mfz-footer-fixed .mfz-footer-fixed-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
#mfz-footer-fixed a {
  color: inherit;
  text-decoration: none;
}
#mfz-footer-fixed a:hover {
  color: rgba(var(--mf-accent), 1);
}
body {
  padding-bottom: 64px;
}

/* Override common Tailwind bg-black usage to keep a "whitepaper-like" surface contrast in dark mode too. */
html[data-theme="dark"] .bg-black {
  background-color: rgba(8, 12, 20, 0.78) !important;
}

/* Playground controls: ensure <select> values are readable in dark mode (some browsers ignore Tailwind bg/text). */
html[data-theme="dark"] #playground-persona,
html[data-theme="dark"] #playground-routing,
html[data-theme="dark"] #playground-model {
  color-scheme: dark;
  background-color: rgba(2, 6, 23, 0.85) !important;
  color: rgba(248, 250, 252, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="dark"] #playground-persona option,
html[data-theme="dark"] #playground-routing option,
html[data-theme="dark"] #playground-model option {
  background-color: #0b1220 !important;
  color: rgba(248, 250, 252, 0.92) !important;
}

html[data-theme="light"] #playground-persona,
html[data-theme="light"] #playground-routing,
html[data-theme="light"] #playground-model {
  color-scheme: light;
}

a {
  color: rgba(var(--mf-accent), 0.9);
}
a:hover {
  color: rgba(var(--mf-accent), 1);
}

html[data-theme="light"] .bg-black {
  background-color: var(--mf-surface) !important;
}
html[data-theme="light"] .text-gray-400 {
  color: var(--mf-text-muted) !important;
}
html[data-theme="light"] .text-gray-200 {
  color: var(--mf-text) !important;
}
html[data-theme="light"] .text-gray-300 {
  color: rgba(8, 12, 20, 0.78) !important;
}
html[data-theme="light"] .text-gray-500 {
  color: rgba(8, 12, 20, 0.56) !important;
}
html[data-theme="light"] .text-gray-600 {
  color: rgba(8, 12, 20, 0.6) !important;
}
html[data-theme="light"] .border-purple-700\/20 {
  border-color: var(--mf-border) !important;
}
html[data-theme="light"] .border-gray-800,
html[data-theme="light"] .border-gray-700 {
  border-color: var(--mf-border) !important;
}
html[data-theme="light"] .text-purple-300,
html[data-theme="light"] .text-purple-200 {
  color: rgba(var(--mf-accent), 0.82) !important;
}

/* FuZeFACTORY step pills: in light mode, avoid dark bg + dark text (Tailwind overrides flip text colors). */
html[data-theme="light"] .bg-gray-800 {
  background-color: rgba(8, 12, 20, 0.06) !important;
}
html[data-theme="light"] .bg-purple-600\/30 {
  background-color: rgba(var(--mf-accent), 0.16) !important;
}
html[data-theme="light"] .text-purple-100 {
  color: rgba(8, 12, 20, 0.92) !important;
}

header {
  backdrop-filter: saturate(160%) blur(10px);
}

.mf-theme {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mf-theme-btn,
.mf-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--mf-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mf-text);
  font-size: 12px;
}

html[data-theme="light"] .mf-theme-btn,
html[data-theme="light"] .mf-theme-toggle-btn {
  background: var(--mf-surface-2);
}

.mf-theme-toggle-btn {
  min-width: 130px;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.mf-theme-toggle-btn::before {
  content: "☾";
  font-size: 13px;
  line-height: 1;
  opacity: 0.9;
}

.mf-theme-toggle-btn[data-theme="dark"]::before {
  content: "☀";
}

.mf-theme-toggle-btn:hover {
  border-color: rgba(var(--mf-accent), 0.32);
  background: rgba(var(--mf-accent), 0.06);
}

.mf-theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(var(--mf-accent), 0.85);
  box-shadow: 0 0 0 4px rgba(var(--mf-accent), 0.1);
}

.mf-theme-menu {
  position: absolute;
  right: 0;
  top: 44px;
  min-width: 180px;
  border-radius: 16px;
  border: 1px solid var(--mf-border);
  background: var(--mf-surface);
  box-shadow: var(--mf-shadow);
  padding: 8px;
  z-index: 50;
}

html[data-theme="dark"] .mf-theme-menu {
  background: rgba(11, 18, 32, 0.96);
}

.mf-theme-item {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--mf-text);
  font-size: 12px;
  border: 1px solid transparent;
  background: transparent;
}

.mf-theme-item:hover {
  background: rgba(var(--mf-accent), 0.08);
  border-color: rgba(var(--mf-accent), 0.16);
}

html[data-theme="light"] .text-white {
  color: var(--mf-text) !important;
}
html[data-theme="light"] .text-gray-50,
html[data-theme="light"] .text-gray-100 {
  color: var(--mf-text) !important;
}

html[data-theme="light"] .bg-white\/5,
html[data-theme="light"] .bg-white\/10 {
  background-color: var(--mf-surface-2) !important;
}

html[data-theme="light"] .bg-black\/10,
html[data-theme="light"] .bg-black\/20,
html[data-theme="light"] .bg-black\/30,
html[data-theme="light"] .bg-black\/40 {
  background-color: var(--mf-surface-2) !important;
}

html[data-theme="light"] .bg-black\/50,
html[data-theme="light"] .bg-black\/60,
html[data-theme="light"] .bg-black\/70,
html[data-theme="light"] .bg-black\/80,
html[data-theme="light"] .bg-black\/90 {
  background-color: var(--mf-surface-2) !important;
}

html[data-theme="light"] .border-white\/10 {
  border-color: var(--mf-border) !important;
}
html[data-theme="light"] .border-white\/20 {
  border-color: var(--mf-border-2) !important;
}

html[data-theme="light"] .hover\:bg-white\/10:hover {
  background-color: rgba(8, 12, 20, 0.04) !important;
}
html[data-theme="light"] .hover\:bg-white\/5:hover {
  background-color: rgba(8, 12, 20, 0.03) !important;
}
html[data-theme="light"] .hover\:bg-purple-900\/40:hover {
  background-color: rgba(var(--mf-accent), 0.1) !important;
}

html[data-theme="light"] .mfz-hero {
  background: radial-gradient(circle at top left, rgba(var(--mf-accent), 0.1), transparent 55%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.1), transparent 45%),
    var(--mf-surface);
  border: 1px solid var(--mf-border);
}

html[data-theme="light"] .mfz-offerings {
  background: var(--mf-surface);
  border-color: var(--mf-border);
  box-shadow: var(--mf-shadow);
}

html[data-theme="light"] .mfz-persona-copy {
  color: rgba(8, 12, 20, 0.72) !important;
}

html[data-theme="light"] iframe {
  background: var(--mf-surface) !important;
}

/* Light-mode readability: Tailwind dark gradients make text unreadable once text colors flip to dark. */
html[data-theme="light"] .trial-tab,
html[data-theme="light"] .bg-gradient-to-br {
  background-image: none !important;
  background-color: var(--mf-surface) !important;
  box-shadow: var(--mf-shadow);
}

html[data-theme="light"] .trial-tab:hover,
html[data-theme="light"] .bg-gradient-to-br:hover {
  border-color: rgba(var(--mf-accent), 0.28) !important;
}

/* Theme-aware page background (matches whitepaper light/dark feel) */
.mfz-page-bg {
  opacity: 1;
  background:
    radial-gradient(circle at 12% 18%, rgba(168, 85, 247, 0.16), transparent 55%),
    radial-gradient(circle at 88% 82%, rgba(var(--mf-accent), 0.14), transparent 50%),
    linear-gradient(135deg, #05070d, #05070d 45%, #1a0b2e);
}

html[data-theme="light"] .mfz-page-bg {
  background:
    radial-gradient(circle at 12% 18%, rgba(168, 85, 247, 0.16), transparent 55%),
    radial-gradient(circle at 88% 82%, rgba(var(--mf-accent), 0.12), transparent 50%),
    linear-gradient(135deg, #ffffff, #f6f7fb 55%, #eef2ff);
}
