/* ============================================================
   Consilient Labs — Modern Website
   Design language: AI-first / SaaS premium
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --brand-50:  #eef4ff;
  --brand-100: #dbe6ff;
  --brand-200: #b8ccff;
  --brand-300: #8aaaff;
  --brand-400: #5a82ff;
  --brand-500: #3b66f5;
  --brand-600: #2547d6;
  --brand-700: #1d39ad;
  --brand-800: #1b2f87;
  --brand-900: #1a2a6c;

  --indigo-500: #6366f1;
  --violet-500: #8b5cf6;
  --cyan-400:   #22d3ee;

  /* Neutrals */
  --ink-950: #07080d;
  --ink-900: #0e1116;
  --ink-800: #15181f;
  --ink-700: #1f232c;
  --ink-600: #2d323d;
  --ink-500: #4a505c;
  --ink-400: #6b7280;
  --ink-300: #9ca3af;
  --ink-200: #d1d5db;
  --ink-100: #e7e9ee;
  --ink-50:  #f3f5f8;

  --bg:        #ffffff;
  --bg-soft:   #f7f8fb;
  --bg-soft-2: #fafbfc;
  --surface:   #ffffff;

  --text:      var(--ink-900);
  --text-muted: var(--ink-500);
  --text-faint: var(--ink-400);

  --border:        rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 40px 80px -20px rgba(15, 23, 42, 0.25), 0 12px 24px -12px rgba(15, 23, 42, 0.10);

  --ring: 0 0 0 4px rgba(59, 102, 245, 0.15);

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --grad-brand:   linear-gradient(135deg, var(--brand-500) 0%, var(--indigo-500) 55%, var(--violet-500) 100%);
  --grad-brand-2: linear-gradient(135deg, #4f78ff 0%, #6366f1 50%, #a855f7 100%);
  --grad-soft:    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms var(--ease);
  --t: 280ms var(--ease);
  --t-slow: 480ms var(--ease);

  --container: 1200px;
  --container-sm: 900px;

  --header-h: 72px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brand-500); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0; }

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

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section--soft   { background: var(--bg-soft); }
.section--soft-2 { background: var(--bg-soft-2); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h2 { margin-bottom: 16px; }

.section-head p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.section-head p + p { margin-top: 14px; }

.section-head .lead {
  color: var(--text);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* Eyebrow / pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(59, 102, 245, 0.08);
  color: var(--brand-700);
  border: 1px solid rgba(59, 102, 245, 0.18);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.eyebrow--dark {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(59, 102, 245, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(59, 102, 245, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
}
.btn--primary:hover::after { transform: translateX(100%); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--ink-50);
  border-color: var(--ink-200);
  transform: translateY(-1px);
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  transform: translateY(-1px);
}

.btn--lg { padding: 16px 26px; font-size: 1rem; }

.btn .bi { font-size: 1.05em; }

.btn-arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- 6. Header / Navigation ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}

#header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}

#header .navbar {
  height: 100%;
  padding: 0;
}

#header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 16px;
}

#header .logo            { grid-column: 1; justify-self: start; }
#header .navbar-collapse { grid-column: 2; justify-self: center; }
#header .navbar-toggler  { grid-column: 3; justify-self: end; }

#header .logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: opacity var(--t-fast);
}

#header .logo:hover { opacity: 0.7; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-500) !important;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  text-decoration: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text) !important;
  background: var(--ink-50);
}

/* Bootstrap toggler reset */
.navbar-toggler {
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.navbar-toggler:focus { box-shadow: var(--ring); outline: none; }
.navbar-toggler:hover { background: var(--ink-50); }

.navbar-toggler-icon {
  width: 18px;
  height: 12px;
  position: relative;
  background-image: none;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.navbar-toggler-icon::before { top: 0; box-shadow: 0 5px 0 var(--text); }
.navbar-toggler-icon::after  { bottom: 0; }

/* ---------- 7. Hero ---------- */
#hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: radial-gradient(120% 80% at 50% 0%, #1a1f3a 0%, #0a0d18 60%, #06080f 100%);
  color: #fff;
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
}

/* Subtle grid background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 75%);
  z-index: -1;
}

/* Subtle glow */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 55% at 22% 30%, rgba(99, 102, 241, 0.30) 0%, transparent 60%),
    radial-gradient(38% 50% at 82% 70%, rgba(99, 102, 241, 0.18) 0%, transparent 60%);
  z-index: -1;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy .eyebrow--dark { margin-bottom: 24px; }

.hero-copy h1 {
  color: #fff;
  margin-bottom: 22px;
}

.hero-copy h1 .accent {
  color: #b8c8ff;
}

.hero-copy h2 {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 36px;
  max-width: 560px;
  letter-spacing: 0;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* allow the image to bleed outside the column */
  margin-right: clamp(-80px, -4vw, 0px);
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 95%;
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(99, 102, 241, 0.32), transparent 70%);
  filter: blur(48px);
  z-index: -1;
}

.hero-visual img {
  width: 100%;
  max-width: 760px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

/* ---------- 8. About ---------- */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), transparent 40%);
  pointer-events: none;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text .eyebrow { margin-bottom: 16px; }
.about-text h3 { margin-bottom: 18px; }
.about-text p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.45;
}

.about-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(59, 102, 245, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232547d6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- 9. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-item {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-item .icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 102, 245, 0.08);
  margin-bottom: 22px;
}

.service-item .icon-tile i {
  font-size: 1.25rem;
  color: var(--brand-600);
}

.service-item h4 {
  margin: 0 0 10px;
  font-size: 1.125rem;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- 10. Omnicontext ---------- */
#omni { background: var(--bg-soft); position: relative; }

#omni::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.omni-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.omni-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  width: 100%;
  min-height: 0;
}

.omni-visual::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.10), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.browser-frame {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform var(--t);
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#omni .browser-frame {
  /* Altura = columna de texto (.omni-text) vía --omni-frame-max-h en desktop */
  max-height: var(--omni-frame-max-h, min(560px, 85vh));
}

.browser-frame:hover { transform: translateY(-4px); }

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fafbfc, #f3f4f6);
  border-bottom: 1px solid var(--border);
}

.browser-frame__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e5e7eb;
}
.browser-frame__dot:nth-child(1) { background: #ff5f57; }
.browser-frame__dot:nth-child(2) { background: #febc2e; }
.browser-frame__dot:nth-child(3) { background: #28c840; }

.browser-frame__url {
  margin-left: 10px;
  flex: 1;
  height: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
}

.browser-frame img {
  width: 100%;
  flex: 1 1 auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  min-height: 0;
}

.omni-text .eyebrow { margin-bottom: 16px; }
.omni-text h3 { margin-bottom: 18px; }
.omni-text p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.feature-list li:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 102, 245, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand-600);
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.omni-text .hero-buttons { margin-top: 28px; }

/* ---------- 11. Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-member {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  text-align: center;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.25);
}

.team-member__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-50), #ffffff);
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.team-member:hover .team-member__photo img { transform: scale(1.05); }

.team-member__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 8, 13, 0.45));
  opacity: 0;
  transition: opacity var(--t);
}

.team-member:hover .team-member__photo::after { opacity: 1; }

.team-member .member-info {
  padding: 18px 16px;
}

.team-member h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- 12. Global presence ---------- */
#global-presence {
  background: var(--bg);
}

.global-presence {
  position: relative;
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
}

.global-presence h4 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.global-presence p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.global-map {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  filter: saturate(0.9) contrast(1.02);
  transition: transform var(--t), filter var(--t);
}

.global-map:hover {
  transform: scale(1.02);
  filter: saturate(1) contrast(1.05);
}

/* ---------- 13. Contact ---------- */
#contact { background: var(--bg-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-info h3 {
  font-size: 1.375rem;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.info-item:hover {
  border-color: rgba(59, 102, 245, 0.3);
  transform: translateY(-1px);
}

.info-item:last-child { margin-bottom: 0; }

.info-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 102, 245, 0.08);
  color: var(--brand-600);
  font-size: 1.05rem;
}

.info-item h4 {
  font-size: 0.95rem;
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 600;
}

.info-item p,
.info-item a {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-item a {
  color: var(--brand-600);
  font-weight: 500;
  transition: color var(--t-fast);
}

.info-item a:hover { color: var(--brand-700); }

.contact-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}

.contact-cta > * { position: relative; z-index: 1; }

.contact-cta h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-cta p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ---------- 14. Footer ---------- */
#footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 32px;
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-info h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-info p {
  max-width: 460px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  opacity: 0.9;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-links p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--t-fast);
  margin: 0 0 10px;
}

.footer-links ul li a:hover { color: #fff; }

.footer-links p strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

.footer-bottom {
  padding-top: 28px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p { margin: 0; }

/* ---------- 15. Animations / Utilities ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger when child of grid container */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-animate-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
[data-animate-stagger].is-visible > *:nth-child(1)  { transition-delay:  20ms; }
[data-animate-stagger].is-visible > *:nth-child(2)  { transition-delay:  60ms; }
[data-animate-stagger].is-visible > *:nth-child(3)  { transition-delay: 100ms; }
[data-animate-stagger].is-visible > *:nth-child(4)  { transition-delay: 140ms; }
[data-animate-stagger].is-visible > *:nth-child(5)  { transition-delay: 180ms; }
[data-animate-stagger].is-visible > *:nth-child(6)  { transition-delay: 220ms; }
[data-animate-stagger].is-visible > *:nth-child(7)  { transition-delay: 260ms; }
[data-animate-stagger].is-visible > *:nth-child(8)  { transition-delay: 300ms; }
[data-animate-stagger].is-visible > *:nth-child(9)  { transition-delay:  60ms; }
[data-animate-stagger].is-visible > *:nth-child(10) { transition-delay: 100ms; }
[data-animate-stagger].is-visible > *:nth-child(n+11) { transition-delay: 140ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-animate], [data-animate-stagger] > * { opacity: 1 !important; transform: none !important; }
  #hero img, #hero::after { animation: none !important; }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid,
  #about .about-grid,
  .omni-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { display: none; }

  /* When stacked, show the omni screenshot at natural ratio (no cropping) */
  .omni-visual { min-height: 0; }
  #omni .browser-frame { max-height: none; }
  .browser-frame img { flex: none; object-fit: contain; min-height: auto; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .team-grid { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-info { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .navbar-toggler { display: inline-flex; }

  /* Bootstrap collapse menu styling */
  #header .navbar-collapse {
    grid-column: 1 / -1;
    justify-self: stretch;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    padding: 12px;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    height: auto;
  }

  .about-features { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; gap: 14px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  #hero {
    min-height: auto;
    padding: calc(var(--header-h) + 56px) 0 72px;
  }

  .hero-buttons .btn { flex: 1 1 100%; }

  .global-presence { padding: 28px 20px; }

  /* Make team photos a bit smaller on mobile */
  .team-member__photo { aspect-ratio: 1 / 1; }
}

@media (max-width: 480px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: 64px 0; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-copy h2 { font-size: 1rem; }
  .hero-buttons { gap: 10px; }
  .btn { padding: 12px 18px; font-size: 0.9rem; }
  .info-item { padding: 14px; }

  .browser-frame__url { display: none; }
}
