/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Full-width background, no side padding here */
  padding: var(--section-pad-v) 0;
  background-color: #f5f6f8;
  /* Override the global section max-width/margin so the bg bleeds edge-to-edge */
  max-width: none;
  margin: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,92,170,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,92,170,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  /* Match the page's max-width container, centred, with matching side padding */
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f2147;
  background: #dce3ef;
  border: 1px solid rgba(42,92,170,0.25);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.75rem;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 700;
  color: #0f2147;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: #4a5e78;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* "Explore Services" — solid dark button matching credibility strip */
.hero .btn-ghost {
  background: #1a2a4a;
  border-color: #1a2a4a;
  color: #e8edf5;
}

.hero .btn-ghost:hover {
  background: #243660;
  border-color: #243660;
  color: #ffffff;
}

/* ─── Credibility Strip ────────────────────────────────── */
.credibility {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem var(--section-pad-h);
  background: #1a2a4a;
}

.credibility__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  flex-wrap: wrap;
}

.credibility__item {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 0.5rem 1.5rem;
  border-right: 1px solid rgba(106,140,223,0.3);
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.credibility__item:first-child { border-left: 1px solid rgba(106,140,223,0.3); }

@media (max-width: 767px) {
  .credibility__inner { flex-direction: column; }
  .credibility__item {
    border-right: none;
    border-bottom: 1px solid rgba(106,140,223,0.3);
    width: 100%;
    text-align: left;
    white-space: normal;
    padding: 0.75rem 0;
  }
  .credibility__item:first-child { border-left: none; border-top: 1px solid rgba(106,140,223,0.3); }
}

/* ─── Why ION8 ─────────────────────────────────────────── */
.why {
  padding: var(--section-pad-v) var(--section-pad-h);
}

.why__header {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.why__header h2 {
  margin-bottom: 0.75rem;
}

.why__header p {
  max-width: 560px;
  font-size: var(--text-lg);
  font-weight: 300;
}

.why__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-card {
  padding: var(--card-pad);
  border-right: 1px solid var(--border);
  background: var(--navy-900);
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  background: var(--navy-800);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card:last-child { border-right: none; }

.stat-card__num {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 400;
}

@media (max-width: 1024px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(1),
  .stat-card:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 767px) {
  .why__grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-card:last-child { border-bottom: none; }
}

/* ─── Services Teaser ──────────────────────────────────── */
.services-teaser {
  padding: var(--section-pad-v) var(--section-pad-h);
  background: #071530;
}

.services-teaser__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-teaser__header {
  margin-bottom: 3rem;
}

.services-teaser__header h2 {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  padding: var(--card-pad);
  background: #08142e;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  background: #0d1e3d;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-child(4),
.service-card:nth-child(5),
.service-card:nth-child(6) { border-bottom: none; }

.service-card__icon {
  font-size: 1.4rem;
  color: var(--blue-300);
  line-height: 1;
}

.service-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.service-card__link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue-300);
  text-transform: uppercase;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.service-card__link:hover {
  color: var(--blue-200);
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .service-card:nth-child(2n) { border-right: none; }
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .service-card:nth-child(6) { border-bottom: 1px solid var(--border); }
  .service-card:nth-child(5),
  .service-card:nth-child(6) { border-bottom: none; }
}

@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; }
  .service-card:last-child { border-bottom: none; }
  .service-card:not(:last-child) { border-bottom: 1px solid var(--border); }
}

/* ─── Partners Strip ───────────────────────────────────── */
.partners {
  padding: 3.5rem var(--section-pad-h);
  background: var(--navy-950);
  border-top: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
  text-align: center;
  max-width: none;
  margin: 0;
}

.partners__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.partners__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.partners__list {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.partners__item {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.partners__item + .partners__item::before {
  content: '·';
  font-size: 1.4rem;
  color: var(--text-muted);
  margin: 0 1.25rem;
  font-weight: 400;
}

.partners__item:hover {
  color: var(--blue-200);
}

/* Explicit vertical divider before SmartVista / BPC */
.partners__item--divider {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  background: rgba(106,140,223,0.3);
  margin: 0 1.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* No middot before the divider span itself */
.partners__item--divider::before { display: none !important; }

.partners__item--pending {
  color: var(--text-muted);
  cursor: default;
  opacity: 0.45;
  position: relative;
}

/* Tooltip above — CSS only, no JS */
.partners__item--pending::after {
  content: 'Coming soon';
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-800);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.partners__item--pending:hover {
  opacity: 0.65;
}

.partners__item--pending:hover::after {
  opacity: 1;
}

@media (max-width: 767px) {
  .partners { text-align: left; }
  .partners__list { justify-content: flex-start; flex-direction: column; gap: 1rem; }
  .partners__item + .partners__item::before { display: none; }
}

/* CTA section styles live in global.css */
