/* ============================================
   HERO DARK OVERRIDE
   Full-bleed dark hero + stats bar
   ============================================ */

/* ── Reset nav transparency on dark hero ── */
.nav { background: transparent; }
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav.scrolled .nav__logo { color: var(--ink); }
.nav.scrolled .nav__links a { color: var(--ink-3); }
.nav.scrolled .nav__burger span { background: var(--ink); }

/* White nav on dark hero */
.nav:not(.scrolled) .nav__logo { color: #fff; }
.nav:not(.scrolled) .nav__logo-mark { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); }
.nav:not(.scrolled) .nav__links a { color: rgba(255,255,255,0.75); }
.nav:not(.scrolled) .nav__links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav:not(.scrolled) .nav__burger span { background: #fff; }
.nav:not(.scrolled) .btn--primary { background: #fff; color: var(--navy); box-shadow: none; }
.nav:not(.scrolled) .btn--primary:hover { background: var(--bg-2); }

/* ══════════════════════════════════════════
   DARK HERO
══════════════════════════════════════════ */
.hero-dark {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a0c10;
}

/* Background image layer */
.hero-dark__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center 35%;
  /* CSS fallback if no image */
  background-color: #0a0c10;
}
/* Gradient overlay — left dark, right reveals photo */
.hero-dark__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(8,12,22,0.96) 0%,
      rgba(8,12,22,0.82) 38%,
      rgba(8,12,22,0.45) 65%,
      rgba(8,12,22,0.15) 100%
    ),
    linear-gradient(to top, rgba(8,12,22,0.6) 0%, transparent 40%);
}
/* Subtle noise texture */
.hero-dark__bg::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Animated spark / scan line */
.hero-dark__scan {
  position: absolute; left: 0; right: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(59,130,246,0.6) 30%, rgba(147,197,253,0.8) 50%, rgba(59,130,246,0.6) 70%, transparent 100%);
  animation: scanline 6s ease-in-out infinite;
  opacity: 0;
}
@keyframes scanline {
  0% { top: 0; opacity: 0; }
  5% { opacity: 1; }
  90% { opacity: 0.4; }
  100% { top: 100%; opacity: 0; }
}

/* Content */
.hero-dark__inner {
  position: relative; z-index: 3;
  flex: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: calc(var(--nav-h) + 72px) clamp(16px,4vw,40px) 64px;
  display: flex; align-items: center;
}
.hero-dark__content { max-width: 620px; }

/* Tag */
.hero-dark__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  font-size: 0.72rem; font-weight: 500; font-family: var(--font-mono);
  color: #93C5FD; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px;
}
.tag-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #4ADE80;
  animation: ping 2.5s infinite;
}

/* Title */
.hero-dark__title {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}
.hero-dark__title span { color: #93C5FD; } /* blue accent on key word */

/* Subtitle */
.hero-dark__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Checklist */
.hero-dark__checks {
  list-style: none;
  display: flex; flex-direction: column; gap: 11px;
  margin-bottom: 40px;
}
.hero-dark__checks li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: rgba(255,255,255,0.8); font-weight: 500;
}
.hero-dark__checks li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(59,130,246,0.2);
  border: 1.5px solid rgba(59,130,246,0.5);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%2393C5FD' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Actions */
.hero-dark__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-dark__actions .btn--cta {
  background: var(--navy); color: #fff;
  padding: 14px 32px; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(15,32,68,0.5), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: all var(--t);
}
.hero-dark__actions .btn--cta:hover {
  background: var(--navy-2);
  box-shadow: 0 6px 28px rgba(15,32,68,0.6);
  transform: translateY(-2px);
}
.hero-dark__actions .btn--outline-white {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.22);
  padding: 14px 28px; font-size: 1rem; font-weight: 500;
  border-radius: var(--radius); transition: all var(--t);
}
.hero-dark__actions .btn--outline-white:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.4);
}

/* Floating badge — top right corner */
.hero-dark__badge {
  position: absolute; bottom: 80px; right: clamp(16px, 6vw, 100px);
  z-index: 4;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 160px;
}
.badge-val {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  font-family: var(--font-mono); line-height: 1;
}
.badge-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.45); font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ══════════════════════════════════════════
   STATS BAR (between hero and services)
══════════════════════════════════════════ */
.stats-bar {
  background: var(--ink); /* very dark, near-black */
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats-bar__inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(16px,4vw,40px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  padding: 28px 32px;
  display: flex; align-items: center; gap: 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.03); }
.stat-item__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #93C5FD; flex-shrink: 0;
}
.stat-item__val {
  font-size: 1.7rem; font-weight: 800; color: #fff;
  font-family: var(--font-mono); line-height: 1;
}
.stat-item__lbl {
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
  margin-top: 3px; line-height: 1.3;
}

/* ══════════════════════════════════════════
   SERVICES — MINIMAL ROW (like prototype)
══════════════════════════════════════════ */
.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
}
.svc-mini {
  background: var(--bg);
  padding: 28px 22px 24px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
  transition: background var(--t);
  cursor: default; position: relative;
}
.svc-mini:hover { background: var(--navy-bg); }
.svc-mini::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 2px;
  background: var(--navy); transform: scaleX(0); transition: transform 0.3s var(--ease);
  border-radius: 2px 2px 0 0;
}
.svc-mini:hover::after { transform: scaleX(1); }
.svc-mini__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--bg-3); display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: background var(--t), color var(--t);
}
.svc-mini:hover .svc-mini__icon { background: var(--navy); color: #fff; }
.svc-mini__title { font-size: 0.88rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.svc-mini__spec { font-size: 0.72rem; color: var(--ink-4); font-family: var(--font-mono); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .services-row { grid-template-columns: repeat(2, 1fr); }
  .hero-dark__badge { display: none; }
}
@media (max-width: 560px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px 18px; gap: 12px; }
  .hero-dark__title { font-size: 2.4rem; }
  .hero-dark__actions { flex-direction: column; }
  .hero-dark__actions .btn { width: 100%; justify-content: center; }
  .services-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .services-row { grid-template-columns: 1fr; }
}
