:root {
  color-scheme: dark light;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1020 0, #050711 35%, #020308 100%);
  color: #f5f5f7;
  line-height: 1.6;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header and nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5, 7, 17, 0.95), rgba(5, 7, 17, 0.85));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
}

.logo {
  font-weight: 650;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #e5e7ff;
}

.logo span {
  opacity: 0.7;
  font-weight: 400;
}

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

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-links a {
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #5ee7ff, #9b8cff);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Layout sections */

main {
  padding: 2.5rem 0 4rem;
}

section {
  padding: 2rem 0;
}

.section-top-extra {
  padding-top: 2.2rem;
}

/* Hero */

.hero {
  padding-top: 3rem;
}

.hero-greeting {
  font-size: 0.95rem;
  color: #cfd4f0;
  max-width: 48rem;
  margin-bottom: 1.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ba3ff;
  margin-bottom: 0.75rem;
}

.hero-kicker-raised {
  margin-top: -1.1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 650;
  margin-bottom: 0.75rem;
}

.hero-title span {
  background: linear-gradient(90deg, #68e0ff, #b58bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* .hero-subtitle {
  font-size: 1rem;
  max-width: 44rem;
  color: #c5c7d8;
  margin-bottom: 1.5rem;
} */

.hero-subtitle {
  font-size: 1rem;
  /* remove width cap so it can use the full .container width */
  color: #c5c7d8;
  margin-bottom: 1.5rem;
}

.hero-subtitle-tight {
  margin-bottom: 0.8rem;
}

.hero-subtitle-relaxed {
  margin-bottom: 1.4rem;
}


.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top left, rgba(152, 255, 255, 0.12), rgba(36, 42, 80, 0.8));
  color: #d7e3ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.hero-actions-spaced {
  margin-top: 2.5rem;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #68e0ff, #b58bff);
  color: #050713;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: transparent;
  color: #e4e6ff;
  border: 1px solid rgba(208, 214, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hero-footnote {
  font-size: 0.8rem;
  color: #9093a8;
  margin-bottom: 1.25rem;
}

.hero-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle at top left, rgba(107, 210, 255, 0.1), rgba(11, 13, 30, 0.98));
  padding: 1.5rem 1.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.hero-card-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a7b0ff;
  margin-bottom: 0.4rem;
}

.hero-card-heading-spaced {
  margin-top: 1.8rem;
}

.hero-card-title {
  font-size: 1rem;
  font-weight: 550;
  margin-bottom: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.pill {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.85);
  border: 1px solid rgba(148, 189, 255, 0.25);
  color: #ced9ff;
}

.list-bullets {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.list-bullets--compact {
  margin-top: 0.6rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  font-size: 0.75rem;
}

.metric {
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 28, 0.9);
}

.metric-label {
  color: #9fa7c8;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 550;
}

/* Sections and cards */

.section-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ba3ff;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.section-intro {
  font-size: 0.95rem;
  color: #c2c5d5;
  max-width: 36rem;
  margin-bottom: 1.8rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.cards {
  display: grid;
  gap: 1.5rem;
}

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

.card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle at top left, rgba(152, 255, 255, 0.06), rgba(15, 18, 35, 0.98));
  padding: 1.3rem 1.2rem;
}

.card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a4acff;
  margin-bottom: 0.45rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 550;
  margin-bottom: 0.5rem;
}

.card-body {
  font-size: 0.9rem;
  color: #c5c8d6;
  margin-bottom: 0.75rem;
}

.card-meta {
  font-size: 0.78rem;
  color: #9397af;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.inline-list span {
  font-size: 0.78rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 219, 255, 0.2);
}

/* How this site works */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  gap: 1.8rem;
}

.steps {
  display: grid;
  gap: 0.9rem;
}

.step {
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 25, 0.95);
}

.step-title {
  font-size: 0.9rem;
  font-weight: 550;
  margin-bottom: 0.2rem;
}

.step-body {
  font-size: 0.85rem;
  color: #c0c3d4;
}

.how-panel {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle at top, rgba(111, 196, 255, 0.15), rgba(8, 11, 24, 0.98));
  padding: 1.2rem 1.1rem;
  font-size: 0.86rem;
  color: #d4d7e8;
}

.how-panel code {
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.18rem 0.35rem;
  border-radius: 0.4rem;
}

/* About and contact */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
  gap: 1.8rem;
}

.about-body {
  font-size: 0.95rem;
  color: #c5c8d6;
}

.contact-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 10, 24, 0.96);
  padding: 1.1rem 1.1rem;
  font-size: 0.9rem;
}

.contact-row {
  margin-top: 0.5rem;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9fa7c4;
  margin-bottom: 0.25rem;
}

.contact-value a {
  color: #8ad4ff;
}

/* Footer */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: #9397af;
}

footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

footer a {
  opacity: 0.9;
}

footer a:hover {
  opacity: 1;
}

/* Responsive */

@media (max-width: 800px) {
  .hero-grid,
  .grid-2,
  .how-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Status widget */

.status-widget {
  margin-bottom: 1.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 28, 0.9);
  font-size: 0.85rem;
}

.status-widget-compact {
  margin-bottom: 1.1rem;
}

.status-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ba3ff;
  margin-bottom: 0.3rem;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.status-indicator {
  padding: 0.12rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

.status-indicator.status-loading {
  opacity: 0.7;
}

.status-indicator.status-ok {
  border-color: rgba(110, 230, 160, 0.9);
  background: rgba(38, 96, 70, 0.4);
}

.status-indicator.status-alarm {
  border-color: rgba(255, 120, 120, 0.9);
  background: rgba(96, 40, 40, 0.5);
}

.status-indicator.status-unknown {
  border-color: rgba(200, 200, 200, 0.4);
  background: rgba(60, 60, 60, 0.4);
}

.status-updated {
  font-size: 0.78rem;
  color: #9fa7c4;
}

/* Status table */

.status-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 0.88rem;
  text-align: left;
}

.status-table thead th {
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  color: #d0d3e2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-table tbody td {
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  text-align: left;
}

./* Align numeric values such as latency to the right */
.status-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Override for health table: HTTP codes are not numeric metrics */
#status-health-table td.numeric {
  text-align: left;
}


.status-table td.message-cell {
  white-space: normal;
  max-width: 240px;
}

.status-row-healthy td {
  background: rgba(88, 255, 180, 0.17);
}

.status-row-unhealthy td {
  background: rgba(255, 90, 90, 0.22);
  color: #ffd7d7;
}

/* Status dots */

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.3rem;
  border-radius: 999px;
  background: #6b7280;
  vertical-align: middle;
}

.status-dot-healthy-blink {
  background: #34d399;
  animation: pulseGreen 1.6s ease-out infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    transform: scale(1.5);
    opacity: 0.4;
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.status-dot-unhealthy {
  background: #ef4444;
  animation: pulseRed 0.9s ease-in-out infinite;
}

@keyframes pulseRed {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* WAF chip */

.waf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}

.waf-chip-enabled {
  background: rgba(46, 204, 113, 0.12);
}

.waf-chip-disabled {
  background: rgba(255, 255, 255, 0.04);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-green {
  background: #2ecc71;
}

.dot-gray {
  background: #6b7280;
}

.blink {
  animation: blinkPulse 1.2s infinite;
}

@keyframes blinkPulse {
  0% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
}

/* Repo CTA buttons – reuse .btn-primary visuals */

.repo-button {
  margin-top: 1.25rem;
}
