/* Nexora Webhook Hub — committed CSS (no npm build) */
:root {
  --bg-deep: #050a0f;
  --bg-mid: #0a1520;
  --bg-card: #0f1f2e;
  --border: rgba(148, 163, 184, 0.12);
  --text: #f0f4f8;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --accent: #25d366;
  --accent-dark: #128c7e;
  --accent-glow: rgba(37, 211, 102, 0.22);
  --meta: #1877f2;
  --meta-glow: rgba(24, 119, 242, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, var(--accent-glow), transparent),
    radial-gradient(ellipse 55% 35% at 85% 5%, var(--meta-glow), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5, 10, 15, 0.88);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.brand__mark svg { width: 20px; height: 20px; fill: #fff; }

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--accent); text-decoration: none; }

main { flex: 1; padding: 2rem 1.25rem 3rem; }

.container { max-width: var(--max); margin: 0 auto; }

.hero {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.28);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 2rem 0;
  font-size: 0.85rem;
}

.flow-node {
  padding: 0.55rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.flow-node--accent {
  border-color: rgba(37, 211, 102, 0.35);
  color: var(--accent);
  font-weight: 600;
}

.flow-arrow { color: var(--text-soft); font-size: 1.1rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s;
}

.card:hover { border-color: rgba(37, 211, 102, 0.22); }

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(37, 211, 102, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.card h3 { margin: 0 0 0.45rem; font-size: 1rem; }
.card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

.status-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.status-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.status-panel h2 {
  margin: 0;
  font-size: 1.15rem;
}

.status-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-box {
  background: rgba(5, 10, 15, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.stat-box__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.stat-box__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.tenant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tenant-list li {
  padding: 0.35rem 0.75rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  color: #a7f3d0;
}

.delivery-log {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(5, 10, 15, 0.55);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.trust-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.operator-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
}

.operator-box h2 { margin: 0 0 1rem; font-size: 1.05rem; }

.operator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem 1.25rem;
  font-size: 0.88rem;
}

.operator-grid dt {
  color: var(--text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.operator-grid dd { margin: 0.15rem 0 0; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-link:hover { background: rgba(37, 211, 102, 0.18); text-decoration: none; }

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 10, 15, 0.92);
  padding: 1.75rem 1.25rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}
