:root {
  --ink: #08140f;
  --forest: #0d1d16;
  --panel: #12261c;
  --panel-2: #173024;
  --paper: #eef7f1;
  --paper-2: #dceee3;
  --line: #1e3d2e;
  --line-soft: #2a5340;
  --mint: #9af3bc;
  --emerald: #1f9d5a;
  --glow: #2ee07a;
  --amber: #e3a008;
  --amber-bg: #2a210c;
  --danger: #d6453d;
  --danger-bg: #2a1210;
  --text: #e8f6ee;
  --muted: #8eae9c;
  --ink-text: #102018;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --wrap: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.allow-motion {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(46, 224, 122, 0.12), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(227, 160, 8, 0.06), transparent 50%),
    linear-gradient(180deg, var(--ink), var(--forest) 28%, #0a1611);
  line-height: 1.65;
}

body.nav-lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #c8ffdc;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 0.5rem 0.8rem;
  background: var(--paper);
  color: var(--ink-text);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gate-bar {
  background: #07110d;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.gate-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.gate-bar b {
  color: var(--mint);
  font-weight: 700;
}

.vault-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 20, 15, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.vault-head.is-pinned {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand-seal {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-seal img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--emerald);
  box-shadow: 0 0 0 3px rgba(31, 157, 90, 0.18);
}

.brand-seal span {
  display: flex;
  flex-direction: column;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand-seal small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.72rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(46, 224, 122, 0.1);
  color: var(--mint);
}

.site-nav a.cta {
  background: linear-gradient(180deg, #2ee07a, #1a8c50);
  color: #06210f;
  font-weight: 750;
  margin-left: 0.2rem;
  box-shadow: 0 8px 18px rgba(31, 157, 90, 0.28);
}

.site-nav a.cta:hover {
  color: #03150a;
  filter: brightness(1.05);
}

.shield-mark {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(18, 38, 28, 0.8);
  color: var(--muted);
  font-size: 0.78rem;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.chip.is-on {
  color: #06210f;
  background: var(--mint);
  border-color: var(--mint);
  font-weight: 700;
}

.chip svg {
  width: 13px;
  height: 13px;
}

h1,
h2,
h3 {
  line-height: 1.22;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.08rem;
}

.lead {
  color: #c7ddd1;
  font-size: 1.05rem;
  max-width: 62ch;
}

p {
  margin: 0 0 0.85rem;
}

section {
  padding: 4.2rem 0;
}

.hero-gate {
  position: relative;
  padding-top: 2.6rem;
  overflow: hidden;
}

.hero-gate::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -60px;
  background:
    radial-gradient(circle at 50% 42%, rgba(46, 224, 122, 0.16), transparent 58%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.4rem;
  align-items: center;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.3rem 0 1.6rem;
}

.btn-go,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}

.btn-go {
  background: linear-gradient(180deg, #39e887, #178a4d);
  color: #052110;
  box-shadow: 0 10px 22px rgba(31, 157, 90, 0.32);
}

.btn-go:hover {
  color: #03150a;
}

.btn-ghost {
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: rgba(18, 38, 28, 0.55);
}

.btn-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-seal {
  border: 1px dashed var(--line-soft);
  background: rgba(18, 38, 28, 0.7);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}

.metric-seal strong {
  display: block;
  color: var(--mint);
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.metric-seal span {
  color: var(--muted);
  font-size: 0.82rem;
}

.stamp-frame {
  position: relative;
  background:
    linear-gradient(180deg, rgba(238, 247, 241, 0.04), transparent 30%),
    var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.stamp-frame img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 880 / 700;
  object-fit: cover;
}

.stamp-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.65rem 0.2rem 0.15rem;
}

.seal-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 20, 15, 0.78);
  border: 2px dashed var(--glow);
  color: var(--mint);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 800;
}

html.allow-motion .seal-badge {
  animation: pulse-seal 3.6s ease-in-out infinite;
}

@keyframes pulse-seal {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 224, 122, 0.18);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(46, 224, 122, 0);
  }
}

.head {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.head p {
  max-width: 46ch;
  color: var(--muted);
  margin: 0;
}

.grid-4,
.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-tile,
.feat-card,
.plat-card,
.note-card,
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  min-height: 100%;
}

.entry-tile {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.entry-tile:hover {
  border-color: var(--emerald);
  color: inherit;
}

.entry-tile .meta,
.idx {
  display: inline-flex;
  align-items: center;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.feat-card h3,
.plat-card h3,
.entry-tile h3,
.note-card h3,
.step-card h3 {
  margin-bottom: 0.45rem;
}

.feat-card p,
.plat-card p,
.entry-tile p,
.note-card p,
.step-card p,
.feat-card ul,
.note-card ul {
  color: #c3d8cb;
  margin-bottom: 0;
}

.icon-seal {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(46, 224, 122, 0.1);
  border: 1px solid var(--line-soft);
  margin-bottom: 0.75rem;
  color: var(--mint);
}

.icon-seal svg {
  width: 22px;
  height: 22px;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

.checks {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  color: #c7ddd1;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: inset 0 0 0 2px #06210f;
}

.risk-mod,
.warn-mod {
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  border: 1px solid transparent;
}

.risk-mod {
  background: var(--danger-bg);
  border-color: rgba(214, 69, 61, 0.4);
}

.warn-mod {
  background: var(--amber-bg);
  border-color: rgba(227, 160, 8, 0.4);
}

.risk-mod h3,
.warn-mod h3 {
  color: #ffd2cf;
}

.warn-mod h3 {
  color: #ffe7a8;
}

.risk-mod p,
.warn-mod p {
  color: #f1d8d5;
  margin: 0;
}

.warn-mod p {
  color: #f4e6c2;
}

.desk {
  background: #07130e;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 1.2rem;
}

.desk-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.desk-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.slot {
  border: 1px dashed #3d6a50;
  border-radius: 14px;
  padding: 0.95rem;
  background: #0c1c15;
  min-height: 132px;
}

.slot strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--mint);
}

.slot p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.hash-ghost {
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #4e7a62;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.cmd-box {
  font-family: var(--mono);
  font-size: 0.86rem;
  background: #06110c;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: #b8e6c8;
  overflow-x: auto;
}

.page-hero {
  padding-top: 2.2rem;
  padding-bottom: 1.6rem;
}

.crumbs {
  color: var(--muted);
  font-size: 0.88rem;
}

.crumbs a {
  color: var(--muted);
}

.cues {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.cue {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.cue:hover,
.cue.is-live {
  border-color: var(--emerald);
  color: inherit;
}

.cue .n {
  display: block;
  font-family: var(--mono);
  color: var(--mint);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.cue .t {
  display: block;
  font-weight: 750;
}

.cue .h {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  color: var(--mint);
  font-size: 0.84rem;
}

tbody th {
  color: var(--text);
  font-weight: 750;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.2rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
  min-height: 52px;
  display: flex;
  align-items: center;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--mint);
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: #c3d8cb;
  padding-bottom: 0.85rem;
}

.cite {
  margin-top: 1.2rem;
  color: var(--muted);
}

[data-rise] {
  opacity: 1;
  transform: none;
}

html.allow-motion [data-rise] {
  opacity: 0;
  transform: translateY(16px);
}

html.allow-motion [data-rise].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.site-foot {
  background: #06110c;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.4rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 1.5rem;
}

.site-foot h3 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.site-foot p,
.site-foot li,
.site-foot a {
  color: #b7cec0;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot li {
  margin-bottom: 0.4rem;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .duo,
  .grid-4,
  .grid-3,
  .cues,
  .foot-grid,
  .slot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 72px 12px auto;
    background: #0d1f17;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 0.7rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a.cta {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .hero-grid,
  .duo,
  .grid-4,
  .grid-3,
  .grid-2,
  .cues,
  .foot-grid,
  .metric-row,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .head {
    flex-direction: column;
    align-items: start;
  }

  .gate-bar-inner,
  .legal {
    flex-direction: column;
  }

  section {
    padding: 3rem 0;
  }
}
