:root {
  color-scheme: light;
  --bg: #0b1010;
  --bg-soft: #141b1b;
  --bg-panel: #1b2424;
  --text: #f6f1ea;
  --text-muted: #c8c1b6;
  --accent: #f27a1f;
  --accent-strong: #ff9a3d;
  --accent-dark: #c65f17;
  --accent-cool: #1fc3c8;
  --accent-cool-dark: #11767a;
  --line: rgba(246, 241, 234, 0.15);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(31, 195, 200, 0.18), transparent 55%),
    radial-gradient(circle at 75% 10%, rgba(242, 122, 31, 0.25), transparent 45%),
    #0b1010;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(31, 195, 200, 0.18), transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(242, 122, 31, 0.2), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

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

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(31, 195, 200, 0.7);
  outline-offset: 3px;
  border-radius: 999px;
}

summary:focus-visible {
  border-radius: 12px;
}

.is-disabled-link {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.is-disabled-link {
  transform: none;
  box-shadow: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-content,
.rules-hero {
  position: relative;
  padding-top: 260px;
}

.hero-logo {
  position: absolute;
  left: 50%;
  top: -110px;
  transform: translateX(-50%);
  width: 500px;
  max-width: 85%;
  pointer-events: none;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.hero-logo picture {
  display: block;
}

.brand-name {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a {
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1208;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(233, 184, 114, 0.25);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-content h1,
.section-heading h2,
.community-card h2 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: clamp(2.4rem, 3.2vw, 3.5rem);
  line-height: 1.05;
  margin: 12px 0 16px;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #1a1208;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(243, 164, 54, 0.3);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.server-pill {
  margin-top: 28px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(27, 36, 36, 0.75);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cool);
  box-shadow: 0 0 8px rgba(31, 195, 200, 0.7);
}

.status-dot.offline {
  background: #d65;
  box-shadow: 0 0 8px rgba(214, 85, 85, 0.7);
}

.status-dot.setup {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(233, 184, 114, 0.7);
}

.divider {
  color: var(--line);
}

.hero-panel {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
}

.panel-stack {
  position: relative;
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.panel-heading {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.35rem;
}

.panel-card {
  background: linear-gradient(145deg, rgba(27, 36, 36, 0.98), rgba(11, 16, 16, 0.95));
  border: 1px solid rgba(242, 122, 31, 0.25);
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.panel-row:last-of-type {
  border-bottom: none;
}

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

.panel-value {
  font-weight: 600;
}

.panel-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0 0 6px;
}

.status-card h3 {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.35rem;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.status-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 195, 200, 0.16);
  border: 1px solid rgba(31, 195, 200, 0.45);
  color: #c8f4f6;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-chip.offline {
  background: rgba(214, 85, 85, 0.2);
  border-color: rgba(214, 85, 85, 0.45);
  color: #f3b0a8;
}

.status-chip.setup {
  background: rgba(242, 122, 31, 0.2);
  border-color: rgba(242, 122, 31, 0.45);
  color: var(--text);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.status-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(20, 27, 27, 0.7);
  border: 1px solid var(--line);
}

.status-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.status-value {
  font-weight: 600;
}

.status-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-address {
  color: var(--text);
  font-weight: 600;
}

.status-message {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-message.is-hidden {
  display: none;
}

.signal-ring {
  position: absolute;
  inset: -25px;
  border-radius: 30px;
  border: 1px dashed rgba(233, 184, 114, 0.4);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

.stats {
  max-width: 1120px;
  margin: 10px auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(31, 42, 36, 0.7);
  border: 1px solid var(--line);
}

.stat-value {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

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

.features,
.join,
.rules,
.dashboard {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px 20px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 12px 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(20, 27, 27, 0.85);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.feature-card h3 {
  margin-top: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.dashboard-card {
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(20, 27, 27, 0.85);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.dashboard-card h3 {
  margin-top: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.dashboard-footer {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

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

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.join-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(27, 36, 36, 0.65);
  border: 1px solid var(--line);
}

.join-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.rules-list li {
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(27, 36, 36, 0.7);
}

.rules-actions {
  margin-top: 18px;
}

.community {
  padding: 60px 24px 80px;
  display: grid;
  place-items: center;
}

.community-card {
  max-width: 820px;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(242, 122, 31, 0.2), rgba(31, 195, 200, 0.18));
  border: 1px solid rgba(242, 122, 31, 0.4);
  box-shadow: var(--shadow);
}

.rules-page main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.rules-hero h1 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  margin: 12px 0 16px;
}

.rules-controls {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rules-accordion {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.rules-accordion details {
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(27, 36, 36, 0.7);
}

.rules-accordion summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rules-accordion summary::-webkit-details-marker {
  display: none;
}

.rules-accordion summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
}

.rules-accordion details[open] summary::after {
  content: "–";
}

.rules-accordion p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.rules-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.rules-card {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(20, 27, 27, 0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.rules-card h3 {
  margin-top: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.rules-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.rules-card li {
  margin-bottom: 8px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-link:hover {
  color: var(--accent-strong);
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 18px;
  background: rgba(31, 42, 36, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.is-loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 60px;
  }
}

@media (max-width: 700px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-content,
  .rules-hero {
    padding-top: 190px;
  }
  .hero-logo {
    width: 230px;
    top: -40px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .rules-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-footer {
    flex-direction: column;
    gap: 6px;
  }
  .site-footer {
    flex-direction: column;
  }
}

