@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&family=Lato:wght@300;400;700&display=swap');

:root {
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --gold-dim: #6e5a28;
  --dark: #0a0c0f;
  --dark2: #111418;
  --dark3: #1a1f26;
  --dark4: #232a34;
  --text: #d8cbb0;
  --text-dim: #7a7060;
  --accent: #4a9eca;
  --red: #b03030;
  --border: rgba(201,168,76,0.18);
  --glow: rgba(201,168,76,0.12);
}

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(10,12,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-logo span {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.75rem;
  display: block;
  letter-spacing: 0.25em;
  margin-top: -2px;
}

.nav-links { display: flex; }

.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0 1.2rem;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--dark);
  background: var(--gold);
  padding: 0.5rem 1.4rem;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s;
  cursor: pointer;
}

.nav-cta:hover { background: var(--gold-light); }

/* ── Pages ── */
.page { display: none; min-height: 100vh; padding-top: 64px; position: relative; z-index: 1; }
.page.active { display: block; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.18;
  gap: 2px;
  padding: 0 1rem;
}

.skyline-block {
  background: var(--gold-dim);
  flex-shrink: 0;
  animation: shimmer 4s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--gold);
  text-shadow: 0 0 80px rgba(201,168,76,0.3);
  animation: fadeUp 0.8s 0.1s ease both;
  margin-bottom: 0.6rem;
}

.hero-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 0.8s 0.2s ease both;
  margin-bottom: 2.5rem;
}

.hero-desc {
  max-width: 520px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  opacity: 0.8;
  animation: fadeUp 0.8s 0.3s ease both;
  margin-bottom: 3rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.4s ease both;
}

.ip-badge {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border);
  background: rgba(201,168,76,0.05);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  animation: fadeUp 0.8s 0.5s ease both;
}

.ip-badge strong { color: var(--gold); font-weight: 700; }

.ip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 8px #4caf50;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Stats ── */
.stats-bar {
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  margin-bottom: 5rem;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 3.5rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Sections ── */
.section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ── Feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feat-card {
  background: var(--dark2);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feat-card:hover { background: var(--dark3); }
.feat-card:hover::before { transform: scaleX(1); }

.feat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glow);
  border: 1px solid var(--border);
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

.feat-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.feat-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }

/* ── Buttons ── */
.btn-primary {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--dark);
  background: var(--gold);
  padding: 0.85rem 2.5rem;
  text-decoration: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: transparent;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--gold-dim);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--gold); }

/* ── Rules ── */
.rules-layout { max-width: 800px; margin: 0 auto; padding: 4rem 2rem 6rem; }

.rules-intro {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--glow);
  margin-bottom: 3rem;
  border-left: 3px solid var(--gold);
}

.rules-intro p { font-size: 0.95rem; color: var(--text); line-height: 1.8; }

.rule-section { margin-bottom: 3rem; }

.rule-section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rule-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--gold-dim);
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.1em;
}

.rule-list { list-style: none; }

.rule-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text);
}

.rule-list li:last-child { border-bottom: none; }

.rule-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--gold);
}

.severity {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.sev-warn { background: rgba(186,117,23,0.2); color: #d4952a; border: 1px solid rgba(186,117,23,0.3); }
.sev-ban  { background: rgba(176,48,48,0.2);  color: #e05555; border: 1px solid rgba(176,48,48,0.3); }

.appeals-box {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(176,48,48,0.06);
  border-left: 3px solid var(--red);
}

.appeals-box p { font-size: 0.85rem; color: var(--text); line-height: 1.8; }
.appeals-box strong { color: #e05555; font-family: 'Cinzel', serif; font-size: 0.9rem; }

/* ── Join ── */
.join-layout { max-width: 900px; margin: 0 auto; padding: 4rem 2rem 6rem; }

.join-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 4rem;
  border: 1px solid var(--border);
}

.join-step { background: var(--dark2); padding: 2rem 1.8rem; }

.join-step-num {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.join-step-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.join-step p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }

.code-block {
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copy-btn {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover { color: var(--gold); border-color: var(--gold-dim); }

.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 4rem;
}

.rank-card { background: var(--dark2); padding: 1.8rem 1.5rem; text-align: center; }

.rank-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.3rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.rank-name {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.rank-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; }

.community-box { text-align: center; padding: 3rem 0 1rem; }
.community-box p { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.5rem; }
.community-box .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.community-box .note { margin-top: 2rem; font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0; text-transform: none; }
.community-box .note strong { color: var(--gold); }

/* ── Divider ── */
.divider {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
  position: relative;
}

.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--gold-dim);
}

.divider::before { left: -10px; }
.divider::after  { right: -10px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; z-index: 1;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
}

footer p { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.05em; }

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s 1s ease both;
}

.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 0 1.5rem; }
  .nav-links a { padding: 0 0.7rem; font-size: 0.7rem; }
  .stat-item { padding: 2rem 1.5rem; }
  .join-steps { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}
