/* ===== Authority home hero ===== */
.home-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 2.25rem 0 0;
  margin-bottom: 2rem;
  isolation: isolate;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 65% at 12% 20%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 58%),
    radial-gradient(ellipse 50% 55% at 92% 15%, color-mix(in srgb, #fff 10%, transparent), transparent 52%),
    linear-gradient(165deg, var(--primary) 0%, var(--primary-dark) 55%, color-mix(in srgb, var(--primary) 70%, #000) 100%);
}

.home-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 40%, transparent) 0%, transparent 28%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, .05), transparent 28%);
  pointer-events: none;
}

.home-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 75%);
  pointer-events: none;
}

.home-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: min(68vh, 560px);
  padding-block: 1.5rem 2.25rem;
}

.home-hero__content {
  animation: homeHeroIn .7s cubic-bezier(.22, 1, .36, 1) both;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  margin-bottom: 1.15rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
  backdrop-filter: blur(8px);
}

.home-hero__title {
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.home-hero__nick {
  margin: .45rem 0 0;
  font-size: .975rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
}

.home-hero__desc {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, .86);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.home-hero__cta {
  min-height: 48px;
  padding-inline: 1.35rem;
  font-weight: 700;
}

.home-hero .btn--white {
  color: var(--primary);
  background: #fff;
}

.home-hero .btn--white:hover {
  background: #fff;
  color: var(--primary-dark);
}

.home-hero__play {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .9);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.home-hero__play:hover {
  color: #fff;
  gap: .9rem;
}

.home-hero__play-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .8rem;
  transition: var(--transition);
}

.home-hero__play:hover .home-hero__play-icon {
  background: #fff;
  color: #0f172a;
  transform: scale(1.06);
}

.home-hero__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  margin-top: 1.5rem;
}

.home-hero__social-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.home-hero__social-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.home-hero__social-link {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-hero__social-link:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
}

.home-hero__social-link--facebook:hover { background: #1877f2; }
.home-hero__social-link--whatsapp:hover { background: #25d366; }
.home-hero__social-link--telegram:hover { background: #229ed9; }
.home-hero__social-link--instagram:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}
.home-hero__social-link--youtube:hover { background: #ff0000; }

.home-hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 380px);
  animation: homeHeroIn .85s .12s cubic-bezier(.22, 1, .36, 1) both;
}

.home-hero__logo {
  position: absolute;
  top: -.35rem;
  inset-inline-start: -.35rem;
  z-index: 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, .95);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  background: #fff;
  padding: 4px;
}

.home-hero__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  padding: 1.15rem;
}

.home-hero__frame-glow {
  display: none;
}

.home-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
}

.home-hero__photo--fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 5rem;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 12px;
}

.home-hero__stats-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 1.75rem;
  margin-top: -.5rem;
  animation: homeHeroIn .8s .22s cubic-bezier(.22, 1, .36, 1) both;
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)),
    rgba(15, 23, 42, .35);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
}

/* 3 stats: two on top, one full-width below */
.home-hero__stats:has(.home-hero__stat:nth-child(3):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

.home-hero__stats:has(.home-hero__stat:nth-child(3):last-child) .home-hero__stat:last-child {
  grid-column: 1 / -1;
  border-inline-end: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.home-hero__stats:has(.home-hero__stat:nth-child(3):last-child) .home-hero__stat:nth-child(2) {
  border-inline-end: none;
}

.home-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: 1.05rem .85rem 1.15rem;
  text-align: center;
  border-inline-end: 1px solid rgba(255, 255, 255, .12);
}

.home-hero__stat:last-child {
  border-inline-end: none;
}

.home-hero__stat-value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.home-hero__stat-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  max-width: 100%;
}

.home-hero__stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: .75rem;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .16);
}

.home-hero__stat-label {
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
  line-height: 1.3;
  text-align: start;
}

@keyframes homeHeroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .home-hero {
    padding-top: 1.75rem;
  }

  .home-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.75rem;
    padding-block: 1rem 1.5rem;
    text-align: center;
  }

  .home-hero__content {
    order: 2;
  }

  .home-hero__visual {
    order: 1;
    justify-self: center;
    width: min(100%, 300px);
  }

  .home-hero__desc {
    margin-inline: auto;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-hero__play {
    justify-content: center;
  }

  .home-hero__social {
    align-items: center;
  }

  .home-hero__social-list {
    justify-content: center;
  }

  .home-hero__badge {
    margin-inline: auto;
  }

  .home-hero__logo {
    inset-inline-start: .5rem;
    top: .5rem;
  }

  .home-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-hero__stat:nth-child(2) {
    border-inline-end: none;
  }

  .home-hero__stat:nth-child(1),
  .home-hero__stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  /* 3 stats on mobile: bottom item full width, no stacked column look */
  .home-hero__stats:has(.home-hero__stat:nth-child(3):last-child) .home-hero__stat:last-child {
    border-top: none;
    border-bottom: none;
  }

  .home-hero__stats:has(.home-hero__stat:nth-child(3):last-child) .home-hero__stat:nth-child(1),
  .home-hero__stats:has(.home-hero__stat:nth-child(3):last-child) .home-hero__stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
}

@media (max-width: 480px) {
  .home-hero__actions {
    flex-direction: column;
  }

  .home-hero__cta {
    width: 100%;
  }

  .home-hero__frame {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__content,
  .home-hero__visual,
  .home-hero__stats-wrap,
  .home-hero__photo {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
