:root {
  --bg: #06131a;
  --bg-deep: #02070a;
  --text: #eff7fb;
  --muted: #a6bfca;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(5, 15, 23, 0.72);
  --panel-strong: rgba(7, 20, 30, 0.84);
  --accent: #69f0d2;
  --accent-2: #ffb84d;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --page-shift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(105, 240, 210, 0.24), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 184, 77, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(2, 7, 10, 0.7), rgba(2, 7, 10, 0.96)),
    var(--bg-deep);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(3, 11, 16, 0.92) 18%, rgba(3, 11, 16, 0.55) 52%, rgba(3, 11, 16, 0.88) 100%),
    url("./assets/images/cover.jpg") center/cover no-repeat;
  z-index: -2;
  transform: translateY(calc(var(--page-shift) * -0.22));
  transition: transform 0.2s linear;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
  z-index: -1;
  opacity: 0.35;
}

.ambient-glow,
.fog {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

.ambient-glow {
  top: 0;
  left: 0;
  width: 44vw;
  height: 44vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 240, 210, 0.18), rgba(105, 240, 210, 0.05) 35%, transparent 70%);
  transform: translate(calc(var(--pointer-x, 50%) - 50%), calc(var(--pointer-y, 50%) - 50%));
  filter: blur(14px);
  opacity: 0.7;
}

.fog {
  width: 42vw;
  height: 18vw;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(180, 220, 228, 0.15), transparent 68%);
  filter: blur(40px);
  opacity: 0.34;
}

.fog-one {
  top: 14vh;
  left: -8vw;
}

.fog-two {
  right: -10vw;
  bottom: 14vh;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.14), transparent 70%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
  position: relative;
}

.topbar,
.hero-content,
.feature-card,
.highlight-panel,
.cta-card,
.site-footer,
.hero-panel {
  backdrop-filter: blur(14px);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 13, 20, 0.55);
  box-shadow: var(--shadow);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 24px rgba(105, 240, 210, 0.2);
}

.brand-name,
.eyebrow,
h1,
h2,
h3,
.button,
.nav-link {
  font-family: "Unbounded", sans-serif;
}

.brand-name {
  font-size: 0.92rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-icon i {
  font-size: 0.95rem;
  line-height: 1;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
  text-shadow: 0 0 18px rgba(105, 240, 210, 0.35);
}

.hero {
  padding-top: 22px;
}

.hero-content {
  --hero-shift: 0px;
  margin-top: 24px;
  padding: 72px clamp(24px, 4vw, 56px);
  min-height: calc(100vh - 180px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(6, 19, 26, 0.18), rgba(6, 19, 26, 0.82)),
    linear-gradient(120deg, rgba(105, 240, 210, 0.06), transparent 40%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transform: translateY(calc(var(--hero-shift) * -1));
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: auto -10% -24% 18%;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 78, 78, 0.15), transparent 65%);
  filter: blur(26px);
  opacity: 0.7;
}

.hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(255, 184, 77, 0.14), transparent 26%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.hero-copy {
  position: relative;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-video {
  margin-top: 28px;
}

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

.community-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.community-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.community-link:hover,
.community-link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.community-link i {
  font-size: 1rem;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  transform: translate(var(--magnetic-x, 0px), var(--magnetic-y, 0px));
}

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

.button-primary {
  color: #041116;
  background: linear-gradient(135deg, var(--accent), #8cf3de);
  box-shadow: 0 18px 45px rgba(105, 240, 210, 0.28);
  position: relative;
  overflow: hidden;
}

.button-primary::after {
  content: "";
  position: absolute;
  inset: -160% auto auto -40%;
  width: 46%;
  height: 300%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: rotate(18deg);
  animation: sweep 6.4s linear infinite;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 52px 0 0;
}

.hero-stats li,
.feature-card,
.info-card,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.hero-stats li {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.hero-stats li::after,
.feature-card::after,
.info-card::after,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(105, 240, 210, 0.16), transparent 44%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.tilt-card {
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  transform-style: preserve-3d;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.motion-enabled .tilt-card {
  transform: perspective(1000px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
}

.tilt-card.is-tilting {
  border-color: rgba(105, 240, 210, 0.34);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.tilt-card.is-tilting::after {
  opacity: 1;
}

.stat-icon {
  font-size: 1rem;
  color: var(--accent-2);
}

.hero-stats strong {
  display: block;
  margin-top: 12px;
  font-size: 1.45rem;
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding-top: 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

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

.feature-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.feature-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-family: "Unbounded", sans-serif;
  font-size: 0.8rem;
}

.feature-icon,
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-size: 1.1rem;
}

h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.feature-card p,
.highlight-copy p,
.info-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.highlight-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 184, 77, 0.08), transparent 34%),
    var(--panel-strong);
}

.highlight-copy {
  padding: 10px;
}

.highlight-copy h2 {
  margin-bottom: 18px;
}

.info-stack {
  display: grid;
  gap: 14px;
}

.info-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.info-icon {
  margin-bottom: 12px;
}

.info-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.info-card strong {
  font-size: 1.1rem;
}

.cta-card {
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card h2 {
  max-width: 760px;
  margin: 0 auto 24px;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: -20% 18% auto;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.18), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.video-showcase,
.leaderboard-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(8, 18, 27, 0.86), rgba(5, 15, 23, 0.92)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 40%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-video {
  width: 100%;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.video-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px 2px;
}

.video-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  white-space: nowrap;
}

.hero-panel,
.leaderboard-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(10, 23, 33, 0.88), rgba(8, 19, 27, 0.68)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 40%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffd3d3;
  background: rgba(149, 28, 28, 0.28);
  border: 1px solid rgba(255, 119, 119, 0.24);
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6f6f;
  box-shadow: 0 0 18px rgba(255, 111, 111, 0.7);
  animation: pulse-alert 1.8s ease-in-out infinite;
}

.hero-panel-title {
  margin: 18px 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.hero-panel-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.player-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  max-height: 420px;
  padding-right: 4px;
  overflow: auto;
}

.player-list::-webkit-scrollbar {
  width: 8px;
}

.player-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.player-rank {
  width: 36px;
  font-family: "Unbounded", sans-serif;
  color: var(--accent-2);
  font-size: 0.8rem;
}

.player-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.player-avatar {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 16px rgba(105, 240, 210, 0.16);
}

.player-score {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
  color: #d9fff6;
  background: rgba(20, 136, 108, 0.2);
  border: 1px solid rgba(105, 240, 210, 0.2);
}

.hero-panel-note {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(105, 240, 210, 0.08), rgba(255, 184, 77, 0.06));
  color: var(--muted);
  line-height: 1.65;
}

.hero-panel-note i {
  color: var(--accent-2);
  margin-top: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(4, 13, 20, 0.58);
  backdrop-filter: blur(14px);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-alert {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.72;
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-220%) rotate(18deg);
  }

  100% {
    transform: translateX(520%) rotate(18deg);
  }
}

@keyframes drift-left {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(28px, -12px, 0);
  }
}

@keyframes drift-right {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-26px, 14px, 0);
  }
}

.motion-enabled .fog-one {
  animation: drift-left 16s ease-in-out infinite;
}

.motion-enabled .fog-two {
  animation: drift-right 18s ease-in-out infinite;
}

@media (max-width: 920px) {
  .hero-content {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-grid,
  .feature-grid,
  .highlight-panel,
  .hero-stats {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar {
    padding: 14px 16px;
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-content {
    padding: 40px 20px 24px;
    border-radius: 28px;
  }

  .hero-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .leaderboard-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .community-link {
    width: 100%;
    justify-content: center;
  }

  .player-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .feature-card,
  .cta-card,
  .highlight-panel {
    padding: 20px;
  }

  .video-showcase {
    padding: 14px;
  }

  .video-meta {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 2px 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .button,
  .motion-enabled .tilt-card,
  .hero-content,
  body::before {
    transform: none !important;
  }
}
