:root {
  --bg: #000000;
  --panel: #0d0d0d;
  --green: #00aa25;
  --text: #e6e6e6;
  --muted: #8a8a8a;
  --glass-bg: linear-gradient(160deg, rgba(0, 40, 15, 0.28), rgba(0, 10, 5, 0.22));
  --glass-border: rgba(0, 255, 140, 0.25);
  --glass-text: #d8ffe8;
  --glow: #4dffa0;
}

* { box-sizing: border-box; }

#particles-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

body {
  margin: 0;
  padding-top: 90px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.navbar {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.navbar-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.navbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.navbar-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.navbar-links a:hover {
  color: var(--green);
}

#dashboard,
#features,
#playground {
  scroll-margin-top: 110px;
}

.hero {
  text-align: center;
  padding: 48px 16px 32px;
}

.hero h1 {
  color: var(--green);
  margin: 0 0 8px;
  font-size: 2.5rem;
}

.tagline {
  color: var(--muted);
  margin: 0;
}

.dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
}

.overview {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  padding: 16px 22px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-label {
  color: var(--green);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.last-update {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 16px 0 32px;
}

.stat-block {
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.stat-block h2 {
  color: var(--green);
  margin-top: 0;
}

.beta {
  color: var(--muted);
  font-size: 0.7rem;
}

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

.stat-grid > div {
  display: flex;
  flex-direction: column;
}

footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

footer a {
  color: var(--green);
  text-decoration: none;
}

.section-title {
  color: var(--green);
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 20px;
}

.accordion {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 16px 20px;
  cursor: pointer;
}

.accordion-header:hover {
  background: rgba(0, 170, 37, 0.08);
}

.accordion-icon {
  font-size: 1.2rem;
}

.accordion-title {
  flex: 1;
}

.accordion-chevron {
  color: var(--green);
  transition: transform 0.2s ease;
}

.accordion-item.open > .accordion-header .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.accordion-item.open > .accordion-body {
  max-height: 400px;
  padding: 0 20px 18px;
}

.accordion-item.section.open > .accordion-body {
  max-height: 2000px;
}

.accordion-body .accordion {
  margin: 0;
  padding: 0;
  max-width: none;
}

.stat-card,
.stat-block {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover,
.stat-block:hover {
  box-shadow: 0 0 20px rgba(77, 255, 160, 0.45);
  transform: translateY(-2px);
}

.feature-details {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.badge {
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  color: var(--glow);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-version {
  background: var(--green);
  color: #000;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.detail-block {
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px;
}

.detail-block h3 {
  color: var(--green);
  margin-top: 0;
}

.highlights-list,
.step-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.6;
}

.detail-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 12px 0 0;
}

.code-block {
  background: #000;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--green);
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre;
}

.commands-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.commands-table th,
.commands-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #1a1a1a;
}

.commands-table th {
  color: var(--green);
}

.commands-table code {
  color: var(--green);
}

.playground {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.playground-label {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}

.playground-input {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--glass-text);
  padding: 10px 14px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.playground-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  margin-bottom: 16px;
}

.playground-output {
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  color: var(--glow);
  font-size: 0.85rem;
  min-height: 60px;
  white-space: pre-wrap;
  margin-bottom: 12px;
}

.playground-copy {
  background: var(--glow);
  color: #00210c;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(77, 255, 160, 0.35);
}

.playground-copy:disabled {
  background: #1a1a1a;
  color: var(--muted);
  cursor: not-allowed;
}

html, body {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

img, canvas, svg {
  -webkit-user-drag: none;
  user-drag: none;
}

.playground-input,
.playground-output {
  user-select: text;
  -webkit-user-select: text;
}

.legal {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal .detail-block ul {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.6;
}

.legal .detail-block p {
  line-height: 1.6;
  margin: 8px 0 0;
}

.legal .detail-block p:first-child {
  margin-top: 0;
}

.legal a {
  color: var(--green);
}

.support {
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 24px 28px;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.support p {
  color: var(--muted);
  line-height: 1.6;
}

.not-found {
  text-align: center;
}

.not-found h1 {
  color: var(--glow);
  font-size: 3rem;
  margin: 0 0 8px;
}

.chart {
  width: 100%;
  height: 160px;
  display: block;
}

.chart-line {
  fill: none;
  stroke: var(--glow);
  stroke-width: 2;
}

.invite-button {
  display: inline-block;
  margin-top: 16px;
  background: var(--glow);
  color: #00210c;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(77, 255, 160, 0.35);
}

.support-button {
  display: inline-block;
  background: var(--glow);
  color: #00210c;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(77, 255, 160, 0.35);
}
