@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0c0b0a;
  --bg-elevated: #161311;
  --bg-card: #151210;
  --border: #2b2622;
  --border-soft: #221f1b;

  --text: #f3ede4;
  --text-muted: #9c9088;
  --text-dim: #6f6653;

  --accent: #ff7a1f;
  --accent-bright: #ff9a4d;
  --accent-dim: #7a3f18;

  --online: #8fae6a;
  --offline: #8a5a4a;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(255, 122, 31, 0.09), transparent),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(255, 122, 31, 0.06), transparent);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #12100e; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 0.9rem;
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

/* ---------- HERO ---------- */

.hero { border-bottom: 1px solid var(--border-soft); }

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  text-shadow: 0 0 40px rgba(255, 122, 31, 0.25);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 1.25rem auto 2.75rem;
}

/* ---------- STATUS CARD (signature element) ---------- */

.status-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: left;
  margin-bottom: 2.5rem;
  transition: border-color 0.4s ease;
}

.status-card[data-state="online"] { border-color: rgba(143, 174, 106, 0.35); }
.status-card[data-state="offline"] { border-color: rgba(138, 90, 74, 0.35); }

.lantern { position: relative; width: 34px; height: 34px; flex-shrink: 0; }

.lantern-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-bright), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lantern-body {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 2px solid var(--border);
  transition: background 0.6s ease, border-color 0.6s ease;
}

.status-card[data-state="online"] .lantern-glow {
  opacity: 0.55;
  animation: flicker 3.4s ease-in-out infinite;
}

.status-card[data-state="online"] .lantern-body {
  background: var(--accent);
  border-color: var(--accent-bright);
  box-shadow: 0 0 14px rgba(255, 122, 31, 0.5);
}

.status-card[data-state="offline"] .lantern-body {
  background: #2a241d;
  border-color: var(--offline);
}

@keyframes flicker {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  30% { opacity: 0.7; transform: scale(1.06); }
  55% { opacity: 0.4; transform: scale(0.97); }
  80% { opacity: 0.65; transform: scale(1.03); }
}

.status-label { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0; }
.status-detail { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); margin: 0.2rem 0 0; }

/* ---------- BUTTONS ---------- */

.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #1a1409; font-family: var(--font-mono); }
.btn-primary:hover { background: var(--accent-bright); }

.copy-hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-top: 0.15rem;
}

.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-dim); }
.btn-wide { width: 100%; }

/* ---------- FACTS STRIP ---------- */

.facts-strip { border-bottom: 1px solid var(--border-soft); background: var(--bg-elevated); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact-cell {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
}

.fact-cell .fact-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.fact-cell .fact-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

/* ---------- JOIN SECTION ---------- */

.join { border-bottom: 1px solid var(--border-soft); }

.join h2, .community h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin-bottom: 2.5rem;
  max-width: 20ch;
}

.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.join-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.join-platform {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--accent-bright);
}

.join-note { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 1.1rem; }
.join-steps { margin: 0; padding-left: 1.2rem; color: var(--text-muted); }
.join-steps li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.join-steps strong { color: var(--text); }

.join-steps code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  color: var(--accent-bright);
  font-size: 0.88rem;
}

/* ---------- PLUGINS ---------- */

.plugins { border-bottom: 1px solid var(--border-soft); }

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.plugin-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.plugin-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plugin-name .plugin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.plugin-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- RULES ---------- */

.rules { border-bottom: 1px solid var(--border-soft); }

.rules-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
  max-width: 62ch;
}

.rules-full-link {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rules-full-link:hover { color: var(--accent); }

.rule-group { margin-bottom: 2.75rem; }
.rule-group:last-child { margin-bottom: 0; }

.rule-group-head {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.9rem;
}

.rule-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.rule-group-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.rule-sub {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.85rem;
}

.rule-sub:last-child { margin-bottom: 0; }

.rule-sub-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-bright);
  margin: 0 0 0.65rem;
}

.rule-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: grid;
  gap: 0.4rem;
}

.rule-bullets li::marker { color: var(--accent-dim); }

.rule-scale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.rule-scale li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.scale-offense {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 78px;
}

.scale-action {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}

.scale-examples {
  font-size: 0.84rem;
  color: var(--text-dim);
  width: 100%;
}

/* ---------- FAQ ---------- */

.faq { border-bottom: 1px solid var(--border-soft); }

.faq-list { display: grid; gap: 0.75rem; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-bright);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- COMMUNITY ---------- */

.community-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.community-copy p { color: var(--text-muted); max-width: 42ch; }
.community-links { display: flex; flex-direction: column; gap: 0.85rem; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 720px) {
  .join-grid { grid-template-columns: 1fr; }
  .plugin-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .community-inner { grid-template-columns: 1fr; }
  .hero-inner { padding: 4.5rem 1.25rem 3.5rem; }
  .section-inner { padding: 3.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .status-card[data-state="online"] .lantern-glow { animation: none; opacity: 0.55; }
  .btn:hover { transform: none; }
}