html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* —— Home shell overrides —— */
.hub-home .hub-bg-deco,
.hub-home .hub-z-trail {
  display: none !important;
}

.hub-home .hub-shell {
  background: #f5f5f7;
}

/* —— Home uses same white nav as every other page —— */
body.hub-body.hub-home .site-nav.navbar,
body.hub-body.hub-home .site-nav.navbar.scrolled,
body.hub-body.hub-home .site-nav.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.15) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

body.hub-body.hub-home .site-nav-link,
body.hub-body.hub-home .site-nav-dropdown-toggle,
body.hub-body.hub-home .site-nav-brand--studios .lucki-studios-wordmark--nav,
body.hub-body.hub-home .site-nav-brand--studios .lucki-studios-wordmark__lucki,
body.hub-body.hub-home .site-nav-brand--studios .lucki-studios-wordmark__studios {
  color: #4b5563 !important;
  text-shadow: none !important;
}

body.hub-body.hub-home .site-nav-link:hover,
body.hub-body.hub-home .site-nav-dropdown-toggle:hover {
  color: #111827 !important;
  background: transparent !important;
}

body.hub-body.hub-home .site-nav-link--active {
  color: #111827 !important;
  background: transparent !important;
}

body.hub-body.hub-home .site-nav-signin-btn {
  background: #5865f2 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.45) !important;
}

body.hub-body.hub-home .site-nav-signin-btn:hover {
  background: #4752c4 !important;
  color: #fff !important;
}

body.hub-body.hub-home .site-nav-menu-btn,
body.hub-body.hub-home .site-nav-lang-btn {
  color: #4b5563 !important;
}

body.hub-body.hub-home .lucki-studios-logo--nav {
  filter: none;
}

@media (max-width: 1023px) {
  body.hub-body.hub-home .site-nav.navbar,
  body.hub-body.hub-home .site-nav.navbar.scrolled,
  body.hub-body.hub-home .site-nav.navbar.is-scrolled {
    z-index: 5100 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  body.hub-body.hub-home .site-nav-menu-btn {
    color: #4b5563 !important;
    background: #fff !important;
    border-color: #e5e7eb !important;
  }

  body.hub-body.hub-home .site-nav-signin-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0 !important;
  }

  body.hub-body.hub-home .site-nav-drawer .site-nav-links {
    background: #fff !important;
    border-top-color: rgba(15, 23, 42, 0.08) !important;
  }

  body.hub-body.hub-home .site-nav-drawer .site-nav-link {
    color: #4b5563 !important;
  }
}

/* —— Hero —— */
.hub-home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(100px, 14vh, 140px) 1.25rem clamp(56px, 8vh, 80px);
  overflow: hidden;
}

.hub-home-hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('../assets/hub/hero-forest-night.jpg?v=1') center / cover no-repeat;
}

.hub-home-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.5) 0%, rgba(6, 10, 18, 0.35) 40%, rgba(6, 10, 18, 0.75) 100%),
    radial-gradient(ellipse 80% 55% at 50% 35%, rgba(112, 168, 255, 0.18), transparent 60%);
}

.lucki-hero-text-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  padding: clamp(16px, 4vw, 28px) clamp(20px, 5vw, 36px);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Smooth hero text — no stroke overlap */
.lucki-hero-glass {
  margin: 0;
  font-family: var(--lucki-wordmark, 'Fredoka', sans-serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #ffffff;
  -webkit-text-stroke: 0;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.55),
    0 8px 40px rgba(0, 0, 0, 0.35);
}

.lucki-hero-glass--title {
  font-size: clamp(3rem, 11vw, 5.5rem);
  white-space: nowrap;
}

.lucki-hero-glass--subtitle {
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.03em;
}

.hub-home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.5vw, 22px);
}

.hub-home-hero__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eff6ff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(59, 130, 246, 0.22));
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.12) inset,
    0 8px 32px rgba(37, 99, 235, 0.28);
}

.hub-home-hero__count i {
  color: #93c5fd;
  font-size: 0.8125rem;
}

.hub-home-hero__count #hubHomeLiveTotal {
  color: #bfdbfe;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hub-home-hero__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 32px;
  font-family: var(--lucki-wordmark, 'Fredoka', sans-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: none;
  background: linear-gradient(180deg, #fff 0%, #e8e8ec 100%);
  border: none;
  border-radius: 999px;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hub-home-hero__view-btn:hover {
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.22),
    0 16px 40px rgba(0, 0, 0, 0.4);
}

.hub-home-hero__view-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* —— Servers section —— */
#hubs {
  scroll-margin-top: 100px;
}

.hub-home-gates {
  padding: clamp(56px, 8vw, 88px) 1.25rem clamp(64px, 9vw, 96px);
  background: #f5f5f7;
}

.hub-home-gates__head {
  max-width: 40rem;
  margin: 0 auto clamp(32px, 5vw, 48px);
  text-align: center;
}

.hub-home-gates__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

.hub-home-gates__title {
  margin: 0 0 10px;
  font-family: var(--lucki-wordmark, 'Fredoka', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #111827;
}

.hub-home-gates__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #6b7280;
}

.hub-home-gates__grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hub-home-gates__grid {
    max-width: 1100px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .hub-home-gates__grid {
    max-width: 1200px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— InPvP server card —— */
.inpvp-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inpvp-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.14);
}

.inpvp-card__media {
  position: relative;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 20px;
  overflow: hidden;
  isolation: isolate;
}

.inpvp-card__media-bg {
  position: absolute;
  inset: -12px;
  background: center / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.06);
  z-index: 0;
}

.inpvp-card--ztt .inpvp-card__media-bg {
  background-image: url('../assets/hub/card-bg-tier-testing.png?v=1');
}

.inpvp-card--coaching .inpvp-card__media-bg {
  background-image: url('../assets/hub/card-bg-coaching.png?v=1');
}

.inpvp-card--smp .inpvp-card__media-bg,
.inpvp-card--lucki .inpvp-card__media-bg {
  background-image: url('../assets/hub/card-bg-lucki.png?v=4');
}

.inpvp-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 1;
}

.inpvp-card__logo-slot {
  position: relative;
  z-index: 2;
  width: min(94%, 320px);
  height: 150px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inpvp-card__wordmark {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  flex-shrink: 0;
}

.inpvp-card--ztt .inpvp-card__wordmark {
  width: min(100%, 300px);
  height: auto;
}

.inpvp-card--coaching .inpvp-card__wordmark {
  width: 280px;
  height: auto;
}

.inpvp-card--smp .inpvp-card__wordmark,
.inpvp-card--lucki .inpvp-card__wordmark {
  width: min(100%, 300px);
  height: auto;
}

.inpvp-card__members {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.inpvp-card:hover .inpvp-card__members,
.inpvp-card:focus-within .inpvp-card__members {
  opacity: 1;
  transform: translateY(0);
}

.inpvp-card--ztt .inpvp-card__members {
  border-color: rgba(251, 191, 36, 0.35);
}

.inpvp-card--ztt .inpvp-card__members-count {
  color: #fcd34d;
}

.inpvp-card--coaching .inpvp-card__members {
  border-color: rgba(248, 113, 113, 0.35);
}

.inpvp-card--coaching .inpvp-card__members-count {
  color: #fca5a5;
}

.inpvp-card__members-count {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.inpvp-card__stripe {
  height: 10px;
  flex-shrink: 0;
}

.inpvp-card--ztt .inpvp-card__stripe {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.inpvp-card--coaching .inpvp-card__stripe {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
}

.inpvp-card__body {
  padding: 24px 22px 26px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inpvp-card__title {
  margin: 0 0 12px;
  font-family: var(--lucki-wordmark, 'Fredoka', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.inpvp-card--ztt .inpvp-card__title {
  color: #d97706;
}

.inpvp-card--coaching .inpvp-card__title {
  color: #dc2626;
}

.inpvp-card__desc {
  margin: 0 0 22px;
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
  color: #374151;
  max-width: 32ch;
}

.inpvp-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
  border-radius: 999px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.inpvp-card__cta svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.inpvp-card--ztt .inpvp-card__cta {
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  box-shadow: 0 4px 0 #b45309;
}

.inpvp-card--coaching .inpvp-card__cta {
  background: linear-gradient(180deg, #f87171, #dc2626);
  box-shadow: 0 4px 0 #991b1b;
  color: #111827;
}

.inpvp-card--lucki .inpvp-card__cta,
.inpvp-card--smp .inpvp-card__cta {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  box-shadow: 0 4px 0 #075985;
  color: #fff;
}

.inpvp-card--lucki .inpvp-card__cta svg,
.inpvp-card--smp .inpvp-card__cta svg {
  stroke: #fff;
}

.inpvp-card:hover .inpvp-card__cta {
  filter: brightness(1.05);
}

.inpvp-card--soon {
  cursor: default;
  pointer-events: none;
}

.inpvp-card--soon:hover {
  transform: none;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.08);
}

.inpvp-card--smp .inpvp-card__stripe,
.inpvp-card--lucki .inpvp-card__stripe {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.inpvp-card--smp .inpvp-card__title,
.inpvp-card--lucki .inpvp-card__title {
  color: #1e40af;
}

.inpvp-card__soon-pill,
.inpvp-card__new-pill {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 5px 14px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a8a;
  background: #bfdbfe;
  border-radius: 999px;
}

.inpvp-card__new-pill {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.inpvp-card__cta--locked {
  background: linear-gradient(180deg, #38bdf8, #0284c7) !important;
  color: #fff !important;
  box-shadow: 0 4px 0 #075985 !important;
  cursor: not-allowed;
  opacity: 0.95;
}

.inpvp-card__cta--locked i {
  font-size: 1rem;
}

/* —— Spotlight (cleaner) —— */
.hub-home-spotlight {
  padding: clamp(56px, 8vw, 88px) 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hub-home-spotlight__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.hub-home-spotlight__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto clamp(32px, 5vw, 48px);
}

.hub-home-spotlight__title {
  margin: 0 0 12px;
  font-family: var(--lucki-wordmark, 'Fredoka', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #1d4ed8;
  letter-spacing: -0.02em;
}

.hub-home-spotlight__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #2563eb;
  font-weight: 600;
}

.hub-home-spotlight__grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.hub-home-spotlight__grid--showcase {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .hub-home-spotlight__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hub-home-spotlight__card {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-home-spotlight__card--showcase:hover {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.hub-home-spotlight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  font-size: 1.125rem;
  color: #475569;
  background: #f1f5f9;
  border-radius: 12px;
}

.hub-home-spotlight__icon--ztt {
  color: #d97706;
  background: rgba(251, 191, 36, 0.15);
}

.hub-home-spotlight__icon--coach {
  color: #dc2626;
  background: rgba(248, 113, 113, 0.15);
}

.hub-home-spotlight__card h3 {
  margin: 0 0 8px;
  font-family: var(--lucki-wordmark, 'Fredoka', sans-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1d4ed8;
}

.hub-home-spotlight__card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #1e40af;
  font-weight: 500;
}

/* —— About CTA band —— */
.hub-home-about {
  padding: clamp(40px, 6vw, 64px) 1.25rem 0;
  background: #fff;
}

.hub-home-about__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.hub-home-about__card {
  text-align: center;
  padding: clamp(36px, 5vw, 48px) clamp(24px, 4vw, 40px);
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.hub-home-about__eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.hub-home-about__title {
  margin: 0 0 14px;
  font-family: var(--lucki-wordmark, 'Fredoka', sans-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hub-home-about__text {
  margin: 0 auto 22px;
  max-width: 40ch;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
}

.hub-home-about__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--lucki-wordmark, 'Fredoka', sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #eff6ff;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hub-home-about__link:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.42);
}

.hub-home-divider {
  display: none;
}

@media (max-width: 640px) {
  .lucki-hero-glass--title {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    white-space: normal;
    text-align: center;
  }

  .inpvp-card__media {
    height: 196px;
    min-height: 196px;
    max-height: 196px;
  }

  .inpvp-card__logo-slot {
    height: 128px;
    width: min(92%, 280px);
  }

  .inpvp-card--coaching .inpvp-card__wordmark {
    width: 240px;
  }

  .inpvp-card--smp .inpvp-card__wordmark {
    width: 200px;
  }

  .inpvp-card--ztt .inpvp-card__wordmark {
    width: min(100%, 260px);
  }

  .inpvp-card__desc {
    font-size: 0.875rem;
  }

  .inpvp-card__cta {
    font-size: 0.75rem;
    padding: 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inpvp-card__members {
    transition: none;
  }
}
