:root {
  --bg: #10151f;
  --bg-elev: #161c28;
  --bg-soft: #1b2230;
  --panel: #202938;
  --panel-2: #252f42;
  --text: #eef5f1;
  --muted: #a9b7c8;
  --line: rgba(255, 255, 255, 0.08);
  --accent-a: #3da76c;
  --accent-b: #3dcf86;
  --accent-c: #73e0a8;
  --danger: #ff6b81;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(61, 207, 134, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(61, 167, 108, 0.18), transparent 22%),
    linear-gradient(180deg, #0b1119 0%, #0f1621 100%);
}

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

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

.app-shell {
  display: grid;
  grid-template-columns: 78px 290px minmax(0, 1fr) 320px;
  min-height: 100vh;
}

.server-rail,
.channel-rail,
.info-rail {
  border-right: 1px solid var(--line);
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(16px);
}

.info-rail {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.server-rail {
  padding: 18px 14px;
}

.server-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.brand-orb,
.mini-orb {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mini-orb {
  width: 44px;
  height: 44px;
  background: var(--bg-soft);
  box-shadow: none;
  border: 1px solid var(--line);
}

.channel-rail {
  padding: 20px 18px;
}

.rail-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.rail-logo img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}

.rail-logo-copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.rail-logo-copy span {
  color: var(--muted);
  font-size: 12px;
}

.channel-group {
  margin-bottom: 22px;
}

.channel-group h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.channel-link,
.resource-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: 0.2s ease;
}

.channel-link:hover,
.resource-link:hover,
.channel-link.active,
.resource-link.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(61, 167, 108, 0.16), rgba(61, 207, 134, 0.08));
}

.channel-link .hash {
  color: var(--accent-c);
  font-weight: 700;
}

.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 22, 33, 0.84);
  backdrop-filter: blur(16px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.social-link:hover {
  background: rgba(61, 207, 134, 0.12);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #08100d;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.page-content {
  padding: 30px 28px 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(115, 224, 168, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(61, 167, 108, 0.18), rgba(61, 207, 134, 0.08)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.hero h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-grid,
.card-grid,
.docs-grid,
.metric-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: 1.8fr 1fr;
  margin-top: 26px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.docs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.card,
.metric,
.doc-card,
.info-card,
.timeline-card,
.faq-card,
.notice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(37, 47, 66, 0.9), rgba(28, 36, 50, 0.88));
  box-shadow: var(--shadow);
}

.card,
.doc-card,
.info-card,
.timeline-card,
.faq-card,
.notice-card {
  padding: 22px;
}

.metric {
  padding: 18px 20px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.section-header h3 {
  margin: 0;
  font-size: 24px;
}

.section-header p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.65;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(61, 207, 134, 0.12);
  color: var(--accent-c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card h4,
.doc-card h4,
.faq-card h4,
.notice-card h4,
.timeline-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p,
.doc-card p,
.faq-card p,
.notice-card p,
.timeline-card p,
.info-card p,
.card li,
.doc-card li {
  color: var(--muted);
  line-height: 1.7;
}

.card ul,
.doc-card ul,
.timeline-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.hero-panel {
  min-height: 100%;
}

.hero-panel .stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.status-row strong {
  font-size: 14px;
}

.status-row span {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(61, 207, 134, 0.16);
  color: var(--accent-c);
  font-size: 12px;
  font-weight: 700;
}

.info-rail {
  padding: 20px 18px;
}

.rail-section {
  margin-bottom: 18px;
}

.rail-section h3 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-card + .info-card {
  margin-top: 14px;
}

.logo-showcase {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: var(--shadow);
}

.small-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.small-list a {
  color: var(--muted);
  font-size: 14px;
}

.small-list a:hover {
  color: var(--text);
}

.footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.legal-copy {
  max-width: 900px;
}

.legal-copy h2 {
  margin: 32px 0 12px;
  font-size: 24px;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-copy ul {
  padding-left: 18px;
}

.highlight {
  color: var(--accent-c);
}

.table-like {
  display: grid;
  gap: 12px;
}

.table-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.table-row strong {
  color: var(--text);
}

.callout {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(115, 224, 168, 0.14);
  background: linear-gradient(135deg, rgba(61, 167, 108, 0.14), rgba(61, 207, 134, 0.06));
}

@media (max-width: 1400px) {
  .app-shell {
    grid-template-columns: 78px 250px minmax(0, 1fr);
  }

  .info-rail {
    display: none;
  }
}

@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .server-rail,
  .channel-rail {
    display: none;
  }

  .page-content,
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-grid,
  .card-grid,
  .docs-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
