:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-soft: #101116;
  --text: #f7f1f2;
  --muted: #b9a9ad;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(24, 18, 23, 0.48);
  --glass-strong: rgba(39, 19, 26, 0.66);
  --red: #ff243d;
  --red-deep: #8c0619;
  --red-hot: #ff6b5f;
  --silver: #d7dce7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 36, 61, 0.18), transparent 28rem),
    radial-gradient(circle at 83% 8%, rgba(255, 107, 95, 0.12), transparent 22rem),
    linear-gradient(180deg, #07080b 0%, #0c0709 46%, #08090d 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.6;
}

.ambient-one {
  inset: 10vh auto auto -8rem;
  width: 20rem;
  height: 20rem;
  background: rgba(255, 36, 61, 0.15);
}

.ambient-two {
  right: -9rem;
  bottom: 6rem;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 107, 95, 0.1);
}

.glass {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 50%;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 4.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(10, 9, 12, 0.58);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.site-header.scrolled {
  background: rgba(8, 8, 11, 0.82);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.logo-slot {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 36, 61, 0.24), rgba(255, 255, 255, 0.07));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 36, 61, 0.14);
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.25rem auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  padding: 9rem max(1rem, calc((100vw - var(--max)) / 2)) 5rem;
  overflow: hidden;
}

.hero-art,
.hero-art img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.94) 0%, rgba(7, 8, 11, 0.62) 38%, rgba(7, 8, 11, 0.2) 70%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.2), #07080b 96%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(44rem, 100%);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--red-hot);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(4rem, 12vw, 8.8rem);
  line-height: 0.86;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 0.98;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero-copy {
  width: min(40rem, 100%);
  margin: 1.4rem 0 0;
  color: var(--silver);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 16px 36px rgba(255, 36, 61, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.server-status {
  width: min(54rem, 100%);
  display: grid;
  grid-template-columns: max-content minmax(32rem, 1fr);
  gap: 0.55rem;
  align-items: stretch;
  margin-top: 1.2rem;
}

.status-gif-box {
  position: relative;
  height: 5.6rem;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: #07080b;
}

.status-gif-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 36, 61, 0.08));
}

.status-gif {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.22) contrast(1.1) brightness(1.12);
}

.status-content {
  min-height: 5.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: var(--radius);
  background: rgba(8, 9, 12, 0.7);
}

.status-icon {
  width: 3.7rem;
  height: 3.7rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.status-content strong {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.65rem;
  line-height: 1;
  color: #67ff8a;
  text-shadow: 0 0 16px rgba(74, 255, 119, 0.68);
}

.status-content strong::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #55ff78;
  box-shadow: 0 0 0 4px rgba(85, 255, 120, 0.14), 0 0 18px rgba(85, 255, 120, 0.85);
}

.status-content span {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  margin-top: 0.35rem;
  padding: 0.25rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
  font-size: 0.88rem;
  font-weight: 900;
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.section-heading.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
}

.section-heading.split > div {
  max-width: 46rem;
}

.text-link {
  color: var(--red-hot);
  font-weight: 800;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--silver);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.intro-grid,
.rank-grid,
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.staff-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature,
.rank-card,
.staff-card,
.update-card {
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 36, 61, 0.14);
  color: var(--red-hot);
  font-weight: 900;
}

.feature p,
.rank-card li,
.staff-card p,
.power-panel p,
.faq-item p,
.update-card p {
  color: var(--muted);
}

.rank-card {
  min-height: 21rem;
  display: flex;
  flex-direction: column;
}

.rank-card.hot {
  border-color: rgba(255, 36, 61, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 36, 61, 0.24), rgba(255, 255, 255, 0.04)),
    var(--glass-strong);
}

.rank-card p,
.rank-card strong {
  color: var(--red-hot);
  font-weight: 900;
}

.rank-card strong {
  margin-top: 0.65rem;
  font-size: 2rem;
}

.rank-card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.rank-card li {
  padding: 0.58rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.power-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: end;
}

.power-section .section-heading {
  grid-column: 1 / -1;
}

.power-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.power-node {
  min-height: 7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--silver);
  font-weight: 900;
  cursor: pointer;
}

.power-node.active,
.power-node:hover {
  border-color: rgba(255, 36, 61, 0.72);
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 36, 61, 0.28), rgba(255, 255, 255, 0.06));
}

.power-panel {
  min-height: 15rem;
  display: grid;
  align-content: center;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.avatar {
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 36, 61, 0.9), rgba(140, 6, 25, 0.78));
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 1rem 1.1rem;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.faq-item b {
  color: var(--red-hot);
  font-size: 1.3rem;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 1.1rem 1.1rem;
}

.faq-item.open p {
  display: block;
}

.faq-item.open b {
  transform: rotate(45deg);
}

.filter-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.filter-tabs button {
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.65rem 0.85rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.filter-tabs button.active {
  background: rgba(255, 36, 61, 0.2);
  color: #fff;
}

.updates-list {
  display: grid;
  gap: 0.9rem;
}

.update-card {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  align-items: start;
}

.update-card[hidden] {
  display: none;
}

.update-card time {
  color: var(--red-hot);
  font-weight: 900;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 5.4rem 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 8, 11, 0.94);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .hero {
    min-height: 100vh;
    padding-top: 8rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 8, 11, 0.94), rgba(7, 8, 11, 0.48)),
      linear-gradient(180deg, rgba(7, 8, 11, 0.12), #07080b 96%);
  }

  .intro-grid,
  .rank-grid,
  .staff-grid,
  .power-section {
    grid-template-columns: 1fr;
  }

  .section-heading.split,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .update-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 0.6rem;
    width: min(calc(100% - 1rem), var(--max));
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 4.2rem;
  }

  .hero-actions,
  .server-status {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .status-content {
    min-height: 5.8rem;
  }

  .status-gif-box {
    height: auto;
    aspect-ratio: 468 / 60;
  }

  .status-gif {
    min-height: 0;
  }

  .btn {
    width: 100%;
  }

  .power-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}
