/* ===== Global primitives ===== */

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Keep keyboard accessibility */
:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Page shell */
.mm-shell {
  max-width: 72rem;           /* 6xl */
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

@media (min-width: 768px) {
  .mm-shell {
    padding: 2rem 1rem 3rem;
  }
}

/* Background overlay (subtle gradient behind everything) */
.mm-bg-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -10;
  background: linear-gradient(to bottom, #020617, #020617 40%, #020617);
}

/* ===== Header ===== */

.mm-header {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.25), transparent 55%),
              radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 55%),
              #020617;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.28);
  padding: 1.5rem 1.25rem 1.75rem;
}

@media (min-width: 768px) {
  .mm-header {
    padding: 1.75rem 1.5rem 2rem;
  }
}

/* Soft glow band */
.mm-header::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: -60px;
  height: 180px;
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.55), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

/* Put actual content above glow */
.mm-header-inner {
  position: relative;
  z-index: 1;
}

/* Eyebrow pill */
.mm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
}

/* Small status dot used in multiple places */
.mm-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #22c55e;
}

/* Header network card */
.mm-header-card {
  width: 100%;
  max-width: 19rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 65%),
              rgba(15, 23, 42, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  padding: 0.9rem 1.1rem;
}

/* CTA button in header */
.mm-cta {
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.3rem;
  background: #22c55e;
  color: #020617;
  box-shadow: 0 16px 35px rgba(34, 197, 94, 0.55);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.mm-cta:hover {
  background: #4ade80;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.7);
}

/* ===== Generic cards / sections ===== */

.mm-card {
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(30, 64, 175, 0.6);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.mm-card-soft {
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.65);
}

.mm-section {
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(30, 64, 175, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

/* Section headings */
.mm-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* ===== Tabs / toggles ===== */

.mm-tab {
  border-radius: 9999px;
  padding: 0.28rem 0.8rem;
  font-size: 0.72rem;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.mm-tab--active {
  border-color: rgba(15, 23, 42, 1);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.45), rgba(15, 23, 42, 1));
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
}

/* ===== FAQ ===== */

.mm-faq details {
  border-radius: 0.75rem;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
}

/* ===== Inputs ===== */

.mm-input,
.mm-select {
  width: 100%;
  border-radius: 0.45rem;
  border: 1px solid rgba(51, 65, 85, 0.95);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  color: #e5e7eb;
}

.mm-input:focus,
.mm-select:focus {
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.65);
}

/* Small labels in forms */
.mm-label {
  font-size: 0.68rem;
  color: #9ca3af;
}

/* Strategy / client small helper text */
.mm-helper {
  font-size: 0.65rem;
  color: #6b7280;
}

/* Footer link hover */
.mm-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #7dd3fc;
  transition: color 120ms ease;
}

.mm-footer-link:hover {
  color: #bae6fd;
}
