:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(12, 16, 24, 0.86);
  --panel-strong: rgba(17, 23, 33, 0.96);
  --border: rgba(120, 150, 190, 0.18);
  --text: #f6f8fb;
  --muted: #a4b0c3;
  --accent: #ff7a18;
  --accent-strong: #ffb01f;
  --accent-cool: #39d0ff;
  --accent-cool-soft: rgba(57, 208, 255, 0.2);
  --accent-warm-soft: rgba(255, 122, 24, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(7, 9, 13, 0.92), rgba(7, 9, 13, 0.98)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 76px,
      rgba(57, 208, 255, 0.035) 76px,
      rgba(57, 208, 255, 0.035) 77px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 76px,
      rgba(255, 122, 24, 0.035) 76px,
      rgba(255, 122, 24, 0.035) 77px
    ),
    radial-gradient(circle at top, rgba(57, 208, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #0a0e14 0%, #07090d 100%);
}

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

.page-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  position: relative;
  padding: 8px 0 72px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 110px 8% auto;
  height: 320px;
  border: 1px solid rgba(57, 208, 255, 0.08);
  border-radius: 999px;
  opacity: 0.65;
  pointer-events: none;
  filter: blur(0.2px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 15, 22, 0.72);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topbar-links a,
.footer-links a {
  color: var(--muted);
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.topbar-links a:hover,
.topbar-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 14px rgba(57, 208, 255, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 94px 16px 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-cool);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.9rem);
  line-height: 0.95;
}

.subtitle {
  margin: 18px 0 12px;
  color: #d7e0ec;
  font-size: clamp(1.18rem, 2.8vw, 1.65rem);
  font-weight: 600;
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.topbar-links a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid rgba(57, 208, 255, 0.58);
  outline-offset: 3px;
}

.button-primary {
  color: #101114;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow:
    0 0 0 1px rgba(255, 176, 31, 0.18),
    0 0 28px rgba(255, 122, 24, 0.36),
    0 18px 34px rgba(255, 122, 24, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow:
    0 0 0 1px rgba(255, 176, 31, 0.26),
    0 0 40px rgba(255, 122, 24, 0.5),
    0 22px 40px rgba(255, 122, 24, 0.34);
}

.button-secondary {
  border-color: rgba(57, 208, 255, 0.28);
  color: var(--text);
  background: rgba(57, 208, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(57, 208, 255, 0.04),
    0 0 24px rgba(57, 208, 255, 0.12);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(57, 208, 255, 0.42);
  background: rgba(57, 208, 255, 0.13);
  box-shadow:
    inset 0 0 0 1px rgba(57, 208, 255, 0.06),
    0 0 36px rgba(57, 208, 255, 0.2);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 860px);
  margin-top: 54px;
}

.hero-chip,
.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-chip::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(57, 208, 255, 0.42),
    transparent
  );
  opacity: 0.8;
}

.hero-chip {
  padding: 22px 18px;
}

.hero-chip-value {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
  font-weight: 800;
}

.hero-chip-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 34px 0 26px;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(57, 208, 255, 0.26);
  background: var(--panel-strong);
  box-shadow:
    0 0 28px rgba(57, 208, 255, 0.08),
    0 26px 60px rgba(0, 0, 0, 0.42);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 122, 24, 0.24), rgba(255, 122, 24, 0.1)),
    rgba(255, 122, 24, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.12);
  font-size: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.leaderboard-section {
  padding-top: 56px;
}

.leaderboard-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(120, 150, 190, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(15, 19, 28, 0.94), rgba(10, 14, 21, 0.9)),
    rgba(9, 12, 18, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 60px rgba(0, 0, 0, 0.4);
}

.leaderboard-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-row {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1.3fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(120, 150, 190, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 23, 33, 0.96), rgba(12, 16, 24, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 40px rgba(0, 0, 0, 0.26);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.leaderboard-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, rgba(57, 208, 255, 0.65), rgba(57, 208, 255, 0));
}

.leaderboard-row:hover,
.leaderboard-row:focus-within {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(20, 26, 37, 0.98), rgba(13, 18, 27, 0.96));
  box-shadow:
    0 0 28px rgba(57, 208, 255, 0.08),
    0 24px 54px rgba(0, 0, 0, 0.36);
}

.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cool);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.leaderboard-player h3 {
  margin: 0;
  font-size: 1.08rem;
}

.leaderboard-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(57, 208, 255, 0.18);
  background: rgba(57, 208, 255, 0.08);
  color: #cbeeff;
  font-size: 0.82rem;
  font-weight: 700;
}

.leaderboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.leaderboard-metrics div {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-metrics dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
}

.leaderboard-metrics dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.leaderboard-row--gold {
  border-color: rgba(245, 202, 93, 0.34);
  box-shadow:
    0 0 34px rgba(245, 202, 93, 0.13),
    0 18px 42px rgba(0, 0, 0, 0.3);
}

.leaderboard-row--gold::before {
  background: linear-gradient(180deg, rgba(245, 202, 93, 0.9), rgba(245, 202, 93, 0));
}

.leaderboard-row--gold .leaderboard-rank {
  background: linear-gradient(135deg, #f7da7f, #d89a1f);
  color: #171209;
  box-shadow: 0 0 20px rgba(245, 202, 93, 0.24);
}

.leaderboard-row--silver {
  border-color: rgba(189, 199, 216, 0.3);
  box-shadow:
    0 0 30px rgba(189, 199, 216, 0.11),
    0 18px 42px rgba(0, 0, 0, 0.3);
}

.leaderboard-row--silver::before {
  background: linear-gradient(180deg, rgba(189, 199, 216, 0.82), rgba(189, 199, 216, 0));
}

.leaderboard-row--silver .leaderboard-rank {
  background: linear-gradient(135deg, #dde6f2, #95a3b8);
  color: #11161d;
  box-shadow: 0 0 18px rgba(189, 199, 216, 0.2);
}

.leaderboard-row--bronze {
  border-color: rgba(217, 143, 94, 0.32);
  box-shadow:
    0 0 28px rgba(217, 143, 94, 0.11),
    0 18px 42px rgba(0, 0, 0, 0.3);
}

.leaderboard-row--bronze::before {
  background: linear-gradient(180deg, rgba(217, 143, 94, 0.86), rgba(217, 143, 94, 0));
}

.leaderboard-row--bronze .leaderboard-rank {
  background: linear-gradient(135deg, #e4a36d, #9c5c2f);
  color: #170f09;
  box-shadow: 0 0 18px rgba(217, 143, 94, 0.2);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 30px 0 10px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

[data-reveal] {
  animation: fade-up 0.8s ease both;
}

.hero-content[data-reveal] {
  animation-delay: 0.06s;
}

.section-heading[data-reveal] {
  animation-delay: 0.12s;
}

.feature-card:nth-child(1),
.leaderboard-row:nth-child(1) {
  animation-delay: 0.16s;
}

.feature-card:nth-child(2),
.leaderboard-row:nth-child(2) {
  animation-delay: 0.22s;
}

.feature-card:nth-child(3),
.leaderboard-row:nth-child(3) {
  animation-delay: 0.28s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.34s;
}

.leaderboard-row:nth-child(4) {
  animation-delay: 0.34s;
}

.leaderboard-row:nth-child(5) {
  animation-delay: 0.4s;
}

.leaderboard-row:nth-child(6) {
  animation-delay: 0.46s;
}

.leaderboard-row:nth-child(7) {
  animation-delay: 0.52s;
}

.leaderboard-row:nth-child(8) {
  animation-delay: 0.58s;
}

.leaderboard-row:nth-child(9) {
  animation-delay: 0.64s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    animation: none;
  }
}

@media (max-width: 920px) {
  .feature-grid,
  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .leaderboard-metrics {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, var(--max-width));
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    border-radius: 24px;
  }

  .topbar-links {
    justify-content: center;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero::after {
    inset: 130px 4% auto;
    height: 260px;
  }

  .hero-content {
    padding: 68px 4px 18px;
  }

  .hero-actions,
  .feature-grid,
  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .leaderboard-shell {
    padding: 18px;
  }

  .leaderboard-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .leaderboard-rank {
    justify-self: start;
  }

  .leaderboard-player {
    align-items: flex-start;
    justify-content: space-between;
  }

  .leaderboard-metrics {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
