:root {
  --bg-deep: #07080d;
  --bg-panel: #10131c;
  --bg-panel-2: #161b28;
  --gold: #c9a227;
  --gold-light: #f0d78c;
  --gold-dim: #8a7020;
  --text: #e8ecf4;
  --text-muted: #9aa3b8;
  --accent: #3d7cff;
  --accent-glow: rgba(61, 124, 255, 0.35);
  --success: #4ade80;
  --border: rgba(201, 162, 39, 0.22);
  --header-h: 72px;
  --max-w: 1180px;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 124, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(201, 162, 39, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(120, 60, 200, 0.06), transparent 50%),
    linear-gradient(180deg, #0a0c12 0%, #07080d 40%, #050608 100%);
}

.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.container { width: min(var(--max-w), calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 8, 13, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #1a1200;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.35);
}

.nav-desktop { display: flex; align-items: center; gap: 0.15rem; }
.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-desktop a:hover, .nav-desktop a.active {
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(10, 12, 18, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-mobile a:hover { background: rgba(201, 162, 39, 0.1); color: var(--gold-light); }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  background: linear-gradient(180deg, #fff 0%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.hero-sub strong { color: var(--gold-light); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a88418);
  color: #1a1200;
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(201, 162, 39, 0.45); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }

/* Countdown */
.countdown-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.countdown-item {
  padding: 1rem 0.5rem;
  border-radius: 10px;
  background: var(--bg-panel-2);
  border: 1px solid rgba(255,255,255,0.05);
}
.countdown-item span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold-light);
  line-height: 1;
}
.countdown-item small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Sections */
section { padding: 5rem 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
  color: var(--text);
}
.section-head p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Bot highlight */
.bot-banner {
  margin-top: 4rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(61, 124, 255, 0.06));
  border: 1px solid rgba(74, 222, 128, 0.25);
  text-align: center;
}
.bot-banner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--success);
}
.bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.bot-tags span {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s;
}
.stat-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  transform: translateY(-3px);
}
.stat-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}
.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}
.rate-row:last-child { border-bottom: none; }
.rate-row span:first-child { color: var(--text-muted); }
.rate-row span:last-child { color: var(--gold-light); font-weight: 700; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-panel-2);
  border: 1px solid rgba(255,255,255,0.05);
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.feature-item h4 { margin: 0 0 0.25rem; font-size: 0.95rem; }
.feature-item p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* Downloads */
.download-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  text-align: center;
}
.download-steps {
  text-align: left;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.download-steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.download-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-light);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}
.download-steps li strong { color: var(--text); }

/* Auth panels */
.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.auth-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  text-align: center;
}
.auth-card h3 {
  font-family: var(--font-display);
  color: var(--gold-light);
  margin: 0 0 0.75rem;
}
.auth-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1.5rem; }
.server-ip {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: var(--bg-panel-2);
  border: 1px dashed var(--gold-dim);
  font-family: monospace;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  user-select: all;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px dashed rgba(201, 162, 39, 0.45);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Support */
.support-ucp {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto 2rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(61, 124, 255, 0.06));
  border: 1px solid rgba(74, 222, 128, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.support-ucp-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.15);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.support-ucp h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--success);
  margin: 0 0 0.5rem;
}

.support-ucp p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.support-ucp p strong {
  color: var(--text);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.support-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  text-align: center;
}
.support-card h4 { margin: 0 0 0.5rem; color: var(--gold-light); }
.support-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

.support-card--featured {
  border-color: rgba(74, 222, 128, 0.35);
  background: linear-gradient(160deg, rgba(74, 222, 128, 0.08), var(--bg-panel));
}

.support-card--featured h4 {
  color: var(--success);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
