/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0062cc;
  --primary-dark: #004fa3;
  --primary-light: #1a2a4a;
  --bg: #0d0d1f;
  --surface: #181830;
  --surface-2: #222240;
  --text: #e8e8f4;
  --text-muted: #9090b8;
  --border: rgba(255,255,255,0.08);
  --header-bg: rgba(13,13,31,0.95);
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.6);
  --max-w: 1200px;
  --transition: 0.25s ease;
  --focus-ring: #66a3ff; /* bright blue, high-contrast against the dark theme */
  --accent: #66a3ff; /* on-brand bright blue for interactive hover/active accents */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.bg-surface { background: var(--surface); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,98,204,0.35); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f4ff; color: var(--primary-dark); transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.logo {
  flex-shrink: 0;
  padding-right: 32px;
  margin-right: 8px;
  border-right: 1px solid var(--border);
  height: 50px;
  display: flex;
  align-items: center;
}
.logo img { height: 32px; width: auto; }


nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
nav.main-nav a {
  padding: 8px 13px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
nav.main-nav a:hover { background: var(--surface); color: var(--accent); text-decoration: none; }
nav.main-nav a.active { color: var(--accent); background: var(--primary-light); }

/* ===== NAV DROPDOWN ===== */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { background: var(--surface); color: var(--accent); }
.nav-arrow { font-size: 0.7rem; transition: transform var(--transition); display: inline-block; line-height: 1; }
.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-dropdown-menu a img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; display: block; }
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--accent); text-decoration: none; }
.nav-dropdown-menu a.active { color: var(--accent); background: var(--primary-light); }
.mobile-nav a:has(img) { display: flex; align-items: center; gap: 10px; }
.mobile-nav a img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  /* >=44x44px tap target without enlarging the 22px bar icon */
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  /* >=44px tall tap target for comfortable touch use */
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  touch-action: manipulation;
  transition: background var(--transition);
}
.mobile-nav a:hover { background: var(--surface); text-decoration: none; }
.mobile-nav .btn { margin-top: 8px; justify-content: center; }
a.mobile-nav-label { text-decoration: none; }
a.mobile-nav-label:hover { background: none !important; color: var(--primary); }
.mobile-nav-label {
  /* section header, not a tap target: keep compact (override .mobile-nav a min-height) */
  min-height: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px 4px;
}
.mobile-nav-label:first-child { padding-top: 4px; }

/* ===== HERO ===== */
.hero {
  padding: 100px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--primary); }
.hero > .container > p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* Logo scroll */
.logo-scroll-wrap {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.logo-scroll-wrap::before,
.logo-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.logo-scroll-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.logo-scroll-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.logo-scroll-track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: scroll-logos 24s linear infinite;
}
.logo-scroll-track img { height: 42px; width: auto; opacity: 0.7; transition: opacity var(--transition); filter: grayscale(0.15); }
.logo-scroll-track img:hover { opacity: 1; filter: none; }
@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* ===== SECTION BASE ===== */
section { padding: 88px 0; }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-intro { margin: 0 auto; }

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .service-card { background: var(--surface); }
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--primary); }
.service-card img { height: 38px; width: 38px; object-fit: contain; margin-bottom: 18px; }
.service-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; flex: 1; }
.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: gap var(--transition);
}
.service-card .learn-more:hover { gap: 10px; text-decoration: none; }

/* ===== FEATURE CARDS ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
[data-theme="dark"] .feature-card { background: var(--surface-2); }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); }

/* ERP vendor logo tiles — light tile so coloured brand logos read on the dark theme */
.erp-logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  max-width: 100%;
  padding: 5px 10px;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
/* Every logo renders at the SAME height; tile hugs the logo with minimal padding. */
.erp-logo-tile img {
  height: 34px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* ===== AI LOGO GRID ===== */
.ai-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ai-logo-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}
[data-theme="dark"] .ai-logo-card { background: var(--surface-2); }
.ai-logo-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ai-logo-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}
.ai-logo-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.ai-logo-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) { .ai-logo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ai-logo-grid { grid-template-columns: 1fr; } }

/* ===== TWO COLUMN ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.two-col.reverse .two-col-img { order: -1; }
.two-col-img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.two-col-content .section-title { margin-bottom: 16px; }
.two-col-content > p { color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.two-col-content ul { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 28px; }
.two-col-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.two-col-content ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== CLIENTS ===== */
.clients-section { padding: 56px 0; }
.clients-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.clients-logos img { height: 36px; width: auto; opacity: 0.5; filter: grayscale(1); transition: all var(--transition); }
.clients-logos img:hover { opacity: 1; filter: none; }
.client-text-logo { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); opacity: 0.5; letter-spacing: 0.02em; transition: all var(--transition); white-space: nowrap; }
.client-text-logo:hover { opacity: 1; color: var(--text); }

/* ===== PROCESS STEPS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process-step {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
[data-theme="dark"] .process-step { background: var(--surface-2); }
.process-step:hover { box-shadow: var(--shadow); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.process-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ===== STATS ===== */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat { text-align: center; padding: 32px 24px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.stat-value { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testimonial {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}
[data-theme="dark"] .testimonial { background: var(--surface-2); }
.testimonial:hover { box-shadow: var(--shadow); }
.testimonial-quote { font-size: 1rem; line-height: 1.75; color: var(--text); font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.author-title { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CTA BLOCK ===== */
.cta-block {
  background: linear-gradient(135deg, var(--primary) 0%, #0052aa 100%);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  color: #fff;
}
.cta-block h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-block p { opacity: 0.88; font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 72px 0 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero-logo { height: 64px; width: 64px; object-fit: contain; margin-bottom: 24px; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.page-hero h1 span { color: var(--primary); }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; line-height: 1.75; margin-bottom: 28px; }
.page-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero-tag {
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== BENEFIT ROW ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
[data-theme="dark"] .benefit { background: var(--surface); }
.benefit:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.benefit-icon { font-size: 1.8rem; margin-bottom: 14px; }
.benefit-icon svg { width: 28px; height: 28px; stroke: var(--primary); }
.benefit h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.benefit p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* ===== CONTACT FORM ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; line-height: 1.75; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-detail:last-of-type { border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.contact-detail a { color: var(--primary); font-weight: 500; }
.contact-detail-icon { font-size: 1.2rem; flex-shrink: 0; }
.contact-img { border-radius: var(--radius-lg); width: 100%; margin-top: 32px; box-shadow: var(--shadow); }

.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}
[data-theme="dark"] .form-card { background: var(--surface-2); }
.form-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.form-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 7px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,98,204,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}
.form-alert.success { background: #d1fae5; color: #065f46; display: block; }
.form-alert.error { background: #fee2e2; color: #991b1b; display: block; }

/* Inline contact CTA block (on service pages) */
.inline-contact { background: var(--surface); padding: 88px 0; }
[data-theme="dark"] .inline-contact { background: var(--surface-2); }
.inline-contact .form-card { max-width: 680px; margin: 0 auto; text-align: center; }
.inline-contact .form-card .btn { display: inline-block; }

/* ===== FOOTER ===== */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand img { height: 28px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom a { color: var(--text-muted); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--primary); text-decoration: none; }

/* ===== TECH STACK ===== */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.tech-tag {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ===== CASE STUDY CARDS ===== */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.case-study-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.case-study-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.case-study-sector {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}
.case-study-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.case-study-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-study-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===== INDUSTRIES GRID ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.industry-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.industry-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.industry-icon svg { width: 32px; height: 32px; stroke: var(--primary); }
.industry-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.industry-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .two-col-img { order: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .case-studies-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn { display: none; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-block { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* Ensure CTA buttons keep a >=44px tap height on mobile */
  .btn { min-height: 44px; touch-action: manipulation; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .clients-logos { gap: 28px; }
}

/* ===== FOCUS STATES (accessibility) ===== */
/* Visible keyboard focus ring on the dark theme. Uses :focus-visible so the
   ring only appears for keyboard navigation, not on mouse click/tap. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Interactive elements: ensure the ring is present and clearly offset. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-dropdown-toggle:focus-visible,
.hamburger:focus-visible,
#hamburger:focus-visible,
nav.main-nav a:focus-visible,
.mobile-nav a:focus-visible,
.footer-social a:focus-visible,
.footer-col ul a:focus-visible,
.footer-bottom a:focus-visible,
.service-card:focus-visible,
.feature-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Card links: round the ring to match the card's own radius. */
.service-card:focus-visible,
.feature-card:focus-visible {
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

/* Form controls: pair the ring with a soft glow so it reads clearly on the
   dark input backgrounds. Keep a visible outline (never outline:none alone). */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102,163,255,0.25);
}

/* Buttons sitting on a coloured/light background need a white ring for
   sufficient contrast against their fill. */
.btn-primary:focus-visible,
.btn-white:focus-visible {
  outline-color: #fff;
}

/* ==========================================================================
   Reduced motion (prefers-reduced-motion: reduce)
   Respect the user's OS-level "reduce motion" setting. This is purely
   additive: final states (e.g. hover colours) still apply, but decorative
   motion is removed. Focus-visible outlines are intentionally left intact.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  /* Stop the infinite logo marquee — the worst offender for motion
     sensitivity — so the logos sit static instead of scrolling endlessly. */
  .logo-scroll-track {
    animation: none;
  }

  /* Turn off smooth scrolling. */
  html {
    scroll-behavior: auto;
  }

  /* Well-established reduced-motion reset: neutralise decorative animation
     and transition motion broadly while preserving end states. */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
