/* Shared public-page hero system.
 * Opt-in only: these rules do not affect pages without .public-hero.
 */
section.public-hero {
  --public-hero-accent-start: #22d3ee;
  --public-hero-accent-end: #a855f7;
  --public-hero-copy: #9ca3af;
  --public-hero-pill-bg: rgba(15, 23, 42, 0.58);
  --public-hero-pill-border: rgba(100, 116, 139, 0.24);
  padding: 2rem 1rem 1rem;
  position: relative;
}

.public-hero::after {
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.18), rgba(168, 85, 247, 0.2), transparent);
  bottom: 0;
  content: '';
  height: 1px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.public-hero .public-hero__container {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  width: 100%;
}

.public-hero .public-hero__layout {
  align-items: flex-start;
  display: flex;
  gap: 2.5rem;
  justify-content: space-between;
  padding: 2rem 0 1rem;
}

.public-hero--compact .public-hero__layout {
  align-items: flex-end;
  gap: 1.5rem;
}

.public-hero .public-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.public-hero .ranking-header .public-hero__kicker {
  color: #22d3ee;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.public-hero .ranking-header .public-hero__title {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.public-hero .public-hero__accent {
  background: linear-gradient(90deg, var(--public-hero-accent-start), var(--public-hero-accent-end));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.public-hero .ranking-header .public-hero__subtitle {
  color: var(--public-hero-copy);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 46rem;
}

/* Ranking descriptions have room beside their compact CTA at desktop widths. */
.public-hero--ranking .ranking-header .public-hero__subtitle {
  max-width: 54rem;
}

.public-hero .public-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1rem;
}

.public-hero .public-hero__pill {
  align-items: center;
  background: var(--public-hero-pill-bg);
  border: 1px solid var(--public-hero-pill-border);
  border-radius: 8px;
  color: #cbd5e1;
  display: inline-flex;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  gap: 0.45rem;
  line-height: 1.2;
  min-height: 2rem;
  padding: 0 0.75rem;
}

.public-hero .public-hero__pill i {
  color: #22d3ee;
}

.public-hero .public-hero__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.public-hero--compact .public-hero__actions {
  justify-content: flex-end;
  margin-top: 0;
}

.public-hero .public-hero__button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  line-height: 1;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  text-decoration: none;
}

.public-hero .public-hero__visual {
  flex: 0 0 auto;
  margin: 0;
  max-width: 100%;
}

.public-hero .public-hero__visual--particles {
  height: 380px;
  width: 520px;
}

.public-hero .public-hero__visual--terminal {
  width: 540px;
}

@media (min-width: 640px) {
  section.public-hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .public-hero .ranking-header .public-hero__title {
    font-size: 2.85rem;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .public-hero--ranking .ranking-header .public-hero__title {
    font-size: 2.4rem;
  }
}

@media (min-width: 1024px) {
  section.public-hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Split heroes stack before their fixed-width visuals can crush the copy. */
@media (max-width: 1100px) {
  .public-hero--split .public-hero__layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.75rem;
  }

  .public-hero--split .public-hero__copy {
    max-width: 46rem;
    width: 100%;
  }

  .public-hero--split .public-hero__visual {
    align-self: center;
  }

  .public-hero--split .public-hero__visual--particles {
    height: 320px;
  }
}

@media (max-width: 768px) {
  section.public-hero {
    padding: 1.25rem 1rem 1rem;
  }

  .public-hero .public-hero__layout {
    gap: 1.5rem;
    padding: 1.5rem 0 0.75rem;
  }

  .public-hero .ranking-header .public-hero__title {
    font-size: 2rem;
  }

  .public-hero .ranking-header .public-hero__subtitle {
    font-size: 1rem;
  }

  .public-hero--compact .public-hero__layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .public-hero--compact .public-hero__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .public-hero--compact .public-hero__button {
    flex: 1 1 11rem;
  }
}

@media (max-width: 639px) {
  .public-hero .public-hero__actions {
    width: 100%;
  }

  .public-hero .public-hero__button {
    flex: 1 1 10rem;
  }

  .public-hero .public-hero__visual--particles {
    height: clamp(220px, 65vw, 300px);
    width: 100%;
  }

  .public-hero .public-hero__visual--terminal {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-hero *,
  .public-hero *::before,
  .public-hero *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
