/* ============================================================
   InfoByDesign Limited — Premium Stylesheet v2
   ============================================================ */

:root {
  --navy:        #0B1F3A;
  --navy-800:    #0F2847;
  --navy-700:    #122D52;
  --navy-600:    #163561;
  --navy-500:    #1A3D72;
  --azure:       #2563EB;
  --azure-dark:  #1D4ED8;
  --azure-light: #3B82F6;
  --cyan:        #06B6D4;
  --cyan-light:  #22D3EE;
  --cyan-pale:   #67E8F9;
  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1E293B;
  --gray-900:    #0F172A;
  --success:     #10B981;

  --gradient-brand:  linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --gradient-text:   linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
  --gradient-hero:   linear-gradient(135deg, #0B1F3A 0%, #0F2847 60%, #0B1F3A 100%);
  --gradient-card:   linear-gradient(135deg, rgba(37,99,235,.08) 0%, rgba(6,182,212,.04) 100%);

  --border:        rgba(255,255,255,.07);
  --border-accent: rgba(6,182,212,.25);
  --border-azure:  rgba(37,99,235,.25);

  --shadow-sm:  0 2px 8px rgba(0,0,0,.25);
  --shadow-md:  0 4px 24px rgba(0,0,0,.35);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.45);
  --shadow-glow: 0 0 48px rgba(6,182,212,.18);
  --shadow-azure: 0 0 48px rgba(37,99,235,.2);

  --font-display: 'Manrope', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Sans', monospace;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --nav-h:       72px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--navy); color: var(--white); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container    { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem;   }

.section    { padding: 5.5rem 0; }
.section-lg { padding: 7.5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ── Responsive Grid System ─────────────────────────────────── */
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Split layouts (text + image) */
.grid-split         { display: grid; grid-template-columns: 1fr 1fr;     gap: 4.5rem; align-items: center; }
.grid-split-wide    { display: grid; grid-template-columns: 1.1fr .9fr;  gap: 4.5rem; align-items: center; }
.grid-split-reverse { display: grid; grid-template-columns: .9fr 1.1fr;  gap: 4.5rem; align-items: center; }

.gap-sm { gap: .875rem !important; }
.gap-md { gap: 1.5rem  !important; }
.gap-lg { gap: 2rem    !important; }
.gap-xl { gap: 3rem    !important; }

/* Tablet (≤1024px) */
@media (max-width:1024px) {
  .grid-4          { grid-template-columns: repeat(2,1fr); }
  .grid-3          { grid-template-columns: repeat(2,1fr); }
  .grid-split,
  .grid-split-wide,
  .grid-split-reverse { grid-template-columns: 1fr; gap: 3rem; }
  .reverse-mobile  { order: -1 !important; }
}

/* Mobile (≤640px) */
@media (max-width:640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2,1fr); }
}

/* ── Section Labels ─────────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  padding: .375rem .875rem; border: 1px solid var(--border-accent);
  border-radius: var(--radius-full); background: rgba(6,182,212,.06);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); display: inline-block; flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  color: var(--white); margin-bottom: 1rem;
}
.section-title.large { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }

.section-subtitle { font-size: 1.0625rem; color: var(--gray-400); line-height: 1.7; max-width: 600px; }

.section-header           { margin-bottom: 3rem; }
.section-header.centered  { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: .9375rem; letter-spacing: -.01em;
  transition: all .25s var(--ease-out); white-space: nowrap;
  position: relative; overflow: hidden; cursor: pointer;
}
/* Shimmer sweep on hover */
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .5s ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  background: var(--gradient-brand); color: var(--white);
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.5); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.2); backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); transform: translateY(-2px); }

.btn-outline-cyan {
  background: transparent; color: var(--cyan);
  border: 1.5px solid var(--border-accent);
}
.btn-outline-cyan:hover { background: rgba(6,182,212,.1); border-color: var(--cyan); }

.btn-cyan  { background: var(--cyan); color: var(--navy); font-weight: 700; box-shadow: 0 4px 16px rgba(6,182,212,.3); }
.btn-cyan:hover { background: var(--cyan-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(6,182,212,.4); }

.btn-white { background: var(--white); color: var(--navy); font-weight: 700; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }

.btn-sm  { padding: .5rem 1.25rem;   font-size: .875rem;  }
.btn-lg  { padding: .9375rem 2rem;   font-size: 1.0625rem; }
.btn-xl  { padding: 1.0625rem 2.5rem; font-size: 1.125rem; }

/* Ripple */
.btn .ripple {
  position: absolute; border-radius: 50%;
  transform: scale(0); animation: ripple-anim .55s linear;
  background: rgba(255,255,255,.25); pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ── Scroll Progress Bar ────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 2000;
  background: var(--gradient-brand);
  transition: width .1s linear;
}

/* ── Back to Top ────────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-brand); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,99,235,.4);
  opacity: 0; transform: translateY(20px) scale(.8);
  transition: all .35s var(--ease-out); pointer-events: none;
  font-size: 1.125rem;
}
#back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#back-to-top:hover   { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 30px rgba(37,99,235,.55); }

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; transition: all .35s var(--ease-out);
}
.navbar.scrolled {
  background: rgba(11,31,58,.94); backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}

/* Logo Image */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo-img {
  height: 42px; width: auto; object-fit: contain;
  display: block;
}

/* Fallback text logo (hidden when image loads) */
.nav-logo-mark {
  width: 36px; height: 36px; background: var(--gradient-brand);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-weight: 900; font-size: 1rem;
  color: white; font-family: var(--font-display); flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; margin-left: .625rem; }
.nav-logo-name    { font-family: var(--font-display); font-weight: 800; font-size: .9375rem; letter-spacing: -.02em; color: var(--white); }
.nav-logo-tagline { font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: .25rem; }

.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .875rem; font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.8); border-radius: var(--radius-sm);
  transition: all .2s ease; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--gradient-brand);
  transition: all .3s var(--ease-out); border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { left: .875rem; right: .875rem; }

.nav-link svg { transition: transform .2s ease; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.nav-cta { display: flex; align-items: center; gap: .75rem; }

.nav-mobile-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--white);
}

/* Mega Menu */
.mega-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); width: 700px;
  background: rgba(18,45,82,.97); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.75rem; box-shadow: var(--shadow-lg), var(--shadow-glow);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease-out), visibility .25s, transform .25s var(--ease-out);
  transform: translateX(-50%) translateY(-8px);
  pointer-events: none;
}
.nav-item:hover .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }

.mega-menu-item {
  display: flex; align-items: flex-start; gap: .875rem;
  padding: .875rem; border-radius: var(--radius-md);
  transition: all .2s ease;
}
.mega-menu-item:hover { background: rgba(255,255,255,.05); }

.mega-menu-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(6,182,212,.12); border: 1px solid rgba(6,182,212,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--cyan); font-size: 1rem;
}
.mega-menu-text strong { display: block; font-size: .875rem; font-weight: 600; color: var(--white); margin-bottom: .2rem; }
.mega-menu-text span   { font-size: .8rem; color: var(--gray-400); line-height: 1.4; }
.mega-menu-footer {
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* Dropdown */
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 220px;
  background: rgba(18,45,82,.97); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: .5rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .2s var(--ease-out); pointer-events: none;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.dropdown-item { display: block; padding: .625rem .875rem; font-size: .875rem; color: var(--gray-400); border-radius: var(--radius-sm); transition: all .15s; }
.dropdown-item:hover { color: var(--white); background: rgba(255,255,255,.05); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--navy);
  z-index: 1100; overflow-y: auto; padding: 6rem 2rem 2rem;
  flex-direction: column;
}
.mobile-nav.open { display: flex; animation: slideDown .3s var(--ease-out); }
@keyframes slideDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }

.mobile-nav-links { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-link {
  display: block; padding: .875rem 1rem; font-size: 1.0625rem; font-weight: 500;
  color: rgba(255,255,255,.8); border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border); transition: all .2s;
}
.mobile-nav-link:hover { color: var(--white); background: rgba(255,255,255,.05); }

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

#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .6; }

.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
}
.hero-glow-1 { width: 700px; height: 700px; background: rgba(37,99,235,.22); top: -250px; right: -150px; animation: orb-drift1 12s ease-in-out infinite; }
.hero-glow-2 { width: 450px; height: 450px; background: rgba(6,182,212,.16);  bottom: -120px; left: 5%; animation: orb-drift2 14s ease-in-out infinite; }
.hero-glow-3 { width: 300px; height: 300px; background: rgba(37,99,235,.12);  top: 40%; left: 40%; animation: orb-drift3 10s ease-in-out infinite; }

@keyframes orb-drift1 { 0%,100% { transform:translate(0,0); } 50% { transform:translate(-40px,30px); } }
@keyframes orb-drift2 { 0%,100% { transform:translate(0,0); } 50% { transform:translate(30px,-25px); } }
@keyframes orb-drift3 { 0%,100% { transform:translate(0,0) scale(1); } 50% { transform:translate(-20px,20px) scale(1.2); } }

.hero-content { position: relative; z-index: 1; width: 100%; padding: 9rem 0 6rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .625rem;
  padding: .5rem 1rem; background: rgba(6,182,212,.08);
  border: 1px solid var(--border-accent); border-radius: var(--radius-full);
  font-size: .8125rem; font-weight: 600; color: var(--cyan);
  margin-bottom: 1.75rem; letter-spacing: .04em;
  animation: fadeInUp .7s var(--ease-out) both;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  animation: pulse-dot 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
  margin-bottom: 1.5rem; max-width: 780px;
  animation: fadeInUp .7s var(--ease-out) .1s both;
}

.hero-subtitle {
  font-size: clamp(.9375rem, 1.5vw, 1.1875rem); color: var(--gray-400);
  line-height: 1.75; max-width: 560px; margin-bottom: 2.5rem;
  animation: fadeInUp .7s var(--ease-out) .2s both;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem;
  animation: fadeInUp .7s var(--ease-out) .3s both;
}

.hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; animation: fadeInUp .7s var(--ease-out) .4s both; }
.hero-trust-text { font-size: .8125rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .08em; }
.hero-trust-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.trust-badge {
  display: flex; align-items: center; gap: .4rem; padding: .4rem .875rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: .8rem; color: var(--gray-400); font-weight: 500;
  transition: all .25s ease;
}
.trust-badge:hover { border-color: var(--border-accent); color: var(--cyan); background: rgba(6,182,212,.06); }
.trust-badge svg { color: var(--cyan); flex-shrink: 0; }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--gray-500); font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; animation: float 3s ease-in-out infinite;
}
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--cyan)); }

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy-700); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 2rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item  { padding: 1.5rem 2rem; text-align: center; border-right: 1px solid var(--border); position: relative; }
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gradient-brand);
  transition: width .4s var(--ease-out);
}
.stat-item:hover::before { width: 80%; }

.stat-number {
  font-family: var(--font-display); font-size: clamp(2rem,3vw,2.75rem);
  font-weight: 800; line-height: 1; letter-spacing: -.03em;
  background: var(--gradient-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: .375rem;
}
.stat-label { font-size: .875rem; color: var(--gray-400); font-weight: 500; }
.stat-icon  { font-size: 1.5rem; margin-bottom: .5rem; display: block; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--navy-700); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  transition: all .3s var(--ease-out);
}
.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 0 32px rgba(6,182,212,.08);
  transform: translateY(-4px);
}

/* 3D Tilt on hover via JS class */
.card-tilt { transform-style: preserve-3d; }

/* Service Cards */
.service-card {
  background: var(--navy-700); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  transition: all .35s var(--ease-out); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: var(--border-azure);
  box-shadow: var(--shadow-md), var(--shadow-azure);
  transform: translateY(-6px);
}

.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient-card); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--cyan); margin-bottom: 1.5rem;
  flex-shrink: 0; transition: all .3s ease;
}
.service-card:hover .service-icon {
  background: rgba(6,182,212,.15); border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6,182,212,.25);
}
.service-card h3 { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700; margin-bottom: .75rem; color: var(--white); }
.service-card p  { font-size: .9rem; color: var(--gray-400); line-height: 1.65; margin-bottom: 1.5rem; }

/* Industry Cards */
.industry-card {
  background: var(--navy-700); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; text-align: center;
  transition: all .3s var(--ease-out);
}
.industry-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin: 0 auto 1rem; transition: all .3s;
}
.industry-card:hover .industry-icon { background: rgba(37,99,235,.15); border-color: var(--azure-light); }
.industry-card h4 { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; margin-bottom: .5rem; }
.industry-card p  { font-size: .8rem; color: var(--gray-400); line-height: 1.5; }

/* Platform Cards */
.platform-card {
  background: var(--navy-700); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem;
  transition: all .3s var(--ease-out); position: relative; overflow: hidden;
}
.platform-card::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(6,182,212,.08), transparent 70%);
  transition: opacity .4s;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.platform-card:hover::after { opacity: 1; }

/* Testimonial Cards */
.testimonial-card {
  background: var(--navy-700); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem; position: relative;
  transition: all .3s var(--ease-out);
}
.testimonial-card:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.testimonial-quote { font-size: 3rem; line-height: 1; color: var(--cyan); opacity: .3; position: absolute; top: 1.5rem; right: 1.5rem; font-family: Georgia, serif; }
.testimonial-text { font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: .875rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-accent); }
.testimonial-author-info strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--white); }
.testimonial-author-info span   { font-size: .8125rem; color: var(--gray-400); }
.star-rating { color: #F59E0B; font-size: .875rem; margin-bottom: 1rem; }

/* Case Study Cards */
.case-card {
  background: var(--navy-700); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: all .3s var(--ease-out);
}
.case-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card-image { width: 100%; height: 200px; object-fit: cover; background: var(--navy-600); transition: transform .5s ease; }
.case-card:hover .case-card-image { transform: scale(1.04); }
.case-card-image-wrap { overflow: hidden; }
.case-card-body { padding: 1.75rem; }

.case-badge {
  display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .75rem;
  background: rgba(6,182,212,.1); border: 1px solid var(--border-accent);
  border-radius: var(--radius-full); font-size: .75rem; font-weight: 600;
  color: var(--cyan); margin-bottom: .875rem;
}
.case-card h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; margin-bottom: .75rem; color: var(--white); }
.case-metrics { display: flex; gap: 1.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.case-metric strong { display: block; font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; color: var(--cyan); }
.case-metric span   { font-size: .8rem; color: var(--gray-400); }

/* Blog Cards */
.blog-card { background: var(--navy-700); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: all .3s var(--ease-out); }
.blog-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-image { width: 100%; height: 180px; object-fit: cover; background: var(--navy-600); transition: transform .5s; }
.blog-card:hover .blog-card-image { transform: scale(1.04); }
.blog-card-image-wrapper { overflow: hidden; }
.blog-card-body { padding: 1.5rem; }
.blog-category {
  display: inline-block; padding: .2rem .625rem;
  background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.25);
  border-radius: var(--radius-sm); font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--azure-light);
  margin-bottom: .75rem;
}
.blog-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.4; margin-bottom: .625rem; color: var(--white); }
.blog-card h3 a:hover { color: var(--cyan); }
.blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .8125rem; color: var(--gray-500); margin-top: 1rem; }

/* ── Card Link Arrow ─────────────────────────────────────────── */
.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 600; color: var(--cyan);
  transition: gap .2s ease, color .2s;
}
.card-link:hover { gap: .75rem; color: var(--cyan-light); }

/* ── Feature Lists ───────────────────────────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: .875rem; }
.feature-item { display: flex; align-items: flex-start; gap: .875rem; font-size: .9375rem; color: rgba(255,255,255,.85); line-height: 1.55; }
.feature-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3);
  color: #34D399; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0; margin-top: .15rem;
}

/* ── Process Steps ───────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; position: relative; }
.process-connector {
  position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-accent), transparent); z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: center; padding: 2rem 1rem; }
.process-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-600); border: 2px solid var(--border-accent);
  color: var(--cyan); font-family: var(--font-display); font-weight: 800; font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; transition: all .3s;
}
.process-step:hover .process-number { background: rgba(6,182,212,.15); border-color: var(--cyan); box-shadow: 0 0 20px rgba(6,182,212,.25); }
.process-step h4 { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; margin-bottom: .5rem; }
.process-step p  { font-size: .8375rem; color: var(--gray-400); line-height: 1.55; }

/* ── CTA Sections ────────────────────────────────────────────── */
.cta-section { background: var(--gradient-hero); position: relative; overflow: hidden; padding: 6rem 0; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' fill='%2306B6D4' fill-opacity='.025'/%3E%3C/svg%3E");
}
.cta-glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.cta-glow-1 { top: -200px; right: -100px; background: rgba(37,99,235,.2); }
.cta-glow-2 { bottom: -200px; left: -100px; background: rgba(6,182,212,.15); }

.cta-banner {
  background: var(--gradient-brand); border-radius: var(--radius-2xl);
  padding: 3.5rem; position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label  { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; color: rgba(255,255,255,.85); }
.form-control {
  width: 100%; padding: .75rem 1rem;
  background: rgba(255,255,255,.04); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); color: var(--white); font-size: .9375rem;
  font-family: var(--font-body); transition: all .2s; outline: none;
}
.form-control::placeholder { color: var(--gray-500); }
.form-control:focus { border-color: var(--cyan); background: rgba(6,182,212,.04); box-shadow: 0 0 0 3px rgba(6,182,212,.1); }
.form-control.error { border-color: #EF4444; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
select.form-control option { background: var(--navy-700); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Badges / Chips ──────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .625rem; border-radius: var(--radius-full); font-size: .75rem; font-weight: 600; }
.badge-cyan   { background: rgba(6,182,212,.12);   color: var(--cyan-light);  border: 1px solid rgba(6,182,212,.2);   }
.badge-azure  { background: rgba(37,99,235,.12);   color: var(--azure-light); border: 1px solid rgba(37,99,235,.2);   }
.badge-green  { background: rgba(16,185,129,.12);  color: #34D399;            border: 1px solid rgba(16,185,129,.2);  }
.badge-yellow { background: rgba(245,158,11,.12);  color: #FCD34D;            border: 1px solid rgba(245,158,11,.2);  }

/* ── Accordion ───────────────────────────────────────────────── */
.accordion-item     { border-bottom: 1px solid var(--border); }
.accordion-trigger  { width:100%; display:flex; align-items:center; justify-content:space-between; padding:1.25rem 0; font-size:1rem; font-weight:600; color:var(--white); text-align:left; transition:color .2s; }
.accordion-trigger:hover { color: var(--cyan); }
.accordion-icon     { width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,.06); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all .3s; }
.accordion-item.open .accordion-icon { background:rgba(6,182,212,.1); border-color:var(--border-accent); transform:rotate(45deg); color:var(--cyan); }
.accordion-body     { overflow:hidden; max-height:0; transition:max-height .4s ease, padding .3s ease; }
.accordion-item.open .accordion-body { max-height:500px; padding-bottom:1.25rem; }
.accordion-content  { font-size:.9375rem; color:var(--gray-400); line-height:1.7; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--gray-900); border-top: 1px solid rgba(255,255,255,.05); padding-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand p { font-size: .9rem; color: var(--gray-500); line-height: 1.7; margin: 1rem 0 1.5rem; max-width: 280px; }
.footer-socials { display: flex; gap: .625rem; }
.footer-social-link {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 1rem; transition: all .2s;
}
.footer-social-link:hover { background: rgba(6,182,212,.1); border-color: var(--border-accent); color: var(--cyan); }
.footer-col h5 { font-family: var(--font-display); font-weight: 700; font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 1.25rem; }
.footer-links  { display: flex; flex-direction: column; gap: .625rem; }
.footer-link   { font-size: .9rem; color: var(--gray-500); transition: color .2s; }
.footer-link:hover { color: var(--white); }
.footer-bottom { padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .875rem; color: var(--gray-500); }
.footer-legal  { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .875rem; color: var(--gray-500); transition: color .2s; }
.footer-legal a:hover { color: var(--white); }

/* ── Scroll Reveal ───────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="100"] { transition-delay: .1s; }
[data-reveal-delay="150"] { transition-delay: .15s; }
[data-reveal-delay="200"] { transition-delay: .2s; }
[data-reveal-delay="300"] { transition-delay: .3s; }
[data-reveal-delay="400"] { transition-delay: .4s; }
[data-reveal-delay="500"] { transition-delay: .5s; }
[data-reveal-delay="600"] { transition-delay: .6s; }
[data-reveal="fade-left"]     { transform: translateX(-28px); }
[data-reveal="fade-right"]    { transform: translateX(28px); }
[data-reveal="fade-left"].revealed,
[data-reveal="fade-right"].revealed { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="scale"].revealed { transform: scale(1); }

/* ── GDPR Cookie Banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  width: calc(100% - 3rem); max-width: 800px;
  background: rgba(18,45,82,.98); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.25rem 1.75rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; z-index: 9999;
  box-shadow: var(--shadow-lg); transition: all .4s var(--ease-out);
}
.cookie-banner.hidden { opacity: 0; transform: translateX(-50%) translateY(100px); pointer-events: none; }
.cookie-text  { font-size: .875rem; color: var(--gray-400); line-height: 1.5; }
.cookie-text a { color: var(--cyan); }
.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }

/* ── Page Hero ───────────────────────────────────────────────── */
.page-hero {
  padding: 10rem 0 5rem; background: var(--gradient-hero);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; background:var(--gradient-brand); }
.page-hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.page-hero-title { font-family: var(--font-display); font-size: clamp(2.25rem,4.5vw,3.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.page-hero-subtitle { font-size: 1.0625rem; color: var(--gray-400); line-height: 1.7; max-width: 580px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--gray-500); margin-bottom: 1.5rem; justify-content: center; }
.breadcrumb a { color: var(--gray-400); transition: color .2s; }
.breadcrumb a:hover { color: var(--cyan); }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert { padding: .875rem 1.25rem; border-radius: var(--radius-md); font-size: .9rem; display: flex; align-items: flex-start; gap: .75rem; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); color: #34D399; }
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.25);  color: #F87171; }

/* ── Contact option ──────────────────────────────────────────── */
.contact-option { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; background: var(--navy-700); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all .25s; }
.contact-option:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.contact-option-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(6,182,212,.1); border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; font-size: 1.375rem; flex-shrink: 0; }
.map-placeholder { width:100%; height:360px; background:var(--navy-700); border:1px solid var(--border); border-radius:var(--radius-xl); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:1rem; color:var(--gray-400); font-size:.9375rem; }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeInUp  { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes float     { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
@keyframes float-x   { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(-6px); } }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(.7); } }
@keyframes shimmer   { from { background-position:-200% 0; } to { background-position:200% 0; } }
@keyframes glow-pulse { 0%,100% { box-shadow:0 0 20px rgba(6,182,212,.2); } 50% { box-shadow:0 0 40px rgba(6,182,212,.4); } }
@keyframes spin-slow { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }

.animate-fadeInUp   { animation: fadeInUp  .7s var(--ease-out) both; }
.animate-fadeIn     { animation: fadeIn    .5s ease both; }
.delay-100 { animation-delay:.1s; } .delay-200 { animation-delay:.2s; }
.delay-300 { animation-delay:.3s; } .delay-400 { animation-delay:.4s; }
.delay-500 { animation-delay:.5s; } .delay-600 { animation-delay:.6s; }

/* ── Loading Screen ──────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; background: var(--navy); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s;
}
#page-loader.loaded { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid rgba(6,182,212,.2);
  border-top-color: var(--cyan);
  animation: spin-slow .8s linear infinite;
}

/* ── Section Image ───────────────────────────────────────────── */
.section-img {
  width: 100%; border-radius: var(--radius-xl);
  border: 1px solid var(--border); object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.section-img:hover { transform: scale(1.02); }
.img-wrapper { overflow: hidden; border-radius: var(--radius-xl); }

/* ── Floating Stats Cards ────────────────────────────────────── */
.float-card {
  position: absolute; background: var(--navy-600);
  border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow-glow);
  animation: float 4s ease-in-out infinite;
}
.float-card:nth-child(2) { animation-delay: -2s; }

.float-card-val  { font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; background: var(--gradient-text); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.float-card-lbl  { font-size: .8125rem; color: var(--gray-400); }

/* ── Responsive Overrides ────────────────────────────────────── */
@media (max-width:1024px) {
  .footer-grid    { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand   { grid-column: span 3; }
  .stats-grid     { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .process-grid   { grid-template-columns: repeat(2,1fr); }
  .process-connector { display: none; }
  .mega-menu      { width: 560px; }
  .mega-menu-grid { grid-template-columns: repeat(2,1fr); }
  .cta-banner     { padding: 2.5rem; }
  .float-card     { display: none; }
}

@media (max-width:768px) {
  .section    { padding: 4rem 0; }
  .section-lg { padding: 5rem 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle    { display: flex; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: span 2; }
  .form-grid-2    { grid-template-columns: 1fr; }
  .page-hero      { padding: 8rem 0 4rem; }
  .stats-grid     { grid-template-columns: repeat(2,1fr); }
  .stat-item      { padding: 1.25rem; }
  .hero-content   { padding: 8rem 0 5rem; }
  .cta-banner > div { flex-direction: column; gap: 2rem; }
}

@media (max-width:480px) {
  .container       { padding: 0 1rem; }
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-brand    { grid-column: span 1; }
  .hero-actions    { flex-direction: column; }
  .hero-actions .btn { justify-content: center; text-align: center; }
  .stats-grid      { grid-template-columns: 1fr 1fr; }
  .cookie-banner   { flex-direction: column; align-items: flex-start; }
  .cookie-banner   { width: calc(100% - 2rem); bottom: 1rem; }
  .hero-title      { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .section-title   { font-size: clamp(1.625rem, 6vw, 2.25rem); }
}

/* ── Inline-style responsive overrides ──────────────────────────
   Targets all pages that still use inline display:grid styles.
   Attribute selectors collapse them at breakpoints.
   ─────────────────────────────────────────────────────────────── */

/* ── Extra utility classes ──────────────────────────────────── */
.grid-split-start {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.grid-icon-text {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
}
.timeline-flex {
  display: flex; gap: 3rem; align-items: center;
}
.scroll-x {
  display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.cta-split {
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center;
}
.featured-split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.stats-row-5 {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 0; text-align: center;
}
.grid-mini-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.grid-mini-3 {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
}

/* ── Tablet (≤1024px) ────────────────────────────────────────── */
@media (max-width:1024px) {
  /* Collapse all inline split layouts */
  [style*="grid-template-columns:1fr 1fr;gap:5rem"],
  [style*="grid-template-columns: 1fr 1fr; gap: 5rem"],
  .grid-split-start,
  .grid-split-wide,
  .grid-split-reverse,
  .featured-split,
  .cta-split { grid-template-columns: 1fr !important; gap: 2.5rem !important; }

  /* 4-col → 2-col */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  .stats-row-5 { grid-template-columns: repeat(2,1fr) !important; }

  /* 3-col → 2-col */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  .grid-mini-3 { grid-template-columns: repeat(2,1fr) !important; }

  /* 5-col → 3-col */
  [style*="grid-template-columns:repeat(5,1fr)"] { grid-template-columns: repeat(3,1fr) !important; }

  /* icon+text grids stay side-by-side on tablet */
  .grid-icon-text { grid-template-columns: auto 1fr !important; }

  /* mini 2-col stays 2 on tablet */
  [style*="grid-template-columns:1fr 1fr;gap:1rem"],
  [style*="grid-template-columns:1fr 1fr"],
  .grid-mini-2 { grid-template-columns: 1fr 1fr !important; }

  /* timeline flex stays row on tablet */
  .timeline-flex { gap: 1.5rem !important; }

  /* page-hero padding */
  .page-hero { padding: 8rem 0 4rem !important; }

  /* featured case-study stacked */
  .featured-split { grid-template-columns: 1fr !important; }
}

/* ── Mobile (≤768px) ─────────────────────────────────────────── */
@media (max-width:768px) {
  /* All split layouts → single column */
  [style*="grid-template-columns:1fr 1fr;gap:5rem"],
  [style*="grid-template-columns: 1fr 1fr; gap: 5rem"],
  [style*="grid-template-columns:1.1fr 0.9fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  .grid-split-start,
  .grid-split,
  .grid-split-wide,
  .grid-split-reverse,
  .featured-split,
  .cta-split,
  .grid-mini-2 { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* 3-col → 1-col on mobile */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  .grid-mini-3 { grid-template-columns: 1fr !important; gap: 1.25rem !important; }

  /* 4-col → 1-col on mobile */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: 1fr !important; gap: 1.25rem !important; }

  /* 5-col → 2-col on mobile */
  [style*="grid-template-columns:repeat(5,1fr)"],
  .stats-row-5 { grid-template-columns: repeat(2,1fr) !important; }

  /* icon+text rows → single column */
  .grid-icon-text,
  [style*="grid-template-columns:auto 1fr"] { grid-template-columns: 1fr !important; }

  /* timeline items → stacked column */
  .timeline-flex,
  [style*="display:flex;gap:3rem;align-items:center"] {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
  }

  /* Page section padding */
  .section    { padding: 3.5rem 0 !important; }
  .section-lg { padding: 4.5rem 0 !important; }
  .section-sm { padding: 2.5rem 0 !important; }

  /* Contact options stack */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* Insights/case-study header flex → column */
  [style*="display:flex;justify-content:space-between;align-items:flex-end"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }

  /* CTA inner split */
  [style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Nav container on pages */
  .nav-inner { padding: 0 !important; }

  /* Floating stat cards — hide on mobile so they don't overflow */
  [style*="position:absolute"][style*="border-radius:var(--radius-lg)"] { display: none !important; }
}

/* ── Small mobile (≤480px) ───────────────────────────────────── */
@media (max-width:480px) {
  /* All grids collapse to 1 col */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 1rem !important; }

  /* Flex rows with large gaps → column */
  [style*="display:flex;gap:3rem"],
  [style*="display:flex;gap:2rem"] {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  /* Keep flex-wrap:wrap rows as flex (they're already responsive) */
  [style*="flex-wrap:wrap"] { flex-direction: row !important; }

  /* Page hero */
  .page-hero { padding: 7rem 0 3rem !important; }
  .page-hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem) !important; }

  /* Overflow scroll rows stay horizontal */
  .scroll-x,
  [style*="overflow-x:auto"] { flex-direction: row !important; }

  /* Buttons that need to stretch */
  .mobile-full { width: 100% !important; justify-content: center !important; }
}

/* ── Featured article / case-study split image ───────────────── */
@media (max-width:768px) {
  /* Image inside featured split collapses to normal height */
  [style*="grid-template-columns:1fr 1fr"] > img,
  [style*="grid-template-columns:1fr 1fr"] > [style*="min-height:360px"],
  [style*="grid-template-columns:1fr 1fr"] > [style*="min-height:400px"] {
    min-height: 220px !important;
    max-height: 280px !important;
  }

  /* Featured-split inner padding */
  [style*="grid-template-columns:1fr 1fr"] > [style*="padding:3rem"] {
    padding: 1.75rem !important;
  }

  /* Services sticky sub-nav — horizontal scroll on mobile */
  [style*="overflow-x:auto"] {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px !important;
  }

  /* Case study stats bar on mobile */
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(3,1fr) !important;
  }

  /* Contact page stats row */
  [style*="grid-template-columns:repeat(4,1fr);gap:2rem"] {
    grid-template-columns: repeat(2,1fr) !important;
    gap: 1.25rem !important;
  }

  /* Ensure page-hero subtitle fits */
  .page-hero-subtitle { font-size: .9375rem !important; padding: 0 .5rem; }

  /* Section label stays inline */
  .section-label { font-size: .7rem !important; }
}

/* ── Tablet featured split ───────────────────────────────────── */
@media (max-width:1024px) {
  [style*="grid-template-columns:1fr 1fr"] > img[style*="min-height"] {
    min-height: 300px !important;
  }
  [style*="grid-template-columns:1fr 1fr"] > [style*="padding:3rem"] {
    padding: 2.25rem !important;
  }
}

/* ── About page specific ─────────────────────────────────────── */
.about-last-card { grid-column: span 2; }

/* "Why Choose" icon+text cards — keep flex row on all sizes */
[style*="display:flex;gap:1.25rem"] { flex-wrap: wrap; }
[style*="display:flex;gap:1.25rem"] > [style*="flex:1"] { min-width: 180px; }

@media (max-width:640px) {
  .about-last-card { grid-column: span 1 !important; }
  /* Mini stat row inside story section */
  [style*="grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top"] {
    grid-template-columns: repeat(3,1fr) !important;
    gap: .75rem !important;
    padding: 1.25rem !important;
  }
  /* Remove border separators on mini stats on very small screens */
  [style*="border-left:1px solid var(--border);border-right:1px solid var(--border)"] {
    border-left: none !important; border-right: none !important;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  }
}

/* ── Timeline (about page) ───────────────────────────────────── */
@media (max-width:768px) {
  /* Hide the center vertical line on mobile */
  [style*="position:absolute;left:50%;transform:translateX(-50%)"][style*="width:2px"] {
    display: none !important;
  }
  /* Timeline items: stack as column */
  [style*="display:flex;gap:3rem;align-items:center"] {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    border-left: 2px solid var(--border-accent);
    padding-left: 1.25rem;
    margin-bottom: 1.5rem !important;
  }
  /* Empty spacer divs in timeline — hide them */
  [style*="display:flex;gap:3rem;align-items:center"] > [style*="flex:1"]:empty {
    display: none !important;
  }
  /* Timeline dot — move to inline */
  [style*="display:flex;gap:3rem;align-items:center"] > [style*="border-radius:50%"][style*="background:var"] {
    position: static !important;
    margin-bottom: .25rem;
  }
  /* Timeline text — full width */
  [style*="display:flex;gap:3rem;align-items:center"] > [style*="flex:1;text-align:right"],
  [style*="display:flex;gap:3rem;align-items:center"] > [style*="flex:1"] {
    text-align: left !important;
    width: 100%;
  }
}
