:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --ok: #22c55e;
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
}

.topbar-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  padding: 40px 0 24px;
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.hero-text p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  font-size: 18px;
}

.hero-card,
.card {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.label {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.clock {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 20px;
}

.card h2,
.updates h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}

.status-list,
.updates-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.status-list li,
.updates-list li {
  margin-bottom: 12px;
  color: var(--text);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: middle;
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.metric:last-child {
  border-bottom: 0;
}

.metric-label {
  color: var(--muted);
}

.metric-value {
  font-weight: 600;
}

.metric-value.good {
  color: var(--ok);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.updates {
  margin-bottom: 24px;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

@media (max-width: 900px) {
  .hero,
  .cards {
    grid-template-columns: 1fr;
  }

  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }
}

.chart-card-two-thirds {
  width: min(740px, 100%);
  margin-bottom: 24px;
}

.chart-box {
  width: 100%;
  height: 180px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  padding: 8px;
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 13px;
  flex-wrap: wrap;
}

.chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-card-wide {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .chart-card-wide {
    grid-column: span 1;
  }
}
