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

/* styles */
:root {
  --bg: #1a1917;
  --bg2: #24221f;
  --surface: #2c2a26;
  --surface2: #383530;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #8b7355;
  --accent2: #bca484;
  --accent-glow: rgba(139, 115, 85, 0.25);
  --green: #a3a380;
  --orange: #d4a373;
  --red: #a98467;
  --text: #e6e1da;
  --muted: #a6a095;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 25, 23, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.5px;
}

.dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface2);
}

.nav-shop {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
}

.nav-shop:hover {
  filter: brightness(1.1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu.open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-inner {
    padding: 0 24px;
  }
}

/* ── PAGES ── */
.page {
  display: none;
  width: 100%;
}

.page.active {
  display: block;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(188, 164, 132, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 164, 132, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb1 {
  width: 600px;
  height: 600px;
  background: rgba(139, 115, 85, 0.12);
  top: -150px;
  left: -150px;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: rgba(188, 164, 132, 0.08);
  top: 20%;
  right: -100px;
}

.orb3 {
  width: 400px;
  height: 400px;
  background: rgba(166, 160, 149, 0.06);
  bottom: -50px;
  left: 30%;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(188, 164, 132, 0.1);
  border: 1px solid rgba(188, 164, 132, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.accent {
  color: var(--accent2);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  padding: 14px 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-ghost {
  padding: 14px 32px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: var(--surface2);
  border-color: var(--accent2);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-visual {
  position: relative;
  flex: 0 0 450px;
  height: 450px;
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding-top: 140px;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 450px;
  }
}

.floating-card {
  position: absolute;
  background: rgba(44, 42, 38, 0.9);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 18px 24px;
  min-width: 180px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-a {
  top: 10%;
  left: 0;
  animation: float1 4s ease-in-out infinite;
}

.card-b {
  top: 40%;
  right: 0;
  animation: float2 5s ease-in-out infinite;
}

.card-c {
  bottom: 10%;
  left: 15%;
  animation: float1 4.5s 1s ease-in-out infinite;
}

.fc-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.fc-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 2px;
}

.fc-val {
  font-size: 0.85rem;
  color: var(--accent2);
  font-weight: 600;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-15px) }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-10px) }
}

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

/* ── FEATURES ── */
.features {
  padding: 120px 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent2);
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(188, 164, 132, 0.1);
  border-radius: 100px;
  border: 1px solid rgba(188, 164, 132, 0.2);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 64px;
  line-height: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  border-color: var(--accent2);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feat-highlight {
  background: linear-gradient(135deg, rgba(188, 164, 132, 0.1), rgba(139, 115, 85, 0.05));
  border-color: rgba(188, 164, 132, 0.3);
}

.feat-icon {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── IP ── */
.server-ip {
  padding: 0 0 120px;
}

.ip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--surface), rgba(188, 164, 132, 0.05));
}

.ip-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.ip-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ip-text {
  flex: 1;
  padding: 18px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-copy {
  padding: 18px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  filter: brightness(1.1);
}

.ip-version {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 20px;
  line-height: 1;
}

.page-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.8;
}

/* ── MODES ── */
.modes-section {
  padding: 80px 0 120px;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--mode-color, var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.mode-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.mode-icon {
  font-size: 2rem;
}

.mode-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.mode-players {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.mode-status {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}

.mode-status.active {
  background: rgba(163, 163, 128, 0.2);
  color: #c9c9af;
}

.mode-status.busy {
  background: rgba(212, 163, 115, 0.2);
  color: #e5c3a3;
}

.mode-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--surface2);
  border-radius: 100px;
  color: var(--muted);
}

/* ── LEADERBOARD ── */
.lb-section {
  padding: 64px 0 120px;
}

.lb-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.lb-tab {
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.lb-tab:hover {
  color: var(--text);
  border-color: var(--accent2);
}

.lb-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.lb-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.podium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  min-width: 180px;
  position: relative;
  transition: all 0.3s ease;
}

.podium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.podium-card.p1 {
  background: linear-gradient(135deg, rgba(188, 164, 132, 0.2), rgba(139, 115, 85, 0.1));
  border-color: var(--accent2);
  order: 2;
  transform: scale(1.1);
  z-index: 2;
}

.podium-card.p1:hover {
  transform: scale(1.1) translateY(-8px);
}

.podium-card.p2 {
  order: 1;
}

.podium-card.p3 {
  order: 3;
}

.podium-crown {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.podium-pos {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.podium-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 8px 0 6px;
}

.podium-stat {
  font-size: 0.9rem;
  color: var(--accent2);
  font-weight: 600;
}

.lb-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table thead {
  background: var(--surface2);
}

.lb-table th {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}

.lb-table td {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.lb-table tr:hover td {
  background: var(--surface2);
}

/* ── SHOP ── */
.shop-section {
  padding: 64px 0 120px;
}

.shop-notice {
  background: rgba(163, 163, 128, 0.1);
  border: 1px solid rgba(163, 163, 128, 0.2);
  color: #c9c9af;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 48px;
  display: inline-block;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.shop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.shop-card.featured {
  border-color: var(--accent2);
  box-shadow: 0 0 40px rgba(188, 164, 132, 0.1);
}

.shop-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  background: var(--surface2);
}

.shop-featured-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-body {
  padding: 32px;
}

.shop-tier {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.shop-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.shop-perks {
  list-style: none;
  margin-bottom: 32px;
}

.shop-perks li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-perks li::before {
  content: '✓';
  color: var(--accent2);
  font-weight: 700;
}

.shop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.shop-price {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
}

.shop-price span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.btn-buy {
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-buy:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* ── FOOTER ── */
footer {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent2);
}

@media (max-width: 640px) {
  .nav-inner, .container, .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}
