/**
 * Nebo public marketing — premium cybersecurity SaaS design system.
 * Brand and surface tokens: tokens.css (body.nebo-dreams-public scope).
 */

.nebo-dreams-public {
  background: var(--nebo-surface-elevated);
  color: var(--nebo-ink);
}

/* ── Header ── */
.nebo-public-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none !important;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.nebo-public-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--nebo-border);
}

.nebo-public-header__inner {
  position: relative;
}

@media (min-width: 992px) {
  .nebo-public-header .navbar-collapse {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
  }

  .nebo-public-header__center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    margin: 0 !important;
  }

  .nebo-public-header__end {
    margin-left: auto !important;
  }
}

.nebo-public-header .navbar-brand img,
.nebo-public-header .navbar-brand .nebo-public-header__logo {
  height: 32px;
  width: auto;
}

.nebo-public-header .nav-link {
  color: var(--nebo-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.15s ease;
}

.nebo-public-header .nav-link:hover,
.nebo-public-header .nav-link:focus,
.nebo-public-header .nav-link.active {
  color: var(--nebo-brand);
}

.nebo-public-header .nav-link.active {
  font-weight: 600;
}

.nebo-public-header .btn-primary {
  background: var(--nebo-brand);
  border-color: var(--nebo-brand);
  border-radius: 999px;
  padding: 0.45rem 1.25rem;
  font-weight: 600;
}

.nebo-public-header .btn-primary:hover {
  background: var(--nebo-brand-dark);
  border-color: var(--nebo-brand-dark);
}

/* Docs page — transparent nav over dark shell */
body.nebo-docs-page .nebo-public-header .nav-link {
  color: rgba(248, 250, 252, 0.72);
}

body.nebo-docs-page .nebo-public-header .nav-link:hover,
body.nebo-docs-page .nebo-public-header .nav-link:focus,
body.nebo-docs-page .nebo-public-header .nav-link.active {
  color: #f8fafc;
}

body.nebo-docs-page .nebo-public-header .navbar-brand .nebo-public-header__logo {
  filter: brightness(0) invert(1);
}

body.nebo-docs-page .nebo-public-header .navbar-toggler-icon {
  filter: invert(1);
}

body.nebo-docs-page .nebo-public-header.is-scrolled {
  background: rgba(10, 10, 12, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.nebo-docs-page .nebo-public-header.is-scrolled .nav-link {
  color: rgba(248, 250, 252, 0.72);
}

body.nebo-docs-page .nebo-public-header.is-scrolled .nav-link:hover,
body.nebo-docs-page .nebo-public-header.is-scrolled .nav-link.active {
  color: var(--token-brand-primary);
}

@media (max-width: 991.98px) {
  .nebo-public-header__center {
    margin: 0.5rem 0 !important;
  }

  .nebo-public-header__end {
    margin-left: 0 !important;
    padding-top: 0.65rem;
    border-top: 1px solid var(--nebo-border);
  }

  body.nebo-docs-page .nebo-public-header__end {
    border-top-color: rgba(255, 255, 255, 0.08);
  }
}

/* ── Layout helpers ── */
.nebo-public-main {
  flex-grow: 1;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .nebo-public-main {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
}

/* Home hero supplies its own vertical rhythm */
.nebo-public-main:has(> .nebo-site-hero) {
  padding-top: 0;
  padding-bottom: 0;
}

/* Legal/marketing header sections — main already clears the navbar */
.nebo-public-main .nebo-public-section--header:first-child {
  padding-top: 0;
}

.nebo-site-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nebo-site-section {
  padding: 5rem 0;
}

.nebo-site-section--tight {
  padding: 3.5rem 0;
}

.nebo-site-section--surface {
  background: var(--nebo-surface);
}

.nebo-site-section--dark {
  background: var(--nebo-ink);
  color: #f1f5f9;
}

.nebo-site-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nebo-brand);
  margin-bottom: 0.75rem;
}

.nebo-site-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.nebo-site-subheading {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--nebo-muted);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.nebo-site-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.nebo-site-section-header .nebo-site-subheading {
  margin-bottom: 0;
}

/* ── Buttons ── */
.nebo-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nebo-site-btn--primary {
  background: var(--nebo-brand);
  color: #fff;
  border: 1px solid var(--nebo-brand);
}

.nebo-site-btn--primary:hover {
  background: var(--nebo-brand-dark);
  border-color: var(--nebo-brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.nebo-site-btn--secondary {
  background: #fff;
  color: var(--nebo-ink);
  border: 1px solid var(--nebo-border);
}

.nebo-site-btn--secondary:hover {
  border-color: var(--nebo-brand);
  color: var(--nebo-brand);
}

.nebo-site-btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nebo-site-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nebo-site-btn--light {
  background: #fff;
  color: var(--nebo-brand-dark);
  border: 1px solid #fff;
}

/* ── Hero ── */
.nebo-site-hero {
  position: relative;
  padding: 4.5rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(30, 64, 175, 0.06), transparent 35%),
    var(--nebo-surface-elevated);
}

.nebo-site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.nebo-site-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .nebo-site-hero__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
  }
}

.nebo-site-hero__content {
  text-align: center;
}

@media (min-width: 992px) {
  .nebo-site-hero__content {
    text-align: left;
  }
}

.nebo-site-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.nebo-site-hero__desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--nebo-muted);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

@media (min-width: 992px) {
  .nebo-site-hero__desc {
    margin: 0 0 2rem;
  }
}

.nebo-site-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .nebo-site-hero__actions {
    justify-content: flex-start;
  }
}

/* Hero floating cards */
.nebo-site-hero__visual {
  position: relative;
  min-height: 420px;
}

.nebo-site-float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  box-shadow: var(--nebo-shadow-lg);
  padding: 1rem 1.125rem;
  width: min(100%, 240px);
}

.nebo-site-float-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nebo-muted);
  margin-bottom: 0.35rem;
}

.nebo-site-float-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.nebo-site-float-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.75rem;
}

.nebo-site-float-card--challenge {
  top: 8%;
  left: 4%;
  animation: nebo-float 6s ease-in-out infinite;
}

.nebo-site-float-card--path {
  top: 42%;
  right: 2%;
  animation: nebo-float 7s ease-in-out infinite 0.5s;
}

.nebo-site-float-card--competition {
  bottom: 12%;
  left: 18%;
  animation: nebo-float 5.5s ease-in-out infinite 1s;
}

.nebo-site-float-card--leaderboard {
  top: 18%;
  right: 22%;
  width: min(100%, 220px);
  animation: nebo-float 6.5s ease-in-out infinite 0.25s;
}

.nebo-site-float-card__rank {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.25rem 0;
}

.nebo-site-float-card__rank-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--nebo-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--nebo-brand);
}

@keyframes nebo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Trust section ── */
.nebo-site-trust {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--nebo-border);
}

.nebo-site-trust__audiences {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.5rem;
}

.nebo-site-trust__audience {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nebo-muted);
}

.nebo-site-trust__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nebo-site-trust__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nebo-site-trust-stat {
  text-align: center;
}

.nebo-site-trust-stat__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--nebo-brand);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.nebo-site-trust-stat__label {
  font-size: 0.875rem;
  color: var(--nebo-muted);
}

/* ── Feature cards ── */
.nebo-site-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .nebo-site-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nebo-site-feature-card {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nebo-site-feature-card:hover {
  box-shadow: var(--nebo-shadow);
  transform: translateY(-2px);
}

.nebo-site-feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: rgba(30, 64, 175, 0.08);
  color: var(--nebo-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.nebo-site-feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nebo-site-feature-card p {
  color: var(--nebo-muted);
  margin: 0;
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* ── Learning showcase bento ── */
.nebo-site-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nebo-site-bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nebo-site-bento-card {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nebo-site-bento-card:hover {
  border-color: rgba(30, 64, 175, 0.25);
  box-shadow: var(--nebo-shadow);
}

.nebo-site-bento-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--nebo-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nebo-brand);
}

.nebo-site-bento-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.nebo-site-bento-card p {
  font-size: 0.8125rem;
  color: var(--nebo-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Competition block ── */
.nebo-site-competition {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: var(--nebo-shadow);
}

@media (min-width: 992px) {
  .nebo-site-competition {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 3rem;
  }
}

.nebo-site-competition__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.nebo-site-competition__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--nebo-muted);
  font-size: 0.9375rem;
}

.nebo-site-competition__list li i {
  color: var(--nebo-brand);
  margin-top: 0.15rem;
}

.nebo-site-competition__visual {
  display: grid;
  gap: 1rem;
}

.nebo-site-competition-mini {
  background: var(--nebo-surface);
  border-radius: var(--nebo-radius);
  padding: 1.25rem;
  border: 1px solid var(--nebo-border);
}

/* ── Community grid ── */
.nebo-site-community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .nebo-site-community-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nebo-site-community-card {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nebo-site-community-card:hover {
  box-shadow: var(--nebo-shadow);
  transform: translateY(-2px);
  color: inherit;
}

.nebo-site-community-card i {
  font-size: 1.5rem;
  color: var(--nebo-brand);
  margin-bottom: 0.75rem;
  display: block;
}

.nebo-site-community-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.nebo-site-community-card p {
  font-size: 0.8125rem;
  color: var(--nebo-muted);
  margin: 0;
}

/* ── Testimonials ── */
.nebo-site-section--testimonials {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.nebo-site-eyebrow--pill {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
}

.nebo-site-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nebo-site-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .nebo-site-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nebo-site-testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nebo-site-testimonials-carousel__viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.nebo-site-testimonials-carousel__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.nebo-site-testimonials-carousel__track .nebo-site-testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .nebo-site-testimonials-carousel__track .nebo-site-testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (min-width: 992px) {
  .nebo-site-testimonials-carousel__track .nebo-site-testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

.nebo-site-testimonials-carousel__btn {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  color: var(--nebo-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.nebo-site-testimonials-carousel__btn:hover:not(:disabled) {
  background: #f8fafc;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.nebo-site-testimonials-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nebo-site-testimonials-carousel__btn[hidden] {
  display: none;
}

@media (max-width: 575px) {
  .nebo-site-testimonials-carousel {
    gap: 0.5rem;
  }

  .nebo-site-testimonials-carousel__btn {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
}

.nebo-site-testimonial-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nebo-site-testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.nebo-site-testimonial-card__stars {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.nebo-site-testimonial-card__star {
  color: #e2e8f0;
  font-size: 1.125rem;
}

.nebo-site-testimonial-card__star.is-filled {
  color: #f59e0b;
}

.nebo-site-testimonial-card__quote {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0 0 1.5rem;
}

.nebo-site-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.nebo-site-testimonial-card__avatar-fallback {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.15), rgba(99, 102, 241, 0.2));
  color: var(--nebo-brand);
  font-weight: 700;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nebo-site-testimonial-card__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--nebo-ink);
  line-height: 1.3;
}

.nebo-site-testimonial-card__role {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.15rem;
  line-height: 1.4;
}

/* Legacy testimonial classes (kept for compatibility) */
.nebo-site-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .nebo-site-testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nebo-site-testimonial {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.75rem;
}

.nebo-site-testimonial__quote {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--nebo-ink);
  margin-bottom: 1.25rem;
}

.nebo-site-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nebo-site-testimonial__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.1);
  color: var(--nebo-brand);
  font-weight: 700;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nebo-site-testimonial__name {
  font-weight: 600;
  font-size: 0.875rem;
}

.nebo-site-testimonial__role {
  font-size: 0.8125rem;
  color: var(--nebo-muted);
}

/* ── Metrics band ── */
.nebo-site-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .nebo-site-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nebo-site-metric__value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--nebo-ink);
}

.nebo-site-metric__label {
  color: var(--nebo-muted);
  font-size: 0.9375rem;
}

/* ── Final CTA ── */
.nebo-site-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem;
  border-radius: 1.25rem;
  background: var(--nebo-surface-elevated);
  border: 1px solid var(--nebo-border);
  box-shadow: var(--nebo-shadow);
  color: var(--nebo-ink);
}

.nebo-site-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
  max-width: 28rem;
  color: var(--nebo-ink);
}

.nebo-site-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Footer ── */
.nebo-public-footer {
  background: var(--nebo-surface-elevated) !important;
  border-color: var(--nebo-border) !important;
  color: var(--nebo-muted);
}

.nebo-public-footer a {
  color: var(--nebo-muted);
  text-decoration: none;
}

.nebo-public-footer a:hover {
  color: var(--nebo-brand);
}

.nebo-public-footer h6 {
  color: var(--nebo-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.nebo-public-footer__brand img {
  height: 28px;
  width: auto;
}

.nebo-public-footer__bottom {
  border-color: var(--nebo-border) !important;
  color: var(--nebo-muted);
}

.nebo-public-footer__inner {
  max-width: 72rem;
}

.nebo-footer-subscribe {
  max-width: 18rem;
}

.nebo-footer-subscribe .input-group {
  flex-wrap: nowrap;
}

@media (max-width: 575.98px) {
  .nebo-footer-subscribe {
    max-width: 100%;
  }
}

/* ── Public page headers (catalog pages) ── */
.nebo-site-page-hero {
  padding: 0 0 2rem;
  text-align: center;
}

.nebo-site-page-hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.nebo-site-page-hero p {
  color: var(--nebo-muted);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.65;
}

.nebo-site-login-banner {
  background: rgba(30, 64, 175, 0.06);
  border: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: var(--nebo-radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nebo-site-login-banner p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--nebo-ink);
}

/* ── Challenge / catalog cards ── */
.nebo-site-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.nebo-site-catalog-card {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nebo-site-catalog-card:hover {
  box-shadow: var(--nebo-shadow);
  transform: translateY(-2px);
}

.nebo-site-catalog-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--nebo-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Leaderboard public ── */
.nebo-site-leaderboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .nebo-site-leaderboard-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nebo-site-leaderboard-stat {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius);
  padding: 1.25rem;
  text-align: center;
}

.nebo-site-leaderboard-stat h5 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nebo-brand);
  margin-bottom: 0.25rem;
}

.nebo-site-leaderboard-stat span {
  font-size: 0.8125rem;
  color: var(--nebo-muted);
}

.nebo-site-table-wrap {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  overflow: hidden;
}

.nebo-site-table-wrap .table {
  margin-bottom: 0;
}

.nebo-site-table-wrap .table thead th {
  background: var(--nebo-surface);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--nebo-muted);
  border-bottom: 1px solid var(--nebo-border);
}

/* ── Competitions page tabs ── */
.nebo-site-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.nebo-site-tabs .btn {
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.875rem;
}

.nebo-site-tabs .btn.active {
  background: var(--nebo-brand);
  border-color: var(--nebo-brand);
  color: #fff;
}

/* Difficulty badges */
.nebo-diff-easy { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.nebo-diff-medium { background: rgba(52, 211, 153, 0.15); color: var(--token-brand-primary-active); }
.nebo-diff-hard { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.nebo-diff-very_hard { background: rgba(147, 51, 234, 0.12); color: #7e22ce; }

/* ── Support page ── */
.nebo-site-support-panel {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.75rem;
}

.nebo-site-support-list {
  padding-left: 1.125rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--nebo-muted);
}

.nebo-site-support-list li {
  margin-bottom: 0.5rem;
}

.nebo-site-support-form-card {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.75rem;
  height: 100%;
}

.nebo-site-support-contact-card {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}

.nebo-site-support-contact-card i {
  font-size: 1.5rem;
  color: var(--nebo-brand);
  display: block;
  margin-bottom: 0.75rem;
}

.nebo-site-support-contact-card a {
  font-size: 0.875rem;
  word-break: break-all;
}

.nebo-site-support-free {
  background: var(--nebo-surface);
}

.nebo-site-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nebo-site-badge--team {
  background: var(--nebo-brand-muted);
  color: var(--nebo-brand);
}

/* ── Competition detail ── */
.nebo-site-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--nebo-muted);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.nebo-site-back-link:hover {
  color: var(--nebo-brand);
}

.nebo-site-event-detail-hero {
  margin-bottom: 2rem;
}

.nebo-site-event-detail-cover {
  position: relative;
  min-height: 200px;
  border-radius: var(--nebo-radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(30, 64, 175, 0.04));
  border: 1px solid var(--nebo-border);
}

.nebo-site-event-detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.nebo-site-event-detail-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 60%);
}

.nebo-site-event-detail-cover .nebo-event-date-badge {
  z-index: 2;
}

.nebo-site-event-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.nebo-site-event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .nebo-site-event-detail-layout {
    grid-template-columns: 1fr;
  }
}

.nebo-site-event-detail-main,
.nebo-site-event-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.nebo-site-event-detail-sidebar {
  position: sticky;
  top: 4.75rem;
}

.nebo-site-event-detail-main .nebo-site-panel,
.nebo-site-event-detail-sidebar .nebo-site-panel {
  margin-bottom: 0;
  border-radius: var(--nebo-radius-lg);
  overflow: hidden;
}

.nebo-site-panel {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.nebo-site-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--nebo-border);
  background: var(--nebo-surface);
}

.nebo-site-panel__header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.nebo-site-panel__body {
  padding: 1.25rem;
}

.nebo-site-panel__body--flush {
  padding: 0;
}

.nebo-site-event-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.nebo-site-event-overview-item {
  padding: 0.875rem;
  border-radius: var(--nebo-radius);
  background: var(--nebo-surface);
  border: 1px solid var(--nebo-border);
}

.nebo-site-event-overview-label {
  display: block;
  color: var(--nebo-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.nebo-site-event-overview-value {
  font-weight: 600;
  line-height: 1.4;
  font-size: 0.9375rem;
}

.nebo-site-event-challenge-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--nebo-radius);
  background: var(--nebo-surface);
  border: 1px solid var(--nebo-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nebo-site-event-challenge-link:hover {
  background: rgba(30, 64, 175, 0.06);
  border-color: rgba(30, 64, 175, 0.2);
  color: inherit;
  transform: translateX(2px);
}

.nebo-site-event-challenge-link .nebo-challenge-points {
  margin-left: auto;
  color: var(--nebo-brand);
  font-weight: 600;
  font-size: 0.875rem;
}

.nebo-site-event-locked {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.nebo-site-event-locked-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.nebo-site-event-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--nebo-border);
}

.nebo-site-event-info-row:last-child {
  border-bottom: none;
}

.nebo-site-event-info-label {
  color: var(--nebo-muted);
  font-size: 0.8125rem;
  min-width: 7rem;
  flex-shrink: 0;
}

.nebo-site-event-info-value {
  font-size: 0.875rem;
  font-weight: 500;
}

.nebo-site-registration-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-radius: var(--nebo-radius);
  border: 1px solid var(--nebo-border);
  background: var(--nebo-surface);
  cursor: pointer;
  margin-bottom: 0;
}

.nebo-site-registration-option input {
  margin-top: 0.15rem;
}

.nebo-site-registration-option strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.9375rem;
}

.nebo-site-registration-option span {
  color: var(--nebo-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.nebo-site-event-registered {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.nebo-site-event-registered-icon {
  font-size: 2rem;
  color: var(--nebo-brand);
  margin-bottom: 0.5rem;
  display: block;
}

.nebo-site-event-leaderboard-title .ti-trophy {
  color: var(--token-brand-primary-light);
}

/* ── Landing refresh: hero trust, pipeline, impact stats ── */
.nebo-site-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  justify-content: center;
}

@media (min-width: 992px) {
  .nebo-site-hero__trust {
    justify-content: flex-start;
  }
}

.nebo-site-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nebo-muted);
}

.nebo-site-hero__trust i {
  color: var(--nebo-brand);
  font-size: 1rem;
}

.nebo-site-trust--stats {
  padding-top: 0;
  border-bottom: 0;
}

.nebo-site-impact-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

@media (min-width: 768px) {
  .nebo-site-impact-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .nebo-site-impact-stats {
    grid-template-columns: repeat(6, 1fr);
  }
}

.nebo-site-impact-stat {
  text-align: center;
  padding: 0.5rem;
}

.nebo-site-impact-stat__value {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--nebo-brand);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.nebo-site-impact-stat__label {
  font-size: 0.8125rem;
  color: var(--nebo-muted);
  line-height: 1.35;
}

.nebo-site-pipeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .nebo-site-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .nebo-site-pipeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nebo-site-pipeline__step {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.5rem;
  height: 100%;
}

.nebo-site-pipeline__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(var(--nebo-brand-rgb, 16, 185, 129), 0.12);
  color: var(--nebo-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.nebo-site-pipeline__step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nebo-site-pipeline__step > p {
  color: var(--nebo-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.nebo-site-pipeline__step ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--nebo-muted);
  line-height: 1.6;
}

.nebo-site-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .nebo-site-split {
    grid-template-columns: 1fr 1fr;
  }
}

.nebo-site-lab-preview {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--nebo-shadow);
}

.nebo-site-lab-preview__header {
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nebo-site-tag-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nebo-site-tag {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--nebo-surface);
  border: 1px solid var(--nebo-border);
  font-size: 0.875rem;
  font-weight: 500;
}

.nebo-site-earn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .nebo-site-earn-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nebo-site-earn-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
}

.nebo-site-earn-item i {
  color: var(--nebo-brand);
  font-size: 1.25rem;
}

.nebo-site-community-card--static {
  cursor: default;
  text-decoration: none;
  color: inherit;
}

.nebo-site-testimonials-static {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .nebo-site-testimonials-static {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nebo-site-testimonial-quote {
  background: #fff;
  border: 1px solid var(--nebo-border);
  border-radius: var(--nebo-radius-lg);
  padding: 1.5rem;
  margin: 0;
  height: 100%;
}

.nebo-site-testimonial-quote p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--nebo-ink);
  margin-bottom: 1rem;
}

.nebo-site-testimonial-quote footer {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nebo-muted);
}

.nebo-site-cta__desc {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

