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

:root {
  --page-bg: #0b0f17;
  --page-bg-2: #111827;
  --card-bg: #111827;
  --card-bg-hover: #1a2332;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(16, 185, 129, 0.35);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.55);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.55);
  --gradient: linear-gradient(135deg, #0b0f17 0%, #111827 50%, #0f172a 100%);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  padding-top: 64px;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.status-pill.is-down {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 0 0 var(--emerald-glow);
  animation: pulseRing 2.5s ease-in-out infinite;
  flex-shrink: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-pill.is-down .status-dot {
  background-color: var(--red);
  box-shadow: 0 0 0 0 var(--red-glow);
  animation-name: pulseRingRed;
}

@keyframes pulseRing {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--emerald-glow);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    opacity: 0.75;
  }
}

@keyframes pulseRingRed {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--red-glow);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    opacity: 0.75;
  }
}

.status-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--emerald);
  transition: color 0.3s ease;
}

.status-pill.is-down .status-text {
  color: var(--red);
}

.site-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  max-width: 22ch;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-main {
  padding-bottom: 64px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 820px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--card-bg) 0%, #0f172a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.card-header {
  margin-bottom: 16px;
}

.card-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  margin-bottom: 8px;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
}

.badge-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 12px;
  margin-bottom: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cronitor-badge {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-height: 300px;
  object-fit: contain;
}

.visit-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease,
    transform 0.2s ease;
}

.visit-link:hover,
.visit-link:focus-visible {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.visit-link:hover .link-icon,
.visit-link:focus-visible .link-icon {
  opacity: 1;
  transform: translateX(2px);
}

.site-footer {
  padding-top: 36px;
  padding-bottom: 36px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.6;
}

.refresh-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 18px;
  color: #0b0f17;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.refresh-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.refresh-btn:active {
  transform: scale(0.97);
}

.refresh-btn:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}
