/* ============================================================================
   Shared marketing components
   ----------------------------------------------------------------------------
   Used by Homepage, About, Team, and internal marketing previews. This file
   owns the reusable marketing hero and proof panel; page styles own only their
   unique content and visual variants.
   ========================================================================== */

body.page-wide {
  overflow-x: hidden;
  background: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(body.page-wide) { scroll-behavior: smooth; }
}

.page-wide main { background: #fff; }

/* ---- Marketing hero ---------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #b8c6d8;
  background:
    radial-gradient(circle at 79% 45%, rgba(17,111,222,0.2), transparent 27%),
    linear-gradient(135deg, #07111e 0%, #0a1a30 58%, #081522 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(90deg, #000, transparent 86%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 86%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  align-items: center;
  gap: clamp(var(--space-12), 7vw, var(--space-24));
  /* Sized so the headline, sub, and both actions clear a 900px viewport. */
  min-height: 36rem;
  padding-block: clamp(var(--space-16), 6vw, var(--space-24));
}

.hero__content { max-width: 43rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  color: #8fc4fb;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero__eyebrow > span {
  width: var(--space-8);
  height: 1px;
  background: #55a9ff;
}

.hero h1,
.hero .hl-h1 {
  max-width: 15ch;
  margin-bottom: var(--space-6);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

/* background-clip:text paints only inside the box, and line-height:1 makes
   that box shorter than the font's descender reach - so descenders ("agent
   time.", "prospects.") get shaved off. The padding extends the paint area;
   the matching negative margin keeps the line box height unchanged. */
.hero h1 .accent,
.hero .hl-h1 .accent {
  display: inline-block;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  color: #72b9ff;
  background: linear-gradient(100deg, #67b5ff, #b3dcff 55%, #6e9fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The rotator word always starts its own line at this column width (the
   preceding text already fills it), so the ghost stacks every candidate
   word in one grid cell - wrapping exactly like the real word would - and
   the tallest one sets the reserved height. Nothing shifts as words swap. */
.hero h1 .rotator-wrap {
  position: relative;
  display: grid;
}

.hero h1 .rotator-ghost {
  display: grid;
}

.hero h1 .rotator-ghost > span {
  grid-area: 1 / 1;
  visibility: hidden;
}

/* Anchored top-left rather than inset:0 so the box shrink-wraps each word.
   The .accent gradient is background-clip:text, so a full-width box would
   stretch the gradient across the column and short words would only ever
   show its left end. */
.hero h1 .rotator {
  position: absolute;
  inset: 0 auto auto 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero h1 .rotator.is-out {
  opacity: 0;
  transform: translateY(-0.15em);
}

.hero__sub {
  max-width: 38rem;
  margin: 0;
  color: #afbed1;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.7;
}

.hero__support {
  margin-top: var(--space-4);
  color: #d7e2ef;
  font-weight: 700;
}

/* Same emphasis line, used on a light section background. */
.hero__support--on-light { color: var(--c-ink); }

.hero .cta-row { margin-block: var(--space-8); }

.hero .btn { min-height: 3.25rem; }

.hero .btn--primary {
  background: #0872e3;
  box-shadow: 0 0.75rem 2rem rgba(0,83,184,0.24);
}

.hero .btn--primary:hover { background: #1680ed; }
.hero .btn--primary span { margin-left: var(--space-2); }

.hero .btn--ghost {
  color: #e4edf7;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.hero .btn--ghost:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}

/* Secondary hero action. Deliberately a text link, not a second button, so the
   primary CTA keeps the only filled shape in the hero. */
.hero__textlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 3.25rem;
  color: #cfe3f8;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(207,227,248,0.4);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.hero__textlink:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #8fa2b9;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__trust i {
  color: #67b5ff;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}

/* Decorative carrier signal. */
.hero-signal-ribbon {
  position: absolute;
  top: 50%;
  right: -14rem;
  z-index: 1;
  width: 52rem;
  height: 52rem;
  pointer-events: none;
  opacity: 0.48;
  transform: translateY(-50%) rotate(-16deg);
  animation: qvdSignalDrift 18s ease-in-out infinite alternate;
}

.hero-signal-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0 38deg, rgba(22,113,224,.72) 82deg, rgba(83,179,255,.5) 112deg, transparent 175deg);
  filter: blur(4px);
  mask-image: radial-gradient(circle, transparent 38%, #000 41%, #000 56%, transparent 61%);
  -webkit-mask-image: radial-gradient(circle, transparent 38%, #000 41%, #000 56%, transparent 61%);
}

.hero-signal-ribbon::after {
  content: "";
  position: absolute;
  inset: 8rem;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 20%, rgba(33,128,232,.5), rgba(90,190,255,.45), transparent 75%);
  filter: blur(10px);
  transform: rotate(18deg) scaleX(1.35);
}

@keyframes qvdSignalDrift {
  from { transform: translate3d(0, -50%, 0) rotate(-16deg); }
  to { transform: translate3d(-1.5rem, calc(-50% + 1rem), 0) rotate(-12deg); }
}

/* ---- Marketing proof panel -------------------------------------------- */
.proof-card {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
  border: 1px solid rgba(151,197,244,0.18);
  border-radius: var(--radius-lg);
  background: rgba(7,26,48,0.84);
  box-shadow: 0 2rem 5rem rgba(0,0,0,0.22);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

.proof-card ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-card li {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.proof-card li:first-child { padding-top: 0; }
.proof-card li:last-child { padding-bottom: 0; border-bottom: 0; }

.proof-card .num {
  color: #89c5ff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.proof-card .label {
  color: #aebfd2;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 64rem) {
  .hero__grid { grid-template-columns: 1fr 0.75fr; }
  .hero-signal-ribbon { display: none; }
}

@media (max-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: var(--space-20);
  }
  .hero__grid,
  .hero__grid > *,
  .proof-card { min-width: 0; }
  .hero__sub,
  .hero .cta-row { max-width: 100%; }
  .hero__sub { overflow-wrap: anywhere; }
  .hero h1,
  .hero .hl-h1 { max-width: 12ch; }
}

@media (max-width: 36rem) {
  .hero__grid { padding-block: var(--space-16); }
  .hero h1,
  .hero .hl-h1 { font-size: clamp(2.625rem, 13vw, 3.75rem); }
  .hero__trust { display: grid; }
  .proof-card { padding: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-signal-ribbon { animation: none; }
  .hero h1 .rotator { transition: none; }
}
