/* ============================================================
   HOME v3 — "APEX PREDATOR"
   Editorial cinematic redesign. Black + liquid gold.
   Sharp angles, asymmetric grid, dramatic typography, hover-reactive.
   ============================================================ */

/* Kill any v2 leftovers */
body[data-page="home"] .home-hero,
body[data-page="home"] .season-banner,
body[data-page="home"] .section-mode-showcase,
body[data-page="home"] .section-server-status,
body[data-page="home"] .section-podium,
body[data-page="home"] .section-news-v2,
body[data-page="home"] .section-community,
body[data-page="home"] .section-cta-v2,
body[data-page="home"] .floating-social,
body[data-page="home"] .section.hero,
body[data-page="home"] .features-section,
body[data-page="home"] .modes-section,
body[data-page="home"] .server-status-section,
body[data-page="home"] .faq-section,
body[data-page="home"] .stats-container,
body[data-page="home"] .cta-bar { display: none !important; }

/* ============================================================
   ATMOSPHERIC BACKDROP
   ============================================================ */
body[data-page="home"] {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--theme-primary-rgb), 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 60%, rgba(var(--theme-accent-rgb), 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(124, 58, 237, 0.08), transparent 60%),
    linear-gradient(180deg, #050308 0%, #0a0805 100%);
}

body[data-page="home"] .header-banner {
  background: linear-gradient(180deg, rgba(5, 3, 8, 0.85) 0%, rgba(5, 3, 8, 0.4) 70%, transparent 100%);
  backdrop-filter: blur(8px);
}

/* ============================================================
   SECTION 01 — APEX HERO
   ============================================================ */
.apex-hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 24px 80px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

/* Decorative grid + scanlines */
.apex-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 75%);
  z-index: -2;
}

.apex-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.018) 3px,
      rgba(255, 255, 255, 0.018) 4px
    );
  pointer-events: none;
  z-index: -1;
}

/* Massive jaguar watermark */
.apex-hero__watermark {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px;
  height: 720px;
  z-index: -1;
  opacity: 0.085;
  pointer-events: none;
  background:
    url('/assets/craftulus-icon-transparent.png') center/contain no-repeat;
  filter: brightness(2);
  animation: watermarkFloat 18s ease-in-out infinite;
}
@keyframes watermarkFloat {
  0%, 100% { transform: translateY(-50%) scale(1) rotate(-3deg); }
  50%      { transform: translateY(-52%) scale(1.04) rotate(2deg); }
}

.apex-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Editorial chip row */
.apex-hero__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.apex-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.08);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
  backdrop-filter: blur(8px);
}
.apex-chip--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.8); }
}
.apex-chip--version {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* MASSIVE display title */
.apex-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 16vw, 14rem) !important;
  line-height: 0.82;
  letter-spacing: -0.04em;
  margin: 0;
  color: transparent;
  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #fff8df 18%,
      #fde68a 45%,
      var(--theme-primary) 75%,
      var(--theme-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 8px 60px rgba(var(--theme-primary-rgb), 0.4));
  text-transform: uppercase;
  position: relative;
}
.apex-title > span { display: block; }
.apex-title__sub {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2vw, 1.6rem) !important;
  letter-spacing: 0.4em;
  background: none;
  -webkit-text-fill-color: var(--theme-primary);
  color: var(--theme-primary);
  margin-top: 1rem;
  font-weight: 400;
  filter: none;
  text-shadow: 0 0 30px rgba(var(--theme-primary-rgb), 0.5);
}

.apex-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  margin: 0;
  font-weight: 400;
}

/* IP & CTA row */
.apex-ip-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}

.apex-ip {
  display: inline-flex;
  background: #000;
  border: 2px solid rgba(var(--theme-primary-rgb), 0.5);
  border-radius: 999px;
  padding: 4px;
  align-items: stretch;
  box-shadow:
    0 24px 60px -16px rgba(var(--theme-primary-rgb), 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.apex-ip::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--theme-primary),
    transparent 25%,
    var(--theme-accent) 50%,
    transparent 75%,
    var(--theme-primary)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: ipBorder 4s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ipBorder { to { --angle: 360deg; } }

.apex-ip__addr {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.02em;
  position: relative;
}
.apex-ip__addr::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 14px #10b981, 0 0 0 4px rgba(16, 185, 129, 0.15);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.apex-ip__copy {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  color: #0a0805;
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.apex-ip__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: copyShine 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes copyShine { 50% { background-position: -200% 0; } }
.apex-ip__copy:hover { transform: translateX(2px) scale(1.03); }
.apex-ip__copy > *,
.apex-ip__copy i,
.apex-ip__copy span { position: relative; z-index: 2; color: #0a0805; }

/* Copied state — green flash */
.apex-ip__copy.is-copied,
.btn-ultra.is-copied {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  animation: copiedPulse 0.4s ease;
}
.apex-ip__copy.is-copied i,
.apex-ip__copy.is-copied span,
.btn-ultra.is-copied i,
.btn-ultra.is-copied span { color: #fff !important; }
.apex-ip__copy.is-copied::before,
.btn-ultra.is-copied::before { display: none !important; }
@keyframes copiedPulse {
  0% { transform: scale(0.95); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.apex-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.apex-cta-secondary:hover {
  background: rgba(var(--theme-primary-rgb), 0.1);
  border-color: var(--theme-primary);
  transform: translateY(-2px);
}

/* Editorial stat bar — asymmetric */
.apex-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.18);
}
.apex-stat {
  padding: 0 1.5rem 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.apex-stat:last-child { border-right: none; }
.apex-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.apex-stat__unit {
  font-size: 0.55em;
  color: var(--theme-primary);
  font-weight: 500;
}
.apex-stat__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

/* ============================================================
   SECTION 02 — INFINITE MARQUEE
   ============================================================ */
.apex-marquee {
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent), var(--theme-primary));
  background-size: 200% 100%;
  animation: marqueeBg 8s linear infinite;
  padding: 20px 0;
  overflow: hidden;
  border-top: 2px solid rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid rgba(0, 0, 0, 0.35);
  margin: 0 0 60px;
  position: relative;
  z-index: 4;
}
@keyframes marqueeBg { to { background-position: 200% 0; } }
.apex-marquee__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0a0805;
  animation: marqueeMove 30s linear infinite;
  width: max-content;
  align-items: center;
}
@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}
.apex-marquee__sep {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #0a0805;
  border-radius: 50%;
  margin: 0 auto;
  align-self: center;
}

/* ============================================================
   SECTION 03 — GAME MODES BENTO
   ============================================================ */
.apex-section {
  padding: 100px 24px;
  position: relative;
}
.apex-section__head {
  max-width: 1280px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: end;
}
.apex-section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--theme-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.apex-section__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--theme-primary);
}
.apex-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem) !important;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
}
.apex-section__title em {
  font-style: italic;
  font-family: var(--font-accent);
  color: var(--theme-primary);
  font-weight: 400;
}
.apex-section__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 380px;
  margin: 0;
  line-height: 1.5;
  text-align: right;
}

.apex-bento {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px;
  gap: 14px;
}

.apex-mode {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  background: var(--mode-grad, linear-gradient(135deg, #1e3a23, #2d6a4f));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}
.apex-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 0%, transparent 30%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.65) 100%);
  z-index: -1;
}
.apex-mode__num {
  position: absolute;
  right: -10px;
  bottom: -40px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18rem;
  line-height: 0.7;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: -1;
  letter-spacing: -0.08em;
}
.apex-mode__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.apex-mode__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--theme-primary);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.4);
}
.apex-mode__live {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.apex-mode__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.apex-mode__bottom {
  position: relative;
}
.apex-mode__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3.5rem) !important;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}
.apex-mode__desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin: 0 0 1rem;
  max-width: 90%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.apex-mode__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 11px 20px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  align-self: flex-start;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: transform, opacity;
}
.apex-mode__cta i { transition: transform 0.3s; }
.apex-mode:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px -16px var(--mode-shadow, rgba(0, 0, 0, 0.4));
}
.apex-mode:hover .apex-mode__cta {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  color: #0a0805;
  border-color: transparent;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  box-shadow: 0 8px 22px rgba(var(--theme-primary-rgb), 0.45);
}
.apex-mode:hover .apex-mode__cta i { transform: translateX(4px); }

/* On touch devices, always show the CTA (no hover) */
@media (hover: none) {
  .apex-mode__cta {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* Bento sizing */
.apex-mode--xl { grid-column: span 4; grid-row: span 2; }
.apex-mode--lg { grid-column: span 3; grid-row: span 1; }
.apex-mode--md { grid-column: span 2; grid-row: span 1; }
.apex-mode--sm { grid-column: span 2; grid-row: span 1; }

/* Mode gradients */
.apex-mode-survival  { --mode-grad: linear-gradient(135deg, #0f4a2e 0%, #2d6a4f 60%, #74c69d 100%); --mode-shadow: rgba(16, 185, 129, 0.45); }
.apex-mode-skyblock  { --mode-grad: linear-gradient(135deg, #0c2461 0%, #1e40af 60%, #60a5fa 100%); --mode-shadow: rgba(59, 130, 246, 0.45); }
.apex-mode-faction   { --mode-grad: linear-gradient(135deg, #6b1010 0%, #b91c1c 60%, #f87171 100%); --mode-shadow: rgba(239, 68, 68, 0.45); }
.apex-mode-bedwars   { --mode-grad: linear-gradient(135deg, #1f2937 0%, #4b5563 60%, #9ca3af 100%); --mode-shadow: rgba(148, 163, 184, 0.45); }
.apex-mode-kitpvp    { --mode-grad: linear-gradient(135deg, #3b0764 0%, #7e22ce 60%, #c084fc 100%); --mode-shadow: rgba(168, 85, 247, 0.45); }
.apex-mode-minigames { --mode-grad: linear-gradient(135deg, #92400e 0%, #ca8a04 50%, #facc15 100%); --mode-shadow: rgba(250, 204, 21, 0.55); }

/* ============================================================
   SECTION 04 — SEASON RIBBON
   ============================================================ */
.apex-season {
  margin: 80px 0;
  padding: 60px 0;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(var(--theme-primary-rgb), 0.16)),
    linear-gradient(165deg, #0a0805, #050308);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.2);
}
.apex-season::before {
  content: "SEZON 03 · SEZON 03 · SEZON 03 · SEZON 03 · SEZON 03 ·";
  position: absolute;
  top: 50%;
  left: -10%;
  right: -10%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  transform: translateY(-50%) rotate(-3deg);
  pointer-events: none;
  letter-spacing: -0.05em;
}
.apex-season__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.apex-season__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
}
.apex-season__title span {
  display: inline-block;
  color: var(--theme-primary);
}
.apex-season__sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  margin: 1rem 0 0;
}
.apex-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.apex-countdown__unit {
  background: #000;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.4);
  border-radius: 16px;
  padding: 18px 22px;
  text-align: center;
  min-width: 92px;
  position: relative;
  overflow: hidden;
}
.apex-countdown__unit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}
.apex-countdown__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--theme-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  display: block;
}
.apex-countdown__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  display: block;
}

/* ============================================================
   SECTION 05 — LIVE SERVERS
   ============================================================ */
.apex-servers {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.apex-server {
  background: linear-gradient(165deg, rgba(15, 11, 5, 0.92), rgba(5, 3, 8, 0.96));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.16);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.apex-server:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.45);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(var(--theme-primary-rgb), 0.3);
}
.apex-server__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.apex-server__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0;
  color: #fff;
}
.apex-server__name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}
.apex-server__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.apex-server__status--up { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.apex-server__status--up::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.apex-server__count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 1rem;
}
.apex-server__count strong {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.apex-server__count span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}
.apex-server__bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.apex-server__bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent));
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   SECTION 06 — TOP PLAYERS RANKING (editorial style)
   ============================================================ */
.apex-rank {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.apex-rank__list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  border-radius: 24px;
  overflow: hidden;
}
.apex-rank__list-head {
  padding: 26px 32px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.apex-rank__list-head h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem !important;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
}
.apex-rank__list-head span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-primary);
}
.apex-rank__row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 14px;
  transition: background 0.25s ease;
  position: relative;
}
.apex-rank__row:hover { background: rgba(var(--theme-primary-rgb), 0.04); }
.apex-rank__row:last-child { border-bottom: none; }
.apex-rank__row--1 {
  background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.08), transparent 60%);
}
.apex-rank__pos {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.18);
}
.apex-rank__row--1 .apex-rank__pos,
.apex-rank__row--2 .apex-rank__pos,
.apex-rank__row--3 .apex-rank__pos { color: var(--theme-primary); }
.apex-rank__player {
  display: flex;
  flex-direction: column;
}
.apex-rank__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
}
.apex-rank__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}
.apex-rank__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--theme-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.apex-rank__value span {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================================
   SECTION 07 — FEATURES (numbered editorial)
   ============================================================ */
.apex-features {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.apex-feature {
  position: relative;
  padding: 36px 28px;
  background: linear-gradient(165deg, rgba(15, 11, 5, 0.6), rgba(5, 3, 8, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.apex-feature:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.4);
  transform: translateY(-4px);
}
.apex-feature__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--theme-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.apex-feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-accent-rgb), 0.1));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-primary);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.apex-feature h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem !important;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.75rem;
  color: #fff;
}
.apex-feature p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ============================================================
   SECTION 08 — NEWS RAIL
   ============================================================ */
.apex-news {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.apex-news-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(15, 11, 5, 0.94), rgba(5, 3, 8, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.apex-news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--theme-primary-rgb), 0.4);
}
.apex-news-card__media {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: var(--news-bg, linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.3), rgba(var(--theme-accent-rgb), 0.1)));
}
.apex-news-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7));
}
.apex-news-card__tag {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.4);
  border-radius: 999px;
}
.apex-news-card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.apex-news-card__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}
.apex-news-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem !important;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #fff;
}
.apex-news-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
  margin: 0 0 1rem;
}
.apex-news-card__more {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   SECTION 09 — DISCORD CTA
   ============================================================ */
.apex-discord {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 101, 242, 0.3), transparent 60%),
    linear-gradient(135deg, #1e1b4b, #0a0805);
  border: 1px solid rgba(88, 101, 242, 0.3);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.apex-discord::before {
  content: "\f392"; /* discord */
  font-family: "Font Awesome 6 Brands";
  position: absolute;
  right: -60px;
  bottom: -100px;
  font-size: 22rem;
  color: rgba(88, 101, 242, 0.06);
  pointer-events: none;
}
.apex-discord__head {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.apex-discord__head::before {
  content: "";
  width: 32px;
  height: 1px;
  background: #5865F2;
}
.apex-discord h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #fff;
}
.apex-discord p {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
}
.apex-discord__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #5865F2, #4752c4);
  color: #fff;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 40px -10px rgba(88, 101, 242, 0.5);
  transition: transform 0.3s ease;
}
.apex-discord__cta:hover { transform: translateY(-3px); }

.apex-discord__stats {
  display: grid;
  gap: 16px;
}
.apex-discord__stat {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 18px;
  padding: 20px;
}
.apex-discord__stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.apex-discord__stat span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  display: block;
}

/* ============================================================
   SECTION 10 — FINAL CTA
   ============================================================ */
.apex-final {
  padding: 140px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.apex-final::before {
  content: "JOIN";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(var(--theme-primary-rgb), 0.12);
  letter-spacing: -0.06em;
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
}
.apex-final__logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 16px 50px rgba(var(--theme-primary-rgb), 0.6));
  animation: finalJaguarPulse 4s ease-in-out infinite;
}
@keyframes finalJaguarPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.apex-final__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7rem) !important;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: transparent;
  background: linear-gradient(180deg, #fff 0%, var(--theme-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.apex-final__sub {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.apex-final__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SIDE INDEX (sticky page nav)
   ============================================================ */
.apex-side-index {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
  border-radius: 999px;
  padding: 10px 6px;
}
.apex-side-index a {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
  display: block;
}
.apex-side-index a::after {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-primary);
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.apex-side-index a:hover {
  background: var(--theme-primary);
  transform: scale(1.5);
}
.apex-side-index a:hover::after { opacity: 1; }
.apex-side-index a.active {
  background: var(--theme-primary);
  box-shadow: 0 0 12px var(--theme-primary);
}
@media (max-width: 1100px) { .apex-side-index { display: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .apex-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .apex-mode--xl, .apex-mode--lg, .apex-mode--md, .apex-mode--sm { grid-column: span 2; grid-row: span 1; }
  .apex-servers { grid-template-columns: 1fr 1fr; }
  .apex-features { grid-template-columns: 1fr; }
  .apex-news { grid-template-columns: 1fr; }
  .apex-rank { grid-template-columns: 1fr; }
  .apex-section__head { grid-template-columns: 1fr; }
  .apex-section__sub { text-align: left; }
  .apex-discord { grid-template-columns: 1fr; padding: 40px; }
  .apex-stats { grid-template-columns: 1fr 1fr; }
  .apex-season__inner { grid-template-columns: 1fr; }
  .apex-countdown { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .apex-section { padding: 70px 16px; }
  .apex-hero { padding-top: 130px; }
  .apex-bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .apex-mode--xl, .apex-mode--lg, .apex-mode--md, .apex-mode--sm { grid-column: span 1; }
  .apex-servers { grid-template-columns: 1fr; }
  .apex-marquee { font-size: 1.4rem; }
  .apex-countdown__unit { padding: 12px 14px; min-width: 64px; }
  .apex-countdown__num { font-size: 1.8rem; }
  .apex-ip-row { gap: 12px; }
  .apex-ip {
    flex-direction: column;
    padding: 6px;
    width: 100%;
    max-width: 340px;
    align-items: stretch;
  }
  .apex-ip__addr {
    padding: 14px 18px;
    font-size: 0.95rem;
    justify-content: center;
    text-align: center;
  }
  .apex-ip__copy {
    width: 100%;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.85rem;
  }
  .apex-cta-secondary { width: 100%; max-width: 340px; justify-content: center; }
  .apex-discord { padding: 28px; }
}
