:root {
  --bg: #07090d;
  --bg2: #0c1117;
  --panel: #121820;
  --panel2: #171f28;
  --line: rgba(255,255,255,.085);
  --text: #f5f7f9;
  --muted: #9aa6b2;
  --gold: #f4b942;
  --gold2: #ffd979;
  --green: #67d89f;
  --blue: #5b7cff;
  --red: #ff7474;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(244,185,66,.12), transparent 29rem),
    radial-gradient(circle at 91% 14%, rgba(91,124,255,.09), transparent 30rem),
    linear-gradient(180deg, #080a0e 0%, #06080b 100%);
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,9,13,.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: -.035em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #181512;
  font-weight: 950;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 12px 34px rgba(244,185,66,.22);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: #dfe5e9;
  font-size: .95rem;
  font-weight: 750;
}

.nav-links a { opacity: .76; transition: .16s ease; }
.nav-links a:hover { opacity: 1; color: var(--gold2); }

.btn {
  border: 1px solid transparent;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 850;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #17130b;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 14px 34px rgba(244,185,66,.18);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,.045);
  border-color: var(--line);
}

.btn-discord {
  background: #5865f2;
  color: white;
}

.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.hero {
  padding: 108px 0 92px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold2);
  background: rgba(244,185,66,.08);
  border: 1px solid rgba(244,185,66,.22);
  border-radius: 999px;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 900;
  font-size: .76rem;
}

h1,h2,h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.3rem, 8vw, 7rem);
  letter-spacing: -.06em;
}

h1 span { color: var(--gold); }

h2 {
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  letter-spacing: -.04em;
}

h3 {
  font-size: 1.18rem;
}

p {
  line-height: 1.72;
  color: var(--muted);
}

.hero-copy {
  font-size: 1.08rem;
  max-width: 720px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.server-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    var(--bg2);
  box-shadow: var(--shadow);
}

.server-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -95px;
  bottom: -105px;
  border-radius: 50%;
  background: rgba(244,185,66,.15);
  filter: blur(8px);
}

.server-ip {
  position: relative;
  z-index: 1;
  margin: 20px 0;
  padding: 17px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.26);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .9rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(103,216,159,.08);
}

.section { padding: 86px 0; }
.section-tight { padding: 54px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head p {
  margin: 0;
  max-width: 620px;
}

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

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
  background: rgba(244,185,66,.09);
  border: 1px solid rgba(244,185,66,.16);
  color: var(--gold2);
  font-size: 1.25rem;
  font-weight: 950;
}

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

.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rank-card.featured {
  border-color: rgba(244,185,66,.45);
  box-shadow: 0 18px 60px rgba(244,185,66,.08);
}

.rank-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--gold);
  color: #17120a;
  text-transform: uppercase;
  font-size: .69rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.rank-price {
  margin-top: 12px;
  font-size: 1.55rem;
  font-weight: 950;
}

.perk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: #d9e0e4;
}

.perk-list li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--green);
  font-weight: 950;
}

.rank-card .btn { margin-top: auto; }

.page-hero {
  padding: 84px 0 44px;
}

.page-hero p {
  max-width: 720px;
  font-size: 1.04rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(255,255,255,.02);
}

th,td {
  padding: 17px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--gold2);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}

tr:last-child td { border-bottom: none; }

.rules-list {
  counter-reset: rule;
  display: grid;
  gap: 14px;
}

.rule {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.rule::before {
  counter-increment: rule;
  content: counter(rule);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(244,185,66,.09);
  border: 1px solid rgba(244,185,66,.18);
  color: var(--gold2);
  font-weight: 950;
}

.rule p { margin-bottom: 0; }

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

.board-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-row:last-child { border-bottom: none; }
.board-pos { color: var(--gold2); font-weight: 950; margin-right: 10px; }

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.notice {
  padding: 16px 18px;
  border-radius: 14px;
  color: #e5d8b9;
  background: rgba(244,185,66,.07);
  border: 1px solid rgba(244,185,66,.2);
}

code {
  color: var(--gold2);
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px 6px;
}

.footer {
  margin-top: 60px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text);
  background: #161b21;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .leader-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 650px) {
  .hero { padding: 80px 0 64px; }
  .section { padding: 62px 0; }
  .rank-grid, .grid-3, .leader-grid, .support-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .server-ip { flex-direction: column; align-items: stretch; }
  .nav .btn { padding: 0 12px; }
}