/* ==========================================================================
   Pathway IT — hero.css
   Dark starfield hero with glow blobs, dotted backdrop, browser mockup.
   Reused (with modifiers) across every page's top section.
   ========================================================================== */

.hero {
  position: relative; isolation: isolate;
  background: var(--grad-dark); color: #eaf0ff;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
}

/* dotted backdrop + starfield */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(124, 126, 245, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
/* glow blobs */
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.hero-glow.g1 { width: 460px; height: 460px; background: radial-gradient(circle, var(--indigo) 0%, transparent 70%); top: -120px; left: -80px; }
.hero-glow.g2 { width: 520px; height: 520px; background: radial-gradient(circle, var(--sky) 0%, transparent 70%); top: 40px; right: -140px; opacity: .4; }
.hero-glow.g3 { width: 380px; height: 380px; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); bottom: -160px; left: 40%; opacity: .35; }

.hero .container { position: relative; }

/* layout: split (text + mockup) or centered */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero--center .hero-grid { grid-template-columns: 1fr; text-align: center; place-items: center; }

.hero-eyebrow { margin-bottom: 1.4rem; }

.hero h1 {
  font-size: var(--fs-h1); letter-spacing: -.03em;
  background: linear-gradient(180deg, #ffffff 30%, #b9c4ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #aeb9dd; }
.hero--center .hero-sub { margin-inline: auto; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero--center .hero-actions { justify-content: center; }

/* proof row */
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2rem; margin-top: 2.4rem; }
.hero--center .hero-proof { justify-content: center; }
.proof-stars { display: flex; align-items: center; gap: .5rem; color: #cdd6f5; font-size: .9rem; }
.proof-stars .stars { color: var(--amber); letter-spacing: 2px; }
.proof-avatars { display: flex; }
.proof-avatars img, .proof-avatars .av {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink-2);
  margin-left: -12px; object-fit: cover;
}
.proof-avatars .av:first-child, .proof-avatars img:first-child { margin-left: 0; }
.proof-avatars .av { display: grid; place-items: center; background: var(--indigo); color: #fff; font-size: .78rem; font-weight: 700; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.6rem; }
.hero--center .hero-stats { justify-content: center; }
.hero-stat .n { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.hero-stat .l { display: block; font-size: .82rem; color: #8f9bc6; text-transform: uppercase; letter-spacing: .1em; }

/* browser mockup visual */
.mockup {
  border-radius: var(--r-lg); overflow: hidden;
  background: #0d1428; border: 1px solid rgba(124, 126, 245, .22);
  box-shadow: 0 40px 90px rgba(2, 6, 20, .6); will-change: transform;
}
.mockup-bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; background: #0a1024; border-bottom: 1px solid rgba(124, 126, 245, .16); }
.mockup-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup-bar .dot.r { background: #ff5f56; } .mockup-bar .dot.y { background: #ffbd2e; } .mockup-bar .dot.g { background: #27c93f; }
.mockup-url { flex: 1; margin-left: .6rem; height: 26px; border-radius: var(--r-pill); background: #060b1c; border: 1px solid rgba(124, 126, 245, .16); display: flex; align-items: center; padding: 0 .8rem; font-family: var(--font-mono); font-size: .72rem; color: #6f7cb0; }
.mockup-body { padding: 1.2rem; display: grid; gap: .9rem; }
.mk-row { display: grid; grid-template-columns: 60px 1fr; gap: .8rem; align-items: center; }
.mk-block { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(124, 126, 245, .35), rgba(124, 126, 245, .08)); }
.mk-sq { width: 60px; height: 60px; border-radius: 12px; background: linear-gradient(135deg, var(--indigo), var(--blue)); }
.mk-lines { display: grid; gap: .5rem; }
.mk-lines .mk-block:nth-child(2) { width: 70%; } .mk-lines .mk-block:nth-child(3) { width: 45%; }
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: .4rem; }
.mk-card { height: 70px; border-radius: 12px; background: #0e1630; border: 1px solid rgba(124, 126, 245, .14); position: relative; overflow: hidden; }
.mk-card::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 12px; height: 8px; border-radius: 4px; background: rgba(124, 126, 245, .3); }
.mk-card:nth-child(1)::before, .mk-card:nth-child(2)::before, .mk-card:nth-child(3)::before { content: ""; position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; border-radius: 7px; background: var(--indigo); }
.mk-card:nth-child(2)::before { background: var(--sky); } .mk-card:nth-child(3)::before { background: var(--green); }

/* page hero (interior pages) — smaller, optional centered */
.hero--page { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero--page h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }

/* breakpoints */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-proof, .hero-stats { justify-content: center; }
  .hero-mockup { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 1.4rem; }
  .mk-cards { grid-template-columns: repeat(3, 1fr); }
}
