:root {
  --bg: #f3f7fc;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe4f0;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --green: #059669;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.brand em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--blue);
}

.toggle-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.hero {
  padding: 68px 0 56px;
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.08), transparent 55%),
    var(--bg);
}

.hero-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: #e0ecff;
  margin-bottom: 16px;
}

.hero-center h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.3vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-center p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-blue,
.btn-outline {
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-blue {
  background: var(--blue);
  color: #ffffff;
}

.btn-blue:hover {
  background: var(--blue-dark);
}

.btn-outline {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.diagram-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.diagram-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.heading {
  margin-bottom: 34px;
}

.heading span,
.sub-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.heading h2,
.sec-grid h2,
.org-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}

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

.bento-card {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.bento-wide {
  grid-column: span 2;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: #eff6ff;
  color: var(--blue);
  margin-bottom: 12px;
}

.tag-green {
  background: #ecfdf5;
  color: var(--green);
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.bento-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.scenario-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.sc-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sc-btn.is-active,
.sc-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.sc-panel {
  display: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  padding: 30px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.sc-panel.is-active {
  display: grid;
}

.sc-copy h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.sc-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.sc-copy ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.sc-aside {
  padding: 22px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  align-self: start;
}

.sc-aside h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--blue);
}

.sc-aside p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.sc-aside p:last-child {
  margin-bottom: 0;
}

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

.proto-box {
  padding: 22px 20px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.proto-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15.5px;
  color: var(--ink);
}

.proto-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.sec-grid > div:first-child p {
  margin: 12px 0 0;
  color: var(--muted);
}

.sec-cards {
  display: grid;
  gap: 14px;
}

.sec-cards > div {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.sec-cards h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.sec-cards p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.org-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  padding: 34px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.org-card > div p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.org-facts {
  margin: 0;
  display: grid;
  gap: 12px;
}

.org-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.org-facts dt {
  color: var(--muted);
}

.org-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 30px 0 34px;
  text-align: center;
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.footer-top strong {
  color: #ffffff;
}

.footer-icp a {
  color: #e2e8f0;
}

.footer-icp a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

@media (max-width: 920px) {
  .bento,
  .proto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-wide {
    grid-column: span 2;
  }

  .sc-panel.is-active,
  .sec-grid,
  .org-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .toggle-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .bento,
  .proto-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .org-facts > div {
    flex-direction: column;
    gap: 4px;
  }

  .org-facts dd {
    text-align: left;
  }
}
