/* MMG full-page brand treatment v2, 2026-07-26 — decoration only, no text overrides */
:root {
  --mmg-ink: #060e1c;
  --mmg-navy: #0f2444;
  --mmg-blue: #1d4ed8;
  --mmg-sky: #3b82f6;
  --mmg-ice: #93c5fd;
}

/* Let the base theme control the page background; homepage sections define their own surfaces. */

.mmg-page-flow {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: transparent;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.mmg-hero {
  background-color: var(--mmg-ink) !important;
  background-image: url('/mmg-bg-anime-20260726.jpg') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  isolation: isolate;
}
.mmg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(2, 8, 23, 0.80) 0%,
    rgba(6, 14, 28, 0.56) 49%,
    rgba(8, 22, 44, 0.28) 100%
  );
}
.mmg-hero > * { position: relative; z-index: 2; }
.mmg-hero > [aria-hidden]:not(.mmg-motion) { display: none !important; }

/* The stock light-theme text tokens are too dark over the night image. */
.mmg-hero h1 {
  color: #f8fbff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.88);
}
.mmg-hero p {
  color: rgba(226, 240, 255, 0.88) !important;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.82);
}
.mmg-hero a.rounded-full,
.mmg-hero div.rounded-full {
  color: rgba(240, 247, 255, 0.92) !important;
  border-color: rgba(147, 197, 253, 0.34) !important;
  background-color: rgba(6, 14, 28, 0.48) !important;
  box-shadow: 0 8px 26px rgba(2, 8, 23, 0.18);
}

/* Fixed glass navigation keeps links readable over every part of the image. */
header.fixed > nav,
header.fixed > div > nav {
  color: rgba(240, 247, 255, 0.94) !important;
  background: rgba(6, 14, 28, 0.66) !important;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 8px 32px rgba(2, 8, 23, 0.22);
  backdrop-filter: blur(14px) saturate(130%);
}
header.fixed nav a,
header.fixed nav button {
  color: rgba(240, 247, 255, 0.90) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
header.fixed nav a:hover,
header.fixed nav button:hover {
  color: #ffffff !important;
  background-color: rgba(59, 130, 246, 0.18) !important;
}

/* Canvas particle overlay */
.mmg-motion {
  display: block !important;
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ─── Stats ─────────────────────────────────────────────────── */
.mmg-stats {
  z-index: 10 !important;
  padding-inline: 1.5rem;
  color: #f8fbff !important;
  border: 0 !important;
  background-color: rgba(244, 248, 255, 0.94) !important;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.04) 1px, transparent 1px) !important;
  background-size: 4rem 4rem !important;
}
.mmg-stats > .mx-auto {
  position: relative;
  max-width: 72rem;
  margin-bottom: -2rem;
  transform: translateY(-2rem);
  border: 1px solid rgba(147, 197, 253, 0.34);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(15, 45, 82, 0.98), rgba(7, 21, 43, 0.99));
  box-shadow:
    0 16px 38px rgba(6, 14, 28, 0.18),
    0 -1px 18px rgba(59, 130, 246, 0.12),
    inset 0 1px rgba(219, 234, 254, 0.26);
}
.mmg-stats .grid > div {
  position: relative;
}
.mmg-stats .grid > div:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12%;
  right: -1rem;
  width: 1px;
  height: 76%;
  background: linear-gradient(transparent, rgba(147, 197, 253, 0.28), transparent);
}
.mmg-stats .text-2xl {
  color: #f8fbff !important;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.34);
}
.mmg-stats .text-muted-foreground {
  color: rgba(219, 234, 254, 0.82) !important;
}

/* ─── Features ──────────────────────────────────────────────── */
.mmg-features {
  z-index: auto !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: rgba(244, 248, 255, 0.90);
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.04) 1px, transparent 1px);
  background-size: 4rem 4rem;
}

/* Echo the logo's manga speed lines in the otherwise open heading area. */
.mmg-features::after {
  content: '';
  position: absolute;
  top: 5.5rem;
  right: 6vw;
  z-index: -1;
  width: min(34vw, 30rem);
  height: 8rem;
  opacity: 0.42;
  pointer-events: none;
  background: repeating-linear-gradient(
    165deg,
    transparent 0,
    transparent 1.25rem,
    rgba(29, 78, 216, 0.12) 1.3rem,
    transparent 1.38rem
  );
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 100%);
}

/* ─── Steps ─────────────────────────────────────────────────── */
.mmg-steps {
  z-index: auto !important;
  background-color: rgba(237, 245, 255, 0.88) !important;
  background-image: repeating-linear-gradient(
    112deg,
    transparent 0,
    transparent 5.5rem,
    rgba(59, 130, 246, 0.055) 5.56rem,
    transparent 5.66rem
  ) !important;
  border-top-color: rgba(59, 130, 246, 0.18) !important;
}

/* ─── CTA ───────────────────────────────────────────────────── */
.mmg-cta {
  z-index: auto !important;
  background-color: var(--mmg-ink) !important;
  background-image: none !important;
  isolation: isolate;
  position: relative;
}
/* subtle animated scan-line only — no opacity layer that could hide text */
.mmg-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(59, 130, 246, 0.10) 44%,
      rgba(147, 197, 253, 0.18) 50%,
      rgba(59, 130, 246, 0.10) 56%,
      transparent 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 6.8rem,
      rgba(147, 197, 253, 0.05) 6.86rem,
      transparent 6.93rem
    );
  background-size: 180% 100%, auto;
  animation: mmg-scan 18s linear infinite;
}
.mmg-cta > * { position: relative; z-index: 1; }

@keyframes mmg-scan {
  from { background-position: 100% 0, 0 0; }
  to   { background-position: -100% 0, 0 0; }
}

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .mmg-hero {
    background-position: 61% top !important;
  }
  .mmg-hero::before {
    background: rgba(3, 10, 24, 0.66);
  }
  .mmg-features {
    background-size: 3rem 3rem;
  }
  .mmg-features::after {
    display: none;
  }
  .mmg-hero > .mx-auto.grid {
    row-gap: 4.5rem !important;
  }
  header.fixed > nav,
  header.fixed > div > nav {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .mmg-page-flow {
    opacity: 0.78;
  }
  .mmg-features,
  .mmg-steps {
    background-color: rgba(244, 248, 255, 0.93) !important;
  }
  .mmg-stats {
    padding-inline: 0.75rem;
    background-color: rgba(244, 248, 255, 0.94) !important;
    background-size: 3rem 3rem !important;
  }
  .mmg-stats > .mx-auto {
    margin-bottom: -1.25rem;
    transform: translateY(-1.25rem);
  }
  .mmg-stats .grid > div:nth-child(2)::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mmg-cta::after { animation: none; }
}
