/* ── tokens ── */
:root {
  --bg: #0b0f19;
  --surface: #131a2a;
  --surface-raised: #182236;
  --ink: #e8ecf2;
  --muted: #8796ab;
  --accent: #4f8fff;
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.12);
  --border: rgba(255, 255, 255, 0.07);
  --glow: rgba(79, 143, 255, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100vh; }

body {
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── top bar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 143, 255, 0.1);
  border: 1px solid rgba(79, 143, 255, 0.22);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
}

/* ── hero ── */
main { flex: 1; }

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 7rem) clamp(1rem, 4vw, 2rem) 2.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 800ms ease forwards;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
}

.subtitle {
  margin: 1.1rem auto 0;
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.hero-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.38rem 0.82rem;
  border-radius: 999px;
}

/* ── dashboard preview ── */
.dashboard-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 3rem;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 900ms ease 200ms forwards;
}

.dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 80px var(--glow);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}

.dash-uptime {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── component rows ── */
.dash-components {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-components li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.dash-components li:last-child { border-bottom: none; }

.status-ok {
  font-weight: 700;
  color: var(--green);
  font-size: 0.82rem;
}

/* ── timeline ── */
.dash-timeline {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.dash-timeline-title {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c7190;
}

.tl-entry { display: grid; gap: 0.18rem; }

.tl-date {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.tl-text {
  margin: 0;
  font-size: 0.88rem;
  color: #67809a;
  line-height: 1.5;
}

/* ── footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-company {
  display: grid;
  gap: 0.3rem;
}

.footer-company strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #c5cdd8;
}

.footer-company span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: #4a5c72;
}

/* ── animations ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── responsive ── */
@media (max-width: 600px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  h1 br { display: none; }
}
