/* ================================================================
   OmniAgent — global.css
   Clean corporate. Inter. Dark navy nav. White body. No nonsense.
   cc: shawn@omniagent.co.za  |  2026 OmniAgent (Pty) Ltd
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Navy */
  --navy:     #0a1628;
  --navy-1:   #0f1f3a;
  --navy-2:   #162848;

  /* Blues */
  --blue:     #2563eb;
  --blue-hi:  #3b82f6;
  --blue-lo:  #1d4ed8;
  --blue-pale: rgba(37,99,235,0.08);
  --blue-border: rgba(37,99,235,0.20);

  /* Neutrals */
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Text */
  --t1: var(--gray-900);
  --t2: var(--gray-600);
  --t3: var(--gray-500);
  --t4: var(--gray-400);

  /* Borders */
  --b1: var(--gray-200);
  --b2: var(--gray-300);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tr: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --edge: clamp(24px, 5vw, 80px);
  --max-w: 1240px;
  --radius: 8px;
  --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Prevent any child from causing horizontal scroll */
  position: relative;
}

/* ── OVERFLOW LOCK - prevents ANY horizontal scrolling ── */
/* This is the nuclear option - applies to every element */
*, *::before, *::after {
  max-width: 100%;
}
/* Exceptions for things that need explicit sizing */
canvas, img, svg { max-width: 100%; }
/* Sections must never overflow */
section, .section, .page-hero, .cta-strip, .footer,
.hero, .client-bar, .metrics-band, .graphs-section,
.engagement-section, .stack-section, .offerings-section,
.sla-section, .tiers-section, .not-section, .team-section,
.metrics-band-a, .pipeline-section, .output-section,
.pricing-section, .problem-section, .builder-hero {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── CONTAINER ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--edge); }
.section { padding: 88px 0; }

/* ── TYPE ── */
h1 { font-size: clamp(2.4rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--t1); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--t1); }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; color: var(--t1); }
h4 { font-size: 0.94rem; font-weight: 600; color: var(--t1); }
p  { font-size: 0.95rem; color: var(--t2); line-height: 1.75; }
.lead { font-size: 1.05rem; color: var(--t2); line-height: 1.75; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--t3); font-size: 0.875rem; }
strong { color: var(--t1); font-weight: 600; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; font-family: var(--font);
  transition: var(--tr); white-space: nowrap; line-height: 1; cursor: pointer;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.18s; flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.btn-primary:hover { background: var(--blue-lo); border-color: var(--blue-lo); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }

.btn-outline { background: transparent; color: var(--t1); border: 2px solid var(--b2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }

.btn-ghost-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.1); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 900;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--tr);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--edge);
  height: 76px; display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { display: block; height: 50px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav-link {
  padding: 8px 14px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.7);
  transition: color var(--tr), background var(--tr);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #fff; }
.nav-link.active::after { display: none; }

.nav-actions { margin-left: 16px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; border-radius: 6px; }
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger span { display: block; width: 20px; height: 1.5px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: var(--tr); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 800;
  display: flex; flex-direction: column;
  background: var(--navy); padding: 0 var(--edge) 48px;
  transform: translateX(100%); transition: transform 0.3s var(--ease);
  visibility: hidden; overflow-y: auto; overflow-x: hidden; pointer-events: none;
  max-width: 100vw;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; pointer-events: all; }
.drawer-topbar { display: flex; align-items: center; justify-content: space-between; height: 76px; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 32px; }
.drawer-topbar .nav-logo-img { height: 44px; }
.mobile-close { width: 40px; height: 40px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--tr); flex-shrink: 0; cursor: pointer; }
.mobile-close:hover { color: #fff; background: rgba(255,255,255,0.12); }
.mobile-close svg { width: 18px; height: 18px; pointer-events: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 790; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.nav-backdrop.open { opacity: 1; pointer-events: all; }
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-link { font-size: 1.4rem; font-weight: 600; color: rgba(255,255,255,0.7); padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color var(--tr); display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: #fff; }
.mobile-nav-link svg { width: 18px; height: 18px; opacity: 0.4; }
.drawer-footer { margin-top: auto; }

/* ── PAGE HERO ── */
.page-hero { padding: 120px 0 72px; background: var(--navy); overflow: hidden; width: 100%; }
.page-hero .eyebrow { color: var(--blue-hi); margin-bottom: 16px; display: block; }
.page-hero h1 { color: #fff; margin-bottom: 20px; }
.page-hero .lead { color: rgba(255,255,255,0.65); max-width: 580px; }

/* ── SECTION HEADER ── */
.sh { margin-bottom: 52px; }
.sh .eyebrow { margin-bottom: 10px; display: block; }
.sh h2 { margin-bottom: 12px; }
.sh p { max-width: 520px; }
.sh.center { text-align: center; }
.sh.center p { margin: 0 auto; }

/* ── DIVIDER ── */
.divider { width: 100%; height: 1px; background: var(--b1); }

/* ── ICON BOXES ── */
.ib { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--blue-pale); border: 1px solid var(--blue-border); }
.ib svg { width: 20px; height: 20px; stroke-width: 1.8; color: var(--blue); }
.ib-n { background: var(--gray-100); border: 1px solid var(--b1); }
.ib-n svg { color: var(--t2); }

/* ── CTA STRIP ── */
.cta-strip { background: var(--navy); padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.cta-inner > div:first-child p { color: rgba(255,255,255,0.6); margin-top: 8px; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ── SCROLL PROGRESS ── */
#scroll-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--blue); z-index: 9999; transition: width 0.08s linear; pointer-events: none; width: 0; }

/* ── REVEAL ── */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── FOOTER ── */
.footer { background: var(--gray-900); padding: 64px 0 36px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--edge); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer-brand p { margin-top: 14px; font-size: 0.84rem; color: var(--gray-500); max-width: 280px; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.875rem; color: var(--gray-500); transition: color var(--tr); }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: var(--gray-600); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } :root { --edge: clamp(20px, 4vw, 48px); } }
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .section { padding: 56px 0; }
  .page-hero { padding: 100px var(--edge) 52px; }
  .page-hero h1 { font-size: 2.4rem; }
  .page-hero .lead { font-size: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-strip { padding: 56px 0; }
  .cta-inner { flex-direction: column; gap: 24px; }
  .cta-inner h2 { font-size: 1.7rem; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; justify-content: center; }
  /* Buttons full-width on mobile where appropriate */
  .sh h2 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  :root { --edge: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { height: 64px; }
  .nav-logo-img { height: 40px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .btn { font-size: 0.84rem; }
}
