:root {
  --bg: #d9e4e1;
  --bg2: #c9d8d3;
  --page: #edf3f1;
  --page-edge: #93b2a8;
  --page-shadow: rgba(54, 88, 76, .08);
  --line: #99b6ad;
  --line-strong: #739785;
  --panel-top: #fbfefd;
  --panel-mid: #eef5f3;
  --panel-bottom: #dce8e3;
  --text: #203c35;
  --muted: #5d746d;
  --accent: #9ee0bf;
  --accent-soft: #c9efdb;
  --accent-strong: #72cda0;
  --accent-deep: #3f8c69;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 160px),
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.75), transparent 19%),
    linear-gradient(180deg, #eef4f2 0%, var(--bg) 46%, var(--bg2) 100%);
  background-color: var(--bg2);
}
a { color: #245847; text-decoration: none; }
a:hover { color: #163a30; }
.page-shell {
  width: min(1160px, calc(100% - 18px));
  min-height: calc(100vh - 20px);
  margin: 10px auto;
  border: 1px solid var(--page-edge);
  background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(232,240,237,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 0 0 1px rgba(255,255,255,.34),
    0 5px 16px var(--page-shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.page-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(181, 237, 209, .09), transparent 20%);
}
.site-header, .site-footer, main { position: relative; z-index: 1; }
main { flex: 1 0 auto; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 22px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(223,234,230,.90));
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo {
  width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.75));
}
.brand-copy strong {
  display: block; font-size: 1.08rem; font-weight: 700; letter-spacing: .03em; color: #244d41;
}
.brand-copy span { display: block; font-size: .84rem; color: var(--muted); margin-top: 3px; }
.header-actions, .hero-actions, .download-actions, .button-row {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.main-nav {
  display: flex; flex-wrap: wrap; gap: 30px;
  justify-content: center;
  padding: 18px 34px 20px;
  border-top: 1px solid rgba(255,255,255,.72);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fcfb, #d9e5e1);
}
.main-nav a,
.aero-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 22px;
  border-radius: 11px;
  border: 1px solid #70ae91;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(245,255,250,.97) 18%, rgba(219,247,232,.98) 19%, rgba(170,229,199,.98) 58%, rgba(128,208,171,.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.99),
    inset 0 2px 10px rgba(255,255,255,.38),
    inset 0 -1px 0 rgba(74,137,108,.28),
    0 1px 0 rgba(255,255,255,.55),
    0 1px 2px rgba(61, 100, 86, .10);
  color: #234c40; font-weight: 700; letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(255,255,255,.92);
}
.main-nav a::before,
.aero-btn::before {
  content: "";
  position: absolute; left: 2px; right: 2px; top: 2px; height: 46%;
  border-radius: 9px 9px 7px 7px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.18));
  pointer-events: none;
}
.main-nav a::after,
.aero-btn::after {
  content: "";
  position: absolute; inset: 1px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.34);
  pointer-events: none;
}
.main-nav a > *, .aero-btn > * { position: relative; z-index: 1; }
.main-nav a { min-width: 168px; }
.main-nav a:hover,
.main-nav a.active,
.aero-btn:hover {
  border-color: #5f9c7f;
  background:
    linear-gradient(180deg, rgba(255,255,255,.995) 0%, rgba(250,255,253,.985) 18%, rgba(227,250,237,.985) 19%, rgba(180,235,206,.99) 58%, rgba(140,214,180,.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.99),
    inset 0 2px 10px rgba(255,255,255,.44),
    inset 0 -1px 0 rgba(74,137,108,.30),
    0 1px 0 rgba(255,255,255,.56),
    0 1px 3px rgba(61, 100, 86, .12);
}
.hero-layout, .standard-layout { padding: 16px; }
.panel, .hero-panel, .content-panel, .info-panel, .docs-sidebar, .doc-intro-card, .doc-section-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(242,248,246,.94) 14%, rgba(218,230,225,.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.97), inset 0 0 0 1px rgba(255,255,255,.34);
}
.banner-panel {
  position: relative; min-height: 250px; overflow: hidden; margin-bottom: 14px;
}
.hero-banner {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .11;
}
.banner-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.72), rgba(255,255,255,.26) 46%, rgba(109,175,141,.12) 82%),
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(124,176,156,.08));
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 28px 26px; }
.eyebrow {
  margin: 0 0 12px; color: #557f6f; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem;
}
.hero-content h1 {
  margin: 0 0 14px; font-size: clamp(1.7rem, 3.2vw, 2.55rem); line-height: 1.1; color: #24473c;
}
.lead, .content-panel p, .info-panel p, .doc-article p, .doc-article li { line-height: 1.68; }
.lead { max-width: 650px; }
.grid-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-panels.two { grid-template-columns: repeat(2, 1fr); }
.content-row.two-up { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.info-panel, .content-panel { padding: 16px 18px; }
.content-panel.wide { margin-bottom: 14px; }
.panel-title {
  margin: -16px -18px 12px;
  padding: 9px 12px;
  background: linear-gradient(180deg, #fcfffe, #dbe8e4);
  border-bottom: 1px solid #a5beb7;
  color: #44685d;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.feature-list { margin: 0; padding-left: 18px; line-height: 1.7; }
.feature-list.compact { line-height: 1.62; }
.text-link { font-weight: 700; }
.small-note { font-size: .9rem; color: var(--muted); }
.docs-layout {
  display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 14px; padding: 14px;
}
.docs-sidebar {
  align-self: start; position: sticky; top: 10px; max-height: calc(100vh - 28px); overflow: auto;
}
.docs-sidebar .panel-title { margin: 0; padding: 10px 12px; line-height: 1.25; }
.toc-wrap { padding: 10px 12px 14px; }
.toc-wrap ul { list-style: none; padding-left: 0; margin: 0; }
.toc-wrap ul ul { padding-left: 12px; margin-top: 4px; }
.toc-wrap li { margin: 4px 0; }
.toc-wrap a {
  display: block; padding: 6px 8px; border-radius: 7px; color: #274d42; line-height: 1.28;
}
.toc-wrap a:hover { background: rgba(255,255,255,.44); }
.docs-content { min-width: 0; }
.doc-article { padding: 0; }
.doc-intro-card, .doc-section-card {
  padding: 16px 18px 14px; margin-bottom: 14px;
}
.doc-intro-card > :first-child, .doc-section-card > :first-child { margin-top: 0; }
.doc-article h1, .doc-article h2, .doc-article h3, .doc-article h4 { color: #24493e; }
.doc-article h1 { font-size: 1.72rem; margin-bottom: .9rem; }
.doc-article h2 {
  margin: -16px -18px 14px; padding: 10px 12px;
  background: linear-gradient(180deg, #fcfffe, #dbe8e4);
  border-bottom: 1px solid #a5beb7;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  scroll-margin-top: 12px;
}
.doc-article h3, .doc-article h4 { scroll-margin-top: 12px; }
.doc-article h3 { margin-top: 1.4rem; font-size: 1.04rem; }
.doc-article h4 { margin-top: 1.1rem; font-size: .98rem; }
.doc-article pre {
  overflow: auto; padding: 12px; border-radius: 7px;
  border: 1px solid #98b7ae;
  background: linear-gradient(180deg, #fbfffe, #e3ece8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}
.doc-article code {
  font-family: Consolas, 'Courier New', monospace; font-size: .94em;
  background: rgba(255,255,255,.62); padding: 1px 4px; border-radius: 4px;
}
.doc-article pre code { background: transparent; padding: 0; }
.doc-article blockquote {
  margin: .95rem 0; padding: 11px 13px; border-left: 4px solid #81b6a1; background: rgba(255,255,255,.42);
}
.doc-article hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #a3c1b7, transparent); margin: 1.6rem 0; }
.section-top-link { margin: 16px 0 0; text-align: right; font-size: .9rem; }
.section-top-link a { font-weight: 700; }
.callout-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-box pre, .license-box pre { max-height: 360px; overflow: auto; }
.license-box summary { cursor: pointer; font-weight: 700; }
.site-footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; font-size: .84rem; color: #49625c;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(208,225,219,.9));
}
.docs-sidebar .panel-title {
  letter-spacing: .06em;
  font-size: .75rem;
  white-space: normal;
  word-break: break-word;
}
.docs-nav-list { list-style: none; margin: 0; padding: 0; }
.docs-nav-list li + li { margin-top: 7px; }
.docs-nav-list a {
  display: block; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(144,179,166,.50);
  background: linear-gradient(180deg, rgba(255,255,255,.54), rgba(236,245,241,.30));
  color: #26483e; font-weight: 700; line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}
.docs-nav-list a:hover,
.docs-nav-list a.active {
  border-color: #8fb7a7;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(229,242,236,.86));
}
.doc-intro-card, .doc-section-card { display: none; }
.doc-intro-card.is-visible, .doc-section-card.is-visible { display: block; }
.doc-status-line {
  margin: 0 0 10px; font-size: .82rem; color: #587068;
}
.hero-actions .aero-btn, .download-actions .aero-btn, .button-row .aero-btn { min-width: 168px; }
@media (max-width: 980px) {
  .grid-panels, .grid-panels.two, .content-row.two-up, .callout-grid, .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: relative; top: 0; max-height: none; }
}
@media (max-width: 720px) {
  .page-shell { width: min(100%, calc(100% - 8px)); margin: 4px auto; }
  .topbar { padding: 14px 12px; flex-direction: column; align-items: flex-start; }
  .header-actions, .hero-actions, .download-actions, .button-row { gap: 10px; }
  .main-nav { gap: 14px; padding: 14px 12px 16px; }
  .main-nav a { flex: 1 1 48%; min-width: 0; }
  .hero-content { padding: 20px 16px; }
}
