/* VindoPulse Motion Graphics Landing System — Pure White Daylight Studio
   Unified pure-white daylight studio lighting rig + 180-second (3:00) 9-act seamless loop.
   All visual tokens are exposed as CSS custom properties for clean customization. */

:root {
  --mg-bg-pure: #ffffff;
  --mg-bg-soft: #fafcfb;
  --mg-bg-elevated: #ffffff;
  --mg-bg-subtle: #f4f7f6;
  --mg-border: #e1e8e5;
  --mg-border-strong: #c6d6cf;
  --mg-key-mint: #16a36b;
  --mg-pulse-mint: #2be59d;
  --mg-emerald: #176246;
  --mg-emerald-deep: #0f3d2c;
  --mg-rim-amber: #c77d24;
  --mg-amber-soft: #fff8ee;
  --mg-amber-border: #efd5b1;
  --mg-ink: #0f261e;
  --mg-ink-soft: #4c625a;
  --mg-ink-muted: #6c8279;
  --mg-bezel-chrome: #132821;
  --mg-shadow-stage: 0 28px 72px rgba(15, 38, 30, 0.09), 0 4px 16px rgba(15, 38, 30, 0.04);
  --mg-shadow-bezel: 0 22px 54px rgba(15, 38, 30, 0.14), 0 2px 10px rgba(15, 38, 30, 0.06);
  --mg-shadow-card: 0 12px 32px rgba(15, 38, 30, 0.06);
  --mg-screen-grade: brightness(1) contrast(1.02) saturate(1.03);
  --mg-radius-stage: 24px;
  --mg-radius-card: 18px;
}

/* ---------- Pure White Motion-Home Shell & Header ---------- */
body.motion-home {
  background: var(--mg-bg-pure);
  color: var(--mg-ink);
  overflow-x: clip;
}

body.motion-home::before,
body.motion-home .brand-banner {
  display: none;
}

body.motion-home .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--mg-border);
  box-shadow: 0 4px 20px rgba(15, 38, 30, 0.04);
  backdrop-filter: blur(18px);
  z-index: 40;
}

body.motion-home .site-header .brand,
body.motion-home .site-header .brand > span:last-child,
body.motion-home .site-header .brand-word {
  color: var(--mg-ink);
}

body.motion-home .site-header .brand > span:last-child > span.brand-pulse {
  background: linear-gradient(135deg, #22c786, #137953);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.motion-home .site-header .brand > span:last-child > span.brand-pos,
body.motion-home .site-header .brand:hover > span:last-child > span.brand-pos {
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #eff7f3;
  border: 1px solid #cce3d8;
  color: var(--mg-emerald);
  -webkit-text-fill-color: var(--mg-emerald);
}

body.motion-home .site-header nav {
  color: #465d55;
}

body.motion-home .site-header nav a:not(.nav-cta):hover {
  color: var(--mg-emerald);
}

body.motion-home .site-header .nav-cta {
  background: var(--mg-emerald);
  border-color: var(--mg-emerald);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(23, 98, 70, 0.18);
}

body.motion-home .site-header .nav-cta:hover {
  background: var(--mg-emerald-deep);
  border-color: var(--mg-emerald-deep);
  color: #ffffff;
}

body.motion-home .site-header .nav-toggle {
  border-color: var(--mg-border-strong);
  background: #ffffff;
  color: var(--mg-ink);
}

body.motion-home .site-header .nav-toggle span {
  background: var(--mg-ink);
}

@media (max-width: 960px) {
  body.motion-home .site-header {
    height: 70px;
    min-height: 70px;
    flex-wrap: nowrap;
    padding-block: 0;
    padding-inline: 16px;
  }

  body.motion-home .site-header .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  body.motion-home .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px 18px 18px;
    gap: 6px;
    overflow: visible;
    white-space: normal;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--mg-border);
    box-shadow: 0 22px 44px rgba(15, 38, 30, 0.12);
    backdrop-filter: blur(18px);
    z-index: 45;
  }

  body.motion-home .site-header.nav-open nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.motion-home .site-header.nav-open nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 9px;
    background: #f5f8f7;
    color: var(--mg-ink);
  }

  body.motion-home .site-header.nav-open nav a.nav-cta {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 4px;
    background: var(--mg-emerald);
    color: #ffffff;
  }
}

/* ---------- Pure White Daylight Studio Hero ---------- */
.mg-hero-band {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 3.8vw, 52px) clamp(14px, 3vw, 40px) clamp(40px, 5vw, 72px);
  color: var(--mg-ink);
  background:
    radial-gradient(860px 420px at 8% -4%, rgba(43, 229, 157, 0.06), transparent 64%),
    radial-gradient(680px 380px at 94% 96%, rgba(230, 177, 116, 0.05), transparent 62%),
    #ffffff;
  border-bottom: 1px solid var(--mg-border);
}

.mg-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 38, 30, 0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.mg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  gap: clamp(20px, 2.4vw, 30px);
}

.mg-hero-header {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: end;
}

.mg-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #d4e4dc;
  background: #f8fbf9;
  color: var(--mg-emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mg-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mg-key-mint);
  box-shadow: 0 0 0 0 rgba(22, 163, 107, 0.45);
  animation: mgPulseRing 2.2s ease-out infinite;
}

@keyframes mgPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 107, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(22, 163, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 107, 0); }
}

.mg-hero-band h1 {
  margin: 0 0 10px;
  font: 800 clamp(34px, 4.4vw, 60px)/1.05 var(--display);
  letter-spacing: var(--track-display);
  color: var(--mg-ink);
}

.mg-hero-lead {
  margin: 0;
  max-width: 60ch;
  color: var(--mg-ink-soft);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
}

.mg-hero-cta-col {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.mg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mg-btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid var(--mg-emerald);
  background: linear-gradient(135deg, #1d7a57, var(--mg-emerald));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px rgba(23, 98, 70, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mg-btn-mint:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #166648, var(--mg-emerald-deep));
  box-shadow: 0 16px 32px rgba(23, 98, 70, 0.28);
}

.mg-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid var(--mg-border-strong);
  background: #ffffff;
  color: var(--mg-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 38, 30, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mg-btn-glass:hover {
  transform: translateY(-2px);
  border-color: var(--mg-emerald);
  background: #f8fbf9;
}

.mg-hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: var(--mg-ink-muted);
  font-size: 12px;
  font-weight: 600;
}

.mg-hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mg-hero-proof span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mg-key-mint);
}

/* ---------- Broadcast Motion Graphics Cinema Frame (Pure White Studio) ---------- */
.mg-cinema-shell {
  position: relative;
  border-radius: var(--mg-radius-stage);
  background: #ffffff;
  border: 1px solid var(--mg-border);
  box-shadow: var(--mg-shadow-stage);
  overflow: hidden;
}

.mg-cinema-shell:fullscreen {
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

.mg-cinema-shell:fullscreen .mg-stage {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 0;
}

/* Top Broadcast HUD */
.mg-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--mg-border);
}

.mg-hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mg-act-pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf7f2;
  border: 1px solid #c7e2d5;
  color: var(--mg-emerald);
  font: 800 11px/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
}

.mg-act-title {
  font: 800 13px/1.2 var(--display);
  color: var(--mg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-act-edition {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f4f7f6;
  border: 1px solid var(--mg-border);
  color: var(--mg-ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mg-hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mg-net-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #edf8f2;
  border: 1px solid #c6e5d5;
  color: var(--mg-emerald);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.45s ease, border-color 0.45s ease, color 0.45s ease;
}

.mg-net-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mg-key-mint);
  box-shadow: 0 0 8px rgba(22, 163, 107, 0.45);
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

.mg-net-pill.is-offline {
  background: var(--mg-amber-soft);
  border-color: var(--mg-amber-border);
  color: #965b12;
}

.mg-net-pill.is-offline i {
  background: var(--mg-rim-amber);
  box-shadow: 0 0 8px rgba(199, 125, 36, 0.45);
}

.mg-timecode {
  font: 700 12px/1 ui-monospace, Consolas, monospace;
  color: var(--mg-ink-soft);
  letter-spacing: 0.04em;
}

/* ---------- Unified White Daylight Studio Stage (16:9 Widescreen Canvas) ---------- */
.mg-stage {
  --mg-tilt-x: 0deg;
  --mg-tilt-y: 0deg;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.2;
  min-height: 486px;
  max-height: 690px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(58% 54% at 10% 6%, rgba(43, 229, 157, 0.09), transparent 64%),
    radial-gradient(50% 48% at 92% 94%, rgba(230, 177, 116, 0.08), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fcfdfd 60%, #f7faf9 100%);
  transition: background 0.9s ease;
}

/* Mood-reactive pure-white studio lighting shifts */
.mg-stage[data-stage-mood="offline"] .mg-light-key {
  background: radial-gradient(circle, rgba(224, 154, 70, 0.14) 0%, rgba(224, 154, 70, 0.03) 48%, transparent 72%);
}

.mg-stage[data-stage-mood="offline"] .mg-light-halo {
  background: radial-gradient(circle, rgba(43, 229, 157, 0.12) 0%, rgba(224, 154, 70, 0.06) 44%, transparent 70%);
  opacity: 0.9;
}

.mg-stage[data-stage-mood="finale"] .mg-light-halo,
.mg-stage[data-stage-mood="pulse"] .mg-light-halo {
  opacity: 1;
}

/* Persistent calibrated daylight studio light rig */
.mg-light-rig {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.mg-light-key {
  position: absolute;
  top: -22%;
  left: -12%;
  width: 68%;
  height: 76%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 229, 157, 0.12) 0%, rgba(43, 229, 157, 0.03) 46%, transparent 72%);
  filter: blur(28px);
  transform: translate3d(0, 0, 0);
  animation: mgKeyBreathe 11s ease-in-out infinite alternate;
  transition: background 0.9s ease;
}

.mg-light-rim {
  position: absolute;
  bottom: -24%;
  right: -10%;
  width: 56%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 177, 116, 0.11) 0%, rgba(230, 177, 116, 0.025) 46%, transparent 70%);
  filter: blur(28px);
  animation: mgKeyBreathe 14s ease-in-out infinite alternate-reverse;
}

.mg-light-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  height: 68%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 229, 157, 0.11) 0%, rgba(23, 98, 70, 0.025) 45%, transparent 72%);
  filter: blur(32px);
  opacity: 0.65;
  transition: opacity 0.9s ease, background 0.9s ease;
}

.mg-ambient-orbs {
  position: absolute;
  inset: 0;
}

.mg-ambient-orbs i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 229, 157, 0.24), rgba(43, 229, 157, 0) 70%);
  filter: blur(8px);
  opacity: 0.55;
  animation: mgOrbFloat 16s ease-in-out infinite;
}

.mg-ambient-orbs i:nth-child(1) {
  width: 110px;
  height: 110px;
  top: 14%;
  left: 12%;
  animation-duration: 15s;
}

.mg-ambient-orbs i:nth-child(2) {
  width: 140px;
  height: 140px;
  top: 18%;
  right: 11%;
  background: radial-gradient(circle, rgba(230, 177, 116, 0.24), rgba(230, 177, 116, 0) 70%);
  animation-duration: 19s;
  animation-delay: -5s;
}

.mg-ambient-orbs i:nth-child(3) {
  width: 90px;
  height: 90px;
  bottom: 18%;
  left: 48%;
  animation-duration: 13s;
  animation-delay: -8s;
}

.mg-floor-grid {
  position: absolute;
  inset: 46% -10% -18%;
  background-image:
    linear-gradient(rgba(15, 38, 30, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 38, 30, 0.042) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(640px) rotateX(68deg);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, rgba(0, 0, 0, 0.62), transparent 85%);
}

@keyframes mgKeyBreathe {
  0% { opacity: 0.85; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 1; transform: translate3d(2.5%, 1.8%, 0) scale(1.07); }
}

@keyframes mgOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate3d(14px, -18px, 0) scale(1.14); opacity: 0.75; }
}

/* Floating Soft Sound Invitation Pill */
.mg-sound-prompt {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #c5e3d4;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mg-emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(15, 38, 30, 0.11);
  backdrop-filter: blur(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.2s ease, background 0.2s ease;
  animation: mgSoundNudge 3.6s ease-in-out infinite;
}

.mg-sound-prompt:hover {
  border-color: var(--mg-emerald);
  background: #ffffff;
  transform: translateY(-2px);
}

.mg-sound-prompt.is-hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  animation: none;
}

@keyframes mgSoundNudge {
  0%, 100% { box-shadow: 0 10px 26px rgba(15, 38, 30, 0.11), 0 0 0 0 rgba(22, 163, 107, 0.24); }
  55% { box-shadow: 0 12px 28px rgba(15, 38, 30, 0.13), 0 0 0 7px rgba(22, 163, 107, 0); }
}

/* Mini animated equalizer bars for Soft Sound controls */
.mg-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.mg-eq i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  transition: height 0.25s ease;
}

.mg-eq i:nth-child(2) { height: 8px; }
.mg-eq i:nth-child(3) { height: 5px; }

.mg-sound-btn.is-on .mg-eq i,
.mg-sound-prompt .mg-eq i {
  animation: mgEqDance 1.15s ease-in-out infinite;
}

.mg-sound-btn.is-on .mg-eq i:nth-child(2),
.mg-sound-prompt .mg-eq i:nth-child(2) {
  animation-delay: 0.22s;
}

.mg-sound-btn.is-on .mg-eq i:nth-child(3),
.mg-sound-prompt .mg-eq i:nth-child(3) {
  animation-delay: 0.44s;
}

@keyframes mgEqDance {
  0%, 100% { height: 3px; }
  50% { height: 11px; }
}

/* ---------- Scene Layers & Cinematic Staggered Choreography ---------- */
.mg-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(18px, 2.4vw, 32px);
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: perspective(1200px) rotateX(var(--mg-tilt-x)) rotateY(var(--mg-tilt-y)) translate3d(0, 16px, 0) scale(0.985);
  transition: opacity 0.8s cubic-bezier(0.22, 0.72, 0.22, 1), transform 0.9s cubic-bezier(0.22, 0.72, 0.22, 1), visibility 0.8s;
  pointer-events: none;
}

.mg-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: perspective(1200px) rotateX(var(--mg-tilt-x)) rotateY(var(--mg-tilt-y)) translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  z-index: 4;
}

.mg-scene.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translate3d(0, -12px, 0) scale(1.012);
  z-index: 3;
}

/* Staggered broadcast entrances inside every active scene */
.mg-scene [data-mg-stagger] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.72s cubic-bezier(0.22, 0.82, 0.28, 1), transform 0.78s cubic-bezier(0.22, 0.82, 0.28, 1);
}

.mg-scene.is-active [data-mg-stagger] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mg-scene.is-active [data-mg-stagger="1"] { transition-delay: 0.08s; }
.mg-scene.is-active [data-mg-stagger="2"] { transition-delay: 0.22s; }
.mg-scene.is-active [data-mg-stagger="3"] { transition-delay: 0.36s; }

/* Shared Studio Device Frame & Calibrated Screenshot Grading */
.mg-split-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.76fr);
  gap: clamp(16px, 2.2vw, 28px);
  align-items: center;
  height: 100%;
}

.mg-bezel {
  position: relative;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d4dfda;
  box-shadow: var(--mg-shadow-bezel);
  overflow: hidden;
}

.mg-bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 28%, transparent 50%);
  pointer-events: none;
  z-index: 4;
}

.mg-bezel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: var(--mg-bezel-chrome);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #cfe4da;
}

.mg-bezel-dots {
  display: inline-flex;
  gap: 5px;
}

.mg-bezel-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.mg-bezel-dots i:first-child { background: var(--mg-pulse-mint); }

.mg-bezel-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9.2;
  background: #ffffff;
}

.mg-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  filter: var(--mg-screen-grade);
  transform-origin: center center;
  transform: scale(1.01);
  transition: transform 0.25s linear;
}

.mg-scene.is-active .mg-screen-img.is-pan-a {
  animation: mgKenBurnsA 20s ease-in-out forwards;
}

.mg-scene.is-active .mg-screen-img.is-pan-b {
  animation: mgKenBurnsB 20s ease-in-out forwards;
}

.mg-scene.is-active .mg-screen-img.is-pan-c {
  animation: mgKenBurnsC 20s ease-in-out forwards;
}

@keyframes mgKenBurnsA {
  0% { transform: scale(1.01) translate3d(0%, 0%, 0); }
  50% { transform: scale(1.065) translate3d(-1.4%, -1.2%, 0); }
  100% { transform: scale(1.03) translate3d(0.8%, -0.6%, 0); }
}

@keyframes mgKenBurnsB {
  0% { transform: scale(1.02) translate3d(0.6%, 0%, 0); }
  50% { transform: scale(1.07) translate3d(-1.6%, -1.8%, 0); }
  100% { transform: scale(1.02) translate3d(0%, -0.4%, 0); }
}

@keyframes mgKenBurnsC {
  0% { transform: scale(1.01) translate3d(-0.5%, 0%, 0); }
  55% { transform: scale(1.06) translate3d(1.2%, -1.4%, 0); }
  100% { transform: scale(1.025) translate3d(0%, 0%, 0); }
}

/* Telemetry Crisp White Glass Panel */
.mg-telemetry-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--mg-radius-card);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--mg-border);
  box-shadow: var(--mg-shadow-card);
  backdrop-filter: blur(12px);
}

.mg-panel-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mg-emerald);
}

.mg-telemetry-panel h2,
.mg-scene-title {
  margin: 0;
  font: 800 clamp(18px, 1.9vw, 24px)/1.18 var(--display);
  letter-spacing: -0.02em;
  color: var(--mg-ink);
}

.mg-panel-copy {
  margin: 0;
  color: var(--mg-ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.mg-kpi-stack {
  display: grid;
  gap: 8px;
}

.mg-kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8faf9;
  border: 1px solid #e4ece8;
  font-size: 12px;
}

.mg-kpi-row span {
  color: var(--mg-ink-soft);
}

.mg-kpi-row strong {
  font: 800 13px/1 var(--display);
  color: var(--mg-ink);
}

.mg-kpi-row.is-mint {
  border-color: #bfe4d2;
  background: #eef9f3;
}

.mg-kpi-row.is-mint strong {
  color: var(--mg-emerald);
}

.mg-kpi-row.is-amber {
  border-color: var(--mg-amber-border);
  background: var(--mg-amber-soft);
}

.mg-kpi-row.is-amber strong {
  color: #9c5f14;
}

/* ---------- Act 1: Living Brand Heartbeat & Emotional Dual-Engine Reveal ---------- */
.mg-act1-wrap {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  max-width: 1080px;
  margin-inline: auto;
}

.mg-pulse-theater {
  position: relative;
  width: min(100%, 660px);
  height: 100px;
  display: grid;
  place-items: center;
}

.mg-pulse-core {
  position: absolute;
  left: 48%;
  top: 53.8%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.mg-pulse-core.is-beat {
  transform: translate(-50%, -50%) scale(1.13);
}

.mg-pulse-medallion {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  padding: 2px;
  background: linear-gradient(145deg, #ffffff, #e5f7ee);
  box-shadow: 0 12px 28px rgba(22, 163, 107, 0.28), 0 0 0 4px rgba(43, 229, 157, 0.14);
  display: grid;
  place-items: center;
}

.mg-pulse-medallion svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mg-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(22, 163, 107, 0.38);
  opacity: 0;
  pointer-events: none;
}

.mg-scene.is-active .mg-pulse-ring {
  animation: mgHeartbeatRipple 3.0s cubic-bezier(0.18, 0.78, 0.32, 1) infinite;
}

.mg-scene.is-active .mg-pulse-ring.is-r2 { animation-delay: 0.45s; }
.mg-scene.is-active .mg-pulse-ring.is-r3 { animation-delay: 0.9s; }

@keyframes mgHeartbeatRipple {
  0% { transform: scale(0.75); opacity: 0.72; }
  75% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.mg-ecg-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mg-ecg-track {
  fill: none;
  stroke: rgba(23, 98, 70, 0.11);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mg-ecg-glow {
  fill: none;
  stroke: rgba(43, 229, 157, 0.32);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(6px);
  opacity: 0.75;
}

.mg-ecg-line {
  fill: none;
  stroke: url(#mgEcgGrad);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
}

.mg-ecg-runner {
  fill: none;
  stroke: #2be59d;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 96 680;
  stroke-dashoffset: 776;
  filter: drop-shadow(0 0 8px rgba(43, 229, 157, 0.75));
}

.mg-scene.is-active .mg-ecg-line {
  animation: mgDrawEcg 2.2s cubic-bezier(0.22, 0.8, 0.25, 1) forwards;
}

.mg-scene.is-active .mg-ecg-runner {
  animation: mgPulseSweep 3.0s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes mgDrawEcg {
  0% { stroke-dashoffset: 760; }
  100% { stroke-dashoffset: 0; }
}

@keyframes mgPulseSweep {
  0% { stroke-dashoffset: 776; opacity: 0.15; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.15; }
}

.mg-act1-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.mg-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--mg-key-mint);
  box-shadow: 0 0 0 3px rgba(22, 163, 107, 0.18);
  vertical-align: middle;
}

.mg-scene-hero-title {
  margin: 0;
  font: 800 clamp(21px, 2.35vw, 31px)/1.16 var(--display);
  letter-spacing: -0.028em;
  color: var(--mg-ink);
  max-width: 38ch;
  text-wrap: balance;
}

.mg-gradient-word {
  background: linear-gradient(125deg, #176246 0%, #16a36b 55%, #1ea874 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.mg-story-whisper {
  margin: 0;
  max-width: 64ch;
  min-height: 22px;
  color: var(--mg-ink-soft);
  font-size: 14px;
  line-height: 1.48;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mg-story-whisper.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

.mg-act1-engines {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mg-engine-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--mg-border);
  box-shadow: 0 12px 32px rgba(15, 38, 30, 0.055);
  backdrop-filter: blur(10px);
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.25, 1), border-color 0.45s ease, box-shadow 0.55s ease;
}

.mg-engine-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  opacity: 0.45;
  transition: opacity 0.45s ease;
}

.mg-engine-card.is-online::before {
  background: linear-gradient(90deg, var(--mg-emerald), var(--mg-pulse-mint));
}

.mg-engine-card.is-offline::before {
  background: linear-gradient(90deg, var(--mg-rim-amber), #f1c07d);
}

.mg-engine-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(108deg, transparent 20%, rgba(255, 255, 255, 0.72) 50%, transparent 80%);
  pointer-events: none;
  transition: none;
}

.mg-engine-card.is-spotlight {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 38, 30, 0.11);
}

.mg-engine-card.is-spotlight::before {
  opacity: 1;
}

.mg-engine-card.is-spotlight::after {
  animation: mgCardSheen 1.6s ease-out forwards;
}

@keyframes mgCardSheen {
  0% { left: -100%; }
  100% { left: 150%; }
}

.mg-engine-card.is-online {
  border-color: #c2e3d3;
}

.mg-engine-card.is-online.is-spotlight {
  border-color: #6bc99f;
}

.mg-engine-card.is-offline {
  border-color: var(--mg-amber-border);
}

.mg-engine-card.is-offline.is-spotlight {
  border-color: #e0a761;
}

.mg-engine-card.is-simple {
  background: linear-gradient(155deg, #0C2A27 0%, #133E39 100%);
  border-color: #1C5951;
  color: #F7FBF9;
}
.mg-engine-card.is-simple.is-spotlight {
  border-color: #F59E0B;
  box-shadow: 0 18px 40px rgba(12, 42, 39, 0.24);
}
.mg-engine-card.is-simple h3 { color: #F7FBF9; }
.mg-engine-card.is-simple p { color: #CDE4DA; }
.mg-engine-card.is-simple .mg-engine-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #F59E0B;
}
.mg-engine-card.is-simple .mg-engine-tag {
  background: #F59E0B;
  color: #0C2A27;
}
.mg-engine-card.is-simple .mg-engine-live {
  color: #2BE59D;
}

.mg-engine-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mg-engine-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
}

.mg-engine-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.mg-engine-card.is-online .mg-engine-icon {
  background: #e8f8ef;
  color: var(--mg-emerald);
}

.mg-engine-card.is-offline .mg-engine-icon {
  background: var(--mg-amber-soft);
  color: #a66414;
}

.mg-engine-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mg-engine-card.is-online .mg-engine-tag {
  background: #ebf8f1;
  color: var(--mg-emerald);
}

.mg-engine-card.is-offline .mg-engine-tag {
  background: var(--mg-amber-soft);
  color: #9c5f14;
}

.mg-engine-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--mg-emerald);
}

.mg-engine-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mg-key-mint);
  box-shadow: 0 0 0 3px rgba(22, 163, 107, 0.18);
}

.mg-engine-live.is-amber {
  color: #9c5f14;
}

.mg-engine-live.is-amber i {
  background: var(--mg-rim-amber);
  box-shadow: 0 0 0 3px rgba(199, 125, 36, 0.18);
}

.mg-engine-card h3 {
  margin: 0 0 5px;
  font: 800 17px/1.22 var(--display);
  color: var(--mg-ink);
}

.mg-engine-card p {
  margin: 0;
  font-size: 13px;
  color: var(--mg-ink-soft);
  line-height: 1.5;
}

.mg-lane-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mg-lane-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--mg-border);
  color: var(--mg-ink-soft);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 38, 30, 0.04);
  transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.mg-lane-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b6cbc1;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.mg-lane-chip.is-lit {
  border-color: var(--mg-emerald);
  background: linear-gradient(135deg, #1b7854, var(--mg-emerald));
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(23, 98, 70, 0.24);
}

.mg-lane-chip.is-lit i {
  background: var(--mg-pulse-mint);
  box-shadow: 0 0 0 3px rgba(43, 229, 157, 0.3);
}

/* ---------- Act 2: Barcode Laser Sweep, Floating Toast & Cart Pop ---------- */
.mg-scan-laser {
  position: absolute;
  left: 14%;
  right: 24%;
  top: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mg-key-mint), #2be59d, var(--mg-key-mint), transparent);
  box-shadow: 0 0 18px 4px rgba(43, 229, 157, 0.55);
  opacity: 0;
  z-index: 3;
}

.mg-scan-laser::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -22px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(43, 229, 157, 0.16));
}

.mg-scene.is-active .mg-scan-laser {
  animation: mgLaserSweep 4.6s ease-in-out infinite;
}

@keyframes mgLaserSweep {
  0%, 100% { top: 20%; opacity: 0; }
  12% { opacity: 0.94; }
  50% { top: 76%; opacity: 0.94; }
  64% { opacity: 0; }
}

.mg-receipt-toast {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #bce2cf;
  color: var(--mg-emerald);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 38, 30, 0.14);
  backdrop-filter: blur(8px);
  transform: translateY(0) scale(1);
  transition: transform 0.35s cubic-bezier(0.22, 1.3, 0.36, 1), opacity 0.35s ease;
}

.mg-receipt-toast.is-pop {
  transform: translateY(-3px) scale(1.04);
}

.mg-toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mg-key-mint);
  box-shadow: 0 0 0 3px rgba(22, 163, 107, 0.22);
}

.mg-kpi-row {
  transition: transform 0.3s cubic-bezier(0.22, 1.3, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.mg-kpi-row.is-bump {
  transform: scale(1.028);
  box-shadow: 0 8px 20px rgba(22, 163, 107, 0.18);
  border-color: #6bc99f;
}

.mg-kpi-row.is-hero-kpi {
  border-color: #7ccca6;
  background: linear-gradient(135deg, #e8f9f0, #f4fcf8);
  box-shadow: 0 8px 20px rgba(23, 98, 70, 0.09);
}

.mg-live-callout {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(15, 38, 30, 0.92);
  border: 1px solid rgba(43, 229, 157, 0.42);
  color: #f0fbf5;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.mg-live-callout b {
  color: var(--mg-pulse-mint);
}

/* ---------- Act 3: Emotional Signal-Drop to Sealed Local Vault Shield ---------- */
.mg-bezel.is-vault-drop {
  border-color: #e6a95b;
  box-shadow: 0 22px 54px rgba(199, 125, 36, 0.20), 0 0 0 3px rgba(230, 169, 91, 0.22);
}

.mg-bezel.is-vault-locked {
  border-color: #6ec9a0;
  box-shadow: 0 22px 54px rgba(22, 163, 107, 0.20), 0 0 0 3px rgba(43, 229, 157, 0.20);
}

.mg-vault-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: background 0.55s ease, border-color 0.55s ease, color 0.55s ease, box-shadow 0.55s ease;
}

.mg-vault-banner.is-drop {
  background: rgba(255, 248, 238, 0.95);
  border: 1px solid #e6b779;
  color: #96570c;
  box-shadow: 0 10px 24px rgba(199, 125, 36, 0.22);
}

.mg-vault-banner.is-locked {
  background: rgba(15, 38, 30, 0.92);
  border: 1px solid rgba(43, 229, 157, 0.52);
  color: #e6fbf1;
  box-shadow: 0 10px 24px rgba(15, 38, 30, 0.22);
}

.mg-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #d9821f;
  box-shadow: 0 0 0 3px rgba(217, 130, 31, 0.26);
}

.mg-vault-banner.is-locked .mg-banner-dot {
  background: var(--mg-pulse-mint);
  box-shadow: 0 0 0 3px rgba(43, 229, 157, 0.28);
}

.mg-vault-chain {
  display: grid;
  gap: 8px;
}

.mg-hash-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #f8faf9;
  border: 1px solid #e3ebe7;
  font: 700 11px/1.2 ui-monospace, Consolas, monospace;
  color: var(--mg-ink);
  transition: border-color 0.38s ease, background 0.38s ease, transform 0.38s cubic-bezier(0.22, 1.2, 0.36, 1), box-shadow 0.38s ease;
}

.mg-hash-block span {
  color: #9c5f14;
}

.mg-hash-block.is-sealed {
  border-color: #9bd9bc;
  background: #ebfaf2;
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(22, 163, 107, 0.11);
}

.mg-hash-block.is-sealed span {
  color: var(--mg-emerald);
}

.mg-hash-block.is-sealed span::before {
  content: "✓ ";
  font-weight: 900;
}

/* ---------- Act 4: Bidirectional Sync & Fast Receiving Grid ---------- */
.mg-sync-stage {
  display: grid;
  gap: 13px;
  height: 100%;
  align-content: center;
}

.mg-sync-intro {
  text-align: center;
  display: grid;
  gap: 4px;
}

.mg-sync-bridge {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--mg-border);
  box-shadow: var(--mg-shadow-card);
}

.mg-sync-node {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mg-sync-node.is-right {
  justify-content: flex-end;
  text-align: right;
}

.mg-node-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #e8f8ef;
  border: 1px solid #bfe3d1;
  color: var(--mg-emerald);
  font: 800 11px/1 ui-monospace, Consolas, monospace;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(22, 163, 107, 0.35);
}

.mg-scene.is-active .mg-node-badge {
  animation: mgPulseRing 2.6s ease-out infinite;
}

.mg-node-badge.is-hub {
  background: var(--mg-amber-soft);
  border-color: var(--mg-amber-border);
  color: #9c5f14;
}

.mg-sync-node strong {
  display: block;
  font: 800 14px/1.2 var(--display);
  color: var(--mg-ink);
}

.mg-sync-node small {
  display: block;
  font-size: 11px;
  color: var(--mg-ink-soft);
}

.mg-sync-track {
  position: relative;
  width: clamp(120px, 17vw, 230px);
  height: 28px;
  display: grid;
  align-content: center;
  gap: 9px;
}

.mg-sync-rail {
  position: relative;
  height: 4px;
  background: #e3ece8;
  border-radius: 99px;
  overflow: hidden;
}

.mg-sync-rail::before,
.mg-sync-rail::after {
  content: "";
  position: absolute;
  top: 0;
  width: 32%;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--mg-key-mint), var(--mg-pulse-mint));
  animation: mgPacketPush 2.1s linear infinite;
}

.mg-sync-rail::before {
  animation-delay: -1.05s;
}

.mg-sync-rail.is-pull::before,
.mg-sync-rail.is-pull::after {
  background: linear-gradient(90deg, #e9b46c, var(--mg-rim-amber), transparent);
  animation: mgPacketPull 2.3s linear infinite;
}

.mg-sync-rail.is-pull::before {
  animation-delay: -1.15s;
}

@keyframes mgPacketPush {
  0% { left: -34%; }
  100% { left: 104%; }
}

@keyframes mgPacketPull {
  0% { left: 104%; }
  100% { left: -34%; }
}

.mg-rx-grid-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d5e2dc;
  background: #ffffff;
  color: #16352b;
  box-shadow: var(--mg-shadow-bezel);
}

.mg-rx-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--mg-bezel-chrome);
  color: #ecf9f2;
  font-size: 12px;
  font-weight: 700;
}

.mg-rx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.mg-rx-table th {
  text-align: left;
  padding: 9px 12px;
  background: #eef4f1;
  color: #16362b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mg-rx-table td {
  padding: 10px 12px;
  border-top: 1px solid #e6eeea;
}

.mg-rx-table tbody tr:nth-child(even) {
  background: #f9fbfa;
}

.mg-rx-table tbody tr {
  transition: background 0.35s ease;
}

.mg-rx-table tbody tr.is-row-active {
  background: #e2f8ec;
}

.mg-rx-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e4f5ec;
  color: #145c40;
  font-size: 10px;
  font-weight: 800;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.mg-rx-table tbody tr.is-row-active .mg-rx-badge {
  background: var(--mg-emerald);
  color: #ffffff;
  transform: scale(1.06);
}

/* ---------- Act 5: Command Center Shimmer Bars & True Mood Swatches ---------- */
.mg-bar-list {
  display: grid;
  gap: 8px;
}

.mg-bar-item {
  display: grid;
  gap: 4px;
  font-size: 11px;
}

.mg-bar-item-top {
  display: flex;
  justify-content: space-between;
  color: var(--mg-ink-soft);
}

.mg-bar-item-top strong {
  color: var(--mg-ink);
}

.mg-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e8efec;
  overflow: hidden;
}

.mg-bar-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mg-emerald), var(--mg-key-mint), var(--mg-pulse-mint));
  overflow: hidden;
  transition: width 1.15s cubic-bezier(0.22, 0.8, 0.25, 1);
}

.mg-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: mgBarGloss 2.6s ease-in-out infinite;
}

@keyframes mgBarGloss {
  0% { left: -45%; }
  100% { left: 120%; }
}

.mg-bar-fill.is-amber {
  background: linear-gradient(90deg, #b87420, #e3a754);
}

.mg-mood-wave {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mg-mood-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--mg-border);
  background: #f7faf8;
  color: var(--mg-ink-soft);
  transition: all 0.35s ease;
}

.mg-mood-pill.is-lit {
  border-color: var(--mg-emerald);
  background: var(--mg-emerald);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(23, 98, 70, 0.22);
}

.mg-mood-pill[data-mood-tint="night"].is-lit { background: #0f172a; border-color: #0f172a; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25); }
.mg-mood-pill[data-mood-tint="solar"].is-lit { background: #92400e; border-color: #92400e; box-shadow: 0 6px 14px rgba(146, 64, 14, 0.25); }
.mg-mood-pill[data-mood-tint="ocean"].is-lit { background: #0e5a8a; border-color: #0e5a8a; box-shadow: 0 6px 14px rgba(14, 90, 138, 0.25); }
.mg-mood-pill[data-mood-tint="rose"].is-lit { background: #9f1239; border-color: #9f1239; box-shadow: 0 6px 14px rgba(159, 18, 57, 0.25); }

/* ---------- Act 6: Cloud Curve Overlay with Luminous Area Fill ---------- */
.mg-curve-box {
  padding: 12px;
  border-radius: 12px;
  background: #f8fbf9;
  border: 1px solid var(--mg-border);
}

.mg-curve-svg {
  width: 100%;
  height: 76px;
  display: block;
}

.mg-curve-area {
  opacity: 0;
  transition: opacity 1.4s ease 0.4s;
}

.mg-scene.is-active .mg-curve-area {
  opacity: 1;
}

.mg-curve-path {
  fill: none;
  stroke: var(--mg-emerald);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
}

.mg-scene.is-active .mg-curve-path {
  animation: mgDrawCurve 2.2s cubic-bezier(0.22, 0.8, 0.25, 1) forwards;
}

.mg-curve-beacon {
  fill: rgba(43, 229, 157, 0.24);
  transform-box: fill-box;
  transform-origin: center;
}

.mg-scene.is-active .mg-curve-beacon {
  animation: mgBeaconPulse 2.4s ease-out infinite;
}

@keyframes mgBeaconPulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes mgDrawCurve {
  to { stroke-dashoffset: 0; }
}

/* ---------- Act 7 & 8: Layered Dual Report Frames with Float ---------- */
.mg-dual-frames {
  position: relative;
  padding-bottom: 16px;
}

.mg-secondary-pip {
  position: absolute;
  right: 12px;
  bottom: 0;
  width: 36%;
  max-width: 265px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c2ddd0;
  box-shadow: 0 20px 42px rgba(15, 38, 30, 0.22);
  background: #ffffff;
  z-index: 6;
}

.mg-scene.is-active .mg-secondary-pip {
  animation: mgFloatPip 5.6s ease-in-out infinite alternate;
}

@keyframes mgFloatPip {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -6px, 0); }
}

.mg-secondary-pip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 132px;
  object-fit: cover;
  object-position: 24% top;
  filter: var(--mg-screen-grade);
}

.mg-secondary-pip span {
  display: block;
  padding: 5px 9px;
  background: var(--mg-bezel-chrome);
  color: var(--mg-pulse-mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Act 9: 3D-Staged Cross-Platform Emotional Finale ---------- */
.mg-finale-wrap {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.mg-device-trio {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1.22fr 1.02fr 0.66fr;
  gap: 16px;
  align-items: end;
  perspective: 1200px;
}

.mg-device-card {
  position: relative;
  margin: 0;
  border-radius: 15px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d5e1db;
  box-shadow: var(--mg-shadow-bezel);
  text-align: left;
  transition: transform 0.65s cubic-bezier(0.22, 0.8, 0.25, 1), box-shadow 0.65s ease;
}

.mg-device-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.28) 0%, transparent 40%);
  pointer-events: none;
}

.mg-scene.is-active .mg-device-card.is-left {
  transform: rotateY(6deg) translateY(-2px);
}

.mg-scene.is-active .mg-device-card.is-center {
  border-color: #9ed7bc;
  box-shadow: 0 28px 64px rgba(23, 98, 70, 0.18), 0 4px 14px rgba(15, 38, 30, 0.07);
  animation: mgHeroFloat 5.2s ease-in-out infinite alternate;
}

.mg-scene.is-active .mg-device-card.is-right {
  transform: rotateY(-6deg) translateY(-2px);
}

@keyframes mgHeroFloat {
  0% { transform: translateY(-4px) scale(1.02); }
  100% { transform: translateY(-12px) scale(1.03); }
}

.mg-device-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9.5;
  max-height: 210px;
  object-fit: cover;
  object-position: 28% top;
  filter: var(--mg-screen-grade);
}

.mg-device-card.is-phone img {
  aspect-ratio: 11 / 10;
  max-height: 210px;
  object-position: 34% top;
}

.mg-device-card figcaption {
  padding: 9px 12px;
  background: #ffffff;
  border-top: 1px solid var(--mg-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--mg-ink);
}

.mg-device-card figcaption small {
  color: var(--mg-emerald);
  font-weight: 800;
}

/* ---------- Bottom Broadcast Timeline & Controls Dock (Pure White) ---------- */
.mg-controls-dock {
  display: grid;
  gap: 12px;
  padding: 14px 18px 16px;
  background: #ffffff;
  border-top: 1px solid var(--mg-border);
}

.mg-scrubber-wrap {
  position: relative;
  height: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.mg-scrubber-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e6eeea;
  overflow: hidden;
}

.mg-scrubber-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mg-emerald) 0%, var(--mg-key-mint) 78%, var(--mg-pulse-mint) 100%);
}

.mg-scrubber-ticks {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  pointer-events: none;
}

.mg-scrubber-ticks i {
  border-right: 1px solid rgba(255, 255, 255, 0.9);
}

.mg-scrubber-ticks i:last-child {
  border-right: 0;
}

.mg-dock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mg-chapter-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding-bottom: 2px;
}

.mg-chapter-strip::-webkit-scrollbar {
  display: none;
}

.mg-chap-btn {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--mg-border);
  background: #f8faf9;
  color: var(--mg-ink-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mg-chap-btn:hover {
  border-color: var(--mg-emerald);
  color: var(--mg-ink);
  background: #ffffff;
}

.mg-chap-btn.is-active {
  background: var(--mg-emerald);
  border-color: var(--mg-emerald);
  color: #ffffff;
}

.mg-chap-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: var(--mg-act-progress, 0%);
  background: var(--mg-pulse-mint);
  transition: width 0.16s linear;
}

.mg-transport {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mg-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--mg-border-strong);
  background: #ffffff;
  color: var(--mg-ink);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.mg-ctrl-btn:hover {
  border-color: var(--mg-emerald);
  color: var(--mg-emerald);
  background: #f7fbf9;
}

.mg-sound-btn.is-on {
  border-color: var(--mg-emerald);
  background: #ebf8f1;
  color: var(--mg-emerald);
  box-shadow: 0 4px 12px rgba(23, 98, 70, 0.12);
}

/* ---------- Below-the-Fold Pure White & Soft Pearl Architecture Sections ---------- */
body.motion-home .section {
  padding-block: clamp(58px, 6.5vw, 92px);
}

body.motion-home .section-wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

body.motion-home .mg-band-tint {
  background: #fafcfb;
  border-block: 1px solid var(--mg-border);
}

body.motion-home .mg-band-light {
  background: #ffffff;
}

body.motion-home .live-demo {
  padding-block: clamp(56px, 6vw, 86px);
  background: #fafcfb;
  border-bottom: 1px solid var(--mg-border);
}

body.motion-home .site-footer {
  background: #ffffff;
}

body.motion-home .trust-strip {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body.motion-home .trust-badge {
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--mg-border);
  color: var(--mg-ink);
  font-size: 12px;
  font-weight: 700;
}

body.motion-home .vp-editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body.motion-home .vp-edcard {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--mg-border);
  box-shadow: var(--mg-shadow-card);
}

body.motion-home .vp-edcard.local {
  background: #ffffff;
  border-color: var(--mg-amber-border);
  color: var(--mg-ink);
}

body.motion-home .vp-edcard.local .vp-flag {
  background: var(--mg-amber-soft);
  color: #9c5f14;
}

body.motion-home .vp-edcard .vp-flag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ebf7f1;
  color: var(--mg-emerald);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

body.motion-home .vp-edcard .vp-k {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mg-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.motion-home .vp-edcard h3 {
  margin: 4px 0 6px;
  font: 800 24px/1.2 var(--display);
  color: var(--mg-ink);
}

body.motion-home .vp-edcard ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
  display: grid;
  gap: 9px;
  font-size: 13px;
  color: var(--mg-ink-soft);
}

body.motion-home .vp-edcard ul li {
  position: relative;
  padding-left: 20px;
}

body.motion-home .vp-edcard ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mg-emerald);
  font-weight: 800;
}

body.motion-home .vp-edcard .button {
  margin-top: auto;
  align-self: flex-start;
}

body.motion-home .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.motion-home .hw-explorer-tabs,
body.motion-home .billing-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: #f3f7f5;
  border: 1px solid var(--mg-border);
  margin-bottom: 22px;
}

body.motion-home .hw-explorer-tabs button,
body.motion-home .billing-switch button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mg-ink-soft);
  font-size: 13px;
  font-weight: 700;
}

body.motion-home .hw-explorer-tabs button.is-active,
body.motion-home .billing-switch button.is-active {
  background: var(--mg-emerald);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 98, 70, 0.20);
}

/* ---------- Responsive: Tablet & Mobile (APK) ---------- */
@media (max-width: 1040px) {
  .mg-hero-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mg-hero-cta-col {
    justify-items: start;
  }

  .mg-hero-actions,
  .mg-hero-proof {
    justify-content: flex-start;
  }

  .mg-stage {
    display: grid;
    grid-template-areas: "scene";
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
  }

  .mg-scene {
    position: relative;
    grid-area: scene;
    max-height: 0;
    padding-block: 0;
    overflow: hidden;
    transform: none;
  }

  .mg-scene.is-active {
    max-height: 2200px;
    padding: 18px;
    overflow: visible;
    transform: none;
  }

  .mg-scene.is-leaving {
    max-height: 0;
    padding-block: 0;
    overflow: hidden;
    transform: none;
  }

  .mg-split-stage {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .mg-chapter-strip {
    flex-wrap: wrap;
    overflow-x: visible;
    width: 100%;
  }

  .mg-scene.is-active .mg-device-card.is-left,
  .mg-scene.is-active .mg-device-card.is-right,
  .mg-scene.is-active .mg-device-card.is-center {
    transform: none;
    animation: none;
  }

  .mg-sound-prompt {
    position: static;
    margin: 0 auto 12px;
    width: fit-content;
  }

  .mg-engine-card {
    padding: 15px 16px;
  }

  .mg-engine-top {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .mg-engine-tag {
    padding: 3px 8px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .mg-engine-live {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mg-device-trio {
    grid-template-columns: 1fr 1fr;
  }

  .mg-device-card.is-phone {
    grid-column: 1 / -1;
    max-width: 320px;
    margin-inline: auto;
  }

  body.motion-home .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mg-hud-top {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .mg-act-edition {
    display: none;
  }

  .mg-scene.is-active {
    padding: 14px;
  }

  .mg-pulse-theater {
    height: 76px;
  }

  .mg-pulse-medallion {
    width: 36px;
    height: 36px;
  }

  .mg-receipt-toast {
    display: none;
  }

  .mg-act1-engines,
  .mg-sync-bridge,
  .mg-device-trio,
  body.motion-home .vp-editions,
  body.motion-home .feature-grid {
    grid-template-columns: 1fr;
  }

  .mg-sync-node.is-right {
    justify-content: flex-start;
    text-align: left;
  }

  .mg-sync-node.is-right .mg-node-badge {
    order: -1;
  }

  .mg-sync-track {
    width: 100%;
  }

  .mg-secondary-pip {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 10px;
    animation: none !important;
  }

  .mg-dual-frames {
    padding-bottom: 0;
  }

  .mg-rx-table {
    font-size: 11px;
  }

  .mg-rx-table th,
  .mg-rx-table td {
    padding: 7px 8px;
  }

  .mg-controls-dock {
    padding: 12px;
  }

  .mg-chapter-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .mg-chap-btn {
    padding: 6px 6px;
    font-size: 10px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mg-transport {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .mg-gradient-word {
    white-space: normal;
  }

  .mg-engine-top {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-pulse-dot,
  .mg-light-key,
  .mg-light-rim,
  .mg-ambient-orbs i,
  .mg-sound-prompt,
  .mg-eq i,
  .mg-pulse-ring,
  .mg-ecg-runner,
  .mg-engine-card::after,
  .mg-scan-laser,
  .mg-node-badge,
  .mg-sync-rail::before,
  .mg-sync-rail::after,
  .mg-bar-fill::after,
  .mg-curve-beacon,
  .mg-secondary-pip,
  .mg-device-card,
  .mg-screen-img,
  .mg-ecg-line,
  .mg-curve-path {
    animation: none !important;
  }

  .mg-ecg-line,
  .mg-curve-path {
    stroke-dashoffset: 0 !important;
  }

  .mg-ecg-spark {
    display: none;
  }

  .mg-scene [data-mg-stagger] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
