:root {
  --bg: #04080f;
  --panel: rgba(12, 20, 34, 0.68);
  --panel-solid: #0b1320;
  --panel-hover: rgba(18, 31, 52, 0.88);
  --blue: #0077ff;
  --cyan: #38bdf8;
  --cyan-bright: #7dd3fc;
  --white: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.14);
  --line-hover: rgba(56, 189, 248, 0.45);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 35%, rgba(0, 119, 255, 0.07), transparent 38%),
    radial-gradient(circle at 88% 70%, rgba(56, 189, 248, 0.05), transparent 42%);
  color: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Scroll Progress */
.scroll-progress {
  height: 2px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  width: 0;
  box-shadow: 0 0 16px var(--cyan);
}

/* Header */
.header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  background: rgba(4, 8, 15, 0.65);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s, border-color 0.3s;
}

.header.scrolled {
  background: rgba(4, 8, 15, 0.92);
  border-bottom-color: rgba(56, 189, 248, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 23px;
  letter-spacing: 1px;
}

.brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.25));
}

.brand b {
  color: var(--cyan);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.4px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a.active::after,
.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-nav {
  color: #93c5fd;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s;
}

.admin-nav:hover {
  color: var(--white);
}

.discord-btn {
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 12px 18px;
  letter-spacing: 1px;
  background: rgba(14, 165, 233, 0.12);
  transition: all 0.25s ease;
}

.discord-btn:hover {
  background: rgba(14, 165, 233, 0.24);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.discord-btn span {
  color: var(--cyan);
  margin-left: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 26px;
}

/* Hero Section */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 120px 0 60px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('assets/hero.png') 65% center / cover no-repeat;
  filter: brightness(0.68) contrast(1.08);
  animation: heroZoom 18s ease-out both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 26% 48%, rgba(4, 8, 15, 0.96) 0%, rgba(4, 8, 15, 0.82) 48%, rgba(4, 8, 15, 0.42) 100%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.45) 0%, transparent 25%, var(--bg) 100%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 80%);
  pointer-events: none;
}

.hero-inner {
  width: min(1350px, 90%);
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.eyebrow,
.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
  animation: pulse 2s infinite;
}

.eyebrow-line {
  height: 1px;
  width: 30px;
  background: rgba(56, 189, 248, 0.4);
}

/* Interactive Server IP Pill */
.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  transition: all 0.25s ease;
}

.server-pill:hover {
  border-color: var(--cyan);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.status-text {
  color: #4ade80;
  font-weight: 800;
}

.status-sep {
  color: #475569;
}

.ip-text {
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.copy-icon {
  color: var(--cyan);
  margin-left: 2px;
}

.hero h1,
.section h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  letter-spacing: -1px;
  font-weight: 900;
  line-height: 0.92;
}

.hero h1 {
  font-size: clamp(72px, 9.5vw, 148px);
  margin: 26px 0 22px;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
  animation: rise 0.8s 0.1s both;
}

.hero h1 em,
.section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 32px rgba(56, 189, 248, 0.25));
}

.hero-inner > p {
  color: #cbd5e1;
  line-height: 1.85;
  max-width: 540px;
  font-size: 15px;
  margin: 0;
}

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

/* Modern Buttons */
.btn {
  min-height: 54px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.8px;
  font-weight: 800;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

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

.btn.primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 32px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn.primary:hover {
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(12px);
}

.btn.secondary:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: var(--cyan);
}

.btn span {
  font-size: 17px;
}

/* Hero Quick Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  padding: 16px 26px;
  border-radius: var(--radius-md);
  background: rgba(12, 20, 34, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.5px;
}

.stat-item span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 2px;
}

.hero-side {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 3px;
  color: #64748b;
}

/* Sections General */
.section {
  padding: 110px max(5vw, 24px);
  max-width: 1440px;
  margin: 0 auto;
}

.section-label span {
  color: #64748b;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin: 24px 0 48px;
}

.section h2 {
  font-size: clamp(54px, 6vw, 88px);
  margin: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  max-width: 410px;
  margin: 0;
}

/* Feature Cards */
.feature-grid,
.faction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 36px;
  min-height: 300px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.feature-card:hover,
.faction-card:hover {
  transform: translateY(-6px);
  background: var(--panel-hover);
  border-color: var(--line-hover);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55), 0 0 32px rgba(56, 189, 248, 0.1);
}

.feature-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 24px;
  color: var(--cyan);
}

.card-arrow {
  color: #64748b;
  font-size: 18px;
  transition: color 0.25s, transform 0.25s;
}

.feature-card:hover .card-arrow {
  color: var(--cyan);
  transform: translate(3px, -3px);
}

.feature-number {
  font-size: 10px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-top: 32px;
}

.feature-card h3,
.faction-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: 0.3px;
  margin: 12px 0;
}

.feature-card p,
.faction-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* Rules Section */
.rules-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
  min-height: 550px;
}

.rules-sidebar {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(7, 13, 24, 0.55);
}

.rules-sidebar label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--muted);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(4, 8, 15, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  margin: 12px 0 24px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.search-wrap span {
  font-size: 20px;
  color: var(--cyan);
}

.search-wrap input {
  width: 100%;
  height: 44px;
  background: none;
  border: 0;
  outline: none;
  color: var(--white);
  font-size: 12.5px;
}

.rule-tabs {
  display: grid;
  gap: 8px;
}

.rule-tabs button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 13px 14px;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.rule-tabs button:hover {
  background: rgba(30, 41, 59, 0.55);
  color: var(--white);
}

.rule-tabs button.selected {
  color: var(--white);
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.05));
}

.rule-tabs button span {
  color: var(--cyan);
  font-size: 11px;
}

.sidebar-note {
  margin-top: 32px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.note-badge {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sidebar-note p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
  margin: 0;
}

.rules-content {
  padding: 32px 38px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rules-top,
.rules-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.rules-top {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.count-pill {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
}

.rule-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.rule-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 22px 6px;
  background: none;
  color: var(--white);
  border: 0;
  font-size: 14.5px;
  font-weight: 700;
  transition: color 0.2s;
}

.rule-question:hover {
  color: var(--cyan);
}

.rule-question .rule-index {
  color: var(--cyan);
  font-size: 11px;
  margin-right: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.rule-question .plus {
  font-size: 20px;
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.rule-item.open .plus {
  transform: rotate(45deg);
}

.rule-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.rule-answer p {
  font-size: 13.5px;
  line-height: 1.85;
  color: #cbd5e1;
  padding: 0 36px 24px 38px;
  margin: 0;
}

.rules-footer {
  margin-top: auto;
  color: #64748b;
  padding-top: 28px;
  font-size: 10px;
}

.no-results {
  padding: 45px 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* Factions Section */
.faction-card {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: all 0.35s ease;
}

.faction-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.faction-state::before {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.28), transparent 65%);
}

.faction-street::before {
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.28), transparent 65%);
}

.faction-biz::before {
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.26), transparent 65%);
}

.faction-card:hover::before {
  opacity: 0.9;
}

.faction-card > * {
  position: relative;
}

.faction-symbol {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 84px;
  color: rgba(56, 189, 248, 0.16);
  transition: transform 0.35s ease, color 0.35s ease;
}

.faction-card:hover .faction-symbol {
  transform: scale(1.08) rotate(6deg);
  color: rgba(56, 189, 248, 0.28);
}

.faction-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--cyan);
  font-weight: 800;
}

.faction-card h3 {
  font-size: 42px;
}

.faction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.faction-chips span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

/* Join / CTA Section */
.join-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 32px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(14, 24, 42, 0.82), rgba(7, 13, 24, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.join-glow {
  position: absolute;
  left: 50%;
  top: -20%;
  width: 680px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(2, 132, 199, 0.28), transparent 70%);
  pointer-events: none;
}

.join-box .section-label {
  justify-content: center;
  position: relative;
}

.join-box h2 {
  position: relative;
  margin: 24px auto 18px;
  font-size: clamp(58px, 7.5vw, 112px);
}

.join-box > p {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.85;
}

.steps-row {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.step-pill {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}

.step-pill b {
  color: var(--cyan);
  margin-right: 6px;
}

.join-actions {
  position: relative;
  justify-content: center;
}

.join-box small {
  position: relative;
  display: block;
  margin-top: 26px;
  color: #64748b;
  font-size: 11px;
}

/* Footer */
.footer {
  padding: 54px max(5vw, 24px) 34px;
  background: #03060b;
  border-top: 1px solid var(--line);
}

.footer-top,
.footer-bottom {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-top p {
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 3px;
  font-size: 18px;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 24px;
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.footer-bottom > div {
  display: flex;
  gap: 24px;
}

.footer-bottom a:hover {
  color: var(--cyan);
}

.disclaimer {
  max-width: 1350px;
  margin: 22px auto 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.7;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@keyframes heroZoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

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

@keyframes pulse {
  50% { box-shadow: 0 0 2px var(--cyan); opacity: 0.45; }
}

/* Responsive */
@media (max-width: 1050px) {
  .nav { gap: 20px; }
  .nav a { font-size: 11.5px; }
  .brand { font-size: 19px; }
  .rules-shell { grid-template-columns: 260px 1fr; }
}

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

@media (max-width: 780px) {
  .header { height: 74px; }
  .discord-btn { padding: 10px 14px; font-size: 11px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(4, 8, 15, 0.97);
    padding: 20px 6%;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 14px; }
  .hero { padding: 110px 0 50px; }
  .hero h1 { font-size: clamp(64px, 13vw, 105px); }
  .hero-stats { flex-wrap: wrap; gap: 18px; width: 100%; }
  .stat-divider { display: none; }
  .hero-bottom { margin-top: 48px; }
  .hero-side { display: none; }
  .section { padding: 80px 6%; }
  .section-heading { display: block; }
  .section-heading p { max-width: 600px; margin-top: 18px; }
  .feature-grid, .faction-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 245px; }
  .rules-shell { grid-template-columns: 1fr; }
  .rules-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .rule-tabs { grid-template-columns: repeat(2, 1fr); }
  .rules-content { padding: 24px; }
  .faction-card { min-height: 280px; }
  .join-box { padding: 56px 20px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .brand span { font-size: 16px; }
  .brand img { height: 38px; width: 38px; }
  .discord-btn span { margin-left: 6px; }
  .hero h1 { font-size: 62px; }
  .btn { width: 100%; }
  .rule-tabs { grid-template-columns: 1fr; }
  .rules-content { padding: 18px; }
  .section h2 { font-size: 52px; }
}

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

/* V2 document selector, original public rules design */
.document-select{display:block;width:100%;margin:12px 0 24px;padding:12px;background:#0b1422;color:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);font:inherit;font-size:13px;}
.rule-rich{padding:0 36px 24px 38px;color:#cbd5e1;font-size:13.5px;line-height:1.85;overflow-wrap:anywhere;}
.rule-rich p{padding:0;margin:0 0 8px;}.rule-rich p:last-child{margin-bottom:0}.rule-rich img{max-width:100%;height:auto}.rule-rich table{display:block;max-width:100%;overflow:auto}.rule-rich ul,.rule-rich ol{padding-left:22px}.rule-rich a{color:var(--cyan)}
