/* ============================================
   HOMEPAGE HERO — full-bleed video, dot-matrix headline, pill nav, stats.
   Everything is scoped to .vh so its variables (--bg, --text, …) don't
   override the main theme in style.css.
   ============================================ */

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

.vh {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;

  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Background video ---------- */
.vh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.vh-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Page: header / hero / stats ---------- */
.vh-page {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  /* room for the fixed header */
  padding-top: calc(clamp(16px, 2.4vh, 28px) * 2 + clamp(44px, 5.2vw, 48px));
}

/* ---------- Hero ---------- */
.vh-hero {
  flex: 1;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
}

/* Trust row */
.vh-trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}
.vh-avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.vh-avatar + .vh-avatar { margin-left: calc(var(--trust-size) * -0.42); }
.vh-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}
.vh-avatar.a1 { z-index: 1; }
.vh-avatar.a2 { z-index: 2; }
.vh-avatar.a3 { z-index: 4; }
.vh-trust:hover .a1 { transform: translateY(-2px); }
.vh-trust:hover .a2 { transform: translateY(-4px); }
.vh-trust:hover .a3 { transform: translateY(-2px); }
.vh-trust-pill {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 16px 0 calc(var(--trust-size) * 0.58);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
}

/* Headline */
.vh-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}
.vh-headline span {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: vh-headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.vh-headline span:nth-child(1) { animation-delay: 0.12s; }
.vh-headline span:nth-child(2) { animation-delay: 0.3s; }

/* Subhead */
.vh-sub {
  max-width: min(500px, 92%);
  margin: clamp(14px, 2.2vh, 22px) auto 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
}
.vh-sub.vh-anim { --vh-final-opacity: 0.8; }

/* CTA */
.vh-cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(20px, 3.2vh, 32px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 22px rgba(255, 255, 255, 0.32), 0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.vh-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.2);
}
.vh-cta.vh-anim { animation-name: vh-revealPulse; animation-duration: 1.4s; }

/* ---------- Stats ---------- */
.vh-stats {
  flex-shrink: 0;
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.vh-stat-icon {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #fff;
}
.vh-stat-value {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.vh-stat-label {
  display: block;
  margin-top: 2px;
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
}

/* ---------- Shared entrance ---------- */
.vh-anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: vh-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
/* Hold the entrance until the page loader has faded. */
.glixy-loading .vh-anim,
.glixy-loading .vh-headline span { animation-play-state: paused; }

@keyframes vh-reveal {
  to { opacity: var(--vh-final-opacity, 1); transform: none; filter: none; }
}
@keyframes vh-headlineFade {
  to { opacity: 1; transform: none; }
}
@keyframes vh-revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  60% { opacity: 1; transform: none; filter: none; }
  78% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 34px rgba(255, 255, 255, 0.55), 0 0 70px rgba(255, 255, 255, 0.22); }
  100% { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 720px) {
  .vh-page { padding-top: calc(clamp(16px, 2.4vh, 28px) * 2 + 48px); }
  .vh-headline { letter-spacing: -0.08em; line-height: 1.05; }
  .vh-stats { grid-template-columns: repeat(2, 1fr); row-gap: clamp(14px, 2.4vh, 22px); }
  .vh-trust-pill { font-size: 12px; }
}
@media (max-width: 420px) {
  .vh-trust { --trust-size: 34px; }
  .vh-headline { letter-spacing: -0.09em; line-height: 1.04; }
}
@media (max-height: 700px) {
  .vh-trust { margin-bottom: 12px; }
  .vh-sub { margin-top: 10px; }
  .vh-cta { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vh-anim,
  .vh-headline span {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .vh-sub.vh-anim { opacity: 0.8; }
}


/* The fixed hero header overlaps anchored sections */
#services { scroll-margin-top: 90px; }

/* The demo float hides over the hero (the hero has its own CTA); WhatsApp stays. */
body.vh-in-view .float-call-btn { opacity: 0; pointer-events: none; transform: translateY(12px); }
