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

:root {
  --bg: #f4f7f8;
  --bg-elevated: #ffffff;
  --bg-muted: #e8eef0;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #8a8580;
  --line: rgba(28, 25, 23, 0.1);
  --teal: #0f5c66;
  --teal-bright: #147a86;
  --teal-soft: rgba(15, 92, 102, 0.1);
  --shadow: 0 18px 40px rgba(15, 40, 48, 0.08);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 92, 102, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 122, 134, 0.08), transparent 50%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 40%, #eef3f4 100%);
  min-height: 100vh;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-bright); }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 248, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

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

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--teal);
}

.page {
  padding: 48px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 28px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.panel h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.panel h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faint {
  color: var(--ink-faint);
  font-size: 0.88rem;
}

ul.clean {
  list-style: none;
  display: grid;
  gap: 8px;
}

ul.clean li {
  position: relative;
  padding-left: 16px;
}

ul.clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-muted);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 92, 102, 0.25);
}

.btn-primary:hover { color: #fff; background: var(--teal-bright); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--line);
}

.agent-note {
  margin-top: 40px;
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  background: rgba(15, 92, 102, 0.06);
  border-radius: 0 12px 12px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.agent-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  color: var(--teal);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
}

.site-footer a { margin: 0 8px; }

pre.json-block {
  overflow: auto;
  background: #0f1c1e;
  color: #d7e6e8;
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
}

.case-study h2 {
  margin-bottom: 4px;
}

.case-section {
  margin-top: 16px;
  padding: 16px 16px 14px;
  border-radius: 12px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
}

.case-section h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.02rem;
  margin-bottom: 10px;
  color: var(--teal);
}

.case-sections .case-section + .case-section {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .site-header nav { padding: 14px 20px; }
}
