*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #03fc77;
  --accent-dim: rgba(3, 252, 119, 0.06);
  --accent-glow: rgba(3, 252, 119, 0.14);
  --bg: #000000;
  --card: #121212;
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f0f0f0;
  --muted: #888888;
  --danger: #ff4d4d;
  --warn: #ffcc4d;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --nav-h: 64px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(3, 252, 119, 0.08);
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(3, 252, 119, 0.22);
}

.accent {
  color: var(--accent);
  display: inline-block;
  text-shadow: 0 0 14px rgba(3, 252, 119, 0.12);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.btn-nav {
  background: linear-gradient(180deg, #0dff88 0%, #01c055 100%) !important;
  color: #111 !important;
  padding: 0.42rem 1.1rem;
  border-radius: 8px;
  font-weight: 800 !important;
  font-size: 0.83rem !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.btn-nav:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #111 !important;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(3, 252, 119, 0.55);
  border-radius: var(--radius);
  background: rgba(3, 252, 119, 0.045);
  color: var(--accent);
  font-weight: 900;
  box-shadow: none;
  cursor: pointer;
  padding: 0.86rem 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(3, 252, 119, 0.82);
  background: rgba(3, 252, 119, 0.09);
  box-shadow: 0 6px 18px rgba(3, 252, 119, 0.06);
}

.status-main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 72px) 0 4rem;
}

.hero {
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 20%;
  width: 760px;
  height: 420px;
  background: radial-gradient(ellipse at 50% 0%, rgba(3, 252, 119, 0.035), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.badge,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.badge-dot,
.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin-bottom: 1.2rem;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.last-updated {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-panel {
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.status-panel {
  padding: 1.5rem;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.panel-header h2 {
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  line-height: 1.1;
}

.summary-pill {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 252, 119, 0.035), transparent 52%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.service-card-glow {
  display: none;
}

.service-card[data-state="operational"] {
  border-color: rgba(3, 252, 119, 0.26);
  box-shadow: inset 0 0 0 1px rgba(3, 252, 119, 0.025);
}



.service-card[data-state="down"] {
  border-color: rgba(255, 77, 77, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 77, 0.025);
}



.service-card[data-state="degraded"] {
  border-color: rgba(255, 204, 77, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 204, 77, 0.025);
}



.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(3, 252, 119, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.service-card:hover::before {
  opacity: 1;
}

.service-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  min-width: 0;
  margin-bottom: 1.6rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(3, 252, 119, 0.25);
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.15rem;
  box-shadow: none;
}

.service-card h3 {
  font-size: 1.08rem;
  line-height: 1.15;
  margin-top: 0.1rem;
  overflow-wrap: normal;
}

.service-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.service-state {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 900;
  font-size: 0.83rem;
  margin: auto 0 1rem;
}

.service-state.operational,
.summary-pill.operational,
.badge.operational {
  color: var(--accent);
  border-color: rgba(3, 252, 119, 0.38);
  background: rgba(3, 252, 119, 0.055);
}

.service-state.degraded,
.summary-pill.degraded,
.badge.degraded {
  color: var(--warn);
  border-color: rgba(255, 204, 77, 0.38);
  background: rgba(255, 204, 77, 0.055);
}

.service-state.down,
.summary-pill.down,
.badge.down {
  color: var(--danger);
  border-color: rgba(255, 77, 77, 0.38);
  background: rgba(255, 77, 77, 0.055);
}

.service-meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.service-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 2.5rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 2;
  min-width: 200px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 120px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
}

.footer-copy {
  color: rgba(125, 138, 153, 0.55);
  font-size: 0.78rem;
}

.footer-badges {
  display: flex;
  gap: 0.6rem;
}

.footer-badge {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }

  .status-main {
    padding-top: calc(var(--nav-h) + 42px);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    padding-top: 3rem;
  }
}
