* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

:root {
  --bg: #0b0b10;
  --text: #e9e9f0;
  --muted: #b6b6c6;
  --outline: rgba(255, 255, 255, 0.1);
  --panel: rgba(18, 18, 26, 0.65);
  --panel-2: rgba(24, 24, 34, 0.6);
  --card: rgba(24, 24, 34, 0.75);
  --grad-a: #f781e9;
  --grad-b: #8b5cf6;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --glow: 0 0 0 2px rgba(139, 92, 246, 0.2),
          0 12px 40px rgba(139, 92, 246, 0.3);
}


body {
  font-family: 'Poppins', system-ui, sans-serif;
  background:
    radial-gradient(1400px at 10% -15%, rgba(0, 0, 0, 0.15), transparent 50%),
    radial-gradient(1200px at 110% 0%, rgba(0, 0, 0, 0.18), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}


.orb {
  position: fixed;
  filter: blur(70px);
  opacity: 0.25;
  z-index: -2;
  pointer-events: none;
}

.orb-a {
  width: 600px;
  height: 600px;
  left: -150px;
  top: -150px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.95), transparent 60%);
  animation: float 15s ease-in-out infinite;
}

.orb-b {
  width: 450px;
  height: 450px;
  right: -100px;
  top: 100px;
  background: radial-gradient(circle, rgba(247, 129, 233, 0.9), transparent 60%);
  animation: float 17s ease-in-out infinite reverse;
}

.orb-c {
  width: 400px;
  height: 400px;
  left: 15%;
  bottom: -100px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.95), transparent 60%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50%      { transform: translateY(-30px) translateX(15px) scale(1.05); }
}


.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(20px, env(safe-area-inset-left))
           16px max(20px, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.8),
                                        rgba(10, 10, 14, 0.4));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}


.nav-link.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: rgba(15, 15, 23, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.1s;
}

.nav-link.pill:hover {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}


.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after  { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--outline);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
}


.hero {
  position: relative;
  text-align: center;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 60px 20px 40px;
}

.hero-glow {
  --x: 50%;
  --y: 20%;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(800px 400px at var(--x) var(--y),
      rgba(139, 92, 246, 0.3), transparent 60%),
    radial-gradient(750px 350px at calc(var(--x) + 15%)
      calc(var(--y) + 10%), rgba(247, 129, 233, 0.25), transparent 60%);
  mask-image: radial-gradient(circle at 50% 0%,
    rgba(0, 0, 0, 0.85) 40%, transparent 80%);
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  margin: 12px 0 8px;
}

.txt-gradient {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 16px;
  font-size: clamp(15px, 2.2vw, 18px);
}


.section {
  padding: clamp(40px, 6vw, 70px) 20px;
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 22px;
  font-size: 0.95rem;
}


.status-summary {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid var(--outline);
  background: var(--panel-2);
  font-size: 0.9rem;
}

.status-pill--up {
  border-color: rgba(34, 197, 94, 0.4);
}

.status-pill--down {
  border-color: rgba(239, 68, 68, 0.4);
}

.status-pill--degraded {
  border-color: rgba(234, 179, 8, 0.4);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
  display: inline-block;
}

.status-dot--up {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.status-dot--down {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.status-dot--unknown {
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

.status-updated {
  font-size: 0.8rem;
  color: var(--muted);
}

.status-metrics {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 800px) {
  .status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.status-metric {
  border-radius: 14px;
  border: 1px solid var(--outline);
  background: var(--panel);
  padding: 10px 12px;
  text-align: left;
}

.status-metric-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.status-metric-value {
  font-size: 1.1rem;
  font-weight: 700;
}


.status-section {
  padding-top: 16px;
}

.shard-grid {
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.status-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  background: var(--card);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.status-card-text {
  font-size: 0.85rem;
  color: var(--muted);
}

.status-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--panel-2);
}

.status-badge--up {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.status-badge--down {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}


.shard-card {
  width: 280px;
}

.shard-metrics {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.shard-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.shard-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.shard-metric-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.shard-card-updated {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}


.site-footer {
  text-align: center;
  padding: 32px 20px 48px;
  border-top: 1px solid var(--outline);
  margin-top: 32px;
  color: var(--muted);
}

.footer-inner p {
  margin: 6px 0;
}

.footer-links a {
  margin: 0 8px;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-4px);
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
