:root {
  --bg: #f6f7fb;
  --paper: #ffffff;
  --ink: #161b26;
  --muted: #5d6576;
  --line: #e4e7ef;
  --blue: #2f6fed;
  --blue-deep: #1f55c4;
  --blue-soft: #e8efff;
  --green: #1f9d63;
  --green-soft: #e3f6ec;
  --amber: #b7791f;
  --amber-soft: #fdf3dc;
  --red: #c2413b;
  --red-soft: #fde8e7;
  --shadow: 0 1px 2px rgb(22 27 38 / 0.05), 0 6px 20px rgb(22 27 38 / 0.05);
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
}

a {
  color: var(--blue-deep);
}

.wrap {
  width: min(1040px, 100% - 32px);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* nav */

.nav {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
}

.nav-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.btn:focus-visible {
  outline: 3px solid rgb(47 111 237 / 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px #c9cfdc;
}

/* hero */

.hero {
  display: grid;
  gap: 32px;
  padding: 48px 0 24px;
  align-items: start;
}

.kicker {
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  margin-top: 10px;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
}

.lead {
  margin-top: 16px;
  max-width: 36em;
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* cards */

.card {
  padding: 22px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2 {
  font-size: 17px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--amber-soft);
  color: var(--amber);
}

.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pill[data-state='online'] {
  background: var(--green-soft);
  color: var(--green);
}

.pill[data-state='offline'],
.pill[data-state='error'] {
  background: var(--red-soft);
  color: var(--red);
}

.status dl {
  display: grid;
  gap: 2px;
}

.status dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  box-shadow: 0 1px 0 var(--line);
  font-size: 14px;
}

.status dl div:last-child {
  box-shadow: none;
}

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

.status dd {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 13px;
  text-align: right;
}

.status-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
}

/* sections */

.section {
  padding: 40px 0 8px;
}

.section-title {
  margin-bottom: 18px;
  font-size: 22px;
}

.grid {
  display: grid;
  gap: 12px;
}

.feature h3 {
  font-size: 16px;
}

.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.code {
  margin: 0 0 12px;
  padding: 20px;
  border-radius: 16px;
  background: #121722;
  color: #dfe6f3;
  font: 13px/1.7 ui-monospace, 'Cascadia Code', Menlo, monospace;
  overflow-x: auto;
}

.code .k {
  color: #8fb3ff;
}

.code .s {
  color: #9be3b8;
}

.footer {
  padding: 40px 0 120px;
  color: var(--muted);
  font-size: 14px;
}

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

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    padding-top: 72px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
