/* ============================================================
   MANDATEMIND 2.0 — GLOBAL STYLES (OPTIMIZED)
   Cleaned, modernized, conflict-free
============================================================ */

/* ------------------------------
   GLOBAL
------------------------------ */
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #f8f9fb;
  color: #0A0F1F;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* ------------------------------
   DARK NAVIGATION — MANDATEMIND 2.0
------------------------------ */
.mm-nav {
  background: #0f172a;
  color: #e2e8f0;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 999;
}

.mm-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mm-logo img {
  height: 96px;
}

.mm-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mm-nav-btn,
.mm-nav-link {
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1rem;
  cursor: pointer;
}

.mm-nav-btn:hover,
.mm-nav-link:hover {
  color: #38bdf8;
}

.mm-nav-item {
  position: relative;
}

.mm-dropdown {
  position: absolute;
  top: 2.5rem;
  left: 0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 220px;

  /* Always present in layout */
  display: block;

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Show on hover */
.mm-nav-item:hover .mm-dropdown,
.mm-dropdown:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mm-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
}

.mm-dropdown a:hover {
  background: #334155;
  color: #38bdf8;
}

.mm-nav-item:hover .mm-dropdown {
  display: block;
}

.mm-cta {
  background: #38bdf8;
  color: #0f172a;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.mm-cta:hover {
  background: #0ea5e9;
}

/* MOBILE NAV */
.mm-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #e2e8f0;
  cursor: pointer;
}

.mm-mobile-menu {
  display: none;
  background: #0f172a;
  padding: 1rem 2rem;
  border-top: 1px solid #1e293b;
  flex-direction: column;
}

.mm-mobile-menu a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.8rem 0;
  display: block;
}

.mm-cta-mobile {
  background: #38bdf8;
  color: #0f172a;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .mm-nav-links,
  .mm-cta {
    display: none;
  }

  .mm-mobile-toggle {
    display: block;
  }

  .mm-mobile-menu {
    display: flex;
  }
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 650px;
  margin: 1rem auto 2.5rem;
  font-size: 1.25rem;
  color: #1a1f2c;
}

/* ------------------------------
   SECTION WRAPPERS
------------------------------ */
.section {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #0A0F1F;
}

.section p {
  max-width: 750px;
  margin: 1rem auto 2rem;
  font-size: 1.2rem;
  color: #1a1f2c;
}

/* ------------------------------
   CTA BUTTONS
------------------------------ */
.button,
.button-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: linear-gradient(90deg, #00e0ff, #4df3ff);
  color: #0A0F1F;
  box-shadow: 0 12px 32px rgba(0,224,255,0.35);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,224,255,0.45);
}

/* ------------------------------
   CHAOS → CLARITY COLLAGE
------------------------------ */
.chaos-clarity-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 3rem auto;
}

.chaos-block h3,
.clarity-block h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.chaos-collage {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.chaos-item {
  background: #ffffff;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255,0,0,0.25);
  box-shadow: 0 8px 20px rgba(255,0,0,0.15);
  font-size: 0.9rem;
  transform: rotate(-6deg);
  opacity: 0.85;
}

.chaos-item:nth-child(2) { transform: rotate(4deg); }
.chaos-item:nth-child(3) { transform: rotate(-3deg); }
.chaos-item:nth-child(4) { transform: rotate(5deg); }
.chaos-item:nth-child(5) { transform: rotate(-2deg); }

.chaos-arrow {
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.4;
}

.clarity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.clarity-card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0,224,255,0.25);
  box-shadow: 0 8px 24px rgba(10,15,31,0.08);
  font-size: 0.9rem;
  text-align: center;
}

/* ------------------------------
   FLOATING PRODUCT PREVIEW
------------------------------ */
.screenshot-frame {
  max-width: 950px;
  margin: 0 auto;
  border-radius: 20px;
  background: rgba(255,255,255,0.95);
  box-shadow:
    0 30px 60px rgba(0, 224, 255, 0.25),
    0 20px 40px rgba(10, 15, 31, 0.25);
  border: 1px solid rgba(0,224,255,0.35);
  transform: translateY(20px);
  opacity: 0;
  transition:
    opacity 1.2s ease,
    transform 1.2s ease,
    box-shadow 0.4s ease,
    scale 0.4s ease;
  position: relative;
}

.screenshot-frame.visible {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 40px 80px rgba(0, 224, 255, 0.35),
    0 25px 50px rgba(10, 15, 31, 0.35);
}

.screenshot-frame img {
  border-radius: 20px;
}

/* Glow pulse */
.screenshot-frame::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 30px;
  background: radial-gradient(
    circle at center,
    rgba(0, 224, 255, 0.25),
    rgba(0, 224, 255, 0) 70%
  );
  filter: blur(40px);
  opacity: 0.6;
  animation: glowPulse 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0% { opacity: 0.45; transform: scale(0.95); }
  50% { opacity: 0.75; transform: scale(1.05); }
  100% { opacity: 0.45; transform: scale(0.95); }
}

/* ------------------------------
   3-LAYER FLOATING CARD STACK
------------------------------ */
.stack-layer {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  z-index: -2;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-style: preserve-3d;
}

.layer-1 {
  background: rgba(255, 255, 255, 0.35);
  filter: blur(14px);
  opacity: 0.35;
  transform: translateY(8px) scale(1.02);
}

.layer-2 {
  background: rgba(255, 255, 255, 0.25);
  filter: blur(22px);
  opacity: 0.28;
  transform: translateY(14px) scale(1.04);
  z-index: -3;
}

.layer-3 {
  background: rgba(255, 255, 255, 0.18);
  filter: blur(30px);
  opacity: 0.22;
  transform: translateY(20px) scale(1.06);
  z-index: -4;
}

/* ------------------------------
   FEATURE GRID
------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto;
}

.feature-card {
  padding: 2rem;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(0,224,255,0.25);
  box-shadow: 0 12px 32px rgba(10,15,31,0.08);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* ------------------------------
   PERSONA GRID
------------------------------ */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
}

.persona-card {
  padding: 2rem;
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(0,224,255,0.25);
  box-shadow: 0 8px 24px rgba(10,15,31,0.08);
  transition: transform 0.2s ease;
}

.persona-card:hover {
  transform: translateY(-4px);
}

/* ------------------------------
   SNAPSHOT STRIP
------------------------------ */
.snapshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.snapshot-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(0,224,255,0.25);
  box-shadow: 0 12px 32px rgba(10,15,31,0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.snapshot-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.snapshot-card p {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: #374151;
}

/* ------------------------------
   TRUST SECTION
------------------------------ */
.trust-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  opacity: 0.7;
  margin-top: 2rem;
}

.trust-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0,224,255,0.15);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0A0F1F;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  padding: 40px;
  text-align: center;
  background: #111827;
  color: white;
  margin-top: 80px;
  font-size: 0.95rem;
}

/* ------------------------------
   SCROLL ANIMATIONS
------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in.visible {
  opacity: 1;
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }

/* ------------------------------
   FORM FIELDS
------------------------------ */
.input-field {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0 1.5rem;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  border-color: #00e0ff;
  box-shadow: 0 0 0 3px rgba(0,224,255,0.25);
  outline: none;
}

/* ============================
   ICON FEATURE LIST
   ============================ */
.mm-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mm-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.mm-feature-list-icon {
  font-size: 1.35rem;
  color: #38bdf8; /* MandateMind cyan */
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================
   COMPARISON LIST
   ============================ */
.mm-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mm-compare-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.mm-compare-icon {
  font-size: 1.2rem;
  color: #38bdf8; /* MandateMind cyan */
  flex-shrink: 0;
}

.mm-nav-item {
  position: relative;
}

.mm-dropdown {
  margin-top: -2px;
}

.mm-nav-item:hover .mm-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

/* Remove bullets globally */
ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Universal icon list */
.mm-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.mm-icon-list-icon {
  font-size: 1.2rem;
  color: #38bdf8; /* MandateMind cyan */
  flex-shrink: 0;
  margin-top: 2px;
}

/* Remove bullets globally */
ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Universal icon list */
.mm-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.mm-icon-list svg {
  width: 20px;
  height: 20px;
  color: #38bdf8; /* MandateMind cyan */
  flex-shrink: 0;
  margin-top: 2px;
}

/* Fix hover gap between menu and submenu */
.mm-nav-item {
  position: relative;
}

.mm-dropdown {
  margin-top: -6px; /* pull submenu upward to close the gap */
}

/* Add invisible hover buffer */
.mm-nav-item:hover .mm-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

/* Fix alignment when headings are centered but lists should not be */
.section h2 {
  text-align: center;
}

.section .mm-icon-list {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
