/* =========================================================
   MEPAX STRUCTURE CSS
   Layout, components, typography, animations, utilities,
   and responsive behavior. Depends on mepax-theme.css.
   ========================================================= */


/* =========================================================
   2. BASE & RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  overflow-x: hidden;
  padding-top: var(--nav-offset);
}

main { position: relative; z-index: 1; }

/* Global paragraph scale (all pages) */
p {
  font-size: var(--body-size);
  line-height: var(--body-lh);
  margin: 0 0 var(--space-sm);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.mepax-container {
  max-width: var(--content-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  box-sizing: border-box;
}

section { padding: var(--space-xxl) 0; }
section.alt-bg {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text);
}

h1 em, h2 em {
  color: var(--accent-glow);
  font-style: normal;
  text-shadow: 0 0 40px rgba(0, 220, 255, .2);
}

/* Global heading scale (all pages) — tokens from mepax-theme.css */
h1 {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-ls);
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: var(--section-title-size);
  font-weight: var(--h1-weight);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-ls);
  margin: 0 0 var(--space-md);
}

/* Optional class — same metrics as h1/h2, usable on either tag */
h1.section-heading,
h2.section-heading,
.section-heading {
  font-size: var(--section-title-size);
  font-weight: var(--h1-weight);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-ls);
  margin: 0 0 var(--space-md);
}

/* Page / hero titles that should use the larger h1 scale */
h1.section-heading {
  font-size: var(--h1-size);
}

h3 {
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
  margin: 0 0 var(--space-sm);
}

h4 {
  font-size: var(--h4-size);
  font-weight: var(--h4-weight);
  line-height: var(--h4-lh);
  letter-spacing: var(--h4-ls);
  margin: 0 0 var(--space-sm);
}

.section-eyebrow {
  font-family: var(--font-title);
  font-size: var(--section-eyebrow-size);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent-glow);
  flex-shrink: 0;
}

.cta-wrap .section-eyebrow { justify-content: center; }
.cta-wrap .section-eyebrow::before { display: none; }

.section-sub {
  max-width: 640px;
  font-size: var(--section-sub-size);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  line-height: var(--section-sub-lh);
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn-a, .cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  color: #04091a !important;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-sm);
  border: none;
  transition: transform .2s, box-shadow .2s;
}

.btn-a:hover, .cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, .35);
}

.btn-b, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--accent-glow);
  color: var(--accent-glow) !important;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-sm);
}

.btn-b:hover { background: rgba(0, 220, 255, .08); }

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* =========================================================
   6. NAVIGATION
   ========================================================= */
.mepax-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 980;
  min-height: var(--nav-h);
  background: var(--nav-glass);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  border-bottom: 1px solid rgba(0, 220, 255, .1);
  transition: box-shadow .3s, background .3s, border-color .3s;
}

.mepax-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-glow) 35%, var(--accent-glow) 65%, transparent 100%);
  opacity: .35;
  pointer-events: none;
}

.mepax-nav.scrolled {
  background: var(--nav-glass-scrolled);
  border-bottom-color: rgba(0, 220, 255, .14);
  box-shadow: 0 4px 28px rgba(0, 0, 0, .18);
}

.nav-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: var(--nav-h);
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 0;
  position: relative;
}

.nav-logo-slot {
  flex: 0 0 var(--logo-zone);
  width: var(--logo-zone);
  min-width: var(--logo-zone);
  padding-right: var(--pad-x);
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.nav-logo { display: flex; align-items: center; }

.nav-logo img {
  height: 36px;
  width: auto;
  max-width: calc(var(--logo-zone) - var(--pad-x));
  filter: brightness(0) saturate(100%) invert(80%) sepia(60%) saturate(400%) hue-rotate(160deg) brightness(1.1);
}

.nav-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.nav-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(14px, 1.8vw, 28px);
}

.nav-row li { list-style: none; }

.nav-row a {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .2px;
  white-space: nowrap;
  position: relative;
  transition: color .2s;
  display: inline-block;
  line-height: 1.35;
}

.nav-row a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-glow);
  transition: width .25s ease;
}

.nav-row a:hover { color: var(--text); }
.nav-row a:hover::after { width: 100%; }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: clamp(12px, 2vw, 24px);
}

.nav-desktop { display: flex; }
.nav-mobile { display: none !important; align-items: center; gap: 10px; margin-left: auto; }

.nav-cta-link {
  border: 1px solid var(--accent-glow);
  color: var(--accent-glow) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .25s;
}

.nav-cta-link:hover {
  background: var(--accent-glow);
  color: var(--bg) !important;
  box-shadow: 0 0 24px rgba(0, 220, 255, .35);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  padding: 8px 10px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background .2s;
}

.nav-hamburger:hover span { background: var(--accent-glow); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}

.mobile-drawer.is-open { pointer-events: auto; visibility: visible; }

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .3s;
}

.mobile-drawer.is-open .mobile-drawer-backdrop { opacity: 1; }

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: rgba(10, 14, 32, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0, 220, 255, .12);
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: var(--space-md);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .35);
}

.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }

.mobile-drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.mobile-nav {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
}

.mobile-nav li { margin-bottom: 4px; }

.mobile-nav a {
  display: block;
  padding: 12px 8px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover { color: var(--accent-glow); }

/* =========================================================
   7. HERO
   ========================================================= */
.page-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(165deg, #050515 0%, #080a1e 38%, #0a1030 72%, #080a1e 100%);
}

.page-mesh::before, .page-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(56px);
  will-change: transform;
}

.page-mesh::before {
  width: min(1000px, 110vw);
  height: min(780px, 95vh);
  left: var(--mesh-violet-x, 78%);
  top: var(--mesh-violet-y, 82%);
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) scale(var(--mesh-violet-scale, 1));
  background: radial-gradient(ellipse 55% 50% at 42% 48%, rgba(140, 52, 220, .72) 0%, rgba(100, 32, 185, .4) 36%, transparent 72%);
  /* Position driven by JS (slow random wander across the viewport) */
}

.page-mesh::after {
  width: min(820px, 90vw);
  height: min(660px, 85vh);
  left: -14%;
  bottom: -24%;
  background: radial-gradient(ellipse 50% 45% at 55% 50%, rgba(28, 56, 155, .52) 0%, rgba(18, 38, 115, .3) 42%, transparent 70%);
  animation: meshBlueDrift 32s ease-in-out infinite;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: clamp(var(--space-xl), calc((100vh - var(--nav-offset) - 700px) / 2), 200px);
  padding-bottom: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  filter: saturate(.4) brightness(.6);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 220, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 220, 255, .03) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridDrift 20s ease-in-out infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 9, 26, .55) 0%, transparent 30%, transparent 65%, rgba(4, 9, 26, .97) 100%),
    radial-gradient(ellipse 70% 70% at 80% 40%, rgba(0, 220, 255, .07) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 420px);
  column-gap: 40px;
  align-items: end;
}

.hero-copy { min-width: 0; align-self: start; }
.hero-panel { align-self: end; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 220, 255, .28);
  background: rgba(0, 220, 255, .06);
  border-radius: 100px;
  padding: 8px 20px 8px 12px;
  margin-bottom: 22px;
  font-family: var(--font-title);
  font-size: var(--section-eyebrow-size);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-glow);
}

.tag-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-desc {
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.75;
}

.hero-panel {
  position: relative;
  padding: 28px 26px;
  min-width: 0;
  margin-top: 0;
  backdrop-filter: blur(16px);
}

.stats-grid, .region-row { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.stat-box {
  padding: 18px 16px;
  transition: border-color .3s, background .3s;
  min-width: 0;
}

.stat-box:hover {
  border-color: rgba(0, 220, 255, .35);
  background: rgba(0, 220, 255, .12);
}

.stat-box .stat-val {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}

.stat-box .stat-val b { color: var(--accent-glow); font-size: 24px; font-weight: 700; }
.stat-box .stat-val.stat-val-sm { font-size: 34px; }
.stat-box .stat-val.stat-val-xs { font-size: 32px; }

.stat-box .stat-lbl {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
  line-height: 1.45;
}

.region-row { display: flex; gap: 8px; flex-wrap: wrap; }

.rbadge {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 220, 255, .07);
  border: 1px solid rgba(0, 220, 255, .2);
  color: var(--accent-glow);
}

/* Hero pillars */
.hero-pillars-wrap {
  position: relative;
  z-index: 2;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.hero-pillars {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  backdrop-filter: blur(16px);
}

.hero-pillar {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 18px clamp(16px, 2.5vw, 28px);
  transition: background .3s;
}

.hero-pillar:hover { background: rgba(0, 220, 255, .04); }

.hp-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 220, 255, .22), transparent);
  margin: 12px 0;
  align-self: stretch;
}

/* Icon boxes: .hp-icon, .svc-icon, .diff-num, .lead-icon,
   .eco-pillar-icon, .sc-icon carry `icon-box` in the HTML
   (bg / border / radius / icon color). This file only keeps size. */

.hp-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: all .3s;
}

.hero-pillar:hover .hp-icon {
  background: rgba(0, 220, 255, .16);
  border-color: rgba(0, 220, 255, .4);
  box-shadow: 0 0 16px rgba(0, 220, 255, .15);
}

.hp-icon svg,
.hp-icon img { width: 18px; height: 18px; display: block; }

.hp-body { min-width: 0; }

.hp-body h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
  margin: 0 0 4px;
  line-height: 1.2;
}

.hp-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
}

/* =========================================================
   8. TICKER
   ========================================================= */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--border);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ticker-item svg,
.ticker-item img { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; display: block; }

/* =========================================================
   9. GNP BANNER
   ========================================================= */
.gnp-banner {
  background: linear-gradient(135deg, rgba(0, 80, 100, .35) 0%, rgba(0, 30, 55, .6) 50%, rgba(0, 80, 100, .2) 100%);
  border-top: 1px solid rgba(0, 220, 255, .2);
  border-bottom: 1px solid rgba(0, 220, 255, .2);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}

.gnp-banner::before {
  content: '86%';
  position: absolute;
  right: clamp(12px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-title);
  font-size: clamp(140px, 18vw, 220px);
  font-weight: 900;
  color: rgba(0, 220, 255, .04);
  line-height: 1;
  letter-spacing: -8px;
  pointer-events: none;
  user-select: none;
}

.gnp-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
}

.gnp-label {
  font-family: var(--font-title);
  font-size: var(--section-eyebrow-size);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-glow);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: .8;
}

.gnp-stat { display: flex; align-items: flex-start; gap: 32px; text-align: left; }

.gnp-num {
  font-family: var(--font-title);
  font-size: clamp(80px, 10vw, 120px);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -4px;
  text-shadow: 0 0 60px rgba(0, 220, 255, .35);
  flex-shrink: 0;
}

.gnp-pct { font-size: .5em; color: var(--accent-glow); letter-spacing: 0; }

.gnp-desc { text-align: left; }

.gnp-desc strong {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -.3px;
  text-align: left;
}

.gnp-desc p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
  font-weight: 300;
  margin: 0;
  text-align: left;
}

.gnp-regions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

.gnp-region {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .3px;
}

.gnp-flag {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.gnp-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 220, 255, .2), transparent);
}

/* =========================================================
   10. CARDS & GRIDS
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.svc {
  padding: 38px;
  position: relative;
  overflow: hidden;
  transition: background .3s, border-color .3s;
  height: 100%;
}

.svc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(0, 220, 255, .04);
  opacity: 0;
  transition: opacity .3s;
}

.svc:hover { border-color: rgba(0, 220, 255, .28); }
.svc:hover::after { opacity: 1; }

.svc-num {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-glow);
  opacity: .75;
  margin-bottom: 16px;
}

.svc-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  transition: all .3s;
}

.svc:hover .svc-icon {
  background: rgba(0, 220, 255, .16);
  border-color: rgba(0, 220, 255, .4);
  box-shadow: 0 0 16px rgba(0, 220, 255, .15);
}

.svc-icon svg,
.svc-icon img { width: 22px; height: 22px; display: block; }

.svc h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  margin: 0 0 11px;
  line-height: 1.25;
}

.svc p { font-size: 13.5px; color: var(--text-muted); line-height: 1.75; margin: 0; }

.svc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; }

.svc-tags .stag {
  font-family: var(--font-title);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 4px 11px;
  border-radius: 4px;
  margin: 0;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
}

.diff-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.diff-items { display: flex; flex-direction: column; gap: 18px; }

/* Gray surface (framework): .diff-card, .world-panel, .lead-card, .astat,
   .eco-pillar, .sc, .team-card, .about-globe-panel, .testimonial-card,
   .reach-cell, .hero-panel and .hero-pillars all carry `panel-gray` +
   `border-gray-1` + `radius-*` in the HTML — this file only
   keeps each component's own padding/layout below. */

.diff-card {
  display: flex;
  gap: 18px;
  padding: 26px;
  transition: all .3s;
  height: auto;
}

.diff-card:hover { border-color: rgba(0, 220, 255, .2); transform: translateX(5px); }

.diff-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  opacity: 1;
}

.diff-card h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
  margin: 0 0 7px;
}

.diff-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: 0; }

.world-panel {
  padding: 36px;
  position: sticky;
  top: calc(var(--nav-offset) + 16px);
}

.world-panel h4 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
  margin: 0 0 20px;
}

.reach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.reach-cell {
  background: var(--block-gray);
  padding: 40px 28px;
  text-align: center;
  transition: background .3s;
  height: auto;
}

.reach-cell:hover { background: rgba(4, 9, 26, .95); transform: none; }

.reach-code {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 900;
  color: var(--accent-glow);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(0, 220, 255, .3);
}

.reach-name {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.reach-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; margin: 0; }

.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.lead-card {
  padding: 38px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all .35s;
  height: auto;
}

.lead-card:hover { border-color: rgba(0, 220, 255, .2); transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0, 0, 0, .4); }

.lead-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
}

.lead-icon svg,
.lead-icon img { width: 26px; height: 26px; display: block; }

.lead-big {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 900;
  color: var(--accent-glow);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 4px;
  text-shadow: 0 0 30px rgba(0, 220, 255, .3);
}

.lead-lbl {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.lead-card h3 {
  font-family: var(--font-title);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
  margin: 0 0 9px;
}

.lead-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: 0; }
.lead-cta { margin-top: 50px; text-align: center; }
.lead-cta p { font-size: 16px; color: var(--text-muted); margin: 0 0 24px; font-weight: 300; }

/* =========================================================
   11. SECTIONS
   ========================================================= */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-text p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-text p:first-of-type { font-size: 17px; color: var(--text); font-weight: 400; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }

.astat {
  padding: 26px 22px;
  transition: all .3s;
}

.astat:hover { border-color: rgba(0, 220, 255, .2); }

.astat-val {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 6px;
}

.astat-val b { color: var(--accent-glow); font-weight: 900; }

.astat-lbl {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.about-globe-panel {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-globe-label {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 20px;
}

.about-globe-regions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 24px;
  font-family: var(--font-title);
  font-size: 11px;
  color: var(--text-muted);
}

.about-globe-region {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.about-globe-region img {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.about-globe-sep {
  opacity: .45;
  line-height: 1;
}

#ecosystem.ecosystem-section { background: rgba(4, 9, 26, .55); }

.ecosystem-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 220, 255, .2);
  box-shadow: 0 0 0 1px rgba(0, 220, 255, .06), 0 40px 100px rgba(0, 0, 0, .7), 0 0 80px rgba(0, 220, 255, .06) inset;
  margin-bottom: 60px;
  min-height: 0;
  background: transparent;
  display: block;
}

.ecosystem-frame:hover {
  border-color: rgba(0, 220, 255, .35);
  box-shadow: 0 0 0 1px rgba(0, 220, 255, .1), 0 40px 120px rgba(0, 0, 0, .75), 0 0 120px rgba(0, 220, 255, .1) inset;
}

.eco-corner { position: absolute; width: 22px; height: 22px; z-index: 3; pointer-events: none; }
.eco-corner-tl { top: 16px; left: 16px; border-top: 2px solid var(--accent-glow); border-left: 2px solid var(--accent-glow); }
.eco-corner-tr { top: 16px; right: 16px; border-top: 2px solid var(--accent-glow); border-right: 2px solid var(--accent-glow); }
.eco-corner-bl { bottom: 16px; left: 16px; border-bottom: 2px solid var(--accent-glow); border-left: 2px solid var(--accent-glow); }
.eco-corner-br { bottom: 16px; right: 16px; border-bottom: 2px solid var(--accent-glow); border-right: 2px solid var(--accent-glow); }

.eco-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 220, 255, .6), transparent);
  animation: scanDown 4s ease-in-out infinite;
  pointer-events: none;
}

.ecosystem-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .8s cubic-bezier(.25, .46, .45, .94);
}

.ecosystem-frame:hover .ecosystem-img { transform: scale(1.025); }

.eco-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 48px 32px 28px;
  background: linear-gradient(transparent, rgba(4, 9, 26, .82) 55%, rgba(4, 9, 26, .97));
}

.eco-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.eco-tag {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(0, 220, 255, .1);
  border: 1px solid rgba(0, 220, 255, .28);
  color: var(--accent-glow);
  backdrop-filter: blur(8px);
  margin: 0;
}

.eco-tag-gold {
  background: rgba(232, 169, 53, .12);
  border-color: rgba(232, 169, 53, .32);
  color: #e8a935;
}

.eco-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 9, 26, .88);
  border: 1px solid rgba(0, 220, 255, .25);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  backdrop-filter: blur(12px);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.eco-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: ecoBlink 2s ease-in-out infinite;
  flex-shrink: 0;
}

.ecosystem-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.eco-pillar {
  padding: 28px 24px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.eco-pillar:hover { border-color: rgba(0, 220, 255, .22); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }

.eco-pillar-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.eco-pillar-icon svg,
.eco-pillar-icon img { width: 20px; height: 20px; display: block; }

.eco-pillar h4 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.35;
}

.eco-pillar p { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; margin: 0; }

#sectors { background: rgba(4, 9, 26, .55); }

.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.sc {
  overflow: hidden;
  transition: all .35s;
}

.sc:hover { border-color: rgba(0, 220, 255, .28); transform: translateY(-5px); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }

.sc-img {
  width: 100%;
  height: 148px;
  overflow: hidden;
  position: relative;
  background: rgba(4, 9, 26, .6);
}

.sc-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(transparent, var(--bg-elevated));
  pointer-events: none;
}

.sc-img img, .sc-img svg { width: 100%; height: 100%; display: block; }
.sc:hover .sc-img img, .sc:hover .sc-img svg { transform: scale(1.04); transition: transform .4s ease; }

.sc-body { padding: 18px 16px 20px; }
.sc-icon-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }

.sc-icon {
  width: 30px;
  height: 30px;
}

.sc-icon svg,
.sc-icon img { width: 15px; height: 15px; display: block; }

.sc h3 {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.3;
}

.sc p { font-size: 11px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.team-card {
  padding: 22px 18px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  height: auto;
  text-align: left;
}

.team-card:hover { border-color: rgba(0, 220, 255, .22); transform: translateY(-2px); }

.team-card .t-flag {
  width: 28px;
  height: 20px;
  margin-bottom: 9px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.team-card .t-flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-card .t-region {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 7px;
}

.team-card .t-name {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 5px;
  line-height: 1.3;
}

.team-card .t-phone {
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  min-height: 1.2em;
}

.team-card a.t-phone:hover { color: var(--accent-glow); }

.team-card span.t-phone[data-c]::after {
  content: '···· ··· ··· ···';
  letter-spacing: .5px;
  opacity: .45;
}
.team-cta { margin-top: 56px; text-align: center; }
.team-cta p { font-size: 16px; color: var(--text-muted); margin: 0 0 24px; font-weight: 300; }

.cta-wrap {
  background:
    radial-gradient(ellipse 60% 90% at 50% -20%, rgba(0, 220, 255, .1) 0%, transparent 65%),
    rgba(4, 9, 26, .55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 120px var(--pad-x);
  position: relative;
  overflow: hidden;
}

.cta-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: .4;
}

.cta-wrap .section-heading { font-size: clamp(34px, 4vw, 56px); max-width: 720px; margin: 0 auto 20px; }
.cta-wrap > .mepax-container > p { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto 44px; font-weight: 300; line-height: 1.8; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-wrap {
  position: relative;
  margin: 0 calc(-1 * var(--pad-x));
  /* Soft edge fade: panels dissolve as they scroll under L/R borders */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    black clamp(48px, 8vw, 96px),
    black calc(100% - clamp(48px, 8vw, 96px)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    black clamp(48px, 8vw, 96px),
    black calc(100% - clamp(48px, 8vw, 96px)),
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.testimonials-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Side padding = fade width so first/last cards can rest fully visible,
     and cards fade while crossing the edges during scroll */
  padding: 4px clamp(48px, 8vw, 96px) var(--space-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--text) transparent;
}

/* WebKit scrollbar — white thumb on transparent track */
.testimonials-track::-webkit-scrollbar { height: 6px; }
.testimonials-track::-webkit-scrollbar-track { background: transparent; }
.testimonials-track::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .55); border-radius: 3px; }
.testimonials-track::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .85); }

.testimonial-card {
  flex: 0 0 min(340px, 85vw);
  max-width: 100%;
  scroll-snap-align: start;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 220px;
  transition: border-color .25s, box-shadow .25s;
}

@media (min-width: 1024px) {
  .testimonial-card { flex: 0 0 calc((100% - 2 * var(--space-md)) / 3); }
}

.testimonial-card:hover { border-color: rgba(0, 220, 255, .28); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }

.testimonial-quote {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  flex: 1;
}

.testimonial-meta {
  margin: 0;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-glow);
  letter-spacing: .2px;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border);
}

/* =========================================================
   CUSTOMER ACCESS (login)
   ========================================================= */
.customer-access-section {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-offset) - 120px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-offset) + var(--space-xl)) var(--pad-x) var(--space-xl);
}

.customer-access-card {
  max-width: 420px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.customer-access-logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 0 auto var(--space-md);
}

.customer-access-card .section-heading {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: var(--space-sm);
}

.customer-access-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-md);
  font-weight: 300;
}

.customer-access-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.form-field label {
  display: block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus {
  border-color: var(--border-blue);
  box-shadow: 0 0 0 3px rgba(0, 220, 255, .12);
}

.customer-access-submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-xs);
  border: none;
  cursor: pointer;
}

.customer-access-help {
  margin: var(--space-md) 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.customer-access-help a {
  color: var(--accent-glow);
  text-decoration: none;
  font-weight: 600;
}

.customer-access-help a:hover { text-decoration: underline; }

html.light-mode .form-field input { background: #fff; }

/* =========================================================
   CONTACT (Talk to an Expert)
   ========================================================= */
.contact-section {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-offset) + var(--space-xl)) var(--pad-x) var(--space-xl);
}

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-lg) clamp(20px, 4vw, 40px);
}

.contact-card .section-heading {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: var(--space-sm);
}

.contact-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 var(--space-md);
  font-weight: 300;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Honeypot — visually hidden, still in DOM for bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}

.form-field textarea:focus {
  border-color: var(--border-blue);
  box-shadow: 0 0 0 3px rgba(0, 220, 255, .12);
}

.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-xs);
  border: none;
  cursor: pointer;
}

.contact-form-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.contact-form-status.is-error {
  color: #f87171;
  background: rgba(248, 113, 113, .1);
  border: 1px solid rgba(248, 113, 113, .25);
}

.contact-form-status.is-ok {
  color: var(--accent-glow);
  background: rgba(0, 220, 255, .08);
  border: 1px solid rgba(0, 220, 255, .22);
}

.contact-back {
  margin: var(--space-md) 0 0;
  text-align: center;
  font-size: 13px;
}

.contact-back a {
  color: var(--text-muted);
  text-decoration: none;
}

.contact-back a:hover { color: var(--accent-glow); }

html.light-mode .form-field textarea { background: #fff; }

/* =========================================================
   LEGAL PAGES (Privacy, etc.)
   ========================================================= */
.legal-section {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-offset) + var(--space-xl)) var(--pad-x) var(--space-xl);
}

.legal-card {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-lg) clamp(20px, 4vw, 48px);
}

.legal-card .section-heading {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: var(--space-xs);
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.legal-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

.legal-body h2 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: var(--space-md) 0 var(--space-xs);
  letter-spacing: -.2px;
}

.legal-body p { margin: 0 0 var(--space-sm); }
.legal-body ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25em;
}
.legal-body li { margin-bottom: 6px; }
.legal-body a {
  color: var(--accent-glow);
  text-decoration: none;
}
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text); font-weight: 600; }

/* =========================================================
   12. FOOTER
   ========================================================= */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 68px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: 56px;
}

.footer-brand img { display: block; margin-bottom: 16px; height: 36px; width: auto; }
.footer-desc { font-size: 14px; max-width: 320px; line-height: 1.75; margin: 0; }

.footer-col h5 {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  margin: 0 0 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--accent-glow); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-bottom p { font-size: 12px; color: var(--text-muted); margin: 0; }
.footer-bottom-right { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--accent-glow);
  transition: all .2s;
}

.footer-social:hover {
  background: rgba(0, 220, 255, .08);
  border-color: rgba(0, 220, 255, .35);
  color: var(--accent-glow);
}

.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-legal { color: var(--text-muted); }
.footer-legal a {
  color: var(--accent-glow);
  margin-left: 6px;
  text-decoration: none;
}
.footer-legal a:hover { text-decoration: underline; }

/* =========================================================
   13. UTILITIES
   ========================================================= */
.country-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.ctag {
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  margin: 0;
  transition: all .2s;
  cursor: default;
}

.ctag:hover { border-color: rgba(0, 220, 255, .35); color: var(--accent-glow); background: rgba(0, 220, 255, .09); }

.region-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.region-chips span {
  font-family: var(--font-title);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 4px 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .6s, transform .6s;
}

html.js .reveal:not(.visible) { opacity: 0; transform: translateY(24px); }
html.js .reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   15. ANIMATIONS
   ========================================================= */
@keyframes meshBlueDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6%, -4%) scale(1.05); }
  66% { transform: translate(-5%, 5%) scale(.97); }
}

@keyframes gridDrift {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 8px 8px; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scanDown {
  0% { top: -2px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes ecoBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* =========================================================
   16. FRAMEWORK COMPONENTS (UIKit-style atomic building blocks)
   Every block on the site is built by stacking 3 INDEPENDENT
   atomic classes — one for background, one for border, one for
   radius. Nothing else controls background/border/radius:

     .panel-gray / .panel-blue / .chip-blue  → BACKGROUND only
     .border-gray-1 / .border-blue-1         → BORDER only
     .radius-sm / .radius-md / .radius-lg / .radius-full → RADIUS only

   Example: <div class="diff-card panel-gray border-gray-1 radius-md">
   ========================================================= */

/* Backgrounds */
.panel-gray {
  background: var(--block-gray);
  backdrop-filter: blur(var(--block-gray-blur));
  -webkit-backdrop-filter: blur(var(--block-gray-blur));
}

.panel-blue {
  background: var(--block-blue);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.chip-blue { background: var(--chip-blue); }

/* Icon box — ONE class for every icon-in-a-box
   Defines background, border, radius (--radius-sm), and icon color.
   Add .radius-full for circles (lead icons). Size stays on the component. */
.icon-box {
  background: var(--icon-box-bg);
  border-style: solid;
  border-width: var(--icon-box-border-w);
  border-color: var(--icon-box-border);
  border-radius: var(--icon-box-radius);
  color: var(--icon-box-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box svg {
  color: inherit;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.icon-box img { display: block; }

/* Borders (color + width only, no radius) */
.border-gray-1 { border-style: solid; border-width: 2px; border-color: var(--border); }
.border-blue-1 { border-style: solid; border-width: 2px; border-color: var(--border-blue); }

/* Radius — 4 values only (tokens in mepax-theme.css) */
.radius-sm { border-radius: var(--radius-sm); }   /* 8px  — icons / chips */
.radius-md { border-radius: var(--radius-md); }   /* 12px — cartes standards */
.radius-lg { border-radius: var(--radius-lg); }   /* 16px — grands panneaux */
.radius-full { border-radius: 50%; }              /* cercles */

/* Modifiers — stack onto any panel/chip class above */
.card-hover {
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.card-hover:hover {
  border-color: rgba(0, 220, 255, .28);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

html.light-mode .card-hover:hover { box-shadow: 0 12px 40px rgba(17, 24, 39, .08); }

/* Badges / Chips */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: rgba(0, 220, 255, .07);
  border: 1px solid rgba(0, 220, 255, .2);
  color: var(--accent-glow);
}

html.light-mode .badge { background: rgba(0, 220, 255, .06); border-color: rgba(0, 220, 255, .15); }

/* Border helpers (framework utilities for new pages) */
.border { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-left { border-left: 1px solid var(--border); }
.border-right { border-right: 1px solid var(--border); }
.border-accent { border-color: rgba(0, 220, 255, .2); }

/* =========================================================
   17. UTILITY CLASSES
   Framework helpers for quick page composition.
   ========================================================= */

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flexbox */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-accent { color: var(--accent-glow); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.text-dark { color: var(--text); }
.uppercase { text-transform: uppercase; }
.font-title { font-family: var(--font-title); }
.font-body { font-family: var(--font-body); }

/* Spacing margin */
.m-auto { margin-left: auto; margin-right: auto; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-xxl { margin-top: var(--space-xxl); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-xxl { margin-bottom: var(--space-xxl); }

/* Spacing padding */
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

/* Width */
.w-full { width: 100%; }
.max-w-content { max-width: var(--content-max); }

/* Backgrounds */
.bg-dark { background: var(--bg); }
.bg-elevated { background: var(--bg-elevated); }
.bg-surface { background: var(--surface); }
.bg-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Reveal animation */
.reveal { opacity: 1; transform: none; transition: opacity .6s, transform .6s; }
html.js .reveal:not(.visible) { opacity: 0; transform: translateY(24px); }
html.js .reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   17. RESPONSIVE
   ========================================================= */
@media (min-width: 1280px) {
  .nav-row a { font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr minmax(380px, 440px); }
  .stat-box .stat-val { font-size: 44px; }
  .stat-box .stat-val.stat-val-sm { font-size: 38px; }
  .stat-box .stat-val.stat-val-xs { font-size: 36px; }
  .stat-box .stat-val b { font-size: 26px; }
  .stat-box .stat-lbl { font-size: 11.5px; }
  .hero-panel .rbadge { font-size: 12px; padding: 7px 16px; }
  .hp-body h4 { font-size: 16px; }
}

@media (max-width: 1180px) and (min-width: 960px) {
  .nav-row a { font-size: 14px; }
  .nav-row { gap: 12px; }
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; column-gap: 0; }
  .hero-panel {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: var(--space-lg) 0 0;
    align-self: start;
  }
  .hero-pillars { grid-template-columns: 1fr; }
  .hp-divider {
    width: auto;
    height: 1px;
    margin: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 220, 255, .18), transparent);
  }
  .hero-pillar { padding: 16px clamp(20px, 4vw, 28px); }
}

@media (max-width: 1024px) {
  .diff-layout, .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .world-panel { position: relative; top: auto; }
  .sector-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .reach-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-pillars { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (max-width: 959px) {
  .nav-desktop { display: none !important; }
  .nav-mobile { display: flex !important; margin-left: auto; }
  .nav-logo-slot { flex: 1 1 auto; width: auto; min-width: 0; padding-right: 0; }
  .nav-bar { justify-content: space-between; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc { padding: 28px; }
  .gnp-inner { grid-template-columns: 1fr; gap: 28px; }
  .gnp-label { writing-mode: horizontal-tb; transform: none; }
  .gnp-stat { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gnp-regions { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .gnp-sep {
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(0, 220, 255, .2), transparent);
  }
  .gnp-banner { padding: 40px 0; }
  .gnp-banner::before { font-size: 120px; top: 50%; transform: translateY(-50%); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 40px; }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(28px, 7vw, 44px); letter-spacing: -1.5px; }
  h2 { font-size: clamp(28px, 6.5vw, 44px); letter-spacing: -1.5px; }
  .diff-layout { gap: 36px; }
  .diff-card { padding: 20px 18px; gap: 14px; }
  .world-panel { padding: 24px 18px; }
  .reach-cell { padding: 28px 16px; }
  .reach-code { font-size: 28px; }
  .lead-grid { grid-template-columns: 1fr; gap: 14px; max-width: 420px; margin: 0 auto; }
  .lead-card { padding: 28px 22px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sector-grid, .team-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .team-card { padding: 18px 14px; }
  .cta-wrap { padding: 80px var(--pad-x); }
  .cta-btns { flex-direction: column; gap: 10px; align-items: center; }
  .cta-btns .btn-a, .cta-btns .btn-b { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 767px) {
  h1 { font-size: clamp(28px, 7vw, 44px); letter-spacing: -1.5px; }
  h2 { font-size: clamp(28px, 6.5vw, 44px); letter-spacing: -1.5px; }

  /* Ecosystem: tags below the image so they don't cover the map */
  .ecosystem-frame {
    display: flex;
    flex-direction: column;
  }
  .ecosystem-img {
    max-height: 280px;
    flex-shrink: 0;
  }
  .eco-overlay {
    position: static;
    padding: 14px 16px 16px;
    background: rgba(4, 9, 26, .92);
  }
  html.light-mode .eco-overlay { background: var(--bg-elevated); }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 48px 0 32px; }
}

@media (max-width: 480px) {
  .sector-grid, .team-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .reach-grid { grid-template-columns: 1fr; }
  .ecosystem-pillars { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .page-mesh::after { animation: none; }
  .hero-grid, .eco-scanline { animation: none !important; }
  html.js .reveal:not(.visible) { opacity: 1 !important; transform: none !important; }
}
