/* ══════════════════════════════════════
   FEATURES PAGE — features.css
══════════════════════════════════════ */

/* ── Hero ── */
.feat-hero .split {
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.feat-hero__copy h1 {
  margin-bottom: 1.5rem;
}

.feat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  list-style: none;
}

.feat-pill {
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--panel);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Screenshot mosaic */
.feat-hero__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.feat-mosaic-item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.feat-mosaic-item:nth-child(2) { transform: translateY(1.25rem); }
.feat-mosaic-item:nth-child(4) { transform: translateY(1.25rem); }

.feat-mosaic-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* ── Career Mode ── */
.feat-career .split {
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.feat-career h2 {
  margin-bottom: 1.25rem;
}

.feat-body {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.68;
  margin-bottom: 2rem;
}

.feat-career-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feat-career-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}

.feat-career-item:first-child {
  border-top: 1px solid var(--line);
}

.feat-career-item__arrow {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: var(--green);
  margin-top: 0.1rem;
  line-height: 1.4;
}

.feat-career-item__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.feat-career-item__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Leagues ── */
.feat-leagues {
  overflow: hidden;
}

.feat-leagues__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  position: relative;
}

.feat-leagues__stat {
  position: relative;
}

.feat-leagues__number {
  display: block;
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 2px rgba(70, 255, 87, 0.22);
  text-stroke: 2px rgba(70, 255, 87, 0.22);
  user-select: none;
  margin-bottom: 1.75rem;
}

.feat-leagues__stat .label {
  margin-bottom: 0.75rem;
}

.feat-leagues__stat h2 {
  margin-bottom: 1.25rem;
}

.feat-leagues__visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(1deg);
}

.feat-leagues__visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* ── Team Management ── */
.feat-management__head {
  margin-bottom: 3rem;
}

.feat-management__head h2 {
  margin-bottom: 0.875rem;
}

.feat-management__lead {
  max-width: 38rem;
  margin: 0;
}

.feat-management__grid {
  gap: 1.25rem;
}

.feat-mgmt-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-height: 220px;
}

.feat-mgmt-card__icon {
  font-size: 2.25rem;
  line-height: 1;
  display: block;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-mgmt-card__title {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

/* ── Skill-Based Gameplay ── */
.feat-skill__head {
  margin-bottom: 2.5rem;
}

.feat-skill__head h2 {
  margin-bottom: 0.875rem;
}

.feat-skill__lead {
  max-width: 40rem;
  margin: 0;
}

.feat-skill__showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.feat-skill__showcase img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.feat-skill__showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 53, 0.45), transparent 55%);
  pointer-events: none;
}

/* Floating skill badges */
.skill-badge {
  position: absolute;
  z-index: 2;
  padding: 0.75rem 1.125rem;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 140px;
}

.skill-badge__value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
}

.skill-badge__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skill-badge--tl { top:    6%;  left:  2.5%; }
.skill-badge--tr { top:    6%;  right: 2.5%; }
.skill-badge--bc { bottom: 8%;  left:  50%;  transform: translateX(-50%); }

/* ── Leaderboards & Achievements ── */
.feat-ranking__head {
  margin-bottom: 2.5rem;
}

.feat-ranking__head h2 {
  margin-bottom: 0;
}

.feat-ranking__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feat-rank-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: background 0.25s;
}

.feat-rank-card:hover {
  background: var(--panel-hover);
}

.feat-rank-card__icon {
  font-size: 2.75rem;
  line-height: 1;
  display: block;
}

.feat-rank-card__body h3 {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  margin-bottom: 0.875rem;
}

.feat-rank-card__body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.feat-rank-card__list {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feat-rank-card__list li {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feat-rank-card__list li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ── Download CTA ── */
.feat-cta {
  background: linear-gradient(150deg, rgba(18, 217, 255, 0.12), rgba(70, 255, 87, 0.08));
  border-top: 1px solid var(--line);
  text-align: center;
}

.feat-cta__inner {
  max-width: 38rem;
  margin: 0 auto;
}

.feat-cta__inner h2 {
  margin-bottom: 1.25rem;
}

.feat-cta__inner .lead {
  margin-bottom: 2.25rem;
}

.feat-cta__badge {
  display: inline-block;
  transition: transform 0.22s var(--ease-out), opacity 0.2s;
}

.feat-cta__badge:hover { transform: translateY(-3px); opacity: 0.85; }

.feat-cta__badge:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1020px) {
  .feat-hero__mosaic {
    display: none;
  }

  .feat-hero .split {
    grid-template-columns: 1fr;
  }

  .feat-leagues__grid {
    grid-template-columns: 1fr;
  }

  .feat-leagues__visual {
    transform: none;
  }

  .feat-leagues__number {
    font-size: clamp(4rem, 18vw, 10rem);
    margin-bottom: 1rem;
  }

  .feat-ranking__cards {
    grid-template-columns: 1fr;
  }

  .skill-badge--tr { display: none; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 640px) {
  .feat-management__grid {
    grid-template-columns: 1fr;
  }

  .skill-badge--tl,
  .skill-badge--bc {
    padding: 0.5rem 0.75rem;
    min-width: 110px;
  }

  .skill-badge__value { font-size: 0.8125rem; }
  .skill-badge__label { font-size: 0.6875rem; }
}
