:root {
  --bg-0: #050b1a;
  --bg-1: #0a1330;
  --bg-2: #0d1b3d;
  --blue-primary: #2f6dff;
  --blue-bright: #4f8cff;
  --blue-soft: #1560bd;
  --white: #ffffff;
  --text-muted: #a8b3cf;
  --border-soft: rgba(255, 255, 255, 0.1);
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-0);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(47, 109, 255, 0.35);
}

.btn-primary:hover {
  background: var(--blue-bright);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--blue-bright);
  background: rgba(79, 140, 255, 0.08);
}

.btn-discord {
  background: #5865f2;
  color: var(--white);
}

.btn-discord:hover {
  background: #6b74f5;
}

.btn-nav {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--white);
}

.logo-block {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  border-radius: 4px;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25), inset 3px 3px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.logo-block.small {
  width: 16px;
  height: 16px;
}

.accent {
  color: var(--blue-bright);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:not(.btn):hover {
  color: var(--white);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(47, 109, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(79, 140, 255, 0.2), transparent 40%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-bright);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

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

/* Sections */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-1);
}

.section-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue-bright);
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.section-text {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.section-note {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
}

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue-bright);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Server */
.server-card {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 36px;
  max-width: 640px;
}

.server-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.server-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.server-label {
  color: var(--text-muted);
  font-weight: 500;
}

.server-value-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-value {
  font-weight: 600;
  font-size: 1.05rem;
}

code.server-value {
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: "Consolas", monospace;
}

.copy-btn {
  background: var(--blue-primary);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: var(--blue-bright);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-soft);
}

.team-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 10px;
  background: var(--avatar-color, var(--blue-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.2), inset 4px 4px 0 rgba(255, 255, 255, 0.15);
}

.team-avatar-head {
  background: var(--bg-0);
  image-rendering: pixelated;
  object-fit: cover;
  border: 2px solid var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.15);
}

.team-name {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.team-role {
  color: var(--blue-bright);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Gallery */
.category-block {
  margin-bottom: 44px;
}

.category-title {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--blue-bright);
}

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

.gallery-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  padding: 20px;
  border: 1px dashed var(--border-soft);
  border-radius: 12px;
  text-align: center;
}

.gallery-card {
  aspect-ratio: 1;
  border-radius: 12px;
  border: none;
  overflow: hidden;
  padding: 0;
  background: var(--bg-2);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-card {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 36px;
  max-width: 560px;
}

.upload-card h3 {
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-0);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
}

.form-message {
  font-size: 0.9rem;
  min-height: 20px;
}

.form-message.success {
  color: #4ade80;
}

.form-message.error {
  color: #facc15;
}

/* Rules */
.rules-list {
  list-style: none;
  counter-reset: rules;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.rules-list li {
  counter-increment: rules;
  position: relative;
  padding: 18px 24px 18px 64px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text-muted);
}

.rules-list li strong {
  color: var(--white);
}

.rules-list li::before {
  content: counter(rules);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--blue-primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 16px;
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 5, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[aria-hidden="true"] {
  display: none;
}

.lightbox-figure {
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-soft);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 20px;
  transition: background 0.15s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    margin: 0 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .server-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .stats-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rules-list li {
    padding: 18px 20px 18px 56px;
  }
}
