/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
  /* Brand Palette */
  --c-bg: #ffffff;
  --c-surface: #f4f6f9;
  --c-border: #e2e8f0;
  --c-text: #0f172a;
  --c-muted: #475569;
  
  /* Primary Accents */
  --c-accent: #1956a6;       /* MLL Blue */
  --c-accent-light: #e8f0fe; 
  --c-accent2: #ea6024;      /* MLL Orange */
  --c-accent2-light: #fdf0e9;
  
  /* Dark Mode Elements */
  --c-dark: #0b1120;
  --c-dark-surface: #1e293b;
  
  /* Typography */
  --f-display: 'Sora', sans-serif;
  --f-body: 'Inter', sans-serif;
  
  /* UI Elements */
  --radius: 12px; 
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.03);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
}

/* Global Reset */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%;
}

body { 
  font-family: var(--f-body); 
  font-weight: 300; 
  color: var(--c-text); 
  background: var(--c-bg); 
  line-height: 1.6; 
  font-size: 16px; 
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { 
  overflow: hidden; 
}

img, svg { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

h1, h2, h3, h4, h5, h6 { 
  font-weight: 500; 
  font-family: var(--f-display); 
  color: var(--c-text); 
  line-height: 1.2;
}

strong, b { 
  font-weight: 500; 
  color: #0f172a; 
}

a { 
  text-decoration: none; 
  transition: all 0.2s ease; 
  color: inherit;
}

/* ==========================================================================
   HEADER & DESKTOP NAVIGATION
   ========================================================================== */
header {
  position: sticky; 
  top: 0; 
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: 1200px; 
  margin: 0 auto;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0 24px; 
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img { 
  height: 48px; 
  width: auto; 
}

/* Fallback Logo Mark */
.logo-mark {
  width: 36px; height: 36px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 500; font-size: 18px;
}
.logo-text { font-family: var(--f-display); font-weight: 500; font-size: 18px; color: var(--c-text); }
.logo-text span { font-weight: 300; color: var(--c-muted); }

.nav-wrapper { 
  display: flex; 
  align-items: center; 
  gap: 32px; 
}

nav { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

nav a {
  font-size: 14px; 
  font-weight: 400; 
  color: var(--c-muted);
  padding: 8px 14px; 
  border-radius: 8px;
}

nav a:hover { 
  color: var(--c-accent); 
  background: var(--c-surface); 
}

.nav-demo {
  color: var(--c-accent); 
  border: 1px solid rgba(25, 86, 166, 0.2); 
  background: var(--c-accent-light); 
  font-weight: 500;
}

.nav-demo:hover { 
  background: #dce6f7; 
}

.header-auth { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

/* Hide Mobile UI on Desktop */
.mobile-menu-btn, 
.mobile-close-btn, 
.mobile-overlay { 
  display: none; 
}

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */
.btn-primary {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
  font-size: 15px; 
  font-weight: 500; 
  color: #fff !important; 
  background: var(--c-accent); 
  padding: 12px 28px; 
  border-radius: 8px; 
  border: none; 
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { 
  background: #123e78; 
  box-shadow: var(--shadow-md); 
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
  font-size: 15px; 
  font-weight: 500; 
  color: var(--c-text); 
  background: #fff; 
  padding: 12px 28px; 
  border-radius: 8px; 
  border: 1px solid var(--c-border); 
  cursor: pointer;
}

.btn-secondary:hover { 
  background: var(--c-surface); 
}

.btn-login { 
  font-size: 14px; 
  font-weight: 500; 
  color: var(--c-text); 
  padding: 8px 18px; 
  border-radius: 8px; 
  border: 1px solid var(--c-border); 
}

.btn-login:hover { 
  background: var(--c-surface); 
}



.btn-signup { 
  font-size: 14px; 
  font-weight: 500; 
  color: #fff !important; 
  padding: 8px 18px; 
  border-radius: 8px; 
  background: var(--c-accent2); 
}

.btn-signup:hover { 
  background: #c7501c; 
}

.ent-input {
  padding: 14px 16px; 
  border: 1px solid var(--c-border); 
  border-radius: 8px;
  font-family: var(--f-body); 
  font-size: 15px; 
  color: var(--c-text); 
  background: #fff; 
  outline: none; 
  width: 100%;
  transition: all 0.2s;
}

.ent-input:focus { 
  border-color: var(--c-accent); 
  box-shadow: 0 0 0 3px var(--c-accent-light); 
}

.ent-input::placeholder { 
  color: #9ca3af; 
  font-weight: 300; 
}

/* ==========================================================================
   GENERAL SECTIONS & TYPOGRAPHY
   ========================================================================== */
.section { padding: 96px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.section-dark { background: var(--c-dark); color: #fff; }

.section-label { 
  font-size: 13px; 
  font-weight: 600; 
  letter-spacing: .1em; 
  text-transform: uppercase; 
  color: var(--c-accent2); 
  margin-bottom: 16px; 
}

.section-title { 
  font-size: clamp(28px, 4vw, 42px); 
  letter-spacing: -.02em; 
  max-width: 640px; 
  margin-bottom: 24px; 
}

.section-desc { 
  font-size: 17px; 
  color: var(--c-muted); 
  max-width: 680px; 
  line-height: 1.7; 
}

/* ==========================================================================
   HERO SECTIONS (General & Enterprise)
   ========================================================================== */
.hero { 
  background: var(--c-bg); 
  padding: 100px 24px 80px; 
  text-align: center; 
}

.hero-eyebrow { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 12px; 
  font-weight: 600; 
  letter-spacing: .08em; 
  text-transform: uppercase; 
  color: var(--c-accent); 
  background: var(--c-accent-light); 
  border: 1px solid rgba(25, 86, 166, 0.15); 
  padding: 6px 16px; 
  border-radius: 999px; 
  margin-bottom: 28px; 
}

.hero h1 { 
  font-size: clamp(36px, 6vw, 64px); 
  letter-spacing: -.03em; 
  max-width: 900px; 
  margin: 0 auto 24px; 
}

.hero h1 em { 
  font-style: normal; 
  color: var(--c-accent2); 
}

.hero-sub { 
  font-size: clamp(16px, 2vw, 18px); 
  color: var(--c-muted); 
  max-width: 640px; 
  margin: 0 auto 40px; 
}

.hero-badges { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 12px; 
  margin-bottom: 48px; 
}

.badge { 
  font-size: 13px; 
  font-weight: 500; 
  color: var(--c-accent2); 
  background: var(--c-accent2-light); 
  border: 1px solid rgba(234, 96, 36, 0.15); 
  padding: 6px 16px; 
  border-radius: 999px; 
}

.hero-cta { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 16px; 
}

/* Stats Row */
.hero-stats {
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  background: #fff;
  border: 1px solid var(--c-border); 
  border-radius: var(--radius); 
  overflow: hidden; 
  max-width: 800px; 
  margin: 64px auto 0; 
  box-shadow: var(--shadow-md);
}

.hero-stat { 
  flex: 1; 
  min-width: 200px; 
  padding: 32px 24px; 
  text-align: center; 
  border-right: 1px solid var(--c-border); 
}

.hero-stat:last-child { border-right: none; }

.hero-stat-val { 
  font-family: var(--f-display); 
  font-size: 40px; 
  color: var(--c-accent); 
  line-height: 1; 
}

.hero-stat-lbl { 
  font-size: 12px; 
  color: var(--c-muted); 
  margin-top: 8px; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
}

/* Enterprise Hero */
.enterprise-hero { 
  background: var(--c-dark); 
  padding: 120px 24px 96px; 
  text-align: center; 
  border-bottom: 1px solid #1f2937; 
}

.enterprise-hero .hero-eyebrow { 
  background: #1e293b; 
  border-color: #374151; 
  color: #9ca3af; 
}

.enterprise-hero h1 { 
  font-size: clamp(34px, 5vw, 64px); 
  color: #fff; 
  max-width: 800px; 
  margin: 0 auto 24px; 
}

/* ==========================================================================
   GRIDS & CONTENT LAYOUTS
   ========================================================================== */
.challenge-grid, .ent-grid, .mv-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 64px; 
  align-items: center; 
  margin-top: 56px; 
}

/* Challenge Section Specifics */
.challenge-body p { 
  color: var(--c-muted); 
  margin-bottom: 16px; 
}

.challenge-list { 
  list-style: none; 
  margin-top: 32px; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.challenge-list li { 
  display: flex; 
  align-items: flex-start; 
  gap: 12px; 
  color: var(--c-text); 
}

.check { 
  width: 20px; 
  height: 20px; 
  border-radius: 999px; 
  background: var(--c-accent2-light); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--c-accent2); 
  font-size: 12px; 
  flex-shrink: 0; 
  margin-top: 3px; 
}

/* Mini Cards (Visual representation) */
.challenge-visual { 
  background: var(--c-surface); 
  border-radius: var(--radius); 
  padding: 40px; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  border: 1px solid var(--c-border); 
}

.mini-card { 
  background: #fff; 
  border-radius: 8px; 
  padding: 20px; 
  box-shadow: var(--shadow-sm); 
  border: 1px solid var(--c-border); 
  display: flex; 
  align-items: center; 
  gap: 16px; 
}

.mini-card-icon { 
  width: 44px; 
  height: 44px; 
  border-radius: 8px; 
  background: var(--c-accent-light); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0; 
}

.mini-card-icon svg { width: 22px; height: 22px; fill: var(--c-accent); }
.mini-card-title { font-size: 14px; font-weight: 600; color: var(--c-text); }
.mini-card-sub { font-size: 13px; color: var(--c-muted); margin-top: 4px; }
.mini-bar-wrap { height: 6px; background: var(--c-surface); border-radius: 3px; margin-top: 10px; }
.mini-bar { height: 6px; border-radius: 3px; background: var(--c-accent); }

/* Responsive 3-Column Grids (Quotients, Features, Indices) */
.quotient-grid, .indices-grid, .compare-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); 
  gap: 24px; 
  margin-top: 48px; 
}

.quotient-card, .compare-card { 
  background: #fff; 
  border: 1px solid var(--c-border); 
  border-radius: var(--radius); 
  padding: 32px; 
  transition: transform .2s, box-shadow .2s, border-color .2s; 
}

.quotient-card:hover { 
  transform: translateY(-2px);
  box-shadow: var(--shadow-md); 
  border-color: var(--c-accent); 
}

.q-tag { 
  display: inline-block; 
  font-family: var(--f-display); 
  font-size: 14px; 
  color: var(--c-accent); 
  background: var(--c-accent-light); 
  padding: 4px 12px; 
  border-radius: 6px; 
  margin-bottom: 16px; 
}

.q-title { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.q-desc { font-size: 14.5px; color: var(--c-muted); }

.compare-icon svg { width: 32px; height: 32px; fill: var(--c-accent); margin-bottom: 16px; }
.compare-label { font-size: 14px; color: var(--c-muted); margin-bottom: 8px; }
.compare-text { font-size: 16px; color: var(--c-text); }

/* Dark Cards */
.index-card { 
  background: var(--c-dark-surface); 
  border: 1px solid #374151; 
  border-radius: var(--radius); 
  padding: 32px; 
}

.index-tag { font-family: var(--f-display); font-size: 22px; color: #9ca3af; margin-bottom: 16px; }
.index-title { font-size: 18px; color: #f3f4f6; margin-bottom: 8px; }
.index-desc { font-size: 14.5px; color: #9ca3af; margin-bottom: 24px; }
.index-method { 
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: .05em; 
  text-transform: uppercase; 
  color: #d1d5db; 
  background: #111827; 
  border: 1px solid #374151; 
  padding: 8px 12px; 
  border-radius: 6px; 
  display: inline-block; 
}

/* ==========================================================================
   PRICING & ORG CARDS
   ========================================================================== */
.pricing-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); 
  gap: 24px; 
  margin-top: 56px; 
}

.pricing-card { 
  background: #fff; 
  border: 1px solid var(--c-border); 
  border-radius: var(--radius); 
  padding: 40px 32px; 
  display: flex; 
  flex-direction: column; 
  position: relative; 
}

.pricing-card.featured { 
  border: 2px solid var(--c-accent); 
  box-shadow: var(--shadow-lg); 
}

.popular-badge { 
  position: absolute; 
  top: -14px; 
  left: 50%; 
  transform: translateX(-50%); 
  background: var(--c-accent); 
  color: #fff; 
  font-size: 12px; 
  font-weight: 600; 
  letter-spacing: .06em; 
  text-transform: uppercase; 
  padding: 6px 20px; 
  border-radius: 999px; 
  white-space: nowrap; 
}

.plan-icon svg { width: 36px; height: 36px; fill: var(--c-accent); margin-bottom: 20px; }
.plan-name { font-family: var(--f-display); font-size: 24px; margin-bottom: 4px; }
.plan-sub { font-size: 14px; color: var(--c-muted); margin-bottom: 32px; }
.plan-price { margin-bottom: 32px; }
.plan-price-val { font-family: var(--f-display); font-size: 42px; color: var(--c-text); line-height: 1; }
.plan-price-val .currency { font-size: 24px; vertical-align: top; margin-top: 6px; display: inline-block; }
.plan-price-val .period { font-size: 15px; color: var(--c-muted); font-family: var(--f-body); }
.plan-custom { font-family: var(--f-display); font-size: 32px; color: var(--c-text); }

.plan-features { 
  list-style: none; 
  margin-bottom: 40px; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.plan-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--c-text); }
.plan-features li .tick { color: var(--c-accent2); font-size: 16px; flex-shrink: 0; }

.plan-btns { display: flex; flex-direction: column; gap: 12px; }
.btn-plan-primary { display: block; text-align: center; font-size: 15px; font-weight: 500; color: #fff !important; background: var(--c-accent); padding: 14px 20px; border-radius: 8px; transition: background 0.2s;}
.btn-plan-primary:hover { background: #123e78; }
.btn-plan-secondary { display: block; text-align: center; font-size: 15px; font-weight: 500; color: var(--c-accent); border: 1px solid var(--c-border); background: #fff; padding: 14px 20px; border-radius: 8px; transition: background 0.2s; }
.btn-plan-secondary:hover { background: var(--c-surface); }
.btn-plan-sales { display: block; text-align: center; font-size: 15px; font-weight: 500; color: #fff !important; background: var(--c-text); padding: 14px 20px; border-radius: 8px; }
.btn-plan-sales:hover { background: #000; }


/* Enterprise Org Cards */
.org-cards { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); 
  gap: 32px; 
  margin-top: 64px; 
}

.org-card { 
  border: 1px solid var(--c-border); 
  border-radius: var(--radius); 
  padding: 48px 32px; 
  background: #fff; 
  display: flex; 
  flex-direction: column; 
  text-align: left;
}

.org-card.ngo { border-top: 4px solid var(--c-accent2); }
.org-card.other { border-top: 4px solid var(--c-accent); }
.org-icon svg { width: 44px; height: 44px; fill: var(--c-accent); margin-bottom: 24px; }
.org-name { font-family: var(--f-display); font-size: 24px; margin-bottom: 12px; }
.org-tag { 
  display: inline-block; 
  font-size: 12px; 
  font-weight: 600; 
  text-transform: uppercase; 
  padding: 6px 14px; 
  border-radius: 999px; 
  margin-bottom: 24px; 
  align-self: flex-start;
}
.org-tag.free { background: var(--c-accent2-light); color: var(--c-accent2); border: 1px solid rgba(234, 96, 36, 0.2); }
.org-tag.sales { background: var(--c-accent-light); color: var(--c-accent); border: 1px solid rgba(25, 86, 166, 0.2); }

.org-desc { font-size: 15px; color: var(--c-muted); margin-bottom: 32px; }
.org-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; flex: 1;}
.org-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }

/* ==========================================================================
   ENTERPRISE & ABOUT PAGE SPECIFICS
   ========================================================================== */
.ent-features { display: flex; flex-direction: column; gap: 24px; }
.ent-feat { 
  display: flex; 
  gap: 16px; 
  align-items: flex-start; 
  background: #fff; 
  border: 1px solid var(--c-border); 
  border-radius: var(--radius); 
  padding: 24px; 
}
.ent-feat-icon { 
  width: 48px; 
  height: 48px; 
  border-radius: 8px; 
  flex-shrink: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: var(--c-accent-light); 
}
.ent-feat-icon svg { width: 24px; height: 24px; fill: var(--c-accent); }
.ent-feat-title { font-size: 16px; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.ent-feat-desc { font-size: 14px; color: var(--c-muted); }

.ent-info-card { 
  background: var(--c-surface); 
  border: 1px solid var(--c-border); 
  border-radius: var(--radius); 
  padding: 48px; 
}
.ent-info-title { font-family: var(--f-display); font-size: 26px; margin-bottom: 16px; }
.ent-info-sub { font-size: 15px; color: var(--c-muted); margin-bottom: 32px; }
.ent-form { display: flex; flex-direction: column; gap: 16px; }

.curricula { 
  padding: 32px 24px; 
  border-top: 1px solid var(--c-border); 
  border-bottom: 1px solid var(--c-border); 
  background: var(--c-surface); 
}
.curricula-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: flex; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 16px; 
}
.curricula-label { 
  font-size: 13px; 
  font-weight: 600; 
  text-transform: uppercase; 
  color: var(--c-muted); 
  margin-right: 12px; 
}
.curricula-pill { 
  font-size: 14px; 
  color: var(--c-text); 
  background: #fff; 
  border: 1px solid var(--c-border); 
  padding: 8px 16px; 
  border-radius: 8px; 
  box-shadow: var(--shadow-sm); 
}

.mv-card { 
  background: #fff; 
  border: 1px solid var(--c-border); 
  border-radius: var(--radius); 
  padding: 48px; 
  position: relative; 
  overflow: hidden; 
}
.mv-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; left: 0; right: 0; 
  height: 6px; 
  background: var(--c-accent); 
}
.mv-card.green::before { background: var(--c-accent2); }
.mv-card-title { font-family: var(--f-display); font-size: 24px; margin-bottom: 20px; }
.mv-card-body { font-size: 15.5px; color: var(--c-muted); line-height: 1.8; }

/* FAQ Section */
.faq-list { 
  max-width: 800px; 
  margin: 56px auto 0; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}
.faq-item { 
  border: 1px solid var(--c-border); 
  border-radius: 8px; 
  background: #fff; 
}
.faq-q { 
  width: 100%; 
  text-align: left; 
  background: none; 
  border: none; 
  cursor: pointer; 
  padding: 24px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  font-size: 16px; 
  font-weight: 500; 
  color: var(--c-text); 
  gap: 20px; 
}
.faq-icon { font-size: 24px; color: var(--c-muted); transition: transform .2s; }
.faq-a { display: none; padding: 0 24px 24px; font-size: 15px; color: var(--c-muted); line-height: 1.7; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-a { display: block; }

/* ==========================================================================
   POLICY & TEXT PAGES (Privacy, Terms, Legal, Refund)
   ========================================================================== */
.policy-container { 
  max-width: 840px; 
  margin: 80px auto 120px; 
  padding: 0 24px; 
}
.policy-container h1 { 
  font-size: clamp(32px, 5vw, 42px); 
  margin-bottom: 16px; 
  color: var(--c-text); 
}
.policy-container h2 { 
  font-size: 24px; 
  margin: 48px 0 20px; 
  color: var(--c-text); 
}
.policy-container p { 
  color: var(--c-muted); 
  margin-bottom: 24px; 
  font-size: 16px; 
  line-height: 1.8; 
}
.policy-container ul { 
  margin-bottom: 32px; 
  padding-left: 24px; 
  color: var(--c-muted); 
  font-size: 16px; 
  line-height: 1.8; 
}
.policy-container li { margin-bottom: 12px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--c-accent); 
  color: #ffffff; 
  padding: 80px 24px 40px;
}

footer a { 
  color: #ffffff !important; 
  opacity: 0.8; 
  text-decoration: none; 
  transition: opacity .15s; 
}
footer a:hover { 
  opacity: 1; 
  text-decoration: underline; 
}

.footer-bottom-wrap { 
  border-top: 1px solid rgba(255, 255, 255, 0.2); 
  padding-top: 32px; 
  width: 100%; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 16px;
}

.myrris-img { 
  height: 28px; 
  width: auto; 
  filter: brightness(0) invert(1); 
  opacity: 0.9; 
}

/* Fix for alternative footer used on Contact/Legal pages */
footer[style*="background: var(--c-dark)"] a {
  color: #9ca3af !important;
}
footer[style*="background: var(--c-dark)"] a:hover {
  color: #fff !important;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay { 
  position: fixed; 
  inset: 0; 
  background: rgba(11, 17, 32, 0.8); 
  display: none; 
  align-items: center; 
  justify-content: center; 
  z-index: 9999; 
  padding: 24px; 
}
.modal-overlay.open { display: flex; }

.modal-box { 
  background: #fff; 
  border-radius: var(--radius); 
  padding: 48px; 
  max-width: 440px; 
  width: 100%; 
  position: relative; 
  box-shadow: var(--shadow-lg); 
}

.modal-close { 
  position: absolute; 
  top: 16px; 
  right: 16px; 
  background: none; 
  border: none; 
  font-size: 28px; 
  color: var(--c-muted); 
  cursor: pointer; 
}

.modal-title { font-family: var(--f-display); font-size: 24px; margin-bottom: 8px; }
.modal-sub { font-size: 15px; color: var(--c-muted); margin-bottom: 32px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }

/* ==========================================================================
   MOBILE RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

/* TABLET (Under 992px) */
@media (max-width: 992px) {
  .challenge-grid, .ent-grid, .mv-grid { 
    grid-template-columns: 1fr; 
    gap: 48px; 
  }
  
  .section { padding: 80px 24px; }
  .enterprise-hero { padding: 96px 24px 64px; }
}

/* MOBILE (Under 768px) */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  
  /* Show Mobile Menu Triggers */
  .mobile-menu-btn { 
    display: block; 
    border: none; 
    background: none; 
    cursor: pointer; 
    padding: 8px; 
  }
  .mobile-menu-btn svg { width: 32px; height: 32px; fill: var(--c-text); }
  
  /* Mobile Overlay Background */
  .mobile-overlay {
    display: block; 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.5);
    z-index: 1000; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease;
  }
  .mobile-overlay.open { opacity: 1; visibility: visible; }

  /* Slide-in Mobile Drawer */
  .nav-wrapper {
    position: fixed; 
    top: 0; 
    left: -100%; 
    width: 85%; 
    max-width: 320px; 
    height: 100vh;
    background: #fff;
    z-index: 1001; 
    display: flex; 
    flex-direction: column;
    padding: 80px 32px 32px; 
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    align-items: flex-start;
  }
  .nav-wrapper.open { left: 0; }

  .mobile-close-btn {
    display: block; 
    position: absolute; 
    top: 20px; 
    right: 20px;
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 8px;
  }
  .mobile-close-btn svg { width: 32px; height: 32px; fill: var(--c-text); }

  /* Mobile Nav Links */
  nav { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 12px; 
    width: 100%; 
  }
  nav a { 
    font-size: 18px; 
    color: var(--c-text); 
    padding: 12px 0; 
    border-bottom: 1px solid var(--c-border); 
    width: 100%;
    border-radius: 0;
  }
  
  .nav-demo {
    background: var(--c-accent); 
    color: #fff !important; 
    border: none;
    padding: 14px 20px; 
    border-radius: 8px; 
    display: inline-block;
    margin-top: 16px; 
    text-align: center;
  }

  /* Mobile Auth Buttons */
  .header-auth { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 12px; 
    margin-top: auto; 
    width: 100%; 
  }
  .btn-login, .btn-signup { 
    text-align: center; 
    padding: 14px; 
    font-size: 16px; 
    width: 100%;
  }

  /* Fix Grids to stack correctly */
  .pricing-grid, .org-cards, .quotient-grid, .indices-grid, .sdg-grid, .compare-grid {
    grid-template-columns: 1fr;
  }

  /* Responsive Adjustments for elements */
  .hero-stats { 
    flex-direction: column; 
    max-width: 100%; 
    border-radius: 12px; 
  }
  .hero-stat { 
    border-right: none; 
    border-bottom: 1px solid var(--c-border); 
    padding: 24px; 
  }
  .hero-stat:last-child { border-bottom: none; }
  
  .section { padding: 64px 16px; }
  .hero { padding: 80px 16px 64px; }
  footer { padding: 64px 16px 32px; }
  
  /* Fix padding inside cards on small screens */
  .pricing-card, .org-card, .ent-info-card, .mv-card, .challenge-visual, .modal-box { 
    padding: 32px 20px; 
  }
  
  /* Inline Pill Toggle inside new index.html hero needs space */
  .hero > div > div[style*="border-radius: 999px"] {
    flex-direction: column;
    border-radius: 16px !important;
    padding: 12px !important;
  }
  .hero > div > div[style*="border-radius: 999px"] a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* SMALL MOBILE (Under 480px) */
@media (max-width: 480px) {
  .hero h1, .enterprise-hero h1 { font-size: clamp(32px, 8vw, 40px); }
  .section-title { font-size: clamp(26px, 8vw, 32px); }
  
  .hero-cta { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  
  .plan-price-val { font-size: 36px; }
  .plan-name, .org-name { font-size: 22px; }
  
  .policy-container h1 { font-size: 32px; }
  .policy-container { padding: 0 16px; margin: 48px auto 80px; }
  
  .footer-legal { flex-direction: column; gap: 12px; }
}
.logo-img {
    height: 70px;
    width: auto;
}
.myrris-img {
    height: 61px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}