:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a25;
  --border: #2a2a3a;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--accent);
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

/* Network Details */
.network-details {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: left;
}

.network-details-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.network-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.network-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.network-row:last-child {
  border-bottom: none;
}

.network-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.network-value {
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}

.row-copy-btn:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.network-copyable {
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 160px 24px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #a78bfa, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
}

.endpoint-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 500px;
  margin: 0 auto 40px;
  text-align: left;
}

.endpoint-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.endpoint-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.endpoint-row code {
  flex: 1;
  font-size: 14px;
  color: var(--green);
}

.copy-btn {
  padding: 6px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}

.copy-btn:hover {
  opacity: 0.9;
}

.copy-btn:active {
  transform: scale(0.95);
}

.add-wallet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #f6851b, #e2761b);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}

.add-wallet-btn:hover {
  opacity: 0.9;
}

.add-wallet-btn:active {
  transform: scale(0.97);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Tiers */
.tiers {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.tiers h2, .docs h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 48px;
}

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

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s;
}

.tier-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.tier-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.tier-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tier-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tier-price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tier-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.tier-features {
  list-style: none;
  margin-bottom: 32px;
}

.tier-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-features li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 600;
}

.tier-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s;
}

.tier-btn:hover {
  background: var(--bg-elevated);
  opacity: 1;
}

.tier-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.tier-btn-primary:hover {
  background: #5558e6;
}

/* Docs */
.docs {
  padding: 80px 24px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Accordion */
.accordion {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.accordion-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: var(--bg-elevated);
}

.accordion-chevron {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.accordion-item.active .accordion-body {
  max-height: 400px;
  padding: 0 24px 20px;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
  opacity: 1;
}

/* Status Page */
.status-page {
  padding: 120px 24px 80px;
  max-width: 700px;
  margin: 0 auto;
}

.status-header {
  text-align: center;
  margin-bottom: 48px;
}

.status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.status-icon.up {
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid var(--green);
  color: var(--green);
}

.status-icon.down {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid var(--red);
  color: var(--red);
}

.status-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.status-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.status-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-monitor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.status-monitor:last-child {
  border-bottom: none;
}

.monitor-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monitor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.monitor-dot.up { background: var(--green); }
.monitor-dot.down { background: var(--red); }
.monitor-dot.degraded { background: var(--yellow); }

.monitor-name {
  font-size: 14px;
  font-weight: 500;
}

.monitor-uptime {
  font-size: 13px;
  color: var(--text-muted);
}

.uptime-bar {
  display: flex;
  gap: 2px;
  margin-top: 16px;
  height: 32px;
}

.uptime-bar .bar {
  flex: 1;
  border-radius: 3px;
  min-width: 3px;
  transition: opacity 0.2s;
}

.uptime-bar .bar:hover {
  opacity: 0.7;
}

.uptime-bar .bar.up { background: var(--green); }
.uptime-bar .bar.down { background: var(--red); }
.uptime-bar .bar.unknown { background: var(--border); }

.subscribe-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.subscribe-box label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.subscribe-box input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-box input:focus {
  border-color: var(--accent);
}

.subscribe-box button {
  padding: 10px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.subscribe-box button:hover {
  background: var(--border);
}

/* Dashboard */
.dashboard {
  padding: 120px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.dashboard h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dashboard-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.dash-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.key-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
}

.key-display code {
  flex: 1;
  font-size: 14px;
  color: var(--accent);
}

.key-display .copy-btn {
  padding: 4px 10px;
  font-size: 12px;
}

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

.usage-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.usage-item .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.usage-item .value {
  font-size: 24px;
  font-weight: 700;
}

.usage-bar-container {
  margin-top: 8px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  .hero-stats {
    gap: 24px;
  }

  .tiers-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-box {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }
}
