:root {
  --bg: #11151b;
  --panel: #181f26;
  --panel-hover: #1c252e;
  --border: #28323d;
  --text: #e6edf5;
  --muted: #8d9aaa;
  --blue: #3f9df7;
  --green: #75e84d;
  --purple: #a778ed;
  --gold: #e6bd36;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(circle at 70% 20%, rgba(48, 87, 125, .08), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.topbar {
  height: 58px;
  background: #171c23;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(calc(100% - 40px), 1400px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.4px;
  white-space: nowrap;
}

.brand span { color: var(--blue); }

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 3px;
}

.nav-right { margin-left: auto; }

.nav-left a, .nav-right a {
  color: #aebdce;
  text-decoration: none;
  font-size: 13px;
  padding: 9px 11px;
  border: 1px solid transparent;
  transition: .15s ease;
}

.nav-left a:hover, .nav-right a:hover {
  color: #eaf2fa;
  background: #202832;
  border-color: #2c3743;
}

.nav-right .support-link {
  color: #f1c83b;
  border-color: #8b711d;
}

.nav-right .support-link:hover { background: #302a17; }

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 30px 0 50px;
}

.panel {
  background: rgba(24, 31, 38, .92);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, .9fr);
  gap: 16px;
}

.hero {
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 42px;
}

.eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -1.3px;
}

.hero h1 span { color: var(--blue); }

.hero-text {
  max-width: 530px;
  margin: 18px 0 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-buttons { display: flex; gap: 10px; }

.button {
  display: inline-block;
  padding: 11px 17px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.button.primary {
  color: white;
  background: #2378d7;
  border: 1px solid #3489e7;
}

.button.primary:hover { background: #3189e8; }

.button.secondary {
  color: #c9d4df;
  background: #1b232c;
  border: 1px solid #374553;
}

.button.secondary:hover { background: #242e38; }

.orbital-art {
  position: absolute;
  width: 330px;
  height: 330px;
  right: 30px;
  top: -15px;
  opacity: .7;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(72, 151, 222, .2);
  border-radius: 50%;
}

.orbit-1 { inset: 20px; }
.orbit-2 { inset: 60px; }
.orbit-3 { inset: 100px; }

.planet {
  position: absolute;
  width: 30px;
  height: 30px;
  left: 150px;
  top: 150px;
  border-radius: 50%;
  background: #285273;
  box-shadow: 0 0 30px rgba(58, 157, 239, .2);
}

.satellite {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #387ba8;
}

.satellite-1 { left: 87px; top: 75px; }
.satellite-2 { right: 78px; bottom: 72px; }

.status { padding: 25px; }

.status h2, .section-header h2, .activity-header h2 {
  margin: 0;
  font-size: 18px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 13px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(117, 232, 77, .5);
}

.status-item {
  display: flex;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.status-item:last-child { border-bottom: 0; }
.status-item strong { color: #e2e9f0; font-weight: 500; }
.status-item .green { color: var(--green); }

.section { margin-top: 30px; }

.section-header { margin-bottom: 13px; }

.section-header p, .activity-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.stat-card:hover {
  background: var(--panel-hover);
  transform: translateY(-1px);
}

.stat-card > div:last-child {
  display: flex;
  flex-direction: column;
}

.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { margin: 5px 0; font-size: 24px; }
.stat-card small { color: var(--green); font-size: 11px; }

.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 4px;
  font-size: 22px;
  font-weight: 700;
}

.stat-icon.blue { color: #64b3ff; background: #12365d; }
.stat-icon.purple { color: #bd8fff; background: #38205c; }
.stat-icon.green { color: #80ed61; background: #1b4a28; }
.stat-icon.gold { color: #f1ca46; background: #4d3d10; }

.activity {
  margin-top: 18px;
  padding: 20px 22px 24px;
}

.activity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.activity-header select {
  color: #b9c7d5;
  background: #1c252f;
  border: 1px solid #34414e;
  border-radius: 3px;
  padding: 9px 11px;
  font-size: 12px;
}

.chart {
  height: 250px;
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border-top: 1px solid #222d38;
  border-bottom: 1px solid #222d38;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(86, 106, 124, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 106, 124, .08) 1px, transparent 1px);
  background-size: 100% 50px, 100px 100%;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #758698;
  font-size: 12px;
}

.chart-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #202b36;
  border-radius: 4px;
  font-size: 25px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  border-top: 1px solid var(--border);
  color: #667586;
  font-size: 11px;
}

footer div { display: flex; gap: 18px; }
footer a { color: #8292a4; text-decoration: none; }
footer a:hover { color: #cbd7e2; }

@media (max-width: 900px) {
  .topbar { height: auto; min-height: 58px; }
  .nav-inner { min-height: 58px; height: auto; flex-wrap: wrap; padding: 10px 0; }
  .nav-right { margin-left: 0; width: 100%; overflow-x: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .orbital-art { opacity: .25; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
  .container { width: calc(100% - 24px); padding-top: 18px; }
  .hero-content { padding: 28px 24px; }
  .hero h1 { font-size: 30px; }
  .orbital-art { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .activity-header { flex-direction: column; gap: 15px; }
  .activity-header select { width: 100%; }
  footer { flex-direction: column; gap: 12px; padding: 20px 12px; }
}
