/* ============================================================================
 * Homepage — dark premium enterprise composition.
 *
 * Strategy: scope a "dark theme" via token overrides on body only.
 * All Phase 2 components (cards, sections, headers, etc.) automatically pick
 * up the dark surfaces because they reference --wb-* tokens. Inner pages stay
 * light because they don't carry the .home body class.
 *
 * Two semantic exceptions live below the override block: .wb-site-footer and
 * .wb-section--ink originally referenced --wb-color-ink AS A BACKGROUND, so
 * those need explicit dark-mode backgrounds (one notch darker than page bg)
 * to keep depth contrast on the dark page.
 * ========================================================================== */

/* ── DARK-MODE TOKEN OVERRIDES (homepage only) ───────────────────────────── */
body {
  /* Surfaces */
  --wb-color-bg:           #0a0e16;
  --wb-color-surface:      #0f1623;
  --wb-color-bg-soft:      #0c111b;
  --wb-color-bg-muted:     #131a26;

  /* Foreground (flipped) */
  --wb-color-ink:          #f3f4f6;
  --wb-color-ink-2:        #e2e8f0;
  --wb-color-text:         #cbd5e1;
  --wb-color-text-muted:   #94a3b8;
  --wb-color-text-soft:    #64748b;

  /* Borders → low-alpha white */
  --wb-color-border:        rgba(255, 255, 255, 0.08);
  --wb-color-border-soft:   rgba(255, 255, 255, 0.04);
  --wb-color-border-strong: rgba(255, 255, 255, 0.14);

  /* Brand tints adjusted for dark surfaces */
  --wb-color-brand-soft:   rgba(79, 140, 255, 0.12);
  --wb-color-brand-ink:    #93c5fd;

  /* Shadows tuned for dark */
  --wb-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --wb-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.45);
  --wb-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --wb-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  --wb-shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.7);

  background-color: var(--wb-color-bg);
  color: var(--wb-color-text);
  position: relative;
}

/* The two semantic exceptions — footer + .wb-section--ink originally used
 * --wb-color-ink as background. On the dark homepage, drop them slightly
 * darker than page bg so they read as a depth-down layer, not a clash. */
body .wb-site-footer,
body .wb-section--ink {
  background-color: #060912;
}

/* Alternate section backgrounds for visual rhythm — slightly elevated dark
 * surface with a faint brand-tinted glow in the top-left corner. */
body .wb-section--soft {
  background:
    radial-gradient(circle at 20% 0%, rgba(79, 140, 255, 0.04), transparent 50%),
    var(--wb-color-bg-soft);
}

/* Every wb-section gets a hairline top border for separation rhythm */
body .wb-section {
  position: relative;
}
body .wb-section + .wb-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

/* Header fallback brand mark needs explicit inversion (it used --wb-color-ink
 * as a dark chip with white W; on dark page that becomes light-on-light). */
body .wb-site-header__name::before {
  background: var(--wb-color-white);
  color: #0b0f17;
}

/* CTA-band — premium dark panel with ambient glow */
body .wb-cta-band {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(79, 140, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #131a26, #0c1119);
  border: var(--wb-border-width) solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
body .wb-cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.4), transparent);
  pointer-events: none;
}

/* Selection on dark */
body ::selection { background: var(--wb-color-brand); color: var(--wb-color-white); }

/* Section header eyebrow — gain a colored leading bar on the homepage */
body .wb-section-header__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wb-space-2);
  color: #93c5fd;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body .wb-section-header--center .wb-section-header__eyebrow {
  justify-content: center;
}
body .wb-section-header__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4f8cff);
  flex-shrink: 0;
}
body .wb-section-header--center .wb-section-header__eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #4f8cff, transparent);
  flex-shrink: 0;
}

/* Section titles — softer on dark, slightly less bold */
body .wb-section-header__title {
  letter-spacing: -0.02em;
}

/* ── HOMEPAGE-ONLY ELEMENTS ─────────────────────────────────────────────── */

/* Hero --------------------------------------------------------------------- */
.wb-hero {
  position: relative;
  background: var(--wb-color-bg);
  border-bottom: var(--wb-border-width) solid var(--wb-color-border);
  /* IMPORTANT: no `overflow: hidden` here — would break the sticky child */
}

.wb-hero__pin-stage {
  position: relative;
  padding-block: clamp(4.5rem, 7vw + 2rem, 8rem);
}

/* Static checkerboard grid behind the hero — masked by a center radial so
 * it fades softly toward the edges. No traveling pulses. */
.wb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient blue glow — anchored top-right */
.wb-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 110%;
  background: radial-gradient(closest-side, rgba(79, 140, 255, 0.18), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.wb-hero__pin-stage > * { position: relative; z-index: 1; }

/* Desktop: hero becomes a 220vh container with a sticky 100vh pin-stage.
 * Three dashboards cycle as the user scrolls the 120vh "pin budget".
 * Mobile: normal flow, dashboards cycle on natural scroll, no pinning. */
@media (min-width: 1024px) and (min-height: 640px) {
  .wb-hero {
    height: 220vh;
  }
  .wb-hero__pin-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 600px;
    padding-block: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .wb-hero__pin-stage > .wb-container {
    width: 100%;
  }
}

/* MOBILE HERO -------------------------------------------------------------- */
@media (max-width: 1023px) {
  .wb-hero__pin-stage {
    padding-block: clamp(3rem, 7vw + 1rem, 5rem) clamp(2.5rem, 6vw + 1rem, 4rem);
  }
  .wb-hero__title {
    font-size: clamp(1.625rem, 5.5vw + 0.5rem, 2.5rem);
    line-height: 1.15;
    max-width: 100%;
  }
  .wb-hero__eyebrow {
    font-size: 10px;
    line-height: 1.4;
  }
  .wb-hero__lead {
    font-size: var(--wb-text-base);
    line-height: 1.6;
  }
  .wb-hero__actions {
    gap: var(--wb-space-2);
  }
  .wb-hero__actions .wb-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: var(--wb-space-4);
  }
  .wb-hero__meta {
    font-size: 11px;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--wb-space-2);
  }
  .wb-hero__meta-divider { display: none; }

  /* Swap content panes — give them less reserved space on mobile */
  .wb-hero__swap { min-height: 14rem; }
  .wb-hero__swap-heading {
    font-size: 1rem;
    line-height: 1.35;
  }
  .wb-hero__swap-lead {
    font-size: 0.9375rem;
  }
  .wb-hero__swap-features { gap: 6px; }
  .wb-hero__swap-features li {
    font-size: 10px;
    padding: 0.25rem 0.625rem;
  }

  /* Dashboard visual — taller relative to width, fits better on phones */
  .wb-hero__visual {
    aspect-ratio: auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: 320px;
    margin-top: var(--wb-space-4);
    overflow: hidden;
  }
  .wb-hero__window {
    /* Inset slightly inside the visual; flat (no 3D tilt) on mobile */
    inset: 36px 0 0 0;
    transform: none;
  }
  .wb-hero__window.is-active {
    transform: none;
  }
  .wb-hero__window.is-prev,
  .wb-hero__window.is-next {
    transform: none;
  }
  .wb-hero__window-bar { padding: 0.5rem 0.625rem; }
  .wb-hero__window-url { font-size: 10px; padding: 2px 8px; }
  .wb-hero__window-body { grid-template-columns: 84px 1fr; }
  .wb-hero__window-side { padding: var(--wb-space-2); gap: var(--wb-space-1); }
  .wb-hero__window-side-item { font-size: 10px; padding: 4px 6px; }
  .wb-hero__window-main { padding: var(--wb-space-3); gap: var(--wb-space-2); min-width: 0; }
  .wb-hero__window-stat-row { grid-template-columns: repeat(3, 1fr); gap: 6px; min-width: 0; }
  .wb-hero__window-stat { padding: 8px; min-width: 0; }
  .wb-hero__window-stat-value { font-size: 16px; }
  .wb-hero__window-stat-label { font-size: 8.5px; }
  .wb-hero__window-chart-title { font-size: 9.5px; }

  /* Hide floating cards on mobile — they crowd the visual */
  .wb-hero__float { display: none; }

  /* Label pill — smaller */
  .wb-hero__visual-label-pill {
    font-size: 9.5px;
    padding: 0.25rem 0.625rem;
  }

  /* Progress dots — smaller bars */
  .wb-hero__progress-dot { width: 20px; }
  .wb-hero__progress-dot.is-active { width: 28px; }
}

@media (max-width: 480px) {
  /* Very small phones — extra-tight */
  .wb-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .wb-hero__visual { height: 280px; }
  .wb-hero__window { inset: 32px 0 0 0; }
  .wb-hero__window-body { grid-template-columns: 70px 1fr; }
  .wb-hero__window-stat-label { font-size: 8px; }
  .wb-hero__window-stat-value { font-size: 14px; }
  .wb-hero__window-side-item { font-size: 9.5px; }
  .wb-hero__window-url { font-size: 9px; }
  .wb-hero__window-chart { padding: 8px; }
  .wb-hero__window-chart-bars { gap: 3px; }
}

.wb-hero__grid {
  position: relative;
  display: grid;
  gap: var(--wb-space-9);
  align-items: center;
}
@media (min-width: 1024px) {
  .wb-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--wb-space-10);
  }
}

.wb-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wb-space-2);
  font-size: var(--wb-text-xs);
  font-weight: var(--wb-fw-semibold);
  letter-spacing: var(--wb-ls-wide);
  text-transform: uppercase;
  color: var(--wb-color-text-muted);
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wb-hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--wb-color-border-strong);
  flex-shrink: 0;
}

.wb-hero__title {
  font-size: clamp(1.875rem, 2.8vw + 0.875rem, 3.25rem);
  font-weight: var(--wb-fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--wb-color-white);
  margin: var(--wb-space-4) 0 var(--wb-space-4);
  text-wrap: balance;
  max-width: 22ch;
}

.wb-hero__lead {
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
  line-height: var(--wb-lh-relaxed);
  color: var(--wb-color-text-muted);
  margin: 0 0 var(--wb-space-6);
  max-width: 56ch;
  text-wrap: pretty;
}

.wb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-space-3);
}

/* Swappable left-side explainer panes — one per dashboard, crossfade between */
.wb-hero__swap {
  position: relative;
  min-height: 13.5rem;
  margin-bottom: var(--wb-space-5);
}
@media (min-width: 768px) {
  .wb-hero__swap { min-height: 12rem; }
}
.wb-hero__swap-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-3);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease-out,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.wb-hero__swap-pane.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.wb-hero__swap-pane.is-prev {
  opacity: 0;
  transform: translateY(-8px);
}
.wb-hero__swap-pane.is-next {
  opacity: 0;
  transform: translateY(8px);
}

.wb-hero__swap-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wb-space-2);
  font-size: var(--wb-text-xs);
  font-weight: var(--wb-fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.wb-hero__swap-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4f8cff);
  flex-shrink: 0;
}

.wb-hero__swap-heading {
  font-size: clamp(1.125rem, 1vw + 0.875rem, 1.375rem);
  font-weight: var(--wb-fw-semibold);
  color: var(--wb-color-white);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

.wb-hero__swap-lead {
  font-size: var(--wb-text-base);
  line-height: var(--wb-lh-relaxed);
  color: var(--wb-color-text-muted);
  margin: 0;
}

.wb-hero__swap-features {
  list-style: none;
  margin: var(--wb-space-1) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-space-2);
}
.wb-hero__swap-features li {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-1);
  padding: 0.3125rem 0.75rem;
  font-size: var(--wb-text-xs);
  font-weight: var(--wb-fw-medium);
  letter-spacing: 0.01em;
  color: var(--wb-color-text);
  background: rgba(255, 255, 255, 0.04);
  border: var(--wb-border-width) solid rgba(255, 255, 255, 0.08);
  border-radius: var(--wb-radius-full);
}
.wb-hero__swap-features li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4f8cff;
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
}

/* Progress indicator — 3 dots / bars under the CTAs */
.wb-hero__progress {
  display: flex;
  gap: 8px;
  margin-top: var(--wb-space-5);
}
.wb-hero__progress-dot {
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: background 0.4s ease, box-shadow 0.4s ease, width 0.4s ease;
}
.wb-hero__progress-dot.is-active {
  background: #4f8cff;
  box-shadow: 0 0 12px rgba(79, 140, 255, 0.55);
  width: 36px;
}
.wb-hero__progress-dot.is-done {
  background: rgba(147, 197, 253, 0.4);
}

.wb-hero__meta {
  margin-top: var(--wb-space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wb-space-3);
  font-size: var(--wb-text-xs);
  letter-spacing: var(--wb-ls-wide);
  text-transform: uppercase;
  color: var(--wb-color-text-muted);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wb-hero__meta > * { min-width: 0; }
.wb-hero__meta-divider {
  width: 1px;
  height: 14px;
  background: var(--wb-color-border);
}

/* Hero visual — 3 stacked dashboards that crossfade on scroll */
.wb-hero__visual {
  position: relative;
  aspect-ratio: 1.05 / 1;
  min-height: 380px;
  perspective: 1200px;
}

/* Dashboard label pill — sits above the stacked windows, shows active label */
.wb-hero__visual-label-pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-2);
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: var(--wb-border-width) solid rgba(255, 255, 255, 0.12);
  border-radius: var(--wb-radius-full);
  font-size: 11px;
  font-weight: var(--wb-fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wb-color-text-soft);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.wb-hero__visual-label-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wb-color-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25);
}
.wb-hero__visual-label-pill span {
  transition: opacity var(--wb-duration-base) var(--wb-ease);
}

/* Stacked dashboard windows — all positioned at the same spot, fade between */
.wb-hero__window {
  position: absolute;
  inset: 14% 4% 12% 8%;
  background: linear-gradient(180deg, #161e2c 0%, #0e1521 100%);
  border: var(--wb-border-width) solid rgba(255, 255, 255, 0.1);
  border-radius: var(--wb-radius-lg);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px -10px rgba(79, 140, 255, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) scale(0.95);
  transform-style: preserve-3d;
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease-out;
  pointer-events: none;
}
.wb-hero__window.is-active {
  opacity: 1;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) scale(1);
}
.wb-hero__window.is-prev {
  opacity: 0;
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) scale(0.92) translateX(-3%);
}
.wb-hero__window.is-next {
  opacity: 0;
  transform: perspective(1200px) rotateY(0deg) rotateX(2deg) scale(0.92) translateX(3%);
}
.wb-hero__window-bar {
  display: flex;
  align-items: center;
  gap: var(--wb-space-2);
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: var(--wb-border-width) solid rgba(255, 255, 255, 0.06);
}
.wb-hero__window-dots {
  display: inline-flex;
  gap: 6px;
}
.wb-hero__window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.wb-hero__window-url {
  font-size: 11px;
  font-family: var(--wb-font-mono);
  color: var(--wb-color-text-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: var(--wb-radius-full);
  margin-left: var(--wb-space-2);
  letter-spacing: 0.02em;
}

.wb-hero__window-body {
  display: grid;
  grid-template-columns: 110px 1fr;
  flex: 1 1 0;
  min-height: 0;
}
.wb-hero__window-side {
  background: rgba(255, 255, 255, 0.015);
  border-right: var(--wb-border-width) solid rgba(255, 255, 255, 0.04);
  padding: var(--wb-space-3) var(--wb-space-3);
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-2);
}
.wb-hero__window-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: var(--wb-fw-medium);
  color: var(--wb-color-text-muted);
  padding: 6px 8px;
  border-radius: var(--wb-radius-xs);
}
.wb-hero__window-side-item.is-active {
  background: rgba(79, 140, 255, 0.14);
  color: #93c5fd;
}
.wb-hero__window-side-item::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.7;
  flex-shrink: 0;
}

.wb-hero__window-main {
  padding: var(--wb-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-3);
  min-width: 0;
}
.wb-hero__window-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wb-hero__window-stat {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: var(--wb-border-width) solid rgba(255, 255, 255, 0.05);
  border-radius: var(--wb-radius-sm);
}
.wb-hero__window-stat-value {
  font-size: 18px;
  font-weight: var(--wb-fw-bold);
  color: var(--wb-color-white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.wb-hero__window-stat-label {
  font-size: 9.5px;
  color: var(--wb-color-text-soft);
  margin-top: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wb-hero__window-chart {
  flex: 1 1 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: var(--wb-border-width) solid rgba(255, 255, 255, 0.04);
  border-radius: var(--wb-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
}
.wb-hero__window-chart-title {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wb-color-text-soft);
}
.wb-hero__window-chart-bars {
  flex: 1 1 0;
  display: flex;
  gap: 4px;
  align-items: flex-end;
}
.wb-hero__window-chart-bars span {
  flex: 1 1 0;
  background: linear-gradient(180deg, #93c5fd, #4f8cff);
  border-radius: 2px 2px 0 0;
  min-height: 8px;
  opacity: 0;
  transform-origin: bottom;
  transform: scaleY(0.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease-out;
}
.wb-hero__window.is-active .wb-hero__window-chart-bars span {
  opacity: 0.9;
  transform: scaleY(1);
}
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(1)  { transition-delay: 0.05s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(2)  { transition-delay: 0.10s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(3)  { transition-delay: 0.15s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(4)  { transition-delay: 0.20s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(5)  { transition-delay: 0.25s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(6)  { transition-delay: 0.30s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(7)  { transition-delay: 0.35s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(8)  { transition-delay: 0.40s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(9)  { transition-delay: 0.45s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(10) { transition-delay: 0.50s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(11) { transition-delay: 0.55s; }
.wb-hero__window.is-active .wb-hero__window-chart-bars span:nth-child(12) { transition-delay: 0.60s; }
/* Subtle "active" pulse on the sidebar item */
.wb-hero__window-side-item.is-active::after {
  content: "";
  position: absolute;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #93c5fd;
  box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.3);
  animation: wb-pulse 2s ease-in-out infinite;
}
.wb-hero__window-side-item { position: relative; }
@keyframes wb-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}
.wb-reduce-motion .wb-hero__window-chart-bars span,
.wb-reduce-motion .wb-hero__window-side-item.is-active::after {
  animation: none;
}

/* Floating cards — pseudo-3D depth around the main window */
.wb-hero__float {
  position: absolute;
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
  border: var(--wb-border-width) solid rgba(255, 255, 255, 0.1);
  border-radius: var(--wb-radius-md);
  padding: var(--wb-space-3) var(--wb-space-4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  animation: wb-float 6s ease-in-out infinite;
}
.wb-reduce-motion .wb-hero__float { animation: none; }
@keyframes wb-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.wb-hero__float--top {
  top: 2%;
  right: 4%;
  animation-delay: -2s;
}
.wb-hero__float--bottom {
  bottom: 4%;
  left: -2%;
  animation-delay: -4s;
}
.wb-hero__float-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wb-color-text-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}
.wb-hero__float-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wb-color-success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
}
.wb-hero__float--bottom .wb-hero__float-eyebrow::before {
  background: #4f8cff;
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.25);
}
.wb-hero__float-title {
  font-size: 13px;
  font-weight: var(--wb-fw-semibold);
  color: var(--wb-color-white);
  letter-spacing: -0.01em;
}
.wb-hero__float-meta {
  font-size: 10px;
  color: var(--wb-color-text-muted);
}

/* Subtle ambient glow behind window */
.wb-hero__visual::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 20%;
  width: 60%;
  height: 50%;
  background: radial-gradient(closest-side, rgba(79, 140, 255, 0.25), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* Trust strip — 4-card grid of operational pillars ------------------------ */
.wb-trust-strip {
  position: relative;
  background: transparent;
  border-top: var(--wb-border-width) solid var(--wb-color-border);
  border-bottom: var(--wb-border-width) solid var(--wb-color-border);
  padding-block: var(--wb-section-y-sm);
}
.wb-trust-strip__grid {
  display: grid;
  gap: var(--wb-space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .wb-trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .wb-trust-strip__grid { grid-template-columns: repeat(4, 1fr); }
}
.wb-trust-strip__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-2);
  padding: var(--wb-space-5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--wb-color-surface);
  border: var(--wb-border-width) solid var(--wb-color-border);
  border-radius: var(--wb-radius-md);
  transition: border-color var(--wb-duration-base) var(--wb-ease),
              background var(--wb-duration-base) var(--wb-ease),
              transform var(--wb-duration-base) var(--wb-ease);
  overflow: hidden;
}
.wb-trust-strip__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
}
.wb-trust-strip__item:hover {
  border-color: rgba(79, 140, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
}
.wb-trust-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--wb-radius-md);
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.18), rgba(79, 140, 255, 0.08));
  color: #93c5fd;
  margin-bottom: var(--wb-space-2);
  border: var(--wb-border-width) solid rgba(79, 140, 255, 0.2);
  box-shadow: 0 0 16px -4px rgba(79, 140, 255, 0.3) inset;
}
.wb-trust-strip__icon svg { width: 18px; height: 18px; }
.wb-trust-strip__title {
  font-size: var(--wb-text-base);
  font-weight: var(--wb-fw-semibold);
  color: var(--wb-color-white);
  letter-spacing: var(--wb-ls-tight);
  margin: 0;
}
.wb-trust-strip__body {
  font-size: var(--wb-text-sm);
  line-height: var(--wb-lh-relaxed);
  color: var(--wb-color-text-muted);
  margin: 0;
}

/* Trust marquee row — subtle, slow, very low contrast wordmarks */
.wb-trust-strip__marquee {
  margin-top: var(--wb-space-7);
  opacity: 0.55;
}

/* Feature list (check-mark bullets) --------------------------------------- */
.wb-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-3);
}
.wb-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--wb-space-3);
  font-size: var(--wb-text-base);
  line-height: var(--wb-lh-relaxed);
  color: var(--wb-color-text);
}
.wb-feature-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background:
    var(--wb-color-brand-soft)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / 13px 13px no-repeat;
}

/* Reason rows (numbered) -------------------------------------------------- */
.wb-reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--wb-space-5);
}
@media (min-width: 768px) {
  .wb-reason-list { grid-template-columns: repeat(2, 1fr); gap: var(--wb-space-6); }
}
.wb-reason-list li {
  display: flex;
  gap: var(--wb-space-4);
  padding: var(--wb-space-5) 0;
  border-top: var(--wb-border-width) solid var(--wb-color-border-soft);
}
.wb-reason-list li:first-child,
.wb-reason-list li:nth-child(2) { border-top: 0; }
@media (max-width: 767px) {
  .wb-reason-list li:nth-child(2) { border-top: var(--wb-border-width) solid var(--wb-color-border-soft); }
}
.wb-reason-list__num {
  font-size: var(--wb-text-sm);
  font-weight: var(--wb-fw-semibold);
  color: var(--wb-color-brand);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 32px;
  letter-spacing: var(--wb-ls-wide);
}
.wb-reason-list__title {
  font-size: var(--wb-text-lg);
  font-weight: var(--wb-fw-semibold);
  letter-spacing: var(--wb-ls-tight);
  color: var(--wb-color-ink);
  margin: 0 0 var(--wb-space-2);
}
.wb-reason-list__body {
  font-size: var(--wb-text-sm);
  line-height: var(--wb-lh-relaxed);
  color: var(--wb-color-text-muted);
  margin: 0;
}

/* Global collaboration region grid ---------------------------------------- */
.wb-globe-grid {
  display: grid;
  gap: var(--wb-space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .wb-globe-grid { grid-template-columns: repeat(3, 1fr); }
}
.wb-globe-grid__item {
  position: relative;
  padding: var(--wb-space-5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%),
    rgba(255, 255, 255, 0.02);
  border: var(--wb-border-width) solid rgba(255, 255, 255, 0.08);
  border-radius: var(--wb-radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-1);
  transition: border-color var(--wb-duration-base) var(--wb-ease),
              transform var(--wb-duration-base) var(--wb-ease);
  overflow: hidden;
}
.wb-globe-grid__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.wb-globe-grid__item:hover {
  border-color: rgba(79, 140, 255, 0.25);
  transform: translateY(-2px);
}
.wb-globe-grid__region {
  font-size: var(--wb-text-xs);
  letter-spacing: var(--wb-ls-wide);
  text-transform: uppercase;
  color: var(--wb-color-text-soft);
}
.wb-globe-grid__country {
  font-size: var(--wb-text-base);
  font-weight: var(--wb-fw-semibold);
  color: var(--wb-color-white);
  letter-spacing: var(--wb-ls-tight);
}

/* Operational Infrastructure — workflow pipeline visual ------------------- */
.wb-infra {
  position: relative;
}
.wb-infra__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--wb-space-3);
}
@media (min-width: 768px) {
  .wb-infra__list { grid-template-columns: repeat(2, 1fr); gap: var(--wb-space-3) var(--wb-space-4); }
}
.wb-infra__item {
  display: flex;
  align-items: center;
  gap: var(--wb-space-3);
  padding: var(--wb-space-4) var(--wb-space-5);
  background: var(--wb-color-surface);
  border: var(--wb-border-width) solid var(--wb-color-border);
  border-radius: var(--wb-radius-md);
  font-size: var(--wb-text-base);
  font-weight: var(--wb-fw-medium);
  color: var(--wb-color-white);
  letter-spacing: -0.005em;
  transition: border-color var(--wb-duration-base) var(--wb-ease),
              background var(--wb-duration-base) var(--wb-ease);
}
.wb-infra__item:hover {
  border-color: var(--wb-color-border-strong);
  background: var(--wb-color-bg-muted);
}
.wb-infra__item-num {
  font-family: var(--wb-font-mono);
  font-size: 11px;
  color: var(--wb-color-text-soft);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.wb-infra__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--wb-radius-xs);
  background: rgba(79, 140, 255, 0.12);
  color: #93c5fd;
  flex-shrink: 0;
}
.wb-infra__item-icon svg { width: 14px; height: 14px; }

/* Right-side workflow visualization */
.wb-infra__visual {
  position: relative;
  padding: var(--wb-space-7) var(--wb-space-6);
  background: var(--wb-color-surface);
  border: var(--wb-border-width) solid var(--wb-color-border);
  border-radius: var(--wb-radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-4);
  overflow: hidden;
}
.wb-infra__visual::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(79, 140, 255, 0.15), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.wb-infra__visual-eyebrow {
  font-size: var(--wb-text-xs);
  font-weight: var(--wb-fw-semibold);
  letter-spacing: var(--wb-ls-wide);
  text-transform: uppercase;
  color: var(--wb-color-text-soft);
  margin: 0;
}
.wb-infra__visual-flow {
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-2);
  margin: 0;
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 1;
}
.wb-infra__visual-step {
  display: flex;
  align-items: center;
  gap: var(--wb-space-3);
  padding: var(--wb-space-3) var(--wb-space-4);
  background: rgba(255, 255, 255, 0.03);
  border: var(--wb-border-width) solid rgba(255, 255, 255, 0.06);
  border-radius: var(--wb-radius-md);
  font-size: var(--wb-text-sm);
  color: var(--wb-color-white);
}
.wb-infra__visual-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wb-color-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
  flex-shrink: 0;
}
.wb-infra__visual-step:nth-child(2) .wb-infra__visual-step-dot {
  background: #4f8cff;
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.2);
}
.wb-infra__visual-step:nth-child(3) .wb-infra__visual-step-dot {
  background: var(--wb-color-warning);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}
.wb-infra__visual-step-meta {
  margin-left: auto;
  font-size: var(--wb-text-xs);
  color: var(--wb-color-text-soft);
  font-family: var(--wb-font-mono);
}

/* By-the-numbers strip (replaces dummy logo marquee on the homepage) ------ */
.wb-numbers {
  display: grid;
  gap: var(--wb-space-7);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .wb-numbers { grid-template-columns: repeat(4, 1fr); gap: var(--wb-space-8); }
}
.wb-numbers__item {
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-2);
  padding: var(--wb-space-5);
  background: var(--wb-color-surface);
  border: var(--wb-border-width) solid var(--wb-color-border-soft);
  border-radius: var(--wb-radius-lg);
}
.wb-numbers__value {
  font-size: clamp(2rem, 2vw + 1.25rem, 2.75rem);
  font-weight: var(--wb-fw-bold);
  letter-spacing: var(--wb-ls-tight);
  line-height: 1;
  color: var(--wb-color-ink);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: var(--wb-space-1);
}
.wb-numbers__value-suffix {
  font-size: 0.55em;
  font-weight: var(--wb-fw-semibold);
  color: var(--wb-color-brand);
  letter-spacing: 0;
}
.wb-numbers__label {
  font-size: var(--wb-text-sm);
  line-height: var(--wb-lh-relaxed);
  color: var(--wb-color-text-muted);
  margin: 0;
}

/* FAQ accordion ----------------------------------------------------------- */
.wb-faq {
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-2);
}
.wb-faq__item {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 50%),
    var(--wb-color-surface);
  border: var(--wb-border-width) solid var(--wb-color-border);
  border-radius: var(--wb-radius-md);
  overflow: hidden;
  transition:
    border-color var(--wb-duration-base) var(--wb-ease),
    background var(--wb-duration-base) var(--wb-ease);
}
.wb-faq__item:hover { border-color: rgba(255, 255, 255, 0.16); }
.wb-faq__item.is-open {
  border-color: rgba(79, 140, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.04), transparent 60%),
    var(--wb-color-surface);
}

.wb-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wb-space-4);
  padding: var(--wb-space-5) var(--wb-space-6);
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--wb-font-sans);
  font-size: var(--wb-text-lg);
  font-weight: var(--wb-fw-semibold);
  color: var(--wb-color-white);
  letter-spacing: var(--wb-ls-tight);
  cursor: pointer;
  transition: color var(--wb-duration-base) var(--wb-ease);
}
.wb-faq__q:hover { color: var(--wb-color-white); }
.wb-faq__q:focus-visible {
  outline: var(--wb-focus-width) solid var(--wb-color-focus-ring);
  outline-offset: -2px;
}

.wb-faq__q-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.wb-faq__q-icon::before,
.wb-faq__q-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--wb-duration-base) var(--wb-ease);
}
.wb-faq__q-icon::before { top: 50%; left: 0;   width: 100%; height: 1.75px; transform: translateY(-50%); }
.wb-faq__q-icon::after  { top: 0;   left: 50%; width: 1.75px; height: 100%; transform: translateX(-50%); }
.wb-faq__item.is-open .wb-faq__q-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.wb-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--wb-duration-slow) var(--wb-ease);
}
.wb-faq__item.is-open .wb-faq__a { max-height: 600px; }
.wb-faq__a-body {
  padding: 0 var(--wb-space-6) var(--wb-space-5);
  font-size: var(--wb-text-base);
  line-height: var(--wb-lh-relaxed);
  color: var(--wb-color-text);
  margin: 0;
}
.wb-reduce-motion .wb-faq__a { transition: none; }

/* Project pill list ------------------------------------------------------- */
.wb-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wb-pill-list li {
  font-size: var(--wb-text-xs);
  font-weight: var(--wb-fw-medium);
  letter-spacing: var(--wb-ls-wide);
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  background: var(--wb-color-bg-soft);
  border-radius: var(--wb-radius-full);
  color: var(--wb-color-text-muted);
}
