:root {
  --bg: #0a120f;
  --bg-2: #0e1a16;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eaf6ef;
  --muted: #9fb6ab;
  --green: #67e25f;
  --teal: #2bb6a3;
  --grad: linear-gradient(120deg, var(--green), var(--teal));
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

em { font-style: normal; }

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

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

code, .ip { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(103, 226, 95, 0.18), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(43, 182, 163, 0.16), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(43, 182, 163, 0.10), transparent 60%),
    var(--bg);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 18, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 10px; }
.brand em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: #06110d !important;
  background: var(--grad);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
}

/* HERO */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) clamp(16px, 4vw, 40px) clamp(32px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  margin: 14px 0 4px;
  letter-spacing: -0.03em;
}
.hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  color: var(--green);
  margin: 0 0 14px;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.lead strong { color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #9aa;
  box-shadow: 0 0 0 0 rgba(103, 226, 95, 0.6);
}
.dot.online { background: var(--green); animation: pulse 1.8s infinite; }
.dot.offline { background: #f0625f; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(103, 226, 95, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(103, 226, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 226, 95, 0); }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #06110d;
  box-shadow: 0 12px 30px -12px rgba(43, 182, 163, 0.8);
}
.btn-ghost {
  background: var(--panel);
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.full { width: 100%; }
.btn.big { padding: 16px 34px; font-size: 1.1rem; }

.ip-box {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #0c1714;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ip-box:hover { border-color: rgba(103, 226, 95, 0.5); background: #0e1c17; }
.ip-box.small { max-width: none; margin-top: 16px; }
.ip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-right: 12px;
  border-right: 1px solid var(--panel-border);
}
.ip { flex: 1; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.ip-copy {
  font-size: 0.85rem;
  font-weight: 700;
  color: #06110d;
  background: var(--grad);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: clamp(160px, 26vw, 240px);
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 0 1px var(--panel-border);
}

/* SECTIONS */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px);
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-sub { color: var(--muted); margin: 0 0 34px; font-size: 1.05rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 226, 95, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(103, 226, 95, 0.18), rgba(43, 182, 163, 0.18));
  border: 1px solid var(--panel-border);
  color: var(--green);
  margin-bottom: 16px;
}
.ico svg { width: 24px; height: 24px; }

/* JOIN */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.join-card ol { color: var(--muted); padding-left: 20px; margin: 0 0 4px; }
.join-card ol li { margin-bottom: 6px; }
.join-card strong { color: var(--text); }

/* VOTE */
.vote {
  max-width: none;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}
.vote-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  background:
    linear-gradient(140deg, rgba(103, 226, 95, 0.14), rgba(43, 182, 163, 0.14)),
    var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  padding: clamp(32px, 6vw, 64px);
}
.vote-inner h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 10px; }
.vote-inner p { color: var(--muted); max-width: 54ch; margin: 0 auto 26px; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 34px clamp(16px, 4vw, 40px);
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-brand img { border-radius: 8px; }
.muted { color: var(--muted); font-size: 0.9rem; margin: 4px 0; }

/* TOAST */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--grad);
  color: #06110d;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* RESPONSIVE */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .cta-row, .ip-box { justify-content: center; margin-left: auto; margin-right: auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
