:root {
  --ink: #e8ecea;
  --muted: #9da7a2;
  --graphite: #0d1110;
  --panel: #141a18;
  --panel-2: #1a211f;
  --line: #2c3833;
  --green: #8bf5b2;
  --green-strong: #48d983;
  --green-dark: #173e29;
  --gray: #cfd6d2;
  --amber: #e4ba70;
  --danger: #ef9c8f;
  --shadow: 0 22px 60px rgb(0 0 0 / 28%);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% -10%, rgb(72 217 131 / 10%), transparent 32rem),
    linear-gradient(180deg, #0b0f0e, var(--graphite) 38rem);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--green);
  color: #07120b;
  font-weight: 800;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(139 245 178 / 15%);
  background: rgb(10 14 13 / 88%);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--green-strong);
  border-radius: 9px;
  box-shadow: inset 0 0 0 5px var(--green-dark);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  place-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.nav a {
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--green);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
}

.header-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

main {
  min-height: 70vh;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  width: min(calc(100% - 2rem), 1320px);
  min-height: 650px;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  width: 22px;
  height: 1px;
  background: var(--green);
  content: "";
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #f2f5f3;
  font-weight: 780;
  line-height: 1.2;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.55rem, 6vw, 5.4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.hero-lead {
  max-width: 650px;
  color: var(--gray);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0.65rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-strong);
  border-radius: 10px;
  background: var(--green);
  color: #07130c;
  font-weight: 800;
}

.button:hover {
  background: #b1ffc9;
  color: #07130c;
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--gray);
}

.button.secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: -18px;
  border: 1px solid rgb(139 245 178 / 14%);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgb(139 245 178 / 5%) 1px, transparent 1px),
    linear-gradient(rgb(139 245 178 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  transform: rotate(-1.2deg);
}

.hero-visual img {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.visual-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background: rgb(7 12 10 / 82%);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.trust-strip {
  display: grid;
  width: min(calc(100% - 2rem), var(--max));
  margin: -0.5rem auto 5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  min-height: 112px;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section + .section {
  border-top: 1px solid rgb(255 255 255 / 6%);
}

.section-head {
  display: flex;
  margin-bottom: 2rem;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
}

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

.card {
  display: flex;
  min-height: 220px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(139 245 178 / 4%), transparent 48%),
    var(--panel);
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease;
}

a.card:hover {
  border-color: rgb(139 245 178 / 60%);
  color: inherit;
  transform: translateY(-3px);
}

.card-index {
  margin-bottom: 2rem;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-footer {
  display: flex;
  margin-top: auto;
  padding-top: 1.2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080c0b;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  min-height: 44px;
  padding: 0 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
}

.terminal-bar::before {
  margin-right: 0.8rem;
  color: var(--danger);
  content: "●  ●  ●";
  letter-spacing: 0.3em;
}

.terminal pre {
  overflow-x: auto;
  margin: 0;
  padding: 1.5rem;
  color: var(--gray);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.8;
  white-space: pre-wrap;
}

.token-key {
  color: var(--green);
}

.token-value {
  color: var(--amber);
}

.explainer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
}

.steps {
  display: grid;
  gap: 0.8rem;
}

.step {
  display: grid;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  grid-template-columns: 42px 1fr;
  gap: 1rem;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--green-dark);
  border-radius: 9px;
  background: var(--green-dark);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  place-items: center;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.notice {
  padding: 1.25rem 1.4rem;
  border: 1px solid rgb(228 186 112 / 35%);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  background: rgb(228 186 112 / 6%);
  color: var(--gray);
}

.notice strong {
  color: var(--amber);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

details {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 730;
}

details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quote {
  margin: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.quote p {
  margin-top: 0;
  color: var(--gray);
}

.quote figcaption {
  color: var(--muted);
  font-size: 0.8rem;
}

.page-hero {
  padding: 5.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.page-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
}

.breadcrumb span {
  color: #5f6b65;
}

.listing-meta {
  display: flex;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  padding: 0.32rem 0.65rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}

a.chip:hover {
  border-color: var(--green);
}

.article-shell {
  display: grid;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 4rem 0 7rem;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.article-body {
  font-size: 1.04rem;
}

.article-body > p:first-of-type {
  color: var(--gray);
  font-size: 1.18rem;
}

.article-body h2 {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.65rem;
}

.article-body h3 {
  margin-top: 2rem;
}

.article-body p,
.article-body li {
  color: #bdc6c1;
}

.article-body li + li {
  margin-top: 0.55rem;
}

.article-body code {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 100px;
}

.aside-box {
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.aside-box h2 {
  font-size: 1rem;
}

.aside-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--panel-2);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.data-table td {
  color: var(--gray);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metric {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.metric strong {
  display: block;
  color: var(--green);
  font-size: 1.35rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #080b0a;
}

.footer-grid {
  display: grid;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 3.5rem 0;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-grid h2 {
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  display: flex;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.25rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: #78817d;
  font-size: 0.75rem;
}

.empty-state {
  padding: 3rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 0;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 760px;
  }

  .trust-strip,
  .grid,
  .quotes {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .explainer,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-status {
    display: none;
  }

  .hero {
    width: min(calc(100% - 1.25rem), 1320px);
    padding: 3.5rem 0;
  }

  .container,
  .trust-strip,
  .article-shell {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .trust-strip,
  .grid,
  .quotes,
  .metric-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 3.5rem 0 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
