:root {
  --bg: #0a0f1f;
  --bg-2: #101830;
  --card: #141d38;
  --line: #24305a;
  --text: #e8ecf8;
  --muted: #94a0c4;
  --accent: #c8e03a;
  --accent-2: #f0b429;
  --ok: #4ade80;
  --bad: #f87171;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(ellipse at top, var(--bg-2), var(--bg) 60%) fixed;
  color: var(--text);
  line-height: 1.6;
}
img { image-rendering: pixelated; }
a { color: inherit; }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1.25rem;
  background: rgba(10, 15, 31, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; letter-spacing: .12em; }
.nav nav { display: flex; align-items: center; gap: 1.25rem; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 5rem 1.25rem 4rem; }
.hero-logo { display: block; margin: 0 auto; }
h1 {
  margin: .5rem 0 0;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  letter-spacing: .15em;
  color: var(--accent);
}
.tagline { color: var(--muted); font-size: 1.2rem; margin: .25rem 0 2rem; }

.ip {
  display: inline-flex; align-items: center; gap: 1rem;
  font: inherit; color: var(--text); cursor: pointer;
  background: var(--card); border: 2px solid var(--accent); border-radius: 12px;
  padding: .9rem 1.2rem;
  transition: transform .15s, border-color .15s;
}
.ip:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.ip:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.ip-text { font-size: 1.6rem; font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.ip-action { font-size: .85rem; color: #0a0f1f; background: var(--accent); padding: .25rem .6rem; border-radius: 6px; font-weight: 700; }

.status { color: var(--muted); margin: 1rem 0 2rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); margin-right: .5rem; }
.status.online .dot { background: var(--ok); }
.status.offline .dot { background: var(--bad); }

.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--accent); color: #0a0f1f;
  padding: .75rem 1.4rem; border-radius: 10px;
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn-small { padding: .4rem .9rem; }

.section { max-width: 1000px; margin: 0 auto; padding: 3.5rem 1.25rem; text-align: center; }
.section h2 { font-size: 2rem; margin: 0; letter-spacing: .06em; }
.lead { color: var(--muted); margin: .4rem 0 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.grid-2 { max-width: 640px; margin: 0 auto; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h3 { margin: .5rem 0 .25rem; }
.card p { margin: 0; color: var(--muted); }
.card-icon {
  width: 3rem; height: 3rem; margin: 0 auto; display: grid; place-items: center;
  background: var(--bg); border: 2px dashed var(--line); border-radius: 10px;
  font-size: 1.4rem; font-weight: 800; color: var(--accent);
}
.avatar {
  width: 96px; height: 96px; margin: 0 auto .5rem; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--line);
  display: grid; place-items: center;
  background: var(--bg); color: var(--accent); font-size: 2.2rem; font-weight: 800;
  image-rendering: auto;
}
.join { border-top: 1px solid var(--line); }

footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); }
footer p { margin: .25rem 0; }
footer a:hover { color: var(--text); }

.legal { max-width: 720px; margin: 0 auto; padding: 3rem 1.25rem; }
.legal h1 { font-size: 2.2rem; letter-spacing: .05em; }
.legal h2 { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 520px) {
  .ip-text { font-size: 1.2rem; }
  .nav nav a:not(.btn) { display: none; }
}
