/* ==========================================================================
   HERO
   ========================================================================== */

.wb-hero {
  background: var(--wb-primary-dark);
  color: var(--wb-white);
  padding-top: var(--wb-s-64);
  padding-bottom: 140px; /* room for the discovery panel to overlap */
  position: relative;
  overflow: hidden;
}

.wb-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(0, 184, 90, 0.16) 0%, rgba(0, 184, 90, 0) 70%);
  pointer-events: none;
}

.wb-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(248, 250, 249, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 70%, transparent);
  pointer-events: none;
}

.wb-hero__grid {
  display: grid;
  gap: var(--wb-s-48);
  align-items: center;
  position: relative;
}

@media (min-width: 1024px) {
  .wb-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--wb-s-64);
  }
}

.wb-hero__eyebrow { margin-bottom: var(--wb-s-24); }

.wb-hero h1 {
  color: var(--wb-white);
  max-width: 15ch;
}
.wb-hero h1 .wb-accent { color: var(--wb-green-bright); }

.wb-hero__lead {
  margin-top: var(--wb-s-24);
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--wb-text-on-dark-muted);
}

.wb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-s-16);
  margin-top: var(--wb-s-32);
}

.wb-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-s-24);
  margin-top: var(--wb-s-48);
}
.wb-hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--wb-s-8);
  font-size: 0.875rem;
  color: var(--wb-text-on-dark-muted);
}
.wb-hero__trust-item svg { width: 16px; height: 16px; color: var(--wb-green-bright); flex-shrink: 0; }

/* Hero visual — abstract interface composition, not a robot/brain */
.wb-hero__visual {
  position: relative;
  height: 420px;
  display: none;
}
@media (min-width: 768px) { .wb-hero__visual { display: block; } }

.wb-hero__panel {
  position: absolute;
  background: rgba(248, 250, 249, 0.04);
  border: 1px solid var(--wb-border-on-dark);
  border-radius: var(--wb-radius-md);
  backdrop-filter: blur(6px);
}

.wb-hero__panel--main {
  top: 8%;
  left: 4%;
  width: 84%;
  height: 78%;
  background: var(--wb-deep-dark);
  box-shadow: var(--wb-shadow-lg);
  padding: 0;
  overflow: hidden;
  transform: rotate(-1.2deg);
}

/* Mini browser chrome */
.wb-hero__browser-bar {
  display: flex;
  align-items: center;
  gap: var(--wb-s-8);
  padding: var(--wb-s-12) var(--wb-s-16);
  border-bottom: 1px solid var(--wb-border-on-dark);
}
.wb-hero__browser-dots { display: flex; gap: 6px; }
.wb-hero__browser-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--wb-border-on-dark); }
.wb-hero__browser-url {
  flex: 1;
  height: 20px;
  border-radius: 5px;
  background: rgba(248, 250, 249, 0.05);
  margin-left: var(--wb-s-8);
}

/* A live-looking mini website preview: nav / hero / content blocks */
.wb-hero__preview { padding: var(--wb-s-24) var(--wb-s-20); }
.wb-hero__preview-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--wb-s-24);
}
.wb-hero__preview-logo { width: 22px; height: 22px; border-radius: 5px; background: var(--wb-green); }
.wb-hero__preview-links { display: flex; gap: 8px; }
.wb-hero__preview-links span { width: 26px; height: 6px; border-radius: 3px; background: rgba(248, 250, 249, 0.12); }

.wb-hero__preview-headline { height: 12px; width: 70%; border-radius: 4px; background: rgba(248, 250, 249, 0.16); margin-bottom: 10px; }
.wb-hero__preview-headline--sm { width: 45%; background: rgba(248, 250, 249, 0.08); margin-bottom: var(--wb-s-16); }
.wb-hero__preview-cta { width: 84px; height: 26px; border-radius: 6px; background: var(--wb-green); margin-bottom: var(--wb-s-24); }

.wb-hero__preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wb-hero__preview-grid span { aspect-ratio: 1; border-radius: 6px; background: rgba(248, 250, 249, 0.06); border: 1px solid var(--wb-border-on-dark); }
.wb-hero__preview-grid span:nth-child(2) { background: var(--wb-green-deep); border-color: transparent; }

/* Single floating metric card — restraint: one accent element, not three */
.wb-hero__panel--float-1 {
  bottom: 4%;
  right: -4%;
  width: 54%;
  height: 30%;
  background: var(--wb-white);
  border: none;
  box-shadow: var(--wb-shadow-lg);
  padding: var(--wb-s-16) var(--wb-s-20);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: wb-float 7s var(--wb-ease) infinite;
}
.wb-hero__panel--float-1__top { display: flex; align-items: center; gap: var(--wb-s-8); margin-bottom: var(--wb-s-8); }
.wb-hero__panel--float-1__top svg { width: 16px; height: 16px; color: var(--wb-green); }

@keyframes wb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .wb-hero__panel--float-1 { animation: none; }
}

.wb-hero__metric-label { font-size: 0.6875rem; color: var(--wb-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.wb-hero__metric-value { font-family: var(--wb-font-display); font-size: 1.75rem; font-weight: 800; color: var(--wb-text); margin-top: 2px; }

/* ==========================================================================
   SMART DISCOVERY — signature component
   ========================================================================== */

.wb-discovery {
  position: relative;
  margin-top: -100px;
  z-index: 10;
}

.wb-discovery__panel {
  background: var(--wb-white);
  border-radius: var(--wb-radius-lg);
  box-shadow: var(--wb-shadow-lg);
  padding: var(--wb-s-24);
  position: relative;
  overflow: hidden;
}

.wb-discovery__panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wb-green-deep) 0%, var(--wb-green) 50%, var(--wb-green-bright) 100%);
}

@media (min-width: 768px) {
  .wb-discovery__panel { padding: var(--wb-s-32); }
}

.wb-discovery__tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--wb-off-white);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: var(--wb-s-24);
  overflow-x: auto;
  max-width: 100%;
}

.wb-discovery__tab {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wb-text-muted);
  white-space: nowrap;
  transition: background var(--wb-fast) var(--wb-ease), color var(--wb-fast) var(--wb-ease);
}
.wb-discovery__tab[aria-selected="true"] {
  background: var(--wb-primary-dark);
  color: var(--wb-white);
}

.wb-discovery__form {
  display: flex;
  flex-direction: column;
  gap: var(--wb-s-16);
}
@media (min-width: 640px) {
  .wb-discovery__form { flex-direction: row; }
}

.wb-discovery__input-wrap {
  flex: 1;
  position: relative;
}
.wb-discovery__input-wrap svg {
  position: absolute;
  left: var(--wb-s-16);
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--wb-text-muted);
}
.wb-discovery__input {
  width: 100%;
  padding: 0.95rem var(--wb-s-16) 0.95rem 2.75rem;
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-sm);
  font-size: 1rem;
  background: var(--wb-off-white);
}
.wb-discovery__input:focus {
  outline: none;
  border-color: var(--wb-green);
  background: var(--wb-white);
}

.wb-discovery__results {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  background: var(--wb-white);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-sm);
  box-shadow: var(--wb-shadow-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}
.wb-discovery__results.is-open { display: block; }
.wb-discovery__result {
  display: block;
  padding: var(--wb-s-12) var(--wb-s-16);
  font-size: 0.9375rem;
}
.wb-discovery__result:hover,
.wb-discovery__result.is-active { background: var(--wb-green-soft); }
.wb-discovery__result-empty {
  padding: var(--wb-s-16);
  font-size: 0.875rem;
  color: var(--wb-text-muted);
}

.wb-discovery__examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-s-8);
  margin-top: var(--wb-s-24);
}
.wb-discovery__example {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--wb-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--wb-text-muted);
}
.wb-discovery__example:hover { border-color: var(--wb-green); color: var(--wb-green-deep); }

.wb-discovery__examples-label {
  font-size: 0.75rem;
  color: var(--wb-text-muted);
  width: 100%;
  margin-bottom: 2px;
}
