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

:root {
  --primary: #f7931a;
  --dark: #0d0d1a;
  --darker: #080812;
  --card: #12122a;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8f0;
  --muted: #7b7b9a;
  --tao: #6c5ce7;
  --tao-light: #a29bfe;
  --success: #00b894;
  --danger: #e74c3c;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--primary); }

.nav-links { display: flex; gap: 8px; align-items: center; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.07);
}

.nav-badge {
  background: var(--primary);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
}

/* HERO */
.hero {
  padding: 140px 40px 80px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(108,92,231,0.15) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(247,147,26,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(108,92,231,0.2);
  border: 1px solid rgba(108,92,231,0.4);
  color: var(--tao-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero h1 span { color: var(--primary); }
.hero h1 .tao-color { color: var(--tao-light); }

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none; cursor: pointer;
}

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

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* STATS BAR */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  flex-wrap: wrap;
}

.stat-item {
  padding: 20px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
  min-width: 160px;
}

.stat-item:last-child { border-right: none; }
.stat-value { font-size: 22px; font-weight: 700; color: white; }
.stat-value.up { color: var(--success); }
.stat-value.down { color: var(--danger); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* SECTIONS */
.section { padding: 80px 40px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.section-desc { color: var(--muted); margin-bottom: 40px; font-size: 15px; }

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  border-color: rgba(247,147,26,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-icon { font-size: 28px; margin-bottom: 12px; }
.card-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.card-tag {
  display: inline-block;
  background: rgba(108,92,231,0.2);
  color: var(--tao-light);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 12px;
}

.card-tag.btc { background: rgba(247,147,26,0.2); color: var(--primary); }
.card-tag.free { background: rgba(0,184,148,0.2); color: var(--success); }

/* SUBNET SECTION */
.subnet-hero {
  background: linear-gradient(135deg, rgba(108,92,231,0.1) 0%, rgba(13,13,26,0) 100%);
  border: 1px solid rgba(108,92,231,0.2);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.subnet-hero-text h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.subnet-hero-text p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.subnet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.subnet-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.subnet-stat-value { font-size: 24px; font-weight: 700; color: var(--tao-light); }
.subnet-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* SUBNET TABLE */
.subnet-table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.subnet-table-header {
  display: grid;
  grid-template-columns: 60px 1fr 120px 200px 100px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subnet-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 200px 100px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.subnet-row:last-child { border-bottom: none; }
.subnet-row:hover { background: rgba(255,255,255,0.03); }

.subnet-id {
  font-size: 13px;
  font-weight: 700;
  color: var(--tao-light);
  background: rgba(108,92,231,0.15);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subnet-name { font-size: 14px; font-weight: 600; }
.subnet-purpose { font-size: 12px; color: var(--muted); margin-top: 2px; }

.emission-bar-wrap { display: flex; align-items: center; gap: 8px; }
.emission-bar {
  height: 6px;
  background: var(--tao);
  border-radius: 3px;
  min-width: 4px;
}

.subnet-category {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 600;
  background: rgba(108,92,231,0.15);
  color: var(--tao-light);
  display: inline-block;
}

.subnet-category.text { background: rgba(0,184,148,0.15); color: var(--success); }
.subnet-category.vision { background: rgba(247,147,26,0.15); color: var(--primary); }
.subnet-category.compute { background: rgba(231,76,60,0.15); color: var(--danger); }
.subnet-category.data { background: rgba(52,152,219,0.15); color: #74b9ff; }
.subnet-category.storage { background: rgba(155,89,182,0.15); color: #a29bfe; }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 6px var(--success);
}

/* CHART SECTION */
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.chart-card-title { font-size: 16px; font-weight: 600; }
.chart-card-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 60px 20px; }
  nav { padding: 0 20px; }
  .subnet-hero { grid-template-columns: 1fr; }
  .subnet-table-header, .subnet-row { grid-template-columns: 50px 1fr 80px; }
  .subnet-table-header > *:nth-child(4),
  .subnet-table-header > *:nth-child(5),
  .subnet-row > *:nth-child(4),
  .subnet-row > *:nth-child(5) { display: none; }
  .stat-item { padding: 16px 20px; }
}
