/* ============ Design Tokens ============ */
:root {
  --green: #3bc331;
  --green-dark: #2ea326;
  --green-light: #e9f9e7;
  --green-glow: rgba(59, 195, 49, 0.25);

  --bg: #ffffff;
  --bg-alt: #f5faf4;
  --surface: #ffffff;
  --border: #e6ece5;

  --text: #1c2b1a;
  --text-muted: #5a6b57;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(28, 43, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 43, 26, 0.08);
  --shadow-green: 0 10px 30px var(--green-glow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle, rgba(59, 195, 49, 0.09) 1.5px, transparent 1.5px) 0 0/28px 28px,
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.2;
}

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

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

.wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.highlight {
  color: var(--green);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-ghost {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 10px 18px;
  font-size: 14px;
}

.btn-ghost:hover {
  background: var(--green);
  color: #fff;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.icon-discord, .icon-copy {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--green-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, var(--green-glow) 0%, rgba(59, 195, 49, 0) 70%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 36px;
}

.ip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.ip-box-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.ip-box-value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: var(--green);
  color: #fff;
}

.copy-btn.copied {
  background: var(--green-dark);
  color: #fff;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bbb;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.status-dot.offline {
  background: #e35151;
  box-shadow: 0 0 0 4px rgba(227, 81, 81, 0.2);
}

/* ============ Sections ============ */
.section {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
}

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

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-text {
  color: var(--text-muted);
  font-size: 16px;
}

/* ============ Feature Cards ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--green-dark);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ============ Info Grid ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.info-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.info-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--green-dark);
}

/* ============ CTA Section ============ */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
}

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

.cta-inner h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin-bottom: 28px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cta-section .btn-primary:hover {
  background: var(--text);
  color: #fff;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

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

/* ============ Ambient side decoration ============ */
/* Scoped per-section (not fixed) so it scrolls with content and never
   fights with opaque section backgrounds. */
.wrapper {
  position: relative;
  z-index: 1;
}

.section-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.ambient-blob--left {
  top: 10%;
  left: -160px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--green-glow) 0%, rgba(59, 195, 49, 0) 72%);
}

.ambient-blob--right {
  top: 30%;
  right: -180px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(59, 195, 49, 0.18) 0%, rgba(59, 195, 49, 0) 72%);
}

.pixel-block {
  position: absolute;
  opacity: 0.6;
  animation: pixel-float 6s ease-in-out infinite;
}

.pixel-block svg {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 10px rgba(28, 43, 26, 0.15));
}

.pixel-block--left { top: 38%; left: 3%; width: 50px; height: 50px; animation-delay: 0s; }
.pixel-block--right { top: 58%; right: 4.5%; width: 46px; height: 46px; animation-delay: -3s; }

@keyframes pixel-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

@media (max-width: 1400px) {
  .pixel-block { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-block { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-ghost span {
    display: none;
  }

  .ip-box {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    justify-content: center;
  }
}
