/* ============================================
   ELITE APP DESIGN — Global Stylesheet
   Palette: Deep Navy #0A0E1A, Electric Blue #2D6BE4, 
   Vivid Cyan #00C6FF, Violet #7B2FBE, 
   White #FFFFFF, Slate #8892A4
   ============================================ */

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

:root {
  --navy:     #0A0E1A;
  --navy-mid: #111827;
  --navy-soft:#1A2235;
  --blue:     #2D6BE4;
  --cyan:     #00C6FF;
  --violet:   #7B2FBE;
  --white:    #FFFFFF;
  --slate:    #8892A4;
  --slate-light: #C4CBD8;
  --border:   rgba(255,255,255,0.08);

  --grad-main: linear-gradient(135deg, #2D6BE4 0%, #00C6FF 50%, #7B2FBE 100%);
  --grad-blue: linear-gradient(135deg, #2D6BE4, #00C6FF);
  --grad-text: linear-gradient(90deg, #00C6FF, #2D6BE4, #7B2FBE);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 40px rgba(45,107,228,0.3);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.display-xl { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; }
.display-lg { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.display-md { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.display-sm { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }

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

p { color: var(--slate-light); }
.text-slate { color: var(--slate); }
.text-white { color: var(--white); }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(45,107,228,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45,107,228,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(45,107,228,0.1);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--slate-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-card);
}
/* dropdown controlled by JS click — see bottom of each page */
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.nav-cta { margin-left: 12px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(45,107,228,0.15) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(123,47,190,0.12) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,107,228,0.15);
  border: 1px solid rgba(45,107,228,0.3);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title { margin-bottom: 24px; }
.hero-desc { font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label { font-size: 0.8rem; color: var(--slate); }

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 520px;
}

.phone-mockup {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 520px;
  background: var(--navy-soft);
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 30px;
  background: var(--navy);
  border-radius: 0 0 20px 20px;
  z-index: 1;
}

.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #1A2235 0%, #0D1220 100%);
  padding: 50px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
}
.phone-bar.accent { background: var(--grad-blue); width: 60%; }
.phone-bar.short { width: 40%; }
.phone-chart {
  height: 80px;
  background: rgba(45,107,228,0.1);
  border-radius: 12px;
  border: 1px solid rgba(45,107,228,0.2);
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}
.phone-chart::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(0deg, rgba(45,107,228,0.3), transparent);
}

.phone-float-card {
  position: absolute;
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}

.phone-float-card.left {
  left: 0; top: 30%;
  transform: rotate(-4deg);
}

.phone-float-card.top-right {
  right: 40px; top: 10%;
}

/* ---- Section Labels ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

/* ---- Cards ---- */
.card {
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(45,107,228,0.4);
  box-shadow: 0 8px 40px rgba(45,107,228,0.15);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(45,107,228,0.15);
  border: 1px solid rgba(45,107,228,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ---- Grid Layouts ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---- Section Divider ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.stars { color: #FFB547; font-size: 0.9rem; margin-bottom: 16px; }

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

/* ---- Tech Badges ---- */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate-light);
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, rgba(45,107,228,0.15) 0%, rgba(123,47,190,0.15) 100%);
  border: 1px solid rgba(45,107,228,0.2);
  border-radius: var(--radius-xl);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(45,107,228,0.2), transparent 70%);
}

/* ---- Footer ---- */
.footer {
  background: #070A12;
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

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

.footer-bottom p { font-size: 0.85rem; color: var(--slate); }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 160px 0 96px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(45,107,228,0.18) 0%, transparent 60%);
  text-align: center;
}

.page-hero-desc {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 1.1rem;
}

/* ---- Process Steps ---- */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.process-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}

.faq-answer {
  color: var(--slate-light);
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Pricing ---- */
.pricing-card {
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 60px rgba(45,107,228,0.2);
}

.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  margin: 16px 0 4px;
}

.pricing-list { list-style: none; margin: 24px 0; }
.pricing-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  color: var(--slate-light);
  border-bottom: 1px solid var(--border);
}
.pricing-list li::before { content: '✓'; color: var(--cyan); font-weight: 700; flex-shrink: 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-section { padding: 60px 40px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 360px; }
  .phone-mockup { width: 200px; height: 400px; right: 50%; transform: translate(50%, -50%); }
  .phone-float-card { display: none; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .cta-section { padding: 48px 24px; }

  .process-step { grid-template-columns: 1fr; gap: 16px; }
  .process-number { font-size: 2.5rem; }

  .display-xl { font-size: 2.4rem; }
  .display-lg { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   PATCH: Mobile Nav, Logo, Hamburger, FAQ
   ============================================ */

/* Logo wrapper — white pill so light text is visible on dark nav */
.nav-logo {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* Logo in footer / hero — white pill too */
.logo-on-dark {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
}
.logo-on-dark img {
  height: 36px;
  width: auto;
  display: block;
}

/* Hamburger open state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav open state */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(10,14,26,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 2px;
    z-index: 999;
  }
  .nav-links.mobile-open { display: flex !important; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }

  /* Show CTA inside mobile menu */
  .nav-cta {
    display: none;
    margin: 12px 0 0 0;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .nav-cta.mobile-open { display: inline-flex !important; }

  /* Dropdown in mobile: just show all links */
  .nav-dropdown-menu {
    display: flex !important;
    position: static;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
  }
  .nav-dropdown-menu a { font-size: 0.9rem; color: var(--slate); }
}

/* FAQ open state */
.faq-item.faq-open .faq-answer { display: block !important; }

/* Blog card styles */
.blog-card {
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}
.blog-card:hover {
  border-color: rgba(45,107,228,0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(45,107,228,0.15);
}
.blog-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.blog-category {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(45,107,228,0.85);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-body { padding: 28px; }
.blog-body h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-body p { font-size: 0.875rem; margin-bottom: 16px; }
.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--slate);
  font-family: var(--font-display);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}


/* ── Mega Menu ────────────────────────────────────────────────── */
.mega-menu {
  position: fixed !important;
  top: 72px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
  padding: 0 !important;
  min-width: unset !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}
.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: flex;
  gap: 0;
}
.mega-col {
  flex: 1;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.mega-col:last-child { border-right: none; }
.mega-col-head {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mega-col-head a { color: var(--cyan) !important; text-decoration: none; }
.mega-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 0 !important;
  font-size: 0.875rem !important;
  color: var(--slate-light) !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: none !important;
  transition: color 0.2s, padding-left 0.2s !important;
  font-family: var(--font-body) !important;
  text-decoration: none;
}
.mega-link:hover { color: var(--white) !important; padding-left: 4px !important; }
.mega-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}
.mega-all {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}
.mega-all:hover { opacity: 0.8; }

/* Industries mega grid */
.mega-industries-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 4px 32px !important;
}
.mega-industries .mega-link {
  padding: 8px 0 !important;
  font-size: 0.9rem !important;
}

/* Mobile mega menu */
@media (max-width: 768px) {
  .mega-menu {
    position: absolute !important;
    top: 100% !important;
    width: 100% !important;
  }
  .mega-inner { flex-direction: column; padding: 20px 16px; gap: 0; }
  .mega-col { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .mega-col:last-child { border-bottom: none; }
  .mega-industries-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ============================================
   ANIMATION SYSTEM
   Scroll-triggered reveals, hero effects,
   floating elements, gradient shifts,
   hover micro-interactions, counters
   ============================================ */

/* ── Scroll Reveal Base ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-scale { transform: scale(0.92); }
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.stagger-children > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.stagger-children.visible > *:nth-child(1) { opacity:1;transform:none;transition-delay:0s }
.stagger-children.visible > *:nth-child(2) { opacity:1;transform:none;transition-delay:0.1s }
.stagger-children.visible > *:nth-child(3) { opacity:1;transform:none;transition-delay:0.2s }
.stagger-children.visible > *:nth-child(4) { opacity:1;transform:none;transition-delay:0.3s }
.stagger-children.visible > *:nth-child(5) { opacity:1;transform:none;transition-delay:0.4s }
.stagger-children.visible > *:nth-child(6) { opacity:1;transform:none;transition-delay:0.5s }
.stagger-children.visible > *:nth-child(7) { opacity:1;transform:none;transition-delay:0.6s }
.stagger-children.visible > *:nth-child(8) { opacity:1;transform:none;transition-delay:0.7s }

/* ── Hero Entrance ───────────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity:0; transform:translateY(40px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

.hero-eyebrow  { animation: heroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.hero-title    { animation: heroFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.hero-desc     { animation: heroFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.hero-actions  { animation: heroFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.45s both; }
.hero-stats    { animation: heroFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
.hero-visual   { animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s both; }

/* ── Floating Phone Mockup ───────────────────────────────────── */
@keyframes float {
  0%,100% { transform: translateY(-50%) translateY(0px); }
  50%      { transform: translateY(-50%) translateY(-14px); }
}
.phone-mockup { animation: float 5s ease-in-out infinite; }

/* Float cards */
@keyframes floatCard1 {
  0%,100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-8px); }
}
@keyframes floatCard2 {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.phone-float-card.left      { animation: floatCard1 4s ease-in-out 0.5s infinite; }
.phone-float-card.top-right { animation: floatCard2 4.5s ease-in-out 1s infinite; }

/* ── Animated Gradient Background ───────────────────────────── */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-bg {
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

/* ── Glowing Text Gradient ───────────────────────────────────── */
@keyframes gradientText {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.text-gradient {
  background-size: 200% auto;
  animation: gradientText 4s linear infinite;
}

/* ── Section Label Slide-in ──────────────────────────────────── */
.section-label {
  transition: opacity 0.5s, transform 0.5s;
}

/* ── Card Hover Lift ─────────────────────────────────────────── */
.card,
.service-card,
.blog-card,
.portfolio-card,
.testimonial-card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.3s ease,
              box-shadow 0.3s ease !important;
  will-change: transform;
}
.card:hover           { transform: translateY(-6px) !important; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(45,107,228,0.2); }

/* ── Button Hover Pulse ──────────────────────────────────────── */
@keyframes btnPulse {
  0%   { box-shadow: 0 4px 20px rgba(45,107,228,0.4); }
  50%  { box-shadow: 0 4px 32px rgba(45,107,228,0.7), 0 0 0 6px rgba(45,107,228,0.1); }
  100% { box-shadow: 0 4px 20px rgba(45,107,228,0.4); }
}
.btn-primary:hover { animation: btnPulse 1.5s ease infinite; }

/* ── Stat Number Count-up Flash ─────────────────────────────── */
@keyframes statPop {
  0%   { transform: scale(0.7); opacity:0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity:1; }
}
.hero-stat-num.animated,
.stat-num.animated {
  animation: statPop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ── Typing Cursor on Hero Tagline ───────────────────────────── */
@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0; }
}
.typing-cursor::after {
  content: '|';
  color: var(--cyan);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* ── Orbit / Glow Ring on Hero ───────────────────────────────── */
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45,107,228,0.15);
  animation: orbitSpin 20s linear infinite;
  pointer-events: none;
}

/* ── Particle Dots (hero bg) ─────────────────────────────────── */
@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0); opacity:0.4; }
  50%  { opacity:0.8; }
  100% { transform: translateY(-120px) translateX(40px); opacity:0; }
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  animation: particleDrift linear infinite;
}

/* ── Logo Strip Scroll ───────────────────────────────────────── */
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-strip-track {
  display: flex;
  width: max-content;
  animation: logoScroll 20s linear infinite;
}
.logo-strip-track:hover { animation-play-state: paused; }
.logo-strip-overflow {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* ── Page Hero Entrance ──────────────────────────────────────── */
@keyframes pageHeroIn {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.page-hero .container > * {
  animation: pageHeroIn 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.page-hero .container > *:nth-child(1) { animation-delay: 0.05s; }
.page-hero .container > *:nth-child(2) { animation-delay: 0.15s; }
.page-hero .container > *:nth-child(3) { animation-delay: 0.25s; }
.page-hero .container > *:nth-child(4) { animation-delay: 0.35s; }
.page-hero .container > *:nth-child(5) { animation-delay: 0.45s; }

/* ── Nav Scroll Shrink ───────────────────────────────────────── */
.nav.scrolled {
  padding: 0 24px;
  background: rgba(10,14,26,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.nav.scrolled .nav-inner { height: 60px; transition: height 0.3s ease; }

/* ── Underline Link Hover ────────────────────────────────────── */
.nav-links a {
  position: relative;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: center;
}
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }

/* ── CTA Section Glow Pulse ──────────────────────────────────── */
@keyframes ctaGlow {
  0%,100% { box-shadow: 0 0 40px rgba(45,107,228,0.15), inset 0 0 40px rgba(45,107,228,0.05); }
  50%      { box-shadow: 0 0 80px rgba(45,107,228,0.3),  inset 0 0 60px rgba(45,107,228,0.1); }
}
.cta-section { animation: ctaGlow 4s ease-in-out infinite; }

/* ── Process Step Number ─────────────────────────────────────── */
.process-number {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.process-step:hover .process-number { transform: scale(1.15); }

/* ── FAQ Smooth Expand ───────────────────────────────────────── */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1),
              opacity 0.3s ease,
              padding 0.3s ease !important;
  display: block !important;
  padding: 0;
}
.faq-item.faq-open .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding: 12px 0 0 0;
}
.faq-question span {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  display: inline-block;
}
.faq-item.faq-open .faq-question span { transform: rotate(45deg); }

/* ── Mega Menu Slide Down ────────────────────────────────────── */
.nav-dropdown-menu {
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1) !important;
}
.nav-dropdown-menu[style*="display: block"],
.nav-dropdown-menu[style*="display:block"] {
  animation: megaSlideIn 0.25s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes megaSlideIn {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(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;
  }
}

/* ── Tech Stack Logo Marquee ─────────────────────────────────── */
.tech-marquee-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tech-marquee-overflow {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.tech-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.tech-marquee-track:hover { animation-play-state: paused; }
.logo-slide-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  border-right: 1px solid var(--border);
  height: 56px;
  flex-shrink: 0;
}
.logo-slide-item:last-child { border-right: none; }
.logo-slide-item:hover { opacity: 1; transform: scale(1.1); }
.logo-slide-item svg { height: 28px; width: auto; display: block; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .logo-slide-item { padding: 0 24px; }
  .tech-marquee-track { animation-duration: 26s; }
}

/* ============================================
   SVG ICON SYSTEM — replaces all emojis
   ============================================ */

/* ── Card Icons ──────────────────────────────────────────────── */
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(45,107,228,0.12);
  border: 1px solid rgba(45,107,228,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon::before {
  content: '';
  display: block;
  width: 22px; height: 22px;
  background: var(--cyan);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Mobile / iOS */
.card-icon-ios::before, .card-icon-android::before,
.card-icon-mobile::before, .card-icon-phone::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3C/svg%3E");
}
/* Cross-platform */
.card-icon-cross::before, .card-icon-refresh::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 014-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 01-4 4H3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 014-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 01-4 4H3'/%3E%3C/svg%3E");
}
/* Web / Globe */
.card-icon-web::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E");
}
/* Design / Palette */
.card-icon-design::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
}
/* Backend / Database */
.card-icon-backend::before, .card-icon-db::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E");
}
/* Cloud */
.card-icon-cloud::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z'/%3E%3C/svg%3E");
}
/* API / Code */
.card-icon-api::before, .card-icon-code::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
}
/* All remaining card icons — generic settings icon fallback */
.card-icon-research::before, .card-icon-wireframe::before,
.card-icon-proto::before, .card-icon-system::before,
.card-icon-test::before, .card-icon-target::before,
.card-icon-biz::before, .card-icon-shop::before,
.card-icon-wp::before, .card-icon-flutter::before,
.card-icon-devops::before, .card-icon-laptop::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.07 4.93a10 10 0 010 14.14M4.93 4.93a10 10 0 000 14.14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.07 4.93a10 10 0 010 14.14M4.93 4.93a10 10 0 000 14.14'/%3E%3C/svg%3E");
}

/* ── Industry Large Icons (page heroes) ─────────────────────── */
.ind-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  background: rgba(45,107,228,0.15);
  border: 1px solid rgba(45,107,228,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.ind-icon::before {
  content: '';
  display: block;
  width: 32px; height: 32px;
  background: var(--cyan);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E");
}

/* ── Stars (testimonials, ratings) ──────────────────────────── */
.stars {
  color: #F59E0B;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* ── Image placeholder for project visuals ───────────────────── */
.img-placeholder-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(45,107,228,0.12), rgba(123,47,190,0.08));
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.placeholder-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}

/* ── Real image support ──────────────────────────────────────── */
.site-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.image-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.image-card:hover img { transform: scale(1.04); }

/* ── Mega Menu Industry Nav Icons ────────────────────────────── */
.mega-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.mega-link:hover .nav-icon { opacity: 1; }
.nav-icon::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: var(--cyan);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
/* Healthcare - pulse/heartbeat */
.nav-icon-health::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E");
}
/* Fintech - credit card */
.nav-icon-fin::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}
/* Logistics - truck */
.nav-icon-log::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}
/* E-Commerce - shopping bag */
.nav-icon-eco::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
}
/* Real Estate - home */
.nav-icon-re::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}
/* Education - graduation cap */
.nav-icon-edu::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E");
}
/* Restaurant - coffee cup */
.nav-icon-food::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8h1a4 4 0 010 8h-1'/%3E%3Cpath d='M2 8h16v9a4 4 0 01-4 4H6a4 4 0 01-4-4V8z'/%3E%3Cline x1='6' y1='1' x2='6' y2='4'/%3E%3Cline x1='10' y1='1' x2='10' y2='4'/%3E%3Cline x1='14' y1='1' x2='14' y2='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8h1a4 4 0 010 8h-1'/%3E%3Cpath d='M2 8h16v9a4 4 0 01-4 4H6a4 4 0 01-4-4V8z'/%3E%3Cline x1='6' y1='1' x2='6' y2='4'/%3E%3Cline x1='10' y1='1' x2='10' y2='4'/%3E%3Cline x1='14' y1='1' x2='14' y2='4'/%3E%3C/svg%3E");
}
/* On-Demand - clock/zap */
.nav-icon-demand::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}
/* SaaS - trending up */
.nav-icon-saas::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'/%3E%3Cpolyline points='17 6 23 6 23 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'/%3E%3Cpolyline points='17 6 23 6 23 12'/%3E%3C/svg%3E");
}
/* Legal - shield */
.nav-icon-legal::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}
/* Fitness - activity */
.nav-icon-fit::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");
}
/* Government - building/columns */
.nav-icon-gov::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='22' x2='21' y2='22'/%3E%3Cline x1='6' y1='18' x2='6' y2='11'/%3E%3Cline x1='10' y1='18' x2='10' y2='11'/%3E%3Cline x1='14' y1='18' x2='14' y2='11'/%3E%3Cline x1='18' y1='18' x2='18' y2='11'/%3E%3Cpolygon points='12 2 20 7 4 7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='22' x2='21' y2='22'/%3E%3Cline x1='6' y1='18' x2='6' y2='11'/%3E%3Cline x1='10' y1='18' x2='10' y2='11'/%3E%3Cline x1='14' y1='18' x2='14' y2='11'/%3E%3Cline x1='18' y1='18' x2='18' y2='11'/%3E%3Cpolygon points='12 2 20 7 4 7'/%3E%3C/svg%3E");
}

/* ============================================================
   MOBILE RESPONSIVENESS — Full System
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
   ============================================================ */

/* ── Base resets ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }
table { width: 100%; overflow-x: auto; display: block; }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography scale ────────────────────────────────────── */
@media (max-width: 768px) {
  .display-xl { font-size: clamp(2rem, 8vw, 3.5rem) !important; }
  .display-lg { font-size: clamp(1.6rem, 6vw, 2.5rem) !important; }
  .display-md { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  .display-sm { font-size: clamp(1.1rem, 4vw, 1.5rem) !important; }
  .container  { padding: 0 16px; }
}
@media (max-width: 480px) {
  .display-xl { font-size: clamp(1.75rem, 7vw, 2.5rem) !important; }
  .display-lg { font-size: clamp(1.4rem, 6vw, 2rem) !important; }
}

/* ── Navigation ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--navy-mid);
    padding: 24px 20px;
    overflow-y: auto;
    z-index: 999;
    gap: 0;
    border-top: 1px solid var(--border);
  }
  .nav-links.mobile-open li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links.mobile-open li a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    color: var(--white);
  }
  .nav-cta.mobile-open {
    display: block;
    margin: 16px 20px 0;
    text-align: center;
  }
  .nav-hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .mega-menu { display: none !important; }
  .nav-dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    background: var(--navy-soft) !important;
    border: none !important;
    border-radius: 8px !important;
    margin: 8px 0 !important;
    padding: 12px !important;
  }
  .nav-dropdown > a { pointer-events: auto; }
}

/* ── Hero sections ───────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero { padding: 100px 0 48px !important; }
  .page-hero-desc { font-size: 1rem !important; }
  .hero-grid,
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .hero-visual { display: none; }
  .hero-stats  {
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center !important;
  }
  .hero-stat { text-align: center; }
}

/* ── Section padding ─────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 48px 0 !important; }
  section[style*="padding-bottom:96px"] { padding-bottom: 48px !important; }
}

/* ── Generic grid collapses ──────────────────────────────── */
/* 2-column → 1-column */
@media (max-width: 768px) {
  .grid-2,
  .contact-grid,
  .form-row,
  .footer-grid,
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1.5fr"],
  div[style*="grid-template-columns:1fr 1.5fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns:1.2fr 1fr"] {
    display: block !important;
  }
  .grid-2 > *,
  .contact-grid > *,
  .footer-grid > * {
    margin-bottom: 24px;
  }
}

/* 3-column → 1-column */
@media (max-width: 768px) {
  .grid-3,
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: repeat(3"],
  div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}

/* 4-column → 2-column on tablet, 1-column on mobile */
@media (max-width: 1024px) {
  .grid-4,
  .ind-grid,
  .loc-grid,
  .loc-svc-grid,
  div[style*="grid-template-columns: repeat(4"],
  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  .grid-4,
  .ind-grid,
  .loc-grid,
  div[style*="grid-template-columns: repeat(4"],
  div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Case study screens grid ─────────────────────────────── */
@media (max-width: 768px) {
  .screens-grid { grid-template-columns: 1fr !important; }
}

/* ── Portfolio grid ──────────────────────────────────────── */
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr !important; }
  .portfolio-item div[style*="grid-template-columns"] {
    display: block !important;
  }
  .portfolio-item div[style*="border-radius:var(--radius-xl) 0 0 var(--radius-xl)"] {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    height: 220px !important;
  }
}

/* ── Service detail cards ────────────────────────────────── */
@media (max-width: 768px) {
  .service-detail-card {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
    direction: ltr !important;
  }
  .service-detail-card.reverse { direction: ltr !important; }
  .service-detail-card .service-icon-large,
  .service-detail-card .ind-visual-large {
    height: 180px !important;
  }
}

/* ── Contact page ────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-card { padding: 24px 16px !important; }
  .form-row  { grid-template-columns: 1fr !important; }
  .budget-options { gap: 8px !important; }
  .trust-row  { flex-direction: column; gap: 12px; }
  .next-steps-card { padding: 24px 16px !important; }
}

/* ── Case study pages ────────────────────────────────────── */
@media (max-width: 1024px) {
  .results-grid  { grid-template-columns: repeat(2, 1fr) !important; }
  .project-meta  { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 768px) {
  .results-grid  { grid-template-columns: 1fr 1fr !important; }
  .project-meta  { grid-template-columns: 1fr !important; }
  .screens-grid  { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ── Location pages ──────────────────────────────────────── */
@media (max-width: 768px) {
  .loc-grid,
  .loc-svc-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}
@media (max-width: 480px) {
  .loc-grid,
  .loc-svc-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Process steps ───────────────────────────────────────── */
@media (max-width: 768px) {
  .process-step {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* ── Tech badges & chip rows ─────────────────────────────── */
@media (max-width: 768px) {
  .tech-row,
  .budget-options {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .tech-badge { font-size: 0.75rem !important; }
}

/* ── CTA section ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .cta-section { padding: 48px 24px !important; text-align: center; }
  .cta-section div[style*="display:flex"],
  .cta-section div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
  }
}

/* ── Footer ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer { padding: 48px 0 24px !important; }
}

/* ── Blog page ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-grid,
  .blog-featured {
    grid-template-columns: 1fr !important;
  }
}

/* ── Industry hub page ───────────────────────────────────── */
@media (max-width: 768px) {
  .ind-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .ind-grid { grid-template-columns: 1fr !important; }
}

/* ── Portfolio filter buttons ────────────────────────────── */
@media (max-width: 768px) {
  .portfolio-filters { gap: 8px !important; }
  .filter-btn { font-size: 0.78rem !important; padding: 6px 14px !important; }
}

/* ── Locations hub ───────────────────────────────────────── */
@media (max-width: 768px) {
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Stats row (hero) ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-stats,
  div[style*="display:flex;gap:32px;justify-content:center"],
  div[style*="display: flex; gap: 32px; justify-content: center"] {
    flex-wrap: wrap !important;
    gap: 20px !important;
  }
}

/* ── Testimonial cards ───────────────────────────────────── */
@media (max-width: 768px) {
  .testimonial-card { padding: 28px 20px !important; }
}

/* ── Image cards ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .image-card { max-height: 240px; }
}

/* ── Prevent horizontal overflow ────────────────────────── */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .tech-marquee-section { overflow: hidden; }
  div[style*="position:relative;overflow:hidden"],
  div[style*="position: relative; overflow: hidden"] {
    overflow: hidden !important;
  }
}

/* ── Button groups ───────────────────────────────────────── */
@media (max-width: 480px) {
  div[style*="display:flex;gap:16px"] .btn,
  div[style*="display: flex; gap: 16px"] .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── FAQ ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .faq-question { font-size: 0.9rem !important; padding: 16px 0 !important; }
}

/* ── Mega menu on mobile ─────────────────────────────────── */
@media (max-width: 900px) {
  .mega-menu,
  .nav-dropdown-menu { display: none !important; }
  .nav-links.mobile-open .nav-dropdown-menu {
    display: block !important;
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
  }
}

/* ── Next/prev step indicators on case studies ───────────── */
@media (max-width: 768px) {
  .meta-item  { padding: 16px !important; }
  .next-step  { gap: 12px !important; }
}

/* ── Ensure buttons don't overflow ───────────────────────── */
@media (max-width: 480px) {
  .btn {
    font-size: 0.875rem !important;
    padding: 12px 20px !important;
    white-space: normal !important;
  }
  .btn-primary, .btn-outline {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ── Page hero action buttons ────────────────────────────── */
@media (max-width: 600px) {
  div[style*="display:flex;gap:16px;justify-content:center"],
  div[style*="display: flex; gap: 16px; justify-content: center"] {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 16px;
  }
}

/* ── Helper classes for inline-styled elements ────────────── */
@media (max-width: 768px) {
  .mob-stack {
    display: block !important;
  }
  .mob-stack > * {
    margin-bottom: 32px;
  }
  .mob-stack > *:last-child {
    margin-bottom: 0;
  }
  .mob-stack-sm {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .mob-stats-row {
    gap: 20px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .mob-stats-row > * {
    min-width: 100px;
  }
  .mob-btn-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 0 !important;
  }
  .mob-btn-row .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .mob-results {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}
@media (max-width: 480px) {
  .mob-results {
    grid-template-columns: 1fr !important;
  }
}

/* ── Footer column dividers ──────────────────────────────── */
.footer-col-divider {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}
@media (max-width: 768px) {
  .footer-col-divider {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* ── Portfolio filter buttons ────────────────────────────── */
.filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.filter-btn .nav-icon {
  flex-shrink: 0;
  opacity: 0.8;
}
