/* ──────────────────────────────────────────────────
   BPME TECHNOLOGIES — GLOBAL STYLESHEET v3.0
   Design: Modern US Corporate · Professional · Clean
────────────────────────────────────────────────── */

/* ── GOOGLE FONTS (CDN) ── */
/* Montserrat: true 900 Black weight — the professional bold standard */
/* Inter: clean, technical body copy */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ── LOCAL FONTS (fallback / body accents) ── */
@font-face { font-family:'Unbounded'; src:url('../fonts/Unbounded-VariableFont_wght.ttf') format('truetype'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'Unbounded'; src:url('../fonts/Unbounded-Black.ttf') format('truetype'); font-weight:900; font-display:swap; }
@font-face { font-family:'Open Sans'; src:url('../fonts/OpenSans-VariableFont_wdth_wght.ttf') format('truetype'); font-weight:100 900; font-display:swap; }

/* ── DESIGN TOKENS ── */
:root {
  /* Color palette */
  --navy-900: #0b2545;
  --navy-800: #0f2f57;
  --navy-700: #134074;
  --navy-600: #1B4A8A;
  --navy-500: #2A5FA8;
  --navy-100: #dde6f0;
  --navy-050: #f4f7fb;

  --cyan: #00bffc;
  --cyan-600: #009fd6;
  --cyan-soft: #e0f7ff;

  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-050: #F8FAFC;

  --white: #ffffff;
  --black: #080f1c;
  --surface: #fafbfd;

  /* Typography — Montserrat 900 Black for display: true weight 900, zero compromise */
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(11,37,69,.06), 0 1px 2px rgba(11,37,69,.04);
  --shadow-sm: 0 2px 8px rgba(11,37,69,.07), 0 1px 3px rgba(11,37,69,.05);
  --shadow-md: 0 4px 20px rgba(11,37,69,.10), 0 2px 8px rgba(11,37,69,.06);
  --shadow-lg: 0 12px 40px rgba(11,37,69,.14), 0 4px 16px rgba(11,37,69,.08);
  --shadow-xl: 0 24px 64px rgba(11,37,69,.18), 0 8px 24px rgba(11,37,69,.10);

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Layout */
  --container: 1280px;
  --container-sm: 960px;
}

/* ── RENDER OPTIMIZATION ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--slate-900); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; }

/* ── UTILITIES ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 48px; }
.container--sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 48px; }
.section { padding: 100px 0; position: relative; background: var(--white); }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--navy { background: var(--navy-700); color: var(--white); }
.section--light { background: var(--navy-050); }
.section--surface { background: var(--surface); }
.bg-white { background: var(--white); }

/* ── TYPOGRAPHY ── */
/* Montserrat 900 Black — the real weight 900 that reads bold at any size */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--navy-900);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.2vw, 2.875rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy-800);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--navy-900);
}

h5 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-600);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-700);
}

.overline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.overline--dark { color: var(--navy-600); }
.overline--navy { color: var(--navy-700); }

/* Highlight text inside headings */
.text-cyan { color: var(--cyan); }
.text-white { color: var(--white); }
.text-white p { color: rgba(255,255,255,.78); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 220ms var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--navy {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.btn--navy:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11,37,69,.3);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--navy-900);
  border-color: var(--cyan);
  font-weight: 800;
}
.btn--cyan:hover {
  background: #14ccff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,191,252,.35);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}

.btn--outline-navy {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-200, #b8cce0);
}
.btn--outline-navy:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-700);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--cyan); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: all 320ms var(--ease);
  padding: 10px 0;
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px 0;
  box-shadow: 0 1px 0 rgba(11,37,69,.08), var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  padding: 10px 48px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 8px;
}

.nav__logo img {
  height: 40px;
  width: auto;
  transition: all 300ms var(--ease);
  filter: brightness(0) invert(1);
}

.nav.scrolled .nav__logo img,
.nav--light .nav__logo img { filter: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav__link {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 200ms var(--ease);
  white-space: nowrap;
}

.nav__link:hover { color: var(--white); background: rgba(255,255,255,.12); }
.nav__link.active { color: var(--white); background: rgba(255,255,255,.18); }

.nav.scrolled .nav__link,
.nav--light .nav__link { color: var(--navy-700); }

.nav.scrolled .nav__link:hover,
.nav--light .nav__link:hover { color: var(--navy-900); background: var(--slate-100); }

.nav.scrolled .nav__link.active,
.nav--light .nav__link.active { color: var(--navy-900); background: var(--navy-050); }

.nav__cta-group { display: flex; align-items: center; gap: 10px; margin-left: 20px; }

.nav .btn { padding: 9px 18px; font-size: .72rem; }

.nav.scrolled .btn--outline-white,
.nav--light .btn--outline-white {
  border-color: var(--navy-200, #b8cce0);
  color: var(--navy-700);
}
.nav.scrolled .btn--outline-white:hover,
.nav--light .btn--outline-white:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 1000;
  border-radius: var(--radius);
  transition: background 200ms var(--ease);
}
.nav__burger:hover { background: rgba(255,255,255,.1); }
.nav.scrolled .nav__burger:hover,
.nav--light .nav__burger:hover { background: var(--slate-100); }
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 250ms var(--ease);
}
.nav.scrolled .nav__burger span,
.nav--light .nav__burger span { background: var(--navy-900); }

/* Burger → X when menu open */
.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--white) !important;
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--white) !important;
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 80px 40px 48px;
}

/* Top cyan accent line */
.nav__mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cyan);
}

.nav__mobile.open { display: flex; animation: fadeIn 220ms var(--ease); }

.nav__mobile .nav__link {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  padding: 14px 32px;
  border-radius: var(--radius);
  width: 100%;
  text-align: center;
  max-width: 300px;
  letter-spacing: -.01em;
  transition: color 180ms, background 180ms;
}
.nav__mobile .nav__link:hover {
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.nav__mobile .nav__link.active {
  color: var(--cyan);
  background: rgba(0,191,252,.08);
}

/* CTA buttons at bottom of mobile menu */
.nav__mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav__mobile-ctas .btn {
  justify-content: center;
  width: 100%;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #070e1c 0%, #0b2545 55%, #0d2d5e 100%);
  z-index: 0;
}

/* Subtle grid texture */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,191,252,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,191,252,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  z-index: 0;
}

/* Radial glow */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 80% 30%, rgba(0,191,252,.06) 0%, transparent 65%);
  z-index: 1;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--navy-900);
  padding: 160px 0 88px;
  position: relative;
  overflow: hidden;
}

/* Subtle noise texture overlay */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,191,252,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,191,252,.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 85% 50%, rgba(0,191,252,.07) 0%, transparent 60%);
}

.page-header__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.page-header .overline { margin-bottom: 16px; }

.page-header h1 {
  color: var(--white);
  margin: 14px 0 20px;
  font-weight: 900;
  /* Locked size across all inner page headers — consistent visual hierarchy */
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.page-header p {
  color: rgba(255,255,255,.65);
  font-size: .9375rem;
  max-width: 520px;
  line-height: 1.7;
}

.page-header__img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 380px;
  position: relative;
}
.page-header__img img { width: 100%; height: 100%; object-fit: cover; }
.page-header__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,37,69,.3) 0%, transparent 50%);
}

/* ── SECTION HEADER ── */
.section__header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__header .overline { margin-bottom: 14px; }
.section__header h2 { margin: 0 0 16px; }
.section__header p { font-size: 1rem; color: var(--slate-500); line-height: 1.7; }
.section--dark .section__header h2,
.section--navy .section__header h2 { color: var(--white); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease), border-color 240ms var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0,191,252,.2);
}
.card--dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}
.card--dark:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(0,191,252,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

/* Icon container inside card */
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { color: var(--navy-700); }
.card--dark .card__icon { background: rgba(0,191,252,.12); }
.card--dark .card__icon svg { color: var(--cyan); }

.card h3, .card h4 { margin-bottom: 10px; }
.card--dark h3, .card--dark h4 { color: var(--white); }
.card p { font-size: .9375rem; line-height: 1.7; }
.card--dark p { color: rgba(255,255,255,.65); }

/* ── ICON FEATURE ITEM ── */
.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-100);
  background: var(--white);
  transition: all 220ms var(--ease);
}
.feature-item:hover {
  border-color: rgba(0,191,252,.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-item__icon svg { color: var(--navy-700); }
.feature-item h4 { margin-bottom: 6px; font-size: .9375rem; }
.feature-item p { font-size: .875rem; margin: 0; line-height: 1.6; }

/* ── CHECK LIST ── */
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.5;
}
.check-list .chk {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-list .chk svg { color: var(--navy-700); }

/* ── STAT NUMBERS ── */
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy-800);
  line-height: 1;
}
.stat-label {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-desc { font-size: .8125rem; color: var(--slate-500); margin-top: 4px; }

/* Stat on dark */
.section--dark .stat-number,
.section--navy .stat-number { color: var(--white); }
.section--dark .stat-label { color: var(--cyan); }

/* ── DIVIDER ACCENT ── */
.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow-line::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── BRAND BAR ── */
.brand-bar {
  background: var(--black);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.brand-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand-bar__tag {
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.brand-bar__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: var(--black); padding: 80px 0 36px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 56px;
  margin-bottom: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__brand img { height: 40px; margin-bottom: 20px; }
.footer__brand p {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
  line-height: 1.75;
  max-width: 260px;
}
.footer__col h5 {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color 180ms;
}
.footer__col ul li a:hover { color: var(--white); }
.footer__col ul li:not(:has(a)) {
  font-size: .875rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer__copy { font-size: .8125rem; color: rgba(255,255,255,.2); }

/* ── DELIVERY LAYERS ── */
.layers { display: flex; flex-direction: column; gap: 4px; margin: 28px 0; }
.layer {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: background 200ms;
}
.layer:hover { background: rgba(255,255,255,.07); }
.layer__label {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.layer__text { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.5; }
.layer--1 { border-left: 3px solid var(--cyan); }
.layer--2 { border-left: 3px solid rgba(0,191,252,.55); }
.layer--3 { border-left: 3px solid rgba(0,191,252,.25); }

/* ── RESPONSIVE ── */

/* ─ 1100px: wide desktop padding reduction ─ */
@media (max-width: 1100px) {
  .container, .container--sm { padding: 0 32px; }
  .nav__inner { padding: 10px 32px; }
  .brand-bar__inner { padding: 0 32px; }
  .page-header__inner { padding: 0 32px; }
}

/* ─ 1024px: tablet landscape ─ */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }

  /* Page header: single column, hide decorative image */
  .page-header__inner { grid-template-columns: 1fr; gap: 32px; }
  .page-header__img { display: none; }

  /* Footer: 2-col */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Grid utilities — tablet collapse */
  .grid-4   { grid-template-columns: repeat(2,1fr) !important; }
  .grid-3   { grid-template-columns: repeat(2,1fr) !important; gap: 20px !important; }
  .grid-stats-panel { grid-template-columns: repeat(3,1fr) !important; }
  .grid-proof       { grid-template-columns: repeat(3,1fr) !important; }

  /* Named grids */
  .capabilities-grid-refined { grid-template-columns: repeat(2,1fr) !important; }
  .industry-grid-refined     { grid-template-columns: repeat(2,1fr) !important; }
  .contact-layout            { grid-template-columns: 1fr !important; gap: 48px !important; }
}

/* ─ 768px: tablet portrait / large phone ─ */
@media (max-width: 768px) {
  /* Base spacing */
  .container, .container--sm { padding: 0 20px; }
  .section { padding: 64px 0; }

  /* Nav */
  .nav__inner { padding: 12px 20px; }
  .nav__links, .nav__cta-group { display: none; }
  .nav__burger { display: flex; }

  /* Page header */
  .page-header { padding: 120px 0 56px; }
  .page-header__inner { padding: 0 20px; gap: 20px; }
  .page-header h1 { font-size: clamp(1.625rem, 4.5vw, 2.25rem) !important; }
  .page-header p { font-size: .875rem; }

  /* Hero */
  .hero { min-height: 90vh; }

  /* Grid utilities */
  .grid-2-wide      { grid-template-columns: 1fr !important; gap: 44px !important; }
  .grid-2           { grid-template-columns: 1fr !important; gap: 16px !important; }
  .grid-3           { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }
  .grid-4           { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }
  .grid-stats-panel { grid-template-columns: repeat(2,1fr) !important; gap: 14px !important; }
  .grid-hero-text   { grid-template-columns: 1fr !important; gap: 8px !important; }

  /* Proof bar: grid panel wrap on mobile */
  .grid-proof {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: visible !important;
    gap: 1px !important;
  }
  .grid-proof > div:last-child {
    grid-column: span 2 !important;
  }

  /* Named grids */
  .capabilities-grid-refined { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }
  .industry-grid-refined     { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }
  .contact-layout            { grid-template-columns: 1fr !important; gap: 36px !important; }

  /* Delivery layers */
  .layer { grid-template-columns: 1fr !important; gap: 6px !important; }

  /* Cap download block */
  .cap-download { flex-direction: column; align-items: flex-start; gap: 24px; }

  /* Footer — brand full width, nav+contact side by side */
  .footer { padding: 56px 0 24px; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 28px;
    margin-bottom: 36px;
  }
  .footer__brand {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .footer__brand img { margin: 0 auto 16px; }
  .footer__brand p { max-width: 100%; text-align: center; }
  .footer__col { text-align: center; }
  .footer__col ul { align-items: center; }
  .footer__bottom { justify-content: center; text-align: center; }

  /* Brand bar */
  .brand-bar__inner {
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .brand-bar__btns { justify-content: center; }
}

/* ─ 480px: small phone ─ */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.875rem, 7.5vw, 2.375rem) !important; letter-spacing: -.025em !important; }
  h2 { font-size: clamp(1.5rem, 6vw, 1.875rem) !important; }
  .page-header h1 { font-size: clamp(1.5rem, 6.5vw, 1.875rem) !important; }

  .grid-3, .grid-4, .grid-stats-panel, .grid-proof { grid-template-columns: 1fr !important; }
  .grid-proof > div:last-child { grid-column: span 1 !important; }
  .capabilities-grid-refined { grid-template-columns: 1fr !important; }
  .industry-grid-refined     { grid-template-columns: 1fr !important; }

  #contactForm { grid-template-columns: 1fr !important; }
  #contactForm > * { grid-column: span 1 !important; }

  .btn { padding: 12px 22px; font-size: .75rem; }
  .card { padding: 24px 20px; }
  .cap-download { padding: 28px 20px; }
  .contact-form { padding: 28px 20px; }
  .section__header { margin-bottom: 40px; }

  .brand-bar__btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .brand-bar__btns .btn { text-align: center; justify-content: center; width: 100%; }
}

/* ─ Scroll reveal animations ─ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─ 360px: extra-small devices ─ */
@media (max-width: 360px) {
  .container, .container--sm { padding: 0 16px; }
  .page-header__inner { padding: 0 16px; }
  .nav__inner { padding: 10px 16px; }
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.375rem !important; }
}

/* ── IOS ZOOM FIX — font-size ≥ 16px prevents auto-zoom on focus ── */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ── TOUCH IMPROVEMENTS ── */
.btn, a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── MODERN ENHANCEMENTS ── */

/* Nav link underline animation (scrolled state) */
.nav.scrolled .nav__link,
.nav--light .nav__link { position: relative; }

.nav.scrolled .nav__link::after,
.nav--light .nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 200ms var(--ease);
}
.nav.scrolled .nav__link:hover::after,
.nav--light .nav__link:hover::after { transform: scaleX(1); }

/* Text selection highlight */
::selection {
  background: rgba(0,191,252,.2);
  color: var(--navy-900);
}

/* Scroll padding for fixed nav */
html { scroll-padding-top: 80px; }

@media (max-width: 768px) {
  .cap-statement-card { flex-direction: column; text-align: center; gap: 24px !important; padding: 24px !important; }
  .cap-statement-card > div { flex-direction: column; gap: 16px !important; }
  .cap-statement-card .btn { width: 100%; justify-content: center; white-space: normal !important; text-align: center; }
}

/* Mobile Tab Switcher - default hidden on desktop */
.gov-flow-tabs {
  display: none;
}
.gov-flow-mobile-line,
.gov-flow-mobile-line-lower {
  display: none;
}

/* ── GOVERNMENT FLOW CHART RESPONSIVENESS OVERRIDES ── */
@media (max-width: 768px) {
  /* Display Mobile Tab Switcher as Segmented Control */
  .gov-flow-tabs {
    display: flex !important;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.7); /* Slate dark background */
    border-radius: 30px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 16px auto 20px;
    max-width: 100%;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .gov-flow-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    font-size: 0.78rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    white-space: nowrap;
  }
  .gov-flow-tab-btn img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .gov-flow-tab-btn:hover {
    color: #fff;
  }
  .gov-flow-tab-btn.active {
    background: var(--cyan);
    color: var(--navy-900);
    box-shadow: 0 4px 10px rgba(0, 191, 252, 0.3);
  }
  .gov-flow-tab-btn.active img {
    transform: scale(1.05);
  }

  /* Show mobile connector lines */
  .gov-flow-mobile-line,
  .gov-flow-mobile-line-lower {
    display: block !important;
  }

  /* Center and adjust top card padding and structure */
  .gov-flow-top-card {
    padding: 16px 20px !important;
  }
  .gov-flow-top-card > div {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
  .gov-flow-top-card > div > div:nth-child(2) {
    display: none !important; /* Hide vertical separator bar */
  }
  .gov-flow-top-card > div > div {
    text-align: center !important;
  }

  /* Hide 3-way horizontal branches and connector lines */
  .gov-flow-branches,
  .gov-flow-sub-connectors,
  .gov-flow-gov-connectors {
    display: none !important;
  }

  /* Only display active card on mobile */
  .gov-card-item {
    display: none !important;
  }
  .gov-card-item.active {
    display: block !important;
    animation: fadeInTab 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  @keyframes fadeInTab {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Stack operation boxes vertically with clean gaps */
  .gov-flow-layers-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 10px !important; /* Shrunk spacing for active tab card */
    margin-bottom: 20px !important;
  }

  /* Add spacing and stack operational items inside the cards beautifully */
  .gov-flow-layers-grid > div {
    border-width: 1.5px !important; /* Emphasize borders slightly when stacked */
  }

  /* Reduce spacing for bottom arrow and governance bar */
  .gov-flow-gov-bar {
    padding: 24px 20px !important;
  }
  .gov-flow-gov-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 12px !important;
  }
  .gov-flow-gov-grid > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .gov-flow-gov-grid svg {
    margin: 0 !important;
  }

  /* Stack bottom client environment box vertically */
  .gov-flow-bottom-box {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 20px !important;
    gap: 16px !important;
  }
  .gov-flow-bottom-box > div {
    text-align: center !important;
  }
  .gov-flow-bottom-box svg {
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  /* In small phones, render the governance grid items as a vertical list for absolute clarity */
  .gov-flow-gov-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .gov-flow-gov-grid > div {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 12px !important;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .gov-flow-gov-grid > div > div {
    font-size: 0.75rem !important;
  }
}

