*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #070a12;
  font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
}

.sd-root {
  --sd-bg: #070a12;
  --sd-surface: #0d1220;
  --sd-surface-2: #141a2a;
  --sd-line: rgba(255, 255, 255, 0.06);
  --sd-line-2: rgba(255, 255, 255, 0.11);
  --sd-text: #e8ecf5;
  --sd-text-2: rgba(232, 236, 245, 0.65);
  --sd-text-3: rgba(232, 236, 245, 0.42);
  --sd-accent: #9dff6b;
  --sd-up: #4ade80;
  --sd-warn: #fbbf24;
  --sd-down: #f87171;
  --sd-pad: 28px;
  --sd-section-pad: 80px;
  --sd-max: 1440px;

  background: var(--sd-bg);
  color: var(--sd-text);
  font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sd-root.sd-chrome {
  min-height: auto;
}

/* :where() keeps specificity at 0 so .sd-btn--*, .sd-section__title, etc. always win */
.sd-root :where(button) {
  font-family: inherit;
}

.sd-root :where(input) {
  font: inherit;
  color: inherit;
}

.sd-root :where(a) {
  color: inherit;
  text-decoration: none;
}

.sd-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-feature-settings: "calt" 1, "ss01" 1;
}

.sd-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.sd-icon svg {
  display: block;
}

@keyframes sd-ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes sd-slide-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes sd-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.sd-blink {
  display: inline-block;
  animation: sd-blink 1s step-end infinite;
}

.sd-status-dot {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}

.sd-status-dot--up { background: var(--sd-up); }
.sd-status-dot--warn { background: var(--sd-warn); }
.sd-status-dot--down { background: var(--sd-down); }

.sd-status-dot--pulse.sd-status-dot--up {
  box-shadow: 0 0 0 3px #4ade8022;
}

.sd-status-dot .sd-dot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sd-up);
}

.sd-status-dot .sd-dot-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sd-up);
  animation: sd-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.sd-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.sd-logo__glyph {
  width: 1.15em;
  height: 1em;
  flex-shrink: 0;
}

.sd-logo__wordmark {
  display: inline-flex;
  align-items: baseline;
}

.sd-logo__status {
  color: var(--sd-text);
}

.sd-logo__direct {
  color: var(--sd-accent);
}

.sd-root :where(h1, h2, h3, p, blockquote, ul) {
  margin: 0;
}

.sd-root :where(code) {
  font-family: inherit;
}

.sd-secondary-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483640;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(13, 18, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 12.5px;
}

.sd-secondary-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: rgba(232, 236, 245, 0.6);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.sd-secondary-nav a.is-active {
  background: #9dff6b;
  color: #070a12;
  font-weight: 600;
}

.sd-secondary-nav a:not(.is-active):hover {
  color: #e8ecf5;
  background: rgba(255, 255, 255, 0.05);
}

.sd-uptime-bar {
  display: flex;
  height: 14px;
  width: 100%;
  gap: 1.2px;
}

.sd-uptime-bar__col {
  flex: 1;
  border-radius: 1px;
}

.sd-uptime-bar__col--up { background: var(--sd-up); }
.sd-uptime-bar__col--warn { background: var(--sd-warn); }
.sd-uptime-bar__col--down { background: var(--sd-down); }

.sd-sparkline {
  display: block;
  overflow: visible;
}

.sd-sparkline path {
  vector-effect: non-scaling-stroke;
}
