@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.938rem, 0.9rem + 0.25vw, 1.063rem);
  line-height: 1.65;
  color: #0D0F13;
  background-color: #F5F6F8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ── HEADER / NAV ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  color: #0D0F13;
  flex-shrink: 0;
}

.logo-link:hover {
  color: #00D4AA;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.75rem);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #5A5F6B;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #0D0F13;
  background: rgba(0, 212, 170, 0.08);
}

.nav-link.active {
  color: #00D4AA;
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.813rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  background: #00D4AA;
  color: #0D0F13;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #00C49A;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.35);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0D0F13;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── HERO ── */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
  background: linear-gradient(165deg, #0D0F13 0%, #1A1D23 40%, #1E2229 100%);
  color: #FFFFFF;
  text-align: center;
  min-block-size: clamp(360px, 60vh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(400px, 70vw, 800px);
  height: clamp(400px, 70vw, 800px);
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00D4AA;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title .accent {
  color: #00D4AA;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw + 0.25rem, 1.3rem);
  color: #8B90A0;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.875rem, 1rem, 1rem);
  font-weight: 600;
  padding: 0.75rem 1.65rem;
  background: #00D4AA;
  color: #0D0F13;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.primary-button:hover {
  background: #00EABB;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 212, 170, 0.3);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.875rem, 1rem, 1rem);
  font-weight: 600;
  padding: 0.75rem 1.65rem;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ── SECTIONS ── */

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.eyebrow-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00D4AA;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.lead-paragraph {
  font-size: clamp(1rem, 1.2vw + 0.25rem, 1.15rem);
  color: #5A5F6B;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.body-text {
  color: #5A5F6B;
  line-height: 1.75;
}

/* ── DARK SECTION ── */

.dark-section {
  background: #0D0F13;
  color: #FFFFFF;
}

.dark-section .section-heading {
  color: #FFFFFF;
}

.dark-section .lead-paragraph {
  color: #8B90A0;
}

.dark-section .body-text {
  color: #8B90A0;
}

/* ── CARD GRID ── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: clamp(1.5rem, 2vw, 2rem);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 212, 170, 0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.08);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: #00D4AA;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.05rem, 1.2vw + 0.25rem, 1.25rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card .body-text {
  font-size: 0.938rem;
  line-height: 1.65;
}

.card-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #E8EAED;
}

/* ── STATS BAR ── */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #00D4AA;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #8B90A0;
  font-weight: 500;
}

/* ── GAME TABS ── */

.game-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.game-tab {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8B90A0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-tab:hover,
.game-tab.active {
  background: rgba(0, 212, 170, 0.12);
  border-color: #00D4AA;
  color: #00D4AA;
}

/* ── TABLE ── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.938rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.data-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5A5F6B;
  background: #F0F1F3;
}

.data-table td {
  color: #0D0F13;
}

.data-table tr:hover td {
  background: rgba(0, 212, 170, 0.03);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── LEADERBOARD ── */

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leaderboard-row:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rank-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.rank-1 { background: #FFD700; color: #0D0F13; }
.rank-2 { background: #C0C0C0; color: #0D0F13; }
.rank-3 { background: #CD7F32; color: #FFFFFF; }
.rank-default { background: #E8EAED; color: #5A5F6B; }

.player-info {
  flex: 1;
  min-width: 0;
}

.player-name {
  font-weight: 600;
  font-size: 0.938rem;
}

.player-game {
  font-size: 0.813rem;
  color: #8B90A0;
}

.player-score {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #00D4AA;
  flex-shrink: 0;
}

/* ── GUIDE CONTENT ── */

.guide-content {
  max-width: 760px;
  margin: 0 auto;
}

.guide-content h2 {
  font-size: clamp(1.35rem, 2vw + 0.25rem, 1.75rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.guide-content h3 {
  font-size: clamp(1.1rem, 1.5vw + 0.25rem, 1.35rem);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.guide-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.guide-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.guide-content ul li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.guide-content ul li::marker {
  color: #00D4AA;
}

.callout-box {
  background: rgba(0, 212, 170, 0.06);
  border-left: 3px solid #00D4AA;
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}

.callout-box p {
  margin-bottom: 0;
  font-size: 0.938rem;
}

/* ── CTA SECTION ── */

.cta-section {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, #00D4AA 0%, #00B894 50%, #0077FF 100%);
  color: #0D0F13;
}

.cta-section .section-heading {
  color: #0D0F13;
}

.cta-section .lead-paragraph {
  color: rgba(13, 15, 19, 0.7);
}

.cta-section .primary-button {
  background: #0D0F13;
  color: #FFFFFF;
}

.cta-section .primary-button:hover {
  background: #1A1D23;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* ── FOOTER ── */

.site-footer {
  background: #0D0F13;
  color: #8B90A0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
}

.footer-logo svg {
  width: 28px;
  height: 28px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #6B7080;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.813rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #6B7080;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #00D4AA;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.813rem;
  color: #4A4F5B;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #6B7080;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: rgba(0, 212, 170, 0.1);
  color: #00D4AA;
}

/* ── MOBILE NAV ── */

@media (max-width: 860px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-list.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .nav-cta {
    margin-top: 0.75rem;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.938rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    max-width: 100%;
  }

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

@media (max-width: 480px) {
  .page-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .primary-button,
  .secondary-button {
    justify-content: center;
    width: 100%;
  }

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

  .game-tabs {
    gap: 0.4rem;
  }

  .game-tab {
    font-size: 0.813rem;
    padding: 0.45rem 0.9rem;
  }
}

/* ── ANIMATIONS ── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

/* ── SCROLLBAR ── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F5F6F8;
}

::-webkit-scrollbar-thumb {
  background: #C8CDD5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A0A6B0;
}

/* ── SELECT / INPUT STYLES ── */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #0D0F13;
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.938rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #FFFFFF;
  color: #0D0F13;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A5F6B' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: #00D4AA;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.result-box {
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.result-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #00D4AA;
  line-height: 1.1;
}

.result-label {
  font-size: 0.875rem;
  color: #5A5F6B;
  margin-top: 0.35rem;
}

/* ── BADGE / TAG ── */

.tag {
  display: inline-block;
  font-size: 0.688rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 212, 170, 0.08);
  color: #00D4AA;
}

/* ── DIVIDER ── */

.divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0;
}

.dark-section .divider {
  background: rgba(255, 255, 255, 0.06);
}
/* universal guards (not a template) */
*{box-sizing:border-box}img,svg,video{max-width:100%;height:auto}h1,h2,h3,h4,p,li,a,span,blockquote{overflow-wrap:break-word;word-break:normal}html{-webkit-text-size-adjust:100%}body{margin:0}
