/* ═══ CSS VARIABLES ═══ */
:root {
  /* Tonos café y dorados opacos */
  --parchment: #f5e7d3;       /* Beige claro (pergamino) */
  --parchment-dark: #d4b896;  /* Beige oscuro */
  --parchment-shadow: #a88c6b; /* Sombra para profundidad */
  --ink: #3a2c20;             /* Tinta oscura */
  --ink-light: #5c4a3a;       /* Tinta clara */
  --gold: #8a6a1e;            /* Dorado opaco (como tinta metálica) */
  --gold-light: #c9a84c;      /* Dorado claro */
  --gold-dark: #5d451a;       /* Dorado oscuro */
  --blood: #8b1a1a;           /* Rojo sangre (para detalles) */
  --dark: #1a120b;            /* Fondo oscuro (madera envejecida) */
  --dark2: #251c14;           /* Fondo secundario */
  --text: #5c4a3a;            /* Texto principal (tinta) */
  --text-dim: #8a7258;        /* Texto secundario (tinta desvanecida) */
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'IM Fell English', Georgia, serif;
  overflow-x: hidden;
  line-height: 1.7;
  /* Textura de papel envejecido */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark2);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 0; /* Barras rectangulares como en pergaminos antiguos */
}

/* ═══ CANVAS BACKGROUND ═══ */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  /* Filtro sepia para dar tono antiguo */
  filter: sepia(20%) brightness(0.9);
}

/* ═══ NOISE OVERLAY (Textura de papel) ═══ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ═══ NAV ═══ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  background: linear-gradient(to bottom, rgba(26, 18, 11, 0.95), rgba(26, 18, 11, 0.8));
  border-bottom: 1px solid rgba(138, 106, 30, 0.3);
  backdrop-filter: blur(5px);
  /* Borde superior irregular (como pergamino) */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), 95% 100%, 90% calc(100% - 3px), 85% 100%, 80% calc(100% - 5px), 0 100%);
}

nav.scrolled {
  background: rgba(26, 18, 11, 0.98);
  border-bottom: 1px solid rgba(138, 106, 30, 0.4);
}

.nav-logo {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-shadow:
    1px 1px 0 var(--gold-dark),
    -1px -1px 0 var(--gold-dark),
    2px 2px 0 rgba(0, 0, 0, 0.2);
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 5px rgba(138, 106, 30, 0.5);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--dark);
  background: linear-gradient(135deg, var(--parchment-dark), var(--parchment-shadow));
  border: 1px solid var(--gold-dark);
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  /* Borde irregular para botón */
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  transition: all 0.2s;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(138, 106, 30, 0.3);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(138, 106, 30, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  transition: 0.3s;
}

/* ═══ HERO ═══ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  overflow: hidden;
  z-index: 2;
  /* Fondo con textura de pergamino */
  background: radial-gradient(ellipse at center, rgba(245, 231, 211, 0.1) 0%, transparent 70%);
}

.hero-year {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
  /* Efecto de tinta húmeda */
  text-shadow: 0 0 5px rgba(138, 106, 30, 0.3);
}

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  color: var(--gold-light);
  text-shadow:
    0 0 30px rgba(138, 106, 30, 0.4),
    1px 1px 0 var(--gold-dark),
    -1px -1px 0 var(--gold-dark),
    3px 3px 0 rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.8rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  width: min(500px, 90%);
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}

.hero-divider-icon {
  font-size: 1.2rem;
  color: var(--gold-light);
  filter: drop-shadow(0 0 5px rgba(138, 106, 30, 0.5));
}

.hero-desc {
  font-style: italic;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
  /* Efecto de pergamino en el texto */
  background: rgba(245, 231, 211, 0.05);
  padding: 0.5rem 1rem;
  border-left: 1px solid rgba(138, 106, 30, 0.2);
  border-right: 1px solid rgba(138, 106, 30, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.3s forwards;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  background: linear-gradient(135deg, var(--parchment-dark), var(--parchment-shadow));
  border: 1px solid var(--gold-dark);
  padding: 1rem 2.5rem;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
  box-shadow: 0 0 15px rgba(138, 106, 30, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(138, 106, 30, 0.5);
}

.btn-secondary {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid rgba(138, 106, 30, 0.4);
  padding: 1rem 2.5rem;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(138, 106, 30, 0.1);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

/* Estado del servidor (estilo pergamino) */
.server-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
  background: rgba(245, 231, 211, 0.05);
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(138, 106, 30, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 0 100%);
}

.status-online {
  color: #4CAF50;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.status-offline {
  color: #a85c38; /* Rojo más terroso */
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.players-count {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(138, 106, 30, 0.4);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.hero-scroll span {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* ═══ SECTION SHARED ═══ */
section {
  position: relative;
  z-index: 2;
  /* Fondo con textura de papel */
  background: linear-gradient(to bottom, rgba(245, 231, 211, 0.02), transparent);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 5%;
}

.section-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
  /* Efecto de sello de cera */
  background: rgba(138, 106, 30, 0.1);
  padding: 0.2rem 0.5rem;
  border: 1px dashed rgba(138, 106, 30, 0.3);
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--gold-light);
  text-shadow:
    0 0 20px rgba(138, 106, 30, 0.3),
    1px 1px 0 var(--gold-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0 2.5rem;
}

.section-divider::before {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold-dark);
}

.section-divider-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  transform: rotate(45deg);
  box-shadow: 0 0 5px rgba(138, 106, 30, 0.5);
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-dark), transparent);
}

/* ═══ ABOUT ═══ */
#about {
  background: linear-gradient(to bottom, var(--dark), var(--dark2));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.9;
  /* Fondo sutil de pergamino en el texto */
  background: rgba(245, 231, 211, 0.03);
  padding: 0.3rem 0.5rem;
}

.about-text p strong {
  color: var(--gold-light);
  font-style: normal;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, rgba(245, 231, 211, 0.08), rgba(212, 184, 150, 0.03));
  border: 1px solid rgba(138, 106, 30, 0.2);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  /* Borde irregular */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), 95% 100%, 0 100%);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 231, 211, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  border-color: rgba(138, 106, 30, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(138, 106, 30, 0.2);
}

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

.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
  text-shadow: 0 0 15px rgba(138, 106, 30, 0.4);
}

.stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.3rem;
  display: block;
}

/* ═══ FEATURES ═══ */
#features {
  background: var(--dark2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-card {
  background: linear-gradient(160deg, rgba(28, 22, 16, 0.8), rgba(18, 14, 8, 0.8));
  border: 1px solid rgba(138, 106, 30, 0.2);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  /* Borde de pergamino */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(138, 106, 30, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(138, 106, 30, 0.3);
}

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

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(138, 106, 30, 0.4));
}

.feature-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

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

.feature-tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid rgba(138, 106, 30, 0.3);
  padding: 0.25rem 0.7rem;
  background: rgba(245, 231, 211, 0.1);
}

/* ═══ NATIONS ═══ */
#nations {
  background: linear-gradient(to bottom, var(--dark2), var(--dark));
}

.nations-intro {
  color: var(--text-dim);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 3rem;
  line-height: 1.8;
  background: rgba(245, 231, 211, 0.03);
  padding: 0.5rem 1rem;
  border-left: 1px solid rgba(138, 106, 30, 0.2);
}

.nations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.nation-card {
  position: relative;
  padding: 1.8rem 1.4rem;
  border: 1px solid rgba(138, 106, 30, 0.2);
  background: rgba(245, 231, 211, 0.05);
  overflow: hidden;
  cursor: default;
  transition: all 0.3s;
  /* Borde de pergamino */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 0 100%);
}

.nation-card:hover {
  border-color: rgba(138, 106, 30, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(138, 106, 30, 0.2);
}

.nation-flag {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.nation-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.nation-type {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.7rem;
}

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

.nation-card .corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-bottom: 20px solid rgba(138, 106, 30, 0.1);
}

/* ═══ JOIN ═══ */
#join {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  text-align: center;
}

#join .section-inner {
  max-width: 800px;
}

.join-ip-container {
  margin: 2.5rem auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 500px;
  width: 100%;
}

.join-ip {
  flex: 1;
  background: rgba(245, 231, 211, 0.1);
  border: 1px solid rgba(138, 106, 30, 0.4);
  border-right: none;
  padding: 1rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-align: center;
  cursor: pointer;
  user-select: all;
  /* Borde irregular */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), 0 100%);
}

.copy-btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border: none;
  padding: 0 1.5rem;
  height: 100%;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  transition: all 0.2s;
  min-height: 52px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), 0 100%);
}

.copy-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.join-version {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.join-version span {
  color: var(--gold-light);
}

.join-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.join-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  max-width: 160px;
}

.step-num {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(138, 106, 30, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold-light);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  background: rgba(245, 231, 211, 0.1);
}

.step-text {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
}

.join-connector {
  width: 40px;
  height: 1px;
  background: rgba(138, 106, 30, 0.2);
  align-self: flex-start;
  margin-top: 20px;
}

/* ═══ DISCORD ═══ */
#discord {
  background: var(--dark);
  border-top: 1px solid rgba(138, 106, 30, 0.1);
  text-align: center;
}

.discord-card {
  background: linear-gradient(135deg, rgba(245, 231, 211, 0.05), rgba(212, 184, 150, 0.02));
  border: 1px solid rgba(138, 106, 30, 0.3);
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
  transition: all 0.3s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 0 100%);
}

.discord-card:hover {
  border-color: rgba(138, 106, 30, 0.6);
  box-shadow: 0 0 20px rgba(138, 106, 30, 0.2);
}

.discord-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.3));
}

.discord-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: #a5b4ff;
  margin-bottom: 0.7rem;
}

.discord-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.btn-discord {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #3d4ae0);
  border: none;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
}

.btn-discord:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(88, 101, 242, 0.3);
}

/* ═══ FOOTER ═══ */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(138, 106, 30, 0.1);
  background: var(--dark);
  padding: 3rem 5% 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  text-shadow: 0 0 15px rgba(138, 106, 30, 0.3);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s;
}

.footer-nav a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 5px rgba(138, 106, 30, 0.3);
}

.footer-copy {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: rgba(138, 114, 88, 0.5);
  text-transform: uppercase;
}

/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  border: 1px solid rgba(138, 106, 30, 0.4);
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 2rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), 0 100%);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══ REVEAL ANIMATIONS ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nations-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nations-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ═══ MOBILE NAV ═══ */
.mobile-nav {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(26, 18, 11, 0.98);
  border-bottom: 1px solid rgba(138, 106, 30, 0.2);
  padding: 1.5rem 5%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-nav a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 5px rgba(138, 106, 30, 0.3);
}