:root {
  --ink: #14221f;
  --muted: #5a6e68;
  --accent: #0d7a62;
  --accent2: #1a6b8a;
  --line: rgba(20, 34, 31, 0.12);
  --bg: #e8f2ee;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 90% 55% at 8% -8%, rgba(13, 122, 98, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 45% at 92% 0%, rgba(26, 107, 138, 0.14), transparent 50%),
    linear-gradient(165deg, #f4faf7 0%, var(--bg) 45%, #dcebe4 100%);
}
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 12px 20px;
  background: rgba(244, 250, 247, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: "Syne", sans-serif;
  font-weight: 800; font-size: 1.15rem;
  text-decoration: none; color: var(--ink);
  letter-spacing: -0.02em;
}
.mods { display: flex; flex-wrap: wrap; gap: 6px; }
.mods a {
  text-decoration: none; color: var(--muted);
  font-size: 0.84rem; font-weight: 600;
  padding: 6px 10px; border-radius: 4px;
}
.mods a:hover, .mods a.active {
  color: var(--ink); background: rgba(13, 122, 98, 0.1);
}
.main { max-width: 1180px; margin: 0 auto; padding: 8px 20px 48px; }
.foot {
  max-width: 1180px; margin: 0 auto; padding: 16px 20px 40px;
  font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Hub home */
.hero {
  min-height: min(72vh, 560px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px 0 28px;
  animation: rise 0.85s ease-out both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 14px;
  background: linear-gradient(105deg, #0a3d32, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 160% 100%;
  animation: brandShift 8s ease-in-out infinite alternate;
}
@keyframes brandShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.lead {
  max-width: 28em; margin: 0 0 26px;
  color: var(--muted); font-size: 1.05rem; line-height: 1.55;
  animation: rise 0.9s 0.1s ease-out both;
}
.cta { display: flex; flex-wrap: wrap; gap: 10px; animation: rise 0.9s 0.2s ease-out both; }
.cta a {
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  padding: 12px 18px; border-radius: 4px;
}
.cta .primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 28px rgba(13, 122, 98, 0.25);
}
.cta .ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
}

.sec { margin-top: 36px; }
.sec h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem; margin: 0 0 6px;
}
.sec p.sub { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
.mod {
  display: block; text-decoration: none; color: inherit;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
  animation: rise 0.7s ease-out both;
}
.mod:nth-child(1) { animation-delay: 0.05s; }
.mod:nth-child(2) { animation-delay: 0.12s; }
.mod:nth-child(3) { animation-delay: 0.18s; }
.mod:nth-child(4) { animation-delay: 0.24s; }
.mod:nth-child(5) { animation-delay: 0.3s; }
.mod:nth-child(6) { animation-delay: 0.36s; }
.mod:hover { background: rgba(255,255,255,0.45); }
@media (min-width: 721px) {
  .mod:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 22px; }
  .mod:nth-child(even) { padding-left: 22px; }
}
.mod .name {
  font-family: "Syne", sans-serif;
  font-weight: 700; font-size: 1.15rem; margin: 0 0 6px;
}
.mod .desc { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.mod .meta {
  margin-top: 10px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.mod.pending .meta { color: #9a6700; }
.mod.pending { opacity: 0.72; }

.mod-hero { padding: 28px 0 12px; }
.mod-hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px;
}
.mod-hero p { margin: 0 0 8px; color: var(--muted); max-width: 40em; line-height: 1.5; }
.links a { color: var(--accent2); font-weight: 600; }
.frame {
  width: 100%; height: min(78vh, 900px);
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff;
}
.panel {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}
.panel h2 { font-size: 1rem; margin: 16px 0 8px; }
.panel h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.alert-list { margin: 0; padding-left: 1.2em; line-height: 1.7; }
.steps { line-height: 1.8; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; }
pre {
  background: rgba(20,34,31,0.06);
  padding: 12px 14px; border-radius: 6px;
  overflow: auto; font-size: 0.82rem;
}
code { font-size: 0.88em; }
