/**
 * DNS Intelligence Group — refined homepage (applies to #page-home only).
 * Keeps the DNS identity: light surfaces, logo blue #1E40FF, navy #0B1B66 text, gold #F4B400 accents.
 */
#page-home {
  --hp-blue: #1e40ff;
  --hp-blue-mid: #1432cc;
  --hp-navy: #0b1b66;
  --hp-gold: #f4b400;
  --hp-ink: #0f172a;
  --hp-muted: #5b6475;
  --hp-line: #e3e8f2;
  --hp-soft: #f7f9fc;
  --hp-tint: #eef2ff;
}

/* ---------- Hero (light, DNS identity) ---------- */
#page-home .hero {
  padding-top: 132px;
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(55% 70% at 12% 20%, rgba(30, 64, 255, 0.10), transparent 70%),
    radial-gradient(40% 60% at 90% 90%, rgba(244, 180, 0, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--hp-soft) 100%);
}
#page-home .hero .hero-bg-orb { display: none; }
#page-home .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 27, 102, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 27, 102, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 80% at 50% 30%, #000 0%, transparent 85%);
  pointer-events: none;
}
#page-home .hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
}
#page-home .hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(30, 64, 255, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--hp-navy);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(11, 27, 102, 0.06);
}
#page-home .hp-eyebrow svg { width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
#page-home .hero-h1 {
  margin-bottom: 20px;
  color: var(--hp-navy);
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.22;
  letter-spacing: -0.5px;
}
#page-home .hero-h1 .accent { color: var(--hp-blue); }
#page-home .hp-lead {
  max-width: 46ch;
  margin: 0 0 32px;
  color: var(--hp-muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.9;
}
#page-home .hero-btns .btn {
  height: 54px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}
#page-home .hero-btns .btn-primary {
  background: var(--hp-blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(30, 64, 255, 0.28);
}
#page-home .hero-btns .btn-primary:hover { background: var(--hp-blue-mid); }
#page-home .hero-btns .btn-secondary {
  background: #fff;
  color: var(--hp-navy);
  border: 1px solid var(--hp-line);
}
#page-home .hero-btns .btn-secondary:hover { border-color: var(--hp-blue); color: var(--hp-blue); }

#page-home .hp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 36px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--hp-line);
  list-style: none;
}
#page-home .hp-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hp-ink);
  font-size: 14px;
  font-weight: 700;
}
#page-home .hp-trust li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hp-gold);
  box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.18);
}

#page-home .hero-visual-inner { max-width: 600px; }
#page-home .hero-building-img {
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(11, 27, 102, 0.18);
  aspect-ratio: 3 / 2;
}
#page-home .hp-hq-tag {
  position: absolute;
  inset-inline-end: -20px;
  bottom: -36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  background: #fff;
  color: var(--hp-ink);
  box-shadow: 0 18px 40px rgba(11, 27, 102, 0.16);
}
#page-home .hp-hq-tag b { display: block; font-size: 14px; color: var(--hp-navy); }
#page-home .hp-hq-tag span { display: block; color: var(--hp-muted); font-size: 12.5px; direction: ltr; text-align: start; }
#page-home .hp-hq-tag svg { width: 30px; height: 21px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }

/* Partners strip hidden until real client logos are provided. */
#page-home .clients-bar { display: none; }

/* ---------- Stats ---------- */
#page-home .stats-section {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #fff;
}
#page-home .stats-section::before { display: none; }
#page-home .stats-top h2 { color: var(--hp-navy); font-size: clamp(24px, 2.6vw, 34px); }
#page-home .stats-grid {
  gap: 0;
  border: 1px solid var(--hp-line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 27, 102, 0.06);
}
#page-home .stat-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 32px 24px;
  border-inline-start: 1px solid var(--hp-line);
}
#page-home .stat-card:first-child { border-inline-start: 0; }
#page-home .stat-card:hover { transform: none; box-shadow: none; }
#page-home .stat-card .sn { color: var(--hp-blue); font-size: clamp(34px, 3.6vw, 48px); }
#page-home .stat-card .sn em { color: var(--hp-gold); }
#page-home .stat-card .sl { color: var(--hp-muted); }

/* ---------- Section headers ---------- */
#page-home .sec-header h2 { color: var(--hp-navy); font-size: clamp(26px, 3vw, 40px); }

/* ---------- Services ---------- */
#page-home .svc-grid { counter-reset: svc; gap: 18px; }
#page-home .svc-card {
  counter-increment: svc;
  padding: 30px 26px;
  border: 1px solid var(--hp-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}
#page-home .svc-card::before {
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  inset-inline-end: 24px;
  top: 22px;
  color: #c3cadf;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
#page-home .svc-card:hover {
  border-color: rgba(30, 64, 255, 0.3);
  box-shadow: 0 20px 44px rgba(11, 27, 102, 0.08);
  transform: translateY(-4px);
}

/* ---------- Headquarters + map ---------- */
#page-home .hp-hq {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}
#page-home .hp-hq-card {
  position: relative;
  overflow: hidden;
  padding: 34px 30px 30px;
  border: 1px solid var(--hp-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 27, 102, 0.06);
}
#page-home .hp-hq-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--hp-blue), var(--hp-navy));
}
#page-home .hp-hq-card h3 { margin: 0 0 8px; font-size: 24px; color: var(--hp-navy); }
#page-home .hp-hq-card > p { margin: 0 0 24px; color: var(--hp-muted); line-height: 1.8; }
#page-home .hp-hq-card dl { margin: 0; display: grid; gap: 0; }
#page-home .hp-hq-card dl > div { padding: 14px 0; border-top: 1px solid var(--hp-line); }
#page-home .hp-hq-card dt { color: var(--hp-muted); font-size: 13px; font-weight: 700; }
#page-home .hp-hq-card dd { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: var(--hp-ink); }
#page-home .hp-hq-card dd.ltr { direction: ltr; text-align: start; }
#page-home .hp-hq-card a { color: var(--hp-blue); text-decoration: none; }
#page-home .hp-hq .map-wrapper { margin: 0; }
#page-home .hp-hq .map-wrapper iframe { height: 100%; min-height: 360px; border-radius: 20px !important; }

/* ---------- Final call to action (DNS blue) ---------- */
#page-home .hp-cta { padding: clamp(48px, 6vw, 72px) 0; background: #fff; }
#page-home .hp-cta-box {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 24px;
  background: linear-gradient(120deg, var(--hp-blue) 0%, var(--hp-navy) 100%);
  color: #fff;
  box-shadow: 0 24px 50px rgba(30, 64, 255, 0.25);
}
#page-home .hp-cta-box::after {
  content: '';
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
#page-home .hp-cta-box > * { position: relative; z-index: 1; }
#page-home .hp-cta-box h2 { margin: 0 0 6px; color: #fff; font-size: clamp(22px, 2.6vw, 32px); }
#page-home .hp-cta-box p { margin: 0; color: #dbe3ff; }
#page-home .hp-cta-box .btn {
  height: 54px;
  padding: 0 30px;
  border-radius: 12px;
  background: var(--hp-gold);
  color: #111;
  font-weight: 800;
}

/* ---------- Footer (original dark DNS footer, cleaner layout) ---------- */
#page-home .footer-main { padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
#page-home .footer-grid {
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}
#page-home .footer-logo {
  width: 168px;
  padding: 10px 14px;
  border-radius: 12px;
}
#page-home .hp-footer-tag {
  margin: 16px 0 14px;
  max-width: 30ch;
  color: rgba(225, 230, 246, 0.72);
  font-size: 13.5px;
  line-height: 1.8;
}
#page-home .hp-footer-addr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(225, 230, 246, 0.9);
  font-size: 13px;
  direction: ltr;
  justify-content: flex-end;
}
#page-home .hp-footer-addr svg { width: 20px; height: 14px; border-radius: 2px; flex: none; }
#page-home .footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
#page-home .footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (max-width: 1023px) {
  #page-home .hero { padding-top: 104px; }
  #page-home .hero-grid { grid-template-columns: 1fr; }
  #page-home .hero-content { order: -1; }
  #page-home .hp-hq-tag { inset-inline-end: 12px; bottom: -28px; }
  #page-home .hero-visual { margin-bottom: 28px; }
  #page-home .hp-hq { grid-template-columns: 1fr; }
  #page-home .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-home .stat-card:nth-child(3) { border-inline-start: 0; }
  #page-home .stat-card:nth-child(n + 3) { border-top: 1px solid var(--hp-line); }
  #page-home .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  #page-home .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  #page-home .hero-h1 { font-size: clamp(34px, 9.5vw, 42px); }
  #page-home .hero-btns { display: grid; grid-template-columns: 1fr; }
  #page-home .hp-trust { gap: 10px 18px; }
  #page-home .hp-trust li { font-size: 13px; }
  #page-home .stat-card { padding: 22px 14px; }
  #page-home .svc-grid { grid-template-columns: 1fr; }
  #page-home .hp-cta-box { text-align: center; justify-content: center; }
  #page-home .footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  #page-home .footer-logo { margin-inline: auto; }
  #page-home .hp-footer-tag { margin-inline: auto; }
  #page-home .hp-footer-addr { justify-content: center; }
  #page-home .footer-col--contact { grid-column: 1 / -1; }
  #page-home .footer-bottom-inner { flex-direction: column; text-align: center; }
  #page-home .footer-legal-links { justify-content: center; gap: 6px 16px; }
}
