:root {
  --bg: #f7f5f0;
  --bg-soft: #efebe3;
  --panel: #ffffff;
  --panel-soft: #f8f6f1;
  --text: #1c2829;
  --muted: #566568;
  --line: #d8d6ce;
  --brand: #0b766d;
  --brand-2: #3ca66f;
  --accent: #cc6b1f;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 20px rgba(23, 35, 35, 0.08);
  --shadow-md: 0 20px 42px rgba(23, 35, 35, 0.12);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.58;
  background:
    radial-gradient(1200px 620px at -10% -10%, rgba(11, 118, 109, 0.2), transparent 60%),
    radial-gradient(980px 620px at 110% 0%, rgba(204, 107, 31, 0.12), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(28, 40, 41, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 40, 41, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: rgba(11, 118, 109, 0.55); }

code.inline {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.16em 0.45em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(28, 40, 41, 0.1);
  background: rgba(248, 246, 241, 0.87);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
}

.logo-img {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(11, 118, 109, 0.2);
}

.logo-img.small {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .name {
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-text .tag {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav {
  display: flex;
  gap: 8px;
  padding: 0 6px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-weight: 650;
}

.btn:hover { background: #fff; text-decoration: none; }

.btn.primary {
  color: #eff4f4;
  border-color: rgba(11, 118, 109, 0.76);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 26px rgba(11, 118, 109, 0.24);
}

.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 10px; font-size: 0.9rem; }

.hamburger {
  display: none;
  margin-left: 6px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: rgba(28, 40, 41, 0.88);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 62px;
}

.section { margin-top: 48px; }
.section-head { margin-bottom: 18px; }
.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.96rem;
  letter-spacing: -0.35px;
}
.section-head p { margin: 0; color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding-top: 14px;
}

.hero-inner { padding: 10px 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 118, 109, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #205b60;
  font-size: 0.89rem;
  font-weight: 650;
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: 3.1rem;
  letter-spacing: -1.2px;
  line-height: 1.05;
}

.lead {
  margin: 0 0 16px;
  max-width: 60ch;
  color: #334344;
  font-size: 1.08rem;
}

.cta { display: flex; gap: 10px; margin: 16px 0 14px; flex-wrap: wrap; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(28, 40, 41, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 0 0 8px; letter-spacing: -0.2px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card ul { margin: 10px 0 0 18px; color: var(--muted); }
.card.subtle { background: rgba(255, 255, 255, 0.62); box-shadow: none; }

.tile {
  border-radius: var(--radius);
  border: 1px solid rgba(28, 40, 41, 0.1);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.tile .k { margin-bottom: 5px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.tile .v { font-weight: 730; letter-spacing: -0.15px; }

.codecard {
  border-color: rgba(11, 118, 109, 0.24);
  box-shadow: var(--shadow-md);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.terminal,
.codeblock {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(28, 40, 41, 0.14);
  background: #1f2729;
  overflow: hidden;
}

.terminal { padding: 14px 14px 12px; }

.terminal pre,
.codeblock pre {
  margin: 0;
  padding: 14px 14px 12px;
  font-family: var(--mono);
  font-size: 0.93rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #dbe7e8;
}

.terminal pre { padding: 0; }

.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.1);
  color: #edf2f2;
  font-weight: 720;
  cursor: pointer;
}

.copy:hover { background: rgba(255, 255, 255, 0.18); }
.copy.big { top: auto; right: 12px; bottom: 12px; }

.muted { color: var(--muted); }
.mini { margin-top: 10px; color: var(--muted); }

.docs .doc-card { padding: 0; overflow: hidden; }

.doc-toolbar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 247, 242, 0.9);
  flex-wrap: wrap;
}

.doc-content { padding: 18px 16px 20px; }
.doc-content h1 { margin: 0 0 10px; font-size: 1.85rem; }
.doc-content h2 { margin: 22px 0 10px; font-size: 1.32rem; }
.doc-content h3 { margin: 18px 0 8px; font-size: 1.12rem; }
.doc-content p { margin: 10px 0; color: #334344; }
.doc-content ul, .doc-content ol { margin: 10px 0 10px 20px; color: #334344; }

.codeblock { margin: 12px 0; }

.footer {
  margin-top: 36px;
  border-top: 1px solid rgba(28, 40, 41, 0.1);
  background: rgba(248, 246, 241, 0.9);
}

.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.foot-inner .left,
.foot-inner .right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 66px 14px auto 14px;
  z-index: 60;
  background: rgba(252, 250, 245, 0.96);
  border: 1px solid rgba(28, 40, 41, 0.14);
  border-radius: 18px;
  padding: 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 12px;
  border-radius: 12px;
  color: var(--text);
}

.mobile-menu a:hover {
  background: rgba(11, 118, 109, 0.12);
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.55rem; }
}

@media (max-width: 720px) {
  .nav, .actions { display: none; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .cards, .two, .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.12rem; }
  .brand { min-width: auto; }
  main { padding: 20px 14px 54px; }
  .topbar { padding: 10px 12px; }
}
