:root {
  --bg: #0b0906;
  --bg-alt: #120d08;
  --surface: #1a140d;
  --surface-hover: #221a10;
  --border: #2e2115;
  --border-light: #3d2b1a;
  --text: #f5efe6;
  --text-muted: #a99a86;
  --text-dim: #6f6152;
  --orange: #ff7a1a;
  --orange-light: #ff9d4d;
  --orange-dim: #cc5500;
  --purple: #7a3aa8;
  --purple-light: #9d5fc9;
  --purple-dim: #4a2069;
  --brand-gradient: linear-gradient(135deg, var(--orange) 0%, var(--purple) 100%);
  --shadow-glow: rgba(255, 122, 26, 0.35);
  --shadow-glow-purple: rgba(122, 58, 168, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background effects */
.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(255, 122, 26, 0.16) 0%, rgba(255, 122, 26, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-purple {
  position: fixed;
  top: 10%;
  right: -15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse at center, rgba(122, 58, 168, 0.14) 0%, rgba(122, 58, 168, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 9, 6, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #1a0e00;
  box-shadow: 0 4px 16px var(--shadow-glow);
  flex-shrink: 0;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-dot {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-active {
  color: var(--orange-light) !important;
}

.nav-cta-secondary {
  border: 1px solid var(--border-light);
}

.nav-cta-secondary:hover {
  border-color: var(--orange-dim);
  background: rgba(255, 122, 26, 0.06);
}

.nav-cta-primary {
  background: var(--brand-gradient);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 120px 0 90px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
}

.accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px var(--shadow-glow-purple));
}

.hero-subtitle {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

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

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 24px var(--shadow-glow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px var(--shadow-glow-purple);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--orange-dim);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 560px;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--orange-light);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 20px 0 120px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255, 122, 26, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 20px;
}

.feature-icon--purple {
  background: rgba(122, 58, 168, 0.14);
  color: var(--purple-light);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.feature-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-light);
  text-decoration: none;
}

.feature-link:hover {
  color: var(--orange);
}

.feature-link--purple {
  color: var(--purple-light);
}

.feature-link--purple:hover {
  color: var(--purple);
}

/* Page hero (sub-pages) */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 90px 0 20px;
  text-align: center;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-subtitle {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Servers list */
.servers-list {
  position: relative;
  z-index: 1;
  padding: 50px 0 120px;
}

.server-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.server-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-card-heading h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.server-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--orange-light);
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
}

.server-status-label {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
}

.server-status-label:hover {
  color: var(--orange-light);
}

.server-banner-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.server-banner {
  display: block;
  width: 100%;
  height: auto;
}

.server-banner-note {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

.server-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.server-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-address-label {
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.server-address code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 15px;
  color: var(--text);
}

.server-actions {
  display: flex;
  gap: 12px;
}

.btn-copy {
  padding: 12px 18px;
  font-size: 14px;
}

.btn-copy-success {
  border-color: #4ade80 !important;
  color: #4ade80 !important;
}

@media (max-width: 560px) {
  .server-card {
    padding: 24px 20px;
  }
  .server-card-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .server-actions {
    width: 100%;
  }
  .server-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Discord */
.discord-section {
  position: relative;
  z-index: 1;
  padding: 0 0 120px;
}

.discord-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: linear-gradient(155deg, var(--surface) 0%, var(--bg-alt) 100%);
  padding: 56px;
  overflow: hidden;
}

.discord-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(122, 58, 168, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.discord-card-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: 620px;
}

.discord-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5865f2;
}

.discord-icon svg {
  width: 28px;
  height: 28px;
}

.discord-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.discord-text > p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
  max-width: 46ch;
}

.discord-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.discord-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.discord-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.discord-stat-value {
  font-weight: 700;
  color: var(--text);
}

.discord-stat-label {
  color: var(--text-dim);
}

.discord-avatars {
  display: flex;
  align-items: center;
}

.discord-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  object-fit: cover;
  background: var(--surface-hover);
  margin-left: -10px;
}

.discord-avatar:first-child {
  margin-left: 0;
}

.discord-avatar-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-hover);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-discord:hover {
  background: #6b74f5;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .discord-card {
    padding: 32px 24px;
  }
  .discord-card-content {
    flex-direction: column;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-weight: 700;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--orange-light);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.nav-cta-secondary):not(.nav-cta-primary) {
    display: none;
  }
  .hero-stats {
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 90px 0 60px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-stats {
    flex-wrap: wrap;
    row-gap: 20px;
  }
  .stat-divider {
    display: none;
  }
}
