@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
  --bg: #f4f7fb;
  --bg-2: #edf2f8;
  --card: #ffffff;
  --text: #182235;
  --muted: #64748a;
  --primary: #0f6f61;
  --primary-hover: #0b5a4f;
  --secondary: #34445f;
  --danger: #be1e2d;
  --border: #d9e1eb;
  --ok-bg: #dcf3e8;
  --ok-text: #0e6d48;
  --warn-bg: #ffe8eb;
  --warn-text: #a9172e;
  --shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 360px at 0% -10%, rgba(15, 111, 97, 0.12), transparent 58%),
    radial-gradient(900px 360px at 100% -10%, rgba(35, 80, 150, 0.12), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

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

code,
pre {
  font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
}

.orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
}

.orb-a {
  top: -80px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: rgba(15, 111, 97, 0.12);
}

.orb-b {
  right: -100px;
  top: 80px;
  width: 280px;
  height: 280px;
  background: rgba(40, 80, 148, 0.12);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(120deg, #15253e, #1f3559 65%, #2b4a79);
  box-shadow: 0 4px 16px rgba(12, 20, 37, 0.26);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand a {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.topnav {
  display: flex;
  gap: 10px;
}

.navlink {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition: all 0.16s ease;
}

.navlink:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navlink.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.container {
  max-width: 1180px;
  margin: 22px auto;
  padding: 0 14px 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  animation: rise-in 0.2s ease-out;
}

.hero-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 255, 0.94));
}

.card.narrow {
  max-width: 460px;
  margin: 46px auto;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.2;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 22px;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 9px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 6px;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9px;
  padding: 9px 13px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.14s ease, background 0.16s ease;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
}

.btn-secondary:hover {
  background: #202b3d;
}

.btn-danger {
  background: var(--danger);
}

.btn-danger:hover {
  background: #9b1724;
}

.actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.step-kicker {
  margin: 0 0 8px;
  color: #2b4a79;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 800;
}

.integration-status {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.integration-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 7px 9px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  background: #eef2f8;
  color: #2f3b52;
}

.badge.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.badge.missing {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.code-stack {
  display: grid;
  gap: 10px;
}

pre {
  margin: 0;
  border-radius: 11px;
  background: #162845;
  color: #f4f8ff;
  padding: 11px;
  overflow: auto;
  border: 1px solid #27406a;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 8px;
  vertical-align: top;
}

.payload-cell {
  display: inline-block;
  max-width: 460px;
  white-space: pre-wrap;
  word-break: break-word;
}

.flash-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.flash {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.flash.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  border-color: rgba(14, 109, 72, 0.2);
}

.flash.error {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: rgba(169, 23, 46, 0.2);
}

.plain-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.check-row input {
  width: auto;
}

.subheading-gap {
  margin-top: 16px;
}

.scope-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scope-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.scope-option input {
  width: auto;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-left {
    width: 100%;
    justify-content: space-between;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: 24px;
  }

  .payload-cell {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .btn,
  .navlink {
    animation: none;
    transition: none;
  }
}
