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

:root {
  --bg: #f4f6f2;
  --bg-soft: #eef2ec;
  --surface: #ffffff;
  --ink: #14201a;
  --ink-2: #2c3d34;
  --muted: #5c6f64;
  --line: #d5ddd6;
  --line-strong: #b8c4bb;
  --turf: #1f6b45;
  --turf-deep: #174f34;
  --flood: #c9891a;
  --flood-soft: rgba(201, 137, 26, 0.12);
  --live: #d64545;
  --ok: #1f8a5b;
  --radius: 12px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --ease: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(31, 107, 69, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(201, 137, 26, 0.07), transparent 50%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--turf); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--turf-deep); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--turf);
  outline-offset: 3px;
}
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--turf); }
.nav-links .btn-primary {
  color: #fff;
  background: var(--turf);
}
.nav-links .btn-primary:hover {
  color: #fff;
  background: var(--turf-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.nav-toggle:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}
.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  height: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn-primary {
  background: var(--turf);
  color: #fff;
}
.btn-primary:hover {
  background: var(--turf-deep);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 107, 69, 0.15);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--turf);
  color: var(--turf-deep);
}
.btn-block { width: 100%; }

.hero-shell {
  position: relative;
  z-index: 20;
  overflow: visible;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 40px 48px;
  align-items: start;
  padding-top: 48px;
  overflow: visible;
}
.hero {
  padding: 0;
  max-width: 640px;
  overflow: visible;
}
.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero .lead {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--muted);
  max-width: 34em;
  line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }

.league-dropdown-wrap {
  position: relative;
  z-index: 30;
}
.league-dropdown-wrap.is-open {
  z-index: 200;
}
.league-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: baseline;
}
.league-dropdown-trigger .league-chevron {
  margin-top: 1px;
}
.league-chevron {
  transition: transform 0.2s ease;
}
.league-dropdown-wrap.is-open .league-chevron {
  transform: rotate(180deg);
}
.league-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 300;
  width: min(360px, calc(100vw - 40px));
  max-height: min(420px, 60vh);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(20, 32, 26, 0.18), 0 0 0 1px rgba(20, 32, 26, 0.04);
  overflow: hidden;
}
.league-dropdown[hidden] { display: none !important; }
.league-dropdown-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.league-dropdown-head strong {
  font-size: 15px;
  color: var(--ink);
}
.league-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow: auto;
  flex: 1;
}
.league-dropdown-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft, rgba(0,0,0,0.04));
}
.league-dropdown-item:last-child { border-bottom: 0; }
.league-dropdown-name {
  font-weight: 600;
  color: var(--ink);
}
.league-dropdown-en {
  grid-column: 1;
  font-size: 12px;
  color: var(--muted);
}
.league-dropdown-id {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--turf-deep);
}
.league-dropdown-loading {
  padding: 20px 16px;
  color: var(--muted);
  font-size: 14px;
}
.league-dropdown-foot {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
}
.league-dropdown-foot code {
  font-size: 11px;
  color: var(--turf-deep);
}

.hero-highlights {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  box-shadow: 0 18px 48px rgba(20, 32, 26, 0.06);
}
.highlight-stat {
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.highlight-stat-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.highlight-stat-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.highlight-stat-divider {
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  padding-bottom: 6px;
}
.highlight-stat-wan {
  font-size: 0.55em;
  margin-left: 2px;
}
.highlight-stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--turf-deep);
}
.highlight-stat-unit {
  margin-left: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
}
.highlight-stat-desc {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.highlight-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--turf-deep);
}
.highlight-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.highlight-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.highlight-item code {
  font-size: 12px;
  color: var(--turf-deep);
}
.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.highlight-tags span {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
}

.section { padding: 72px 0; position: relative; z-index: 1; }
.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
}
.section .sub {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 16px;
  max-width: 38em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 8px 24px rgba(20, 32, 26, 0.04);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.feature-card:hover {
  border-color: #c5d6cb;
  box-shadow: 0 12px 28px rgba(20, 32, 26, 0.07);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(31, 107, 69, 0.1);
  color: var(--turf);
  margin-bottom: 14px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 8px 24px rgba(20, 32, 26, 0.04);
}
.hub-card.featured {
  border-color: rgba(31, 107, 69, 0.35);
  box-shadow: 0 0 0 1px rgba(31, 107, 69, 0.08), 0 12px 28px rgba(31, 107, 69, 0.08);
}
.hub-card.linkish {
  display: block;
  color: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.hub-card.linkish:hover {
  border-color: var(--turf);
  color: inherit;
}
.hub-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--turf);
  margin-bottom: 10px;
}
.hub-card h2, .hub-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.hub-card > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.hub-list {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14px;
}
.hub-list li { margin: 6px 0; }
.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .feature-grid, .hub-grid { grid-template-columns: 1fr; }
}

.panel {
  margin: 0;
  background: #1a2620;
  color: #d7e2db;
  border: 1px solid #2a3a31;
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 12px 32px rgba(20, 32, 26, 0.1);
}
.panel .muted { color: #8fa398; }
.panel .accent { color: #f0c15a; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 32, 26, 0.04);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.price-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(20, 32, 26, 0.08);
}
.price-card.featured {
  border-color: var(--turf);
  box-shadow: 0 0 0 1px rgba(31, 107, 69, 0.2), 0 16px 36px rgba(31, 107, 69, 0.1);
}
.price-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price, .price-free {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
}
.price span, .price-free span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.list li {
  margin: 8px 0;
  padding-left: 16px;
  position: relative;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turf);
  opacity: 0.75;
}
.price-card .btn { margin-top: auto; }
.note { margin-top: 20px; color: var(--muted); font-size: 13px; }

.docs-narrow { max-width: 820px; }

.code-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.code-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}
.code-tab.is-active {
  background: var(--turf);
  border-color: var(--turf);
  color: #fff;
}
.code-pane { display: none; }
.code-pane.is-active { display: block; }

.docs-callout {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.docs-callout strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--turf-deep);
}

.docs-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}
.docs-toc { position: sticky; top: 24px; font-size: 13px; }
.docs-toc .toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.docs-toc a { display: block; color: var(--muted); padding: 5px 0; }
.docs-toc a:hover { color: var(--turf); }

.endpoint {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 32, 26, 0.04);
}
.endpoint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.method {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--turf);
  border-radius: 4px;
  padding: 3px 8px;
}
.endpoint-path {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.endpoint-desc {
  flex: 1 1 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.endpoint-body { padding: 18px; }
.endpoint-body h4 {
  margin: 18px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.endpoint-body h4:first-child { margin-top: 0; }

.api-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.api-table th,
.api-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
  color: var(--ink-2);
}
.api-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-soft);
}
.api-table tr:last-child td { border-bottom: 0; }
.api-table code, .field-table td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--turf-deep);
}
.field-table td:first-child { white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--bg-soft);
}

.cta-band { text-align: center; max-width: 560px; margin-inline: auto; }
.cta-band .sub { margin-inline: auto; }

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 13px;
}
.footer .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--turf); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.pricing-limit-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.pricing-limit-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink);
}
.pricing-limit-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.pricing-limit-note p strong {
  display: inline;
  color: var(--ink-2);
  font-weight: 600;
}
.hero-league-hint {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
  position: relative;
  z-index: 5;
}
.hero-shell.has-league-open {
  padding-bottom: min(420px, 50vh);
}
.text-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--turf);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--turf-deep); }

.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 26, 0.45);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(20, 32, 26, 0.18);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 8px;
}
.modal-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.modal-close {
  border: 0;
  background: var(--bg-soft);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
}
.modal-close:hover { background: var(--line); }
.modal-sub {
  margin: 0;
  padding: 0 20px 14px;
  font-size: 13px;
  color: var(--muted);
}
.install-modal-panel {
  width: min(560px, 100%);
}
.install-modal-body {
  overflow: auto;
  padding: 0 20px 8px;
  flex: 1;
}
.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install;
}
.install-steps li {
  position: relative;
  padding: 0 0 18px 44px;
  counter-increment: install;
}
.install-steps li::before {
  content: counter(install);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(31, 107, 69, 0.12);
  color: var(--turf-deep);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.install-steps li strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.install-steps li p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.install-path {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  word-break: break-all;
}
.install-note {
  font-size: 12px !important;
  margin-top: 6px !important;
}
.install-tip {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--flood-soft);
  border: 1px solid rgba(201, 137, 26, 0.25);
}
.install-tip strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}
.install-tip p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.install-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
}
.install-modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.league-table-wrap {
  overflow: auto;
  padding: 0 12px 16px;
  flex: 1;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(214, 69, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 69, 69, 0); }
}
@keyframes board-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }
  .hero-highlights { order: 2; }
  .pricing-grid, .grid-3 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 6px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }
  .docs-toc .toc-label { width: 100%; }
  .section { padding: 52px 0; }
  .docs-split { grid-template-columns: 1fr; }
  .docs-ref-grid { grid-template-columns: 1fr; }
  .docs-path-grid { grid-template-columns: 1fr; }
  .docs-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px;
  }
  .docs-cta .btn { width: 100%; min-height: 44px; }
  .docs-path-card {
    flex-direction: column;
    gap: 14px;
    padding: 20px 18px;
  }
  .docs-path-actions .btn { min-height: 44px; }
  .docs-hero { padding: 36px 0 8px; }
  .docs-hero h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.05;
  }
  .docs-section { padding: 20px 0 32px; }
  .docs-section--soft { padding-block: 36px; }
  .panel {
    padding: 16px;
    font-size: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .code-tab { min-height: 40px; padding: 8px 16px; }
  .docs-endpoint-list li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .docs-endpoint-list code { word-break: break-all; }
  .install-modal-panel {
    width: min(520px, calc(100vw - 24px));
    max-height: min(88vh, 720px);
  }
  .install-modal-foot {
    flex-direction: column-reverse;
  }
  .install-modal-foot .btn { width: 100%; min-height: 44px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .docs-top-inner,
  .home-top-inner,
  .nav {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
  }
  .nav-links a:hover { background: var(--bg-soft); }
  .nav-links .btn-primary {
    justify-content: center;
    margin-top: 4px;
  }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .docs-intro { font-size: 16px; }
  .docs-ref-card { padding: 14px 14px; }
  .docs-ref-actions { margin-top: 10px; }
}

/* —— Docs page —— */
.docs-top {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.docs-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.nav-links a[aria-current="page"] {
  color: var(--turf-deep);
  font-weight: 600;
}

.docs-hero {
  padding: 56px 0 12px;
}
.docs-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turf);
}
.docs-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.docs-intro {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 28em;
}

.docs-section {
  padding: 28px 0 40px;
}
.docs-section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding-block: 48px;
}

.docs-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.docs-ref-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(20, 32, 26, 0.04);
}
.docs-ref-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.docs-ref-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
  word-break: break-all;
}
.docs-ref-plain {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.docs-ref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.docs-copy-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.docs-copy-btn:hover {
  border-color: var(--turf);
  color: var(--turf-deep);
  background: rgba(31, 107, 69, 0.08);
}
.docs-copy-btn.is-copied {
  border-color: var(--ok);
  color: var(--ok);
}

.docs-path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.docs-path-card {
  display: flex;
  gap: 18px;
  padding: 26px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(20, 32, 26, 0.05);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.docs-path-card:hover {
  border-color: #c5d6cb;
  box-shadow: 0 12px 32px rgba(20, 32, 26, 0.08);
}
.docs-path-card--primary {
  border-color: rgba(31, 107, 69, 0.28);
  background: linear-gradient(165deg, #fff 0%, rgba(31, 107, 69, 0.04) 100%);
}
.docs-path-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 107, 69, 0.1);
  color: var(--turf-deep);
}
.docs-path-body { min-width: 0; }
.docs-path-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turf);
}
.docs-path-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.docs-path-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.docs-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.docs-path-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--live);
}
.docs-path-actions .is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.docs-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 40px;
  align-items: start;
}
.docs-section-title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.docs-section-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.docs-code {
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.docs-endpoints {
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.docs-endpoint-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.docs-endpoint-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.docs-endpoint-list li:last-child { border-bottom: 0; }
.docs-endpoint-list code {
  font-size: 12px;
  color: var(--turf-deep);
}
.docs-endpoint-list span {
  font-size: 13px;
  color: var(--muted);
}
.docs-more-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--turf);
}
.docs-more-link:hover { color: var(--turf-deep); }
.docs-more-link.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.docs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(20, 32, 26, 0.05);
}
.docs-cta h2 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.docs-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* —— Agent guide page —— */
.page-agent {
  background:
    radial-gradient(ellipse 78% 48% at 50% -18%, rgba(31, 107, 69, 0.1), transparent 58%),
    radial-gradient(ellipse 38% 34% at 100% 4%, rgba(201, 137, 26, 0.08), transparent 55%),
    var(--bg);
}
.agent-hero {
  padding: 56px 0 36px;
}
.agent-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 36px;
  align-items: start;
}
.agent-hero h1 {
  margin: 0 0 18px;
  max-width: 13em;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.agent-lead {
  margin: 0 0 26px;
  max-width: 40em;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}
.agent-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.agent-note {
  margin: 0;
  max-width: 42em;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.agent-quick-card {
  padding: 24px 22px;
  border-radius: 14px;
  border: 1px solid rgba(31, 107, 69, 0.26);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(20, 32, 26, 0.08);
}
.agent-quick-card h2,
.agent-tool-card h2,
.agent-id-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.agent-copy-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.agent-copy-row span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.agent-copy-row code {
  font-size: 12px;
  color: var(--turf-deep);
  word-break: break-all;
}
.agent-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
}
.agent-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.agent-section--soft {
  background: var(--bg-soft);
}
.agent-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.agent-step {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(20, 32, 26, 0.05);
}
.agent-step img {
  display: block;
  width: 100%;
  aspect-ratio: 920 / 560;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.agent-step-copy {
  position: relative;
  padding: 20px 18px 22px;
}
.agent-step-num {
  position: absolute;
  top: -20px;
  left: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--turf);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--surface);
}
.agent-step h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.agent-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.agent-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: start;
}
.agent-prompt {
  white-space: pre-wrap;
  margin-bottom: 14px;
}
.agent-copy-prompt {
  min-height: 44px;
}
.agent-tool-card,
.agent-id-card {
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(20, 32, 26, 0.05);
}
.agent-tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agent-tool-list li {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.agent-tool-list li:last-child {
  border-bottom: 0;
}
.agent-tool-list strong {
  font-size: 13px;
  color: var(--turf-deep);
}
.agent-tool-list span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.agent-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.agent-info-card {
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.agent-info-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.agent-info-card code {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--turf-deep);
  word-break: break-all;
}
.agent-info-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.agent-id-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
.agent-id-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.agent-id-card dt,
.agent-id-card dd {
  margin: 0;
}
.agent-id-card dt code {
  color: var(--turf-deep);
}
.agent-id-card dd {
  font-size: 14px;
  color: var(--ink-2);
}
.agent-faq {
  max-width: 860px;
}
.agent-faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.agent-faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.agent-faq p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .agent-hero-grid,
  .agent-two-col {
    grid-template-columns: 1fr;
  }
  .agent-steps {
    grid-template-columns: 1fr;
  }
  .agent-step {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
  .agent-step img {
    height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .agent-step-num {
    top: 18px;
    left: -20px;
  }
  .agent-step-copy {
    padding: 20px 18px 20px 30px;
  }
  .agent-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .agent-hero {
    padding-top: 36px;
  }
  .agent-hero h1 {
    font-size: clamp(36px, 12vw, 48px);
    line-height: 1.04;
  }
  .agent-lead {
    font-size: 16px;
  }
  .agent-copy-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .agent-copy-row .docs-copy-btn {
    width: 100%;
  }
  .agent-step {
    display: block;
  }
  .agent-step img {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .agent-step-num {
    top: -20px;
    left: 18px;
  }
  .agent-step-copy {
    padding: 20px 18px 22px;
  }
  .agent-hero-actions .btn,
  .agent-copy-prompt {
    width: 100%;
  }
}

/* —— Home page —— */
.page-home {
  background:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(31, 107, 69, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 35% at 100% 5%, rgba(201, 137, 26, 0.08), transparent 55%),
    var(--bg);
}

.home-top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}
.home-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.home-hero {
  position: relative;
  z-index: 25;
  padding: 56px 0 32px;
  overflow: visible;
}
.home-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turf);
}
.home-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--ink);
  max-width: 14em;
}
.home-title-accent {
  display: block;
  margin-top: 0.12em;
  color: var(--turf-deep);
}
.home-lead {
  margin: 0 0 28px;
  max-width: 36em;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.page-home .hero-league-hint {
  margin-top: 18px;
}

.home-stats {
  position: relative;
  z-index: 10;
  padding: 0 0 48px;
}
.home-capability {
  position: relative;
  z-index: 12;
  padding: 0 0 28px;
}
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.home-stat-card {
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(20, 32, 26, 0.05);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.home-stat-card:hover {
  border-color: #c5d6cb;
  box-shadow: 0 12px 32px rgba(20, 32, 26, 0.08);
}
.home-stat-card--accent {
  border-color: rgba(201, 137, 26, 0.35);
  background: linear-gradient(165deg, #fff 0%, rgba(201, 137, 26, 0.08) 100%);
}
.home-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--turf-deep);
}
.home-stat-card--accent .home-stat-num {
  color: #9a6410;
}
.home-stat-wan,
.home-stat-plus {
  font-size: 0.55em;
  margin-left: 2px;
}
.home-stat-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.home-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 112px;
}
.home-section--soft {
  background: var(--bg-soft);
}
.home-section-head {
  margin-bottom: 28px;
  max-width: 520px;
}
.home-section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
}
.home-section-head p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.home-adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.home-adv-card {
  padding: 24px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(20, 32, 26, 0.04);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.home-adv-card:hover {
  border-color: #c5d6cb;
  box-shadow: 0 10px 28px rgba(20, 32, 26, 0.07);
}
.home-adv-card--featured {
  grid-column: span 1;
  border-color: rgba(31, 107, 69, 0.28);
  background: linear-gradient(165deg, #fff 0%, rgba(31, 107, 69, 0.05) 100%);
}
.home-adv-card--featured:first-child {
  border-color: rgba(201, 137, 26, 0.35);
  background: linear-gradient(165deg, #fff 0%, rgba(201, 137, 26, 0.07) 100%);
}
.home-adv-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--turf-deep);
  background: rgba(31, 107, 69, 0.12);
}
.home-adv-card--featured:first-child .home-adv-badge {
  color: #9a6410;
  background: rgba(201, 137, 26, 0.16);
}
.home-adv-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(31, 107, 69, 0.1);
  color: var(--turf-deep);
}
.home-adv-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.home-adv-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.home-adv-card code {
  font-size: 12px;
  color: var(--turf-deep);
}

.home-use-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}
.home-use-side {
  display: grid;
  gap: 18px;
}
.home-use-grid .simple-card,
.home-use-grid .simple-box {
  border-radius: 8px;
}
.home-use-grid .simple-prompt {
  min-height: 320px;
}

.api-playground {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 107, 69, 0.22);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(20, 32, 26, 0.06);
}
.api-playground-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(31, 107, 69, 0.08), rgba(201, 137, 26, 0.08));
}
.api-playground-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}
.api-playground-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.api-playground-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--turf-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 107, 69, 0.16);
}
.api-playground-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  min-height: 430px;
}
.api-playground-controls {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.api-demo-key-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(201, 137, 26, 0.24);
  border-radius: 8px;
  background: rgba(201, 137, 26, 0.07);
}
.api-demo-key-card strong {
  font-size: 13px;
  color: #8a5a10;
}
.api-demo-key-card code {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}
.api-demo-key-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.api-field {
  display: grid;
  gap: 7px;
}
.api-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.api-field input,
.api-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 500 14px var(--font-body);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.api-field input {
  font-family: var(--font-mono);
  font-size: 13px;
}
.api-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.api-field input:focus,
.api-field select:focus {
  border-color: rgba(31, 107, 69, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 107, 69, 0.1);
}
.api-playground-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.api-playground-actions .btn {
  min-height: 44px;
  border-radius: 8px;
}
.api-playground-actions .btn:disabled {
  cursor: wait;
  opacity: 0.62;
}
.api-playground-note {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.api-result-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  background: #17231d;
}
.api-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e2db;
}
.api-result-top code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d7e2db;
}
#api-demo-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #d7e2db;
  background: rgba(255, 255, 255, 0.08);
}
#api-demo-status.is-ok {
  color: #bdf3cf;
  background: rgba(55, 166, 92, 0.18);
}
#api-demo-status.is-error {
  color: #ffd2c7;
  background: rgba(205, 67, 42, 0.18);
}
#api-demo-output {
  margin: 0;
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #e4eee8;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #17231d;
  background-size: 100% 28px;
}

.capability-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 30px;
  align-items: stretch;
  overflow: hidden;
  padding: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 255, 249, 0.08), transparent 42%),
    #14231c;
  box-shadow: 0 18px 48px rgba(20, 35, 28, 0.2);
}
.capability-copy {
  display: grid;
  align-content: center;
  min-height: 250px;
}
.capability-kicker {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ed9b1;
}
.capability-copy h2 {
  margin: 0 0 16px;
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #f7fbf8;
}
.capability-copy p {
  margin: 0;
  max-width: 52em;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(247, 251, 248, 0.78);
}
.capability-copy p + p {
  margin-top: 8px;
  color: rgba(247, 251, 248, 0.64);
}
.capability-feature-wrap {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.capability-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.capability-feature-head span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(247, 251, 248, 0.74);
}
.capability-feature-head strong {
  font-size: 13px;
  color: #d7b160;
}
.capability-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.capability-tags li {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(158, 217, 177, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f2f8f4;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.home-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border-radius: 16px;
  border: 1px solid rgba(31, 107, 69, 0.22);
  background: linear-gradient(135deg, #fff 0%, rgba(31, 107, 69, 0.06) 100%);
  box-shadow: 0 12px 40px rgba(20, 32, 26, 0.06);
}
.home-final-cta h2 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.home-final-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

body.has-league-open .home-hero {
  padding-bottom: min(380px, 48vh);
}

/* —— Simple agent guide —— */
.page-agent-simple {
  background: var(--bg);
}
.simple-top {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}
.simple-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.simple-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}
.simple-main {
  padding: 42px 0 34px;
}
.simple-hero {
  max-width: 860px;
}
.simple-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--turf);
}
.simple-hero h1 {
  margin: 0 0 14px;
  max-width: 760px;
  font-family: var(--font-body);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--ink);
}
.simple-lead {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.simple-card,
.simple-box,
.simple-steps > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 32, 26, 0.04);
}
.simple-card {
  overflow: hidden;
}
.simple-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.simple-card-head h2,
.simple-section h2,
.simple-box h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.simple-prompt {
  margin: 0;
  padding: 20px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #d7e2db;
  background: #1a2620;
}
.simple-section {
  max-width: 860px;
  margin-top: 28px;
}
.simple-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.simple-steps > div,
.simple-box {
  padding: 18px 16px;
}
.simple-steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--ink);
}
.simple-steps p,
.simple-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.simple-box p + p {
  margin-top: 12px;
}
.simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.simple-box h2 {
  margin-bottom: 12px;
}
.simple-apifox-box {
  border-color: rgba(31, 107, 69, 0.28);
  background: linear-gradient(165deg, #fff 0%, rgba(31, 107, 69, 0.06) 100%);
}
.simple-apifox-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border-radius: 10px;
  font-size: 17px;
}

@media (max-width: 760px) {
  .simple-top-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .simple-main {
    padding-top: 30px;
  }
  .simple-card-head {
    align-items: stretch;
    flex-direction: column;
  }
  .simple-card-head .btn {
    width: 100%;
  }
  .simple-steps,
  .simple-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-adv-grid { grid-template-columns: 1fr; }
  .home-use-grid { grid-template-columns: 1fr; }
  .home-use-grid .simple-prompt { min-height: 0; }
  .api-playground-grid { grid-template-columns: 1fr; }
  .api-playground-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-panel { grid-template-columns: 1fr; }
  .capability-copy { min-height: 0; }
  .home-final-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .home-title { max-width: none; }
}

@media (max-width: 520px) {
  .home-stats-grid { grid-template-columns: 1fr; }
  .home-hero { padding-top: 36px; }
  .home-capability { padding-bottom: 24px; }
  .capability-panel { padding: 22px; }
  .capability-tags { grid-template-columns: 1fr; }
  .api-playground-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .api-playground-actions {
    grid-template-columns: 1fr;
  }
  .api-result-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
