:root {
  --gold: #d4a017;
  --gold-light: #f0c040;
  --gold-dark: #8a6200;
  --red: #cc2200;
  --red-bright: #ff3300;
  --bg-dark: #050508;
  --bg-mid: #0d0d18;
  --bg-card: #0a0a16;
  --blue-accent: #1a3a7a;
  --blue-glow: #2255cc;
  --text-muted: #8888aa;
  --border: rgba(212,160,23,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: #e8e8f0;
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
}

/* ─── PARTICLES ─── */
#particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  animation: float linear infinite;
  opacity: 0;
}
@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(to bottom, rgba(5,5,8,0.98), rgba(5,5,8,0.7));
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 20px; font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212,160,23,0.6);
  letter-spacing: 2px;
  text-decoration: none;
}
.nav-logo span { color: var(--red-bright); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  color: #aaa; text-decoration: none; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-btn {
  background: linear-gradient(135deg, var(--red), #880000);
  color: #fff; border: none; padding: 8px 22px;
  font-family: 'Exo 2', sans-serif; font-size: 12px;
  letter-spacing: 2px; font-weight: 700; text-transform: uppercase;
  cursor: pointer; clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.nav-btn:hover { background: linear-gradient(135deg, var(--red-bright), var(--red)); }

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26,58,122,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 70%, rgba(204,34,0,0.2) 0%, transparent 60%),
    linear-gradient(180deg, #050508 0%, #0a0a18 50%, #05050c 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,160,23,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,23,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }
.hero-season {
  display: inline-block;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  border: 1px solid rgba(212,160,23,0.4);
  padding: 6px 20px; margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
}
.hero-logo {
  max-width: 550px;
  width: 85%;
  filter: drop-shadow(0 0 30px rgba(212,160,23,0.5));
  animation: fadeInDown 0.8s ease 0.1s both, logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(212,160,23,0.5)); }
  50% { filter: drop-shadow(0 0 50px rgba(240,192,64,0.8)); }
}
.hero-sub {
  font-size: 16px; color: var(--text-muted); margin: 20px 0 40px;
  letter-spacing: 1px;
  animation: fadeInDown 0.8s ease 0.2s both;
}
.online-badge {
  position: fixed;
  top: 78px; right: 20px;
  z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(0,0,0,0.82), rgba(10,20,10,0.72));
  border: 1px solid rgba(0,204,68,0.45);
  padding: 7px 16px 7px 13px;
  border-radius: 40px;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #aaffaa; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,204,68,0.15), inset 0 0 14px rgba(0,204,68,0.08);
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s ease 0.3s both;
}
@media (max-width: 700px) {
  .online-badge { top: auto; bottom: 90px; right: 12px; font-size: 11px; padding: 5px 12px 5px 10px; }
  .online-badge .online-label { display: none; }
}
.online-badge.offline {
  background: linear-gradient(135deg, rgba(204,34,0,0.12), rgba(100,20,0,0.08));
  border-color: rgba(204,34,0,0.35);
  color: #ffaaaa;
  box-shadow: 0 4px 14px rgba(204,34,0,0.15);
}
.online-badge.offline .online-dot {
  background: #ff5533;
  box-shadow: 0 0 0 0 rgba(255,85,51,0.6);
  animation: none;
}
.online-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #00cc44;
  box-shadow: 0 0 12px #00cc44;
  animation: onlinePulse 1.8s ease-in-out infinite;
}
.online-count {
  color: #fff; font-size: 14px; font-weight: 900;
  font-family: 'Cinzel', serif; letter-spacing: 1px;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 10px; margin-left: 2px;
  min-width: 30px; text-align: center;
}
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,204,68,0.7), 0 0 12px #00cc44; }
  50%      { box-shadow: 0 0 0 10px rgba(0,204,68,0), 0 0 12px #00cc44; }
}
.hero-sub strong { color: #ccc; font-weight: 600; }
.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInDown 0.8s ease 0.3s both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), #a07810);
  color: #000; font-weight: 800; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  padding: 14px 36px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.2s;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--gold); font-weight: 700; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  padding: 13px 36px;
  border: 1px solid rgba(212,160,23,0.5);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(212,160,23,0.1); border-color: var(--gold); }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-top: 60px;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hstat { text-align: center; }
.hstat-num {
  font-family: 'Cinzel', serif;
  font-size: 28px; font-weight: 700; color: var(--gold);
  display: block;
}
.hstat-label { font-size: 11px; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 11px; letter-spacing: 2px;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-arrow { width: 20px; height: 20px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ─── SECTIONS ─── */
section { position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; display: block; margin-bottom: 12px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  color: #fff; line-height: 1.1;
}
.section-line {
  width: 60px; height: 2px; margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ─── FEATURES ─── */
.features { padding: 100px 40px; background: var(--bg-dark); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feat-card:hover { border-color: rgba(212,160,23,0.5); transform: translateY(-4px); }
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  font-size: 36px; margin-bottom: 16px; display: block;
  filter: drop-shadow(0 0 10px rgba(212,160,23,0.4));
}
.feat-title {
  font-family: 'Cinzel', serif; font-size: 17px; font-weight: 700;
  color: var(--gold); margin-bottom: 10px;
}
.feat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─── CLASSES ─── */
.classes { padding: 100px 40px; background: var(--bg-mid); }
.classes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; max-width: 1200px; margin: 0 auto;
}
.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 20px; text-align: center;
  cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.class-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(212,160,23,0.05));
  opacity: 0; transition: opacity 0.3s;
}
.class-card:hover { border-color: var(--gold); transform: translateY(-6px); }
.class-card:hover::after { opacity: 1; }
.class-badge {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border: 2px solid var(--border);
  background: rgba(212,160,23,0.08);
}
.class-name { font-family: 'Cinzel', serif; font-size: 15px; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.class-role { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.class-bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-label { font-size: 11px; color: var(--text-muted); width: 40px; text-align: left; }
.bar-track { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }
.bar-atk { background: linear-gradient(90deg, var(--red), #ff6644); }
.bar-def { background: linear-gradient(90deg, var(--blue-glow), #44aaff); }
.bar-agi { background: linear-gradient(90deg, #22aa44, #66dd88); }

/* ─── RATES / INFO ─── */
.rates { padding: 100px 40px; background: var(--bg-dark); }
.rates-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rates-col { }
.rate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px; margin-bottom: 16px;
}
.rate-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.rate-icon { font-size: 22px; }
.rate-title { font-family: 'Cinzel', serif; font-size: 16px; color: var(--gold); font-weight: 700; }
.rate-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.rate-item:last-child { border-bottom: none; }
.rate-key { font-size: 13px; color: var(--text-muted); }
.rate-val { font-size: 13px; font-weight: 700; color: var(--gold-light); }
.rate-val.red { color: #ff6644; }
.rate-val.green { color: #44dd88; }
.rate-val.blue { color: #44aaff; }

/* ─── EVENTS ─── */
.events { padding: 100px 40px; background: var(--bg-mid); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px; position: relative; overflow: hidden;
  transition: all 0.3s;
}
.event-card:hover { border-color: rgba(212,160,23,0.5); }
.event-type {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  font-weight: 700; padding: 4px 12px; display: inline-block; margin-bottom: 14px;
}
.event-type.pvp { background: rgba(204,34,0,0.2); color: #ff6644; border: 1px solid rgba(204,34,0,0.4); }
.event-type.pve { background: rgba(34,170,68,0.15); color: #44dd88; border: 1px solid rgba(34,170,68,0.3); }
.event-type.reward { background: rgba(212,160,23,0.15); color: var(--gold); border: 1px solid rgba(212,160,23,0.3); }
.event-name { font-family: 'Cinzel', serif; font-size: 18px; color: #fff; font-weight: 700; margin-bottom: 8px; }
.event-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.event-meta { display: flex; gap: 16px; font-size: 12px; color: #666; }
.event-meta span { display: flex; align-items: center; gap: 5px; }

/* ─── DOWNLOAD ─── */
.download {
  padding: 100px 40px;
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-mid));
  text-align: center;
}
.download-box { max-width: 700px; margin: 0 auto; }
.download-size { color: var(--text-muted); font-size: 13px; margin-top: 12px; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; text-align: left; }
.req-card { background: var(--bg-card); border: 1px solid var(--border); padding: 20px; }
.req-title { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.req-item { font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.req-item strong { color: #ccc; font-weight: 600; }

/* ─── NEWS TICKER ─── */
.ticker-bar {
  background: linear-gradient(135deg, rgba(212,160,23,0.12), rgba(204,34,0,0.1));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 12px 0; overflow: hidden; display: flex; align-items: center;
}
.ticker-label {
  background: var(--gold); color: #000; font-weight: 800; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; padding: 4px 16px;
  white-space: nowrap; margin-right: 24px;
  clip-path: polygon(0 0, calc(100% - 8px) 0%, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  flex-shrink: 0;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-inner {
  display: flex; gap: 60px; white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 13px; color: #aaa;
}
.ticker-inner span { color: var(--gold); font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── FOOTER ─── */
footer {
  background: var(--bg-dark); border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.footer-brand .nav-logo { font-size: 22px; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-family: 'Cinzel', serif; font-size: 13px; color: var(--gold); font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: #444; }
.footer-copy span { color: #666; }
.social-links { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted); text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ─── UTILITY ─── */
.gold { color: var(--gold); }
.container { max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .rates-inner, .req-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .features, .classes, .rates, .events, .download { padding: 60px 20px; }
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 999; display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: #0a0a16; border: 1px solid rgba(212,160,23,0.5);
  padding: 40px; max-width: 540px; width: 90%; position: relative;
  max-height: 80vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  background: none; border: 1px solid #333; color: #888; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-title { font-family: 'Cinzel', serif; font-size: 22px; color: var(--gold); margin-bottom: 8px; }
.modal-role { font-size: 12px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }
.modal-section { margin-bottom: 20px; }
.modal-section h4 { font-size: 12px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; font-family: 'Cinzel', serif; }
.modal-section p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.skill-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.skill-list li { font-size: 13px; color: #ccc; padding: 8px 12px; background: rgba(255,255,255,0.04); border-left: 2px solid var(--gold); }

/* Glow pulse for hero */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 40px rgba(212,160,23,0.3); }
  50% { text-shadow: 0 0 80px rgba(212,160,23,0.6), 0 0 20px rgba(212,160,23,0.3); }
}
.hero-title { animation: glowPulse 3s ease-in-out infinite, fadeInDown 0.8s ease both; }
