:root {
  --container: 1240px;
  --text: #f4f6f1;
  --muted: #c7d1c0;
  --line: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-name { display: inline-block; }
.brand-mark,
.server-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.menu-btn {
  display: none;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.menu-btn span {
  display: block;
  width: 24px;
}
.mobile-nav {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 999;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-align: center;
}
.btn-small { min-height: 48px; }
.btn-large { min-height: 58px; }

main { position: relative; z-index: 1; }
.hero,
.page-hero,
.section,
.cta-section,
.footer {
  width: 100%;
}
.hero-grid,
.two-col,
.rules-layout,
.faq-layout,
.stats-grid,
.feature-grid,
.page-link-grid,
.value-grid,
.cards-grid,
.info-grid,
.team-grid,
.support-grid,
.quick-grid,
.server-highlights,
.footer-grid,
.timeline,
.rank-grid,
.join-grid,
.steps-grid {
  display: grid;
}
.hero-grid,
.two-col,
.rules-layout,
.faq-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-grid { align-items: center; }

.hero-copy,
.hero-card-wrap,
.section-heading,
.section-copy,
.page-hero-inner {
  min-width: 0;
}

.hero h1,
.page-hero h1,
.section-top h2,
.section-heading h2,
.cta-box h2,
.server-title-row h2,
.feature-card h3,
.page-link-card h3,
.value-card h3,
.rule h3,
.team-card h3,
.rank-card h3,
.info-card h3,
.steps-card h3,
.support-card h3,
.quick-card h3 {
  margin: 0;
}
.hero p,
.page-hero p,
.section-top p,
.section-heading p,
.section-copy p,
.page-link-card p,
.value-card p,
.feature-card p,
.rule p,
.accordion p,
.team-card p,
.rank-card p,
.info-card p,
.steps-card p,
.support-card p,
.quick-card p,
.cta-box p,
.footer p {
  margin: 0;
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-top > * { min-width: 0; }
.section-heading,
.section-copy,
.faq-layout .section-heading {
  align-self: start;
}

.hero-actions,
.footer-links,
.footer-social,
.page-badges,
.hero-meta,
.subnav,
.server-tools,
.quick-links,
.team-tags,
.rule-tags,
.info-list,
.rank-perks,
.step-badges {
  display: flex;
  flex-wrap: wrap;
}

.mini-proof,
.rule,
.stat,
.support-row,
.copy-row,
.server-meta-box,
.notice,
.rank-card,
.team-card,
.info-card,
.steps-card,
.quick-card,
.support-card,
.status-panel,
.metrics-panel,
.widget-panel,
.footer-block {
  display: flex;
}

.server-card {
  position: relative;
}
.server-card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.server-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.server-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat {
  align-items: center;
  gap: 14px;
}
.stat-indicator {
  flex-shrink: 0;
}

.page-link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.server-highlights { grid-template-columns: 1.15fr .85fr; gap: 24px; }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.support-grid { grid-template-columns: 1.05fr .95fr; gap: 22px; }
.timeline { grid-template-columns: 1fr; gap: 16px; }
.join-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.footer-grid { grid-template-columns: 1.1fr .8fr .8fr .8fr; gap: 18px; }

.page-link-card,
.value-card,
.feature-card,
.team-card,
.rank-card,
.info-card,
.steps-card,
.quick-card,
.support-card,
.cta-box,
.rules-list,
.section-copy,
.section-heading,
.faq-layout .section-heading,
.accordion details,
.status-panel,
.metrics-panel,
.widget-panel,
.footer-block,
.notice {
  position: relative;
}

.hero-card-wrap,
.page-link-card,
.value-card,
.feature-card,
.team-card,
.rank-card,
.info-card,
.steps-card,
.quick-card,
.support-card,
.cta-box,
.accordion details,
.rule,
.status-panel,
.metrics-panel,
.widget-panel,
.footer-block { transition: transform .2s ease, filter .2s ease; }

.section ul,
.section ol {
  padding-left: 20px;
  margin: 0;
}

.copy-row,
.server-tools,
.quick-links,
.footer-links,
.footer-social,
.page-badges,
.hero-meta,
.team-tags,
.rule-tags,
.rank-perks,
.step-badges {
  gap: 10px;
}

.server-tools,
.quick-links { margin-top: 18px; }

.badge,
.meta-chip,
.copy-chip,
.rule-chip,
.team-tag,
.perk-chip,
.step-chip,
.server-ip-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer {
  position: relative;
  z-index: 2;
}
.footer-grid { align-items: start; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-links,
.footer-social { flex-direction: column; align-items: flex-start; }
.footer-note { margin-top: 20px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .page-link-grid,
  .quick-grid,
  .team-grid,
  .cards-grid,
  .info-grid,
  .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid,
  .rank-grid,
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-wrap { justify-content: space-between; }
  .hero-grid,
  .two-col,
  .rules-layout,
  .faq-layout,
  .server-highlights,
  .support-grid,
  .server-card-body { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .page-link-grid,
  .value-grid,
  .feature-grid,
  .cards-grid,
  .info-grid,
  .quick-grid,
  .team-grid,
  .rank-grid,
  .steps-grid,
  .join-grid,
  .footer-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .section-top { align-items: start; flex-direction: column; }
  .server-title-row,
  .stat,
  .footer-brand,
  .mini-proof,
  .copy-row,
  .support-row { flex-direction: column; align-items: flex-start; }
}
