:root {
  color-scheme: dark;
  --bg: #06110f;
  --bg-2: #0b1917;
  --surface: #10211f;
  --surface-soft: #132a27;
  --line: rgba(139, 232, 211, 0.19);
  --line-strong: rgba(139, 232, 211, 0.42);
  --text: #edf7f3;
  --muted: #a9beb7;
  --subtle: #7f9790;
  --teal: #70e6cd;
  --mint: #a6f4d6;
  --gold: #f2b65d;
  --blue: #7eb7ff;
  --code-bg: #071513;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #081714 44%, #0b1816);
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
}

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--teal);
  color: #02110e;
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 15, 0.86);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(112, 230, 205, 0.62);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(112, 230, 205, 0.98), rgba(126, 183, 255, 0.58)),
    #0f2724;
  box-shadow: 0 0 28px rgba(112, 230, 205, 0.32);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: #06110f;
}

.brand-mark::before {
  width: 10px;
  height: 10px;
  left: 8px;
  top: 9px;
}

.brand-mark::after {
  width: 7px;
  height: 7px;
  right: 9px;
  bottom: 9px;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  letter-spacing: 0;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-links a,
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
}

.nav-links a:hover,
.github-link:hover {
  background: rgba(112, 230, 205, 0.09);
  color: var(--text);
  text-decoration: none;
}

.github-link {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  color: var(--text);
}

.page-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero {
  position: relative;
  width: 100vw;
  min-height: clamp(540px, 76vh, 720px);
  margin: -3rem calc(50% - 50vw) 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #071411 url("../img/dotvector-hero.png") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 17, 15, 0.96) 0%, rgba(6, 17, 15, 0.82) 39%, rgba(6, 17, 15, 0.36) 72%, rgba(6, 17, 15, 0.58) 100%),
    linear-gradient(180deg, rgba(6, 17, 15, 0.08), rgba(6, 17, 15, 0.8));
}

.hero-inner {
  position: relative;
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 2rem));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem) 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.94;
}

.hero-lede {
  max-width: 650px;
  margin: 1.25rem 0 0;
  color: #d3e6df;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(112, 230, 205, 0.1);
  color: var(--text);
  font-weight: 700;
}

.button.primary {
  border-color: transparent;
  background: var(--teal);
  color: #02110e;
}

.button:hover {
  background: rgba(112, 230, 205, 0.18);
  text-decoration: none;
}

.button.primary:hover {
  background: #8cf4dc;
  color: #02110e;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 660px;
  margin-top: 2rem;
}

.metric {
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 17, 15, 0.68);
}

.metric strong {
  display: block;
  color: var(--mint);
  font-size: 1.25rem;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

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

.doc-card,
.feature-card {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 33, 31, 0.92), rgba(12, 25, 23, 0.92));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.doc-card:hover {
  border-color: var(--line-strong);
  text-decoration: none;
  transform: translateY(-1px);
}

.doc-card strong,
.feature-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1.02rem;
}

.doc-card span,
.feature-card span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.feature-card {
  border-left: 3px solid rgba(242, 182, 93, 0.72);
}

.command-panel {
  margin: 1.25rem 0 2.5rem;
}

.command-panel pre {
  margin: 0;
}

.page-shell > h1:first-child {
  max-width: 850px;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.page-shell > h1:first-child + p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.22;
}

h2 {
  margin-top: 2.8rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

h3 {
  margin-top: 2rem;
  color: #dff7ee;
  font-size: 1.22rem;
}

p,
li,
td,
th {
  overflow-wrap: anywhere;
}

p {
  color: #d6e5df;
}

ul,
ol {
  padding-left: 1.45rem;
}

li + li {
  margin-top: 0.35rem;
}

strong {
  color: #f3fbf8;
}

hr {
  height: 1px;
  margin: 2.75rem 0;
  border: 0;
  background: var(--line);
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(242, 182, 93, 0.08);
  color: #ead8bc;
}

code {
  border: 1px solid rgba(139, 232, 211, 0.14);
  border-radius: 6px;
  padding: 0.12rem 0.34rem;
  background: rgba(7, 21, 19, 0.9);
  color: #a8f4df;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

pre {
  overflow: auto;
  margin: 1.1rem 0 1.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

pre code {
  border: 0;
  padding: 0;
  background: transparent;
  color: #d7fff2;
  white-space: pre;
}

pre.mermaid {
  color: #d7fff2;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 1.2rem 0 1.8rem;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 25, 22, 0.78);
}

thead {
  background: rgba(112, 230, 205, 0.1);
}

th,
td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(139, 232, 211, 0.13);
  color: #d6e5df;
  text-align: left;
  vertical-align: top;
}

th {
  color: #effbf6;
  font-weight: 700;
}

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

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
}

.site-footer p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.8rem 0;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav-links {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: 660px;
    background-position: 64% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(6, 17, 15, 0.96), rgba(6, 17, 15, 0.68)),
      linear-gradient(180deg, rgba(6, 17, 15, 0.12), rgba(6, 17, 15, 0.9));
  }

  .hero-inner {
    align-content: end;
    padding: 2rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-metrics,
  .doc-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

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

  .page-shell {
    width: min(100% - 1rem, 980px);
    padding-top: 1.25rem;
  }

  .hero {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
  }

  .hero-inner {
    width: calc(100% - 2rem);
    padding: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .brand-text small {
    display: none;
  }
}
