/* ============================================================
   SHOEB LODHI — PREMIUM DARK AGENCY THEME
   Growth Systems Architect & AI Automation Strategist
   Inspired by: Nimo, Bridge, Kotlis, Themezaa Black
   ============================================================ */

/* ── Fonts: loaded via <link rel="stylesheet"> in renderer with font-display:swap ──
   @import removed to eliminate render-blocking */

/* ── Skip to content (accessibility) ── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 9999;
  padding: .75rem 1.5rem;
  background: #2563EB;
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  transition: top .2s;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; outline: 3px solid #00C896; outline-offset: 2px; }

/* ── CSS Custom Properties — Bridge 433 Theme ── */
:root {
  /* ── Core palette: light grey/white body + deep navy dark sections ── */
  --bg:          #F5F5F6;   /* light grey body background */
  --bg-alt:      #EBEBEC;   /* slightly darker grey (alternate sections) */
  --bg-dark:     #1A1A28;   /* deep navy — hero, footer, dark sections */
  --bg-dark-2:   #222235;   /* darker navy */
  --bg-dark-3:   #2A2A40;   /* card bg on dark sections */
  --card:        #FFFFFF;   /* pure white cards */
  --card-dark:   #222235;   /* card on dark bg */

  /* Aliases — keep existing components working */
  --black:       #111118;   /* near-black text */
  --dark:        #1A1A28;   /* deep navy */
  --dark-2:      #222235;
  --dark-3:      #2A2A40;
  --border:      rgba(0,0,0,0.09);
  --border-2:    rgba(0,0,0,0.15);

  /* ── Accent: wine/burgundy primary, gold secondary ── */
  --accent:        #8B1A4A;   /* wine/burgundy */
  --accent-hover:  #A01F57;
  --accent-glow:   rgba(139,26,74,0.20);
  --gold:          #C9A227;   /* warm gold */
  --gold-light:    #E0B84A;
  --navy:          #1A1A28;   /* deep navy */

  /* Blue/emerald aliases — for existing components */
  --blue:          #1A1A28;   /* navy replaces old blue */
  --blue-bright:   #2A2A50;
  --blue-glow:     rgba(26,26,40,0.20);
  --emerald:       #C9A227;
  --emerald-glow:  rgba(201,162,39,0.20);
  --purple:        #8B1A4A;

  /* ── Text ── */
  --white:       #FFFFFF;
  --text-1:      #F5F5F6;   /* near-black primary text */
  --text-2:      #3A3A4A;   /* secondary text */
  --text-3:      #7A7A8A;   /* muted / captions */

  /* ── Light section vars ── */
  --light-bg:    #F5F5F6;
  --light-card:  #FFFFFF;
  --light-text:  #111118;
  --light-text2: #3A3A4A;
  --light-border:rgba(0,0,0,0.09);

  /* ── Typography: Cormorant Garamond headings + DM Sans body ── */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* ── Type scale ── */
  --h1:    clamp(2.25rem, 6vw, 5.5rem);
  --h1-xl: clamp(2.75rem, 7vw, 7.5rem);
  --h2:    clamp(1.875rem, 4vw, 3.25rem);
  --h3:    clamp(1.25rem, 2.5vw, 1.75rem);
  --h4:    1.125rem;
  --body:  1rem;
  --sm:    0.9375rem;
  --xs:    0.8125rem;

  /* ── Spacing (8px grid) ── */
  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-5:  2.5rem;
  --sp-6:  3rem;
  --sp-8:  4rem;
  --sp-10: 5rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  /* ── Radii (Bridge is more square/elegant) ── */
  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* ── Shadows (softer on light bg) ── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.08);
  --shadow-blue:0 8px 32px rgba(139,26,74,.25);
  --shadow-em:  0 8px 32px rgba(201,162,39,.25);

  /* ── Transitions ── */
  --transition:      0.28s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.55s cubic-bezier(0.4,0,0.2,1);

  --container: 1240px;
}

/* ── Reset ── */
*, *::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-body);
  font-size: var(--body);
  color: var(--text-1);
  background: var(--bg);        /* warm cream — Bridge 433 light bg */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Focus visible: keyboard navigation ── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Image CLS: prevent layout shift ── */
img { aspect-ratio: attr(width) / attr(height); }
.service-icon, .arch-icon { flex-shrink: 0; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
  .arch-card, .arch-connector { opacity: 1 !important; animation: none !important; }
}

/* ── Typography — Bridge: large elegant serifs for headings ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
h1 { font-size: var(--h1);    font-weight: 600; }
h2 { font-size: var(--h2);    font-weight: 600; }
h3 { font-size: var(--h3);    font-weight: 600; }
h4 { font-size: var(--h4);    font-weight: 600; }
p  { color: var(--text-2);    line-height: 1.8; font-size: var(--body); }

/* ── Text utilities ── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #E0B84A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-emerald { color: var(--gold); }
.text-blue    { color: var(--accent); }
.text-muted   { color: var(--text-3); }
.text-white   { color: var(--white) !important; }
.text-center  { text-align: center; }
.text-accent  { color: var(--accent); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
@media (max-width: 768px) { .container { padding: 0 1.25rem; } }
@media (max-width: 480px) { .container { padding: 0 1rem; } }

/* ── Section Spacing ── */
.section      { padding: var(--sp-12) 0; }
.section-lg   { padding: var(--sp-16) 0; }
.section-sm   { padding: var(--sp-8) 0; }
.section-dark   { background: var(--dark); color: var(--white); }
.section-darker { background: var(--black); color: var(--white); }
.section-card   { background: var(--dark-2); color: var(--white); }
.section-dark h1,.section-dark h2,.section-dark h3,.section-dark h4,
.section-darker h1,.section-darker h2,.section-darker h3,.section-darker h4,
.section-card h1,.section-card h2,.section-card h3,.section-card h4 { color: var(--white); }
.section-dark p,.section-darker p,.section-card p { color: rgba(255,255,255,0.75); }
.section-light {
  background: var(--light-bg);
  color: var(--light-text);
}
.section-light h1,.section-light h2,.section-light h3,.section-light h4 { color: var(--light-text); }
.section-light p { color: var(--light-text2); }

/* ── Section Header ── */
.section-header {
  margin-bottom: var(--sp-8);
}
.section-header.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Buttons — Bridge 433 style ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.btn-lg { padding: 1.0625rem 2.5rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.5625rem 1.25rem; font-size: 0.75rem; }

/* Primary = wine/burgundy */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

/* Emerald = same as primary (wine) */
.btn-emerald {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  font-weight: 700;
}
.btn-emerald:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

/* Outline — on light bg */
.btn-outline {
  background: transparent;
  color: var(--text-1);
  border-color: rgba(0,0,0,0.25);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Outline on dark sections */
.section-dark .btn-outline,
.section-darker .btn-outline,
.hero .btn-outline,
.page-hero .btn-outline {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}
.section-dark .btn-outline:hover,
.section-darker .btn-outline:hover,
.hero .btn-outline:hover,
.page-hero .btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-blue {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-blue:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* ── Badges / Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-green {
  background: rgba(0,200,150,.12);
  color: var(--emerald);
  border: 1px solid rgba(0,200,150,.25);
}
.badge-blue {
  background: rgba(37,99,235,.12);
  color: var(--blue-bright);
  border: 1px solid rgba(37,99,235,.25);
}
.badge-purple {
  background: rgba(139,92,246,.12);
  color: var(--purple);
  border: 1px solid rgba(139,92,246,.25);
}
.badge-gold {
  background: rgba(245,158,11,.12);
  color: var(--gold);
  border: 1px solid rgba(245,158,11,.25);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,26,74,.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(139,26,74,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(139,26,74,.1); }
}

/* ── Cards — Bridge 433 clean white on cream ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: rgba(139,26,74,0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--transition);
}
.card-glass:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}

.card-light {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--transition);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
  border-color: var(--accent);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-6) 0;
}

/* ─────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.09);
  transition: all var(--transition);
}
#nav.scrolled {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,0,0,0.13);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sp-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 42px; height: 42px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.nav-logo-title {
  font-size: 0.65rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--text-1); }

/* Dropdown */
.nav-links .has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.6;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  padding: var(--sp-2);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 100;
}
.nav-dropdown.wide { min-width: 280px; }
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.875rem;
  font-size: var(--sm);
  color: #4A4A5A;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-dropdown a:hover {
  background: rgba(139,26,74,0.06);
  color: var(--accent);
  padding-left: 1.125rem;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: #FFFFFF;
  overflow-y: auto;
  padding: var(--sp-4);
  z-index: 999;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 1.0625rem;
  font-weight: 500;
  color: #1C1C1E;
}
.nav-mobile-group { margin-bottom: var(--sp-3); }
.nav-mobile-group-title {
  font-size: var(--xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin: var(--sp-3) 0 var(--sp-1);
}
.nav-mobile-sub a {
  padding-left: var(--sp-3);
  font-size: var(--sm);
  color: var(--text-2);
}

@media (max-width: 1100px) {
  .nav-links,
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }
}
@media (max-width: 400px) {
  .nav-logo-title { display: none; }
}

/* ─────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(201,162,39,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(139,26,74,.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid noise texture */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
  padding: var(--sp-10) 0;
}
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: var(--sp-6) 0;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .hero-layout {
    padding: var(--sp-4) 0;
    gap: var(--sp-4);
  }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.hero h1 {
  font-size: var(--h1-xl);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: var(--sp-4);
  word-break: break-word;
  overflow-wrap: break-word;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.25); }
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: var(--sp-3);
  }
  .hero h1 .accent { -webkit-text-stroke: 1.5px rgba(255,255,255,.25); }
}

.hero-sub {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}
@media (max-width: 900px) { .hero-sub { margin-left: auto; margin-right: auto; max-width: 100%; } }
@media (max-width: 480px) { .hero-sub { font-size: 0.9375rem; margin-bottom: var(--sp-3); } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
@media (max-width: 900px) {
  .hero-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: var(--sp-4);
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }
}

.hero-stats {
  display: flex;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: var(--sp-3); }
}
@media (max-width: 480px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
    padding-top: var(--sp-3);
  }
  .hero-stat-num { font-size: 1.625rem; }
  .hero-stat-label { max-width: none; font-size: 0.75rem; }
}
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  display: block;
  font-size: var(--xs);
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
  max-width: 80px;
}

/* ── AI Architecture Diagram (hero visual) ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-visual { display: none; }
}

.arch-diagram {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.arch-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  position: relative;
  animation: slideIn 0.6s ease forwards;
  opacity: 0;
  transition: box-shadow var(--transition);
}
.arch-card:hover { box-shadow: 0 4px 24px rgba(201,162,39,.25); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.arch-card:nth-child(1)  { animation-delay: 0.1s; }
.arch-card:nth-child(3)  { animation-delay: 0.3s; }
.arch-card:nth-child(5)  { animation-delay: 0.5s; }
.arch-card:nth-child(7)  { animation-delay: 0.7s; }
.arch-card:nth-child(9)  { animation-delay: 0.9s; }

.arch-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.arch-icon.blue    { background: rgba(139,26,74,.18); }
.arch-icon.emerald { background: rgba(201,162,39,.18); }
.arch-icon.purple  { background: rgba(139,26,74,.14); }
.arch-icon.gold    { background: rgba(201,162,39,.14); }
.arch-icon.red     { background: rgba(139,26,74,.14); }

.arch-info { flex: 1; }
.arch-title {
  font-size: var(--sm);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.arch-desc {
  font-size: var(--xs);
  color: var(--text-3);
  margin-top: 2px;
}

.arch-connector {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1.5rem;
  height: 20px;
  color: var(--text-3);
  font-size: 0.75rem;
  position: relative;
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}
.arch-connector::before {
  content: '';
  position: absolute;
  left: 33px;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--gold));
  opacity: 0.35;
}
@keyframes fadeIn { to { opacity: 1; } }
.arch-connector:nth-child(2)  { animation-delay: 0.2s; }
.arch-connector:nth-child(4)  { animation-delay: 0.4s; }
.arch-connector:nth-child(6)  { animation-delay: 0.6s; }
.arch-connector:nth-child(8)  { animation-delay: 0.8s; }

/* ─────────────────────────────────────────────────
   TRUST BAR / CLIENTS
───────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-alt);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: var(--sp-5) 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-label {
  font-size: var(--xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  white-space: nowrap;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-logo {
  font-family: var(--font-display);
  font-size: var(--sm);
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.01em;
  transition: color var(--transition);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.1);
}
.trust-logo:hover { color: var(--accent); border-color: var(--accent); }

/* ─────────────────────────────────────────────────
   NUMBERS / METRICS ROW
───────────────────────────────────────────────── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-1);
}
@media (max-width: 900px) { .metrics-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metrics-row { grid-template-columns: 1fr 1fr; } }

.metric-item {
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  border-right: 1px solid var(--border);
}
.metric-item:last-child { border-right: none; }
@media (max-width: 900px) {
  .metric-item:nth-child(2) { border-right: none; }
  .metric-item:nth-child(3) { border-right: 1px solid var(--border); }
}
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  margin-bottom: var(--sp-1);
}
.metric-label {
  font-size: var(--sm);
  color: var(--text-3);
  font-weight: 500;
  line-height: 1.4;
  max-width: 160px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────
   SERVICES GRID
───────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card.blue::before  { background: var(--blue); }
.service-card.green::before { background: var(--emerald); }
.service-card.purple::before{ background: var(--purple); }
.service-card.gold::before  { background: var(--gold); }

.service-card:hover {
  border-color: var(--border-2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--sp-3);
}
.service-icon.blue    { background: rgba(139,26,74,.1); }
.service-icon.green   { background: rgba(201,162,39,.12); }
.service-icon.purple  { background: rgba(139,26,74,.08); }
.service-icon.gold    { background: rgba(201,162,39,.12); }
.service-icon.red     { background: rgba(139,26,74,.1); }

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}
.service-card p {
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--sp-3);
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--sm);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.service-card:hover .service-link { gap: 10px; }

/* ─────────────────────────────────────────────────
   TWO-COLUMN FEATURE LAYOUT
───────────────────────────────────────────────── */
.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}
.feature-layout.reverse { direction: rtl; }
.feature-layout.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .feature-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .feature-layout.reverse { direction: ltr; }
}

.feature-content h2 { margin-bottom: var(--sp-3); }
.feature-content p  { margin-bottom: var(--sp-4); }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.feature-list-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.feature-list-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0,200,150,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-list-text h4 {
  font-size: var(--sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.feature-list-text p {
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* Feature Visual Panels */
.feature-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.feature-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────
   INDUSTRIES GRID
───────────────────────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industries-grid { grid-template-columns: 1fr; } }

.industry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.industry-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(139,26,74,.12);
}
.industry-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.07;
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-4);
  letter-spacing: -0.02em;
  color: var(--accent);
  pointer-events: none;
}
.industry-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
}
.industry-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}
.industry-card p {
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.65;
}
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-3);
}
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.06);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────
   CASE STUDIES
───────────────────────────────────────────────── */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) { .case-studies-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .case-studies-grid { grid-template-columns: 1fr; } }

.cs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.cs-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.cs-header {
  padding: var(--sp-5);
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--card-2) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cs-industry {
  font-size: var(--xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--sp-1);
}
.cs-header h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.cs-body { padding: var(--sp-4); }
.cs-metrics {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.cs-metric-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  margin-bottom: 3px;
}
.cs-metric-label {
  font-size: var(--xs);
  color: var(--text-3);
  font-weight: 500;
}
.cs-desc {
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--sp-3);
}
.cs-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Single Case Study */
.cs-single-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-8) 0;
}
@media (max-width: 900px) { .cs-single-metrics { grid-template-columns: repeat(2, 1fr); } }
.cs-big-metric {
  text-align: center;
  padding: var(--sp-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cs-big-val {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}
.cs-big-label {
  font-size: var(--sm);
  color: var(--text-2);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────
   TESTIMONIALS / CREDIBILITY
───────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.5;
  font-family: Georgia, serif;
  margin-bottom: var(--sp-3);
}
.testimonial-text {
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: var(--sp-4);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}
.author-name {
  font-size: var(--sm);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.author-title {
  font-size: var(--xs);
  color: var(--text-3);
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────
   FAQ / AEO SECTION
───────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-1);
  transition: color var(--transition);
  gap: var(--sp-4);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-3);
  transition: all var(--transition);
}
.faq-item.open .faq-icon {
  background: rgba(139,26,74,.1);
  color: var(--accent);
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 0 var(--sp-4);
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 720px;
}
.faq-item.open .faq-answer { display: block; }

/* Light FAQ */
.faq-light .faq-question { color: var(--light-text2); }
.faq-light .faq-question:hover { color: var(--light-text); }
.faq-light .faq-answer { color: var(--light-text2); }
.faq-light .faq-icon { background: rgba(0,0,0,.06); color: var(--light-text2); }
.faq-light .faq-item { border-color: var(--light-border); }

/* ─────────────────────────────────────────────────
   BLOG CARDS
───────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow);
}
.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--card-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.blog-body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.blog-cat {
  font-size: var(--xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.blog-date {
  font-size: var(--xs);
  color: var(--text-3);
}
.blog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
  margin-bottom: var(--sp-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card p {
  font-size: var(--sm);
  color: var(--text-3);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-read-more {
  font-size: var(--xs);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}
.blog-card:hover .blog-read-more { gap: 8px; }

/* ─────────────────────────────────────────────────
   REGIONS
───────────────────────────────────────────────── */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .regions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .regions-grid { grid-template-columns: 1fr; } }

.region-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.region-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(139,26,74,.1);
}
.region-flag { font-size: 2.5rem; margin-bottom: var(--sp-2); display: block; }
.region-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}
.region-card p {
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────
   CONTACT FORM
───────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: flex-start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--sp-3);
}
.form-group label {
  font-size: var(--sm);
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
  font-size: var(--sm);
  color: var(--text-1);
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,26,74,.1);
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 2.5rem; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
  transition: all var(--transition);
}
.contact-info-item:hover { border-color: var(--border-2); }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(139,26,74,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-title {
  font-size: var(--sm);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: var(--sm);
  color: var(--text-2);
}

/* ─────────────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────────────── */
.page-hero {
  background: var(--bg-dark);
  padding: calc(72px + var(--sp-10)) 0 var(--sp-10);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 60% 60% at 30% 50%, rgba(201,162,39,.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--xs);
  color: var(--text-3);
  margin-bottom: var(--sp-4);
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.page-hero-breadcrumb a:hover { color: var(--gold); }
.page-hero-breadcrumb span { color: var(--text-2); }
.page-hero h1 { max-width: 800px; margin-bottom: var(--sp-3); }
.page-hero-sub {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────────────── */
.cta-banner {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(201,162,39,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: var(--sp-3); position: relative; }
.cta-banner p  { margin-bottom: var(--sp-5); position: relative; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-12) 0 var(--sp-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-6);
}
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-6); } }
@media (max-width: 768px)  { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  font-size: var(--sm);
  color: var(--text-3);
  line-height: 1.7;
  margin: var(--sp-3) 0 var(--sp-4);
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-3);
  transition: all var(--transition);
}
.footer-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: var(--sm);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: var(--sm);
  color: var(--text-3);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-copyright {
  font-size: var(--xs);
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: var(--sp-4);
}
.footer-links a {
  font-size: var(--xs);
  color: var(--text-3);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ─────────────────────────────────────────────────
   FLOATING ELEMENTS
───────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: var(--sp-4);
  right: var(--sp-4);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.whatsapp-btn {
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  color: white;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.5);
}

.scroll-top-btn {
  width: 42px; height: 42px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-2);
  opacity: 0;
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}
.scroll-top-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────
   PROCESS / STEPS
───────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-1);
  position: relative;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } }
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }

.process-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--sp-1);
  display: block;
}
.step-icon {
  font-size: 1.75rem;
  margin-bottom: var(--sp-2);
  display: block;
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}
.process-step p {
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────
   TOOLS / TECH STACK
───────────────────────────────────────────────── */
.tools-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.625rem 1.125rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--sm);
  font-weight: 500;
  color: var(--text-1);
  transition: all var(--transition);
}
.tool-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.tool-chip span { font-size: 1rem; }

/* ─────────────────────────────────────────────────
   AWARD / CREDENTIAL CARDS
───────────────────────────────────────────────── */
.award-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .award-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .award-grid { grid-template-columns: 1fr; } }

.award-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  text-align: center;
  transition: all var(--transition);
}
.award-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(245,158,11,.1);
}
.award-icon { font-size: 2.5rem; margin-bottom: var(--sp-2); display: block; }
.award-card h4 {
  font-size: var(--sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}
.award-card p {
  font-size: var(--xs);
  color: var(--text-3);
  margin: 0;
}

/* ─────────────────────────────────────────────────
   ABOUT PAGE TIMELINE
───────────────────────────────────────────────── */
.timeline { position: relative; padding-left: var(--sp-8); }
.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--gold), transparent);
  opacity: 0.4;
}
.timeline-item {
  position: relative;
  margin-bottom: var(--sp-6);
}
.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--sp-8) + 9px);
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(139,26,74,.2);
}
.timeline-year {
  font-size: var(--xs);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.timeline-item h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}
.timeline-item p {
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────
   RESOURCE CARDS
───────────────────────────────────────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .resources-grid { grid-template-columns: 1fr; } }

.resource-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.resource-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.resource-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}
.resource-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-2);
  line-height: 1.4;
}
.resource-card p {
  font-size: var(--sm);
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-4);
}

/* ─────────────────────────────────────────────────
   LEAD MAGNET STRIP
───────────────────────────────────────────────── */
.lead-magnet {
  background: linear-gradient(135deg, rgba(139,26,74,.07) 0%, rgba(201,162,39,.05) 100%);
  border: 1px solid rgba(139,26,74,.14);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  justify-content: space-between;
  flex-wrap: wrap;
}
.lead-magnet-text h3 {
  font-size: var(--h3);
  margin-bottom: var(--sp-2);
}
.lead-magnet-text p {
  font-size: var(--sm);
  color: var(--text-2);
  max-width: 480px;
}
.lead-magnet-form {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.lead-magnet-form input {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: var(--sm);
  color: var(--text-1);
  outline: none;
  min-width: 260px;
  transition: border-color var(--transition);
}
.lead-magnet-form input::placeholder { color: var(--text-3); }
.lead-magnet-form input:focus { border-color: var(--accent); }

/* ─────────────────────────────────────────────────
   CONTENT PROSE (blog posts, long content)
───────────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { margin: var(--sp-6) 0 var(--sp-3); }
.prose h3 { margin: var(--sp-5) 0 var(--sp-2); }
.prose p  { margin-bottom: var(--sp-3); }
.prose ul, .prose ol {
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose ul li, .prose ol li { color: var(--text-2); font-size: var(--sm); line-height: 1.75; }
.prose strong { color: var(--text-1); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ─────────────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
@media (max-width: 900px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

.w-full { width: 100%; }
.hidden { display: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────── */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes glow {
  0%,100% { box-shadow: 0 0 20px rgba(37,99,235,.3); }
  50%     { box-shadow: 0 0 40px rgba(37,99,235,.6); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow  { animation: glow 2s ease-in-out infinite; }

/* Fade in on scroll (JS adds class) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-mid, #334155); }

/* ─────────────────────────────────────────────────
   SELECTION
───────────────────────────────────────────────── */
::selection {
  background: rgba(37,99,235,.35);
  color: var(--white);
}

/* ─────────────────────────────────────────────────
   RESPONSIVE HELPERS
───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section { padding: var(--sp-8) 0; }
  .section-lg { padding: var(--sp-10) 0; }
  h2 { font-size: clamp(1.5rem, 5vw, 2.25rem); }
  h3 { font-size: clamp(1.0625rem, 3vw, 1.375rem); }
  .section-header { margin-bottom: var(--sp-5); }
  .card { padding: var(--sp-4); }
  .card-glass { padding: var(--sp-4); }
}
@media (max-width: 480px) {
  .section { padding: var(--sp-6) 0; }
  .section-lg { padding: var(--sp-8) 0; }
  .section-sm { padding: var(--sp-5) 0; }
  h2 { font-size: clamp(1.375rem, 7vw, 1.875rem); }
  h3 { font-size: 1.0625rem; }
  h4 { font-size: 1rem; }
  .btn-lg { padding: 0.9rem 1.5rem; font-size: 0.9375rem; }
  .badge { font-size: 0.75rem; padding: 0.3rem 0.7rem; }
  .section-header.center { margin-bottom: var(--sp-4); }
}
@media (min-width: 769px) {
  .show-mobile { display: none !important; }
}

/* ─────────────────────────────────────────────────
   GLOBAL MOBILE OVERFLOW GUARD
───────────────────────────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent any element from busting the viewport */
@media (max-width: 600px) {
  * { max-width: 100%; }
  img, video, iframe { max-width: 100% !important; }

  /* Typography overflow guard */
  h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  /* Full-width CTAs on tiny screens */
  .cta-group, .hero-actions, .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-group .btn, .btn-group .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Grids collapse to single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }

  /* Tables scroll horizontally */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Wide absolute/fixed elements */
  .arch-diagram { width: 100% !important; max-width: 340px; margin: 0 auto; }

  /* Reduce large paddings */
  .section-header { margin-bottom: 2rem; }
  .card, .card-glass, .card-light { padding: 1.25rem !important; }
}

/* ── Tablet (768px) grid fixes ── */
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics-row { grid-template-columns: repeat(2, 1fr) !important; }

  /* Footer tighten */
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-social { justify-content: center; }

  /* Page headers */
  .page-header { padding: 6rem 0 3rem; }
  .page-header h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  /* Service/industry inner pages */
  .service-hero-layout,
  .region-layout,
  .contact-layout { grid-template-columns: 1fr !important; }

  /* Stat bars on mobile */
  .stat-bar-fill { max-width: 100% !important; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr !important; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr !important; }

  /* Process steps */
  .process-steps { grid-template-columns: repeat(2, 1fr) !important; }

  /* Nav inner height */
  .nav-inner { height: 64px; }
}

/* ── Small phones (360–480px) ── */
@media (max-width: 480px) {
  .page-header { padding: 5rem 0 2.5rem; }
  .page-header h1 { font-size: clamp(1.5rem, 8vw, 2rem); }

  /* Trust bar */
  .trust-bar-inner { gap: 1rem; }
  .trust-logos { gap: 1rem; }

  /* Section eyebrow */
  .section-eyebrow { font-size: 0.7rem; }
  .section-eyebrow::before { width: 16px; }

  /* Metrics */
  .metric-num { font-size: clamp(1.75rem, 8vw, 2.5rem) !important; }

  /* Case study meta */
  .cs-meta { flex-wrap: wrap; gap: 0.5rem; }

  /* Form */
  .form-row { grid-template-columns: 1fr !important; }
  input, textarea, select { font-size: 1rem !important; } /* prevent iOS zoom */

  /* Process connector arrows */
  .process-step-arrow { display: none; }

  /* Reduce large numbers */
  .hero-stat-num { font-size: 1.5rem; }

  /* Footer columns */
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }

  /* Regions grid */
  .regions-grid { grid-template-columns: 1fr !important; }

  /* Industries grid */
  .industries-grid { grid-template-columns: 1fr !important; }

  /* Awards grid */
  .award-grid { grid-template-columns: 1fr !important; }

  /* Resources grid */
  .resources-grid { grid-template-columns: 1fr !important; }

  /* Blog featured */
  .blog-featured { grid-template-columns: 1fr !important; }

  /* Service cards */
  .services-grid { grid-template-columns: 1fr !important; }

  /* Case studies grid */
  .case-studies-grid { grid-template-columns: 1fr !important; }

  /* Sticky CTA bar if any */
  .sticky-cta { padding: 0.75rem 1rem; }
}
