:root {
  color-scheme: dark;
  --bg: #0b120e;
  --bg-alt: #0e1712;
  --surface: #111d16;
  --surface-2: #16241b;
  --line: #24342a;
  --line-strong: #35493b;
  --text: #e9e4d6;
  --text-2: #a9b4a8;
  --text-3: #77857a;
  --accent: #7fb069;
  --accent-2: #a8cf94;
  --accent-ink: #0b120e;
  --clay: #c98a4b;
  --danger: #d97a6c;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1120px;
  --nav-h: 64px;
  --radius: 10px;
  --radius-sm: 6px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f2e9;
  --bg-alt: #efeade;
  --surface: #fffdf7;
  --surface-2: #f8f4ea;
  --line: #ded7c7;
  --line-strong: #c9c0ad;
  --text: #1f2a22;
  --text-2: #556357;
  --text-3: #7c877c;
  --accent: #446b46;
  --accent-2: #2f5233;
  --accent-ink: #fffdf7;
  --clay: #a8623c;
  --danger: #a94a3d;
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.text-link:hover {
  color: var(--accent-2);
}

.text-link svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

.btn:active {
  transform: translateY(1px);
}

.code-block {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13.5px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links a.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 12px;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-open {
  overflow: hidden;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 76px) 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-lede {
  max-width: 30ch;
  color: var(--text-2);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
}

.hero-lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero-ip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.ip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ip-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.copy-btn {
  min-height: 44px;
}

.copy-btn.is-copied {
  background: var(--accent-2);
  color: var(--accent-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 24px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.hero-meta span + span::before {
  content: "/";
  margin-right: 14px;
  color: var(--line-strong);
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.28));
}

html[data-theme="light"] .hero-art svg {
  filter: drop-shadow(0 24px 40px rgba(40, 60, 40, 0.12));
}

.hero-art figcaption {
  margin-top: 14px;
  text-align: right;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.status-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.status-cell {
  padding: 16px 20px;
  border-left: 1px solid var(--line);
}

.status-cell:first-child {
  border-left: 0;
}

.status-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-value {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.section {
  padding: 76px 0;
}

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

.section--tight {
  padding: 56px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section-head p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}

.section-cta {
  margin-top: 24px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}

.intro-copy p {
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.intro-copy .lead {
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
}

.fact-list {
  border-top: 1px solid var(--line-strong);
}

.fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.fact-row dt {
  color: var(--text-3);
}

.fact-row dd {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: right;
  word-break: break-word;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--accent);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
}

.feature-card p {
  flex: 1;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

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

.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.step p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.rule-list {
  border-top: 1px solid var(--line-strong);
}

.rule-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rule-item span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.rule-item p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
}

.friends {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.friends-label {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.friends-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.friends-links a {
  border-bottom: 1px solid transparent;
  color: var(--text-2);
  font-size: 13.5px;
}

.friends-links a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.friends-note {
  color: var(--text-3);
  font-size: 12px;
}

.site-footer {
  padding: 48px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 40px;
}

.footer-note {
  max-width: 32ch;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-title {
  margin-bottom: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-2);
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}

.footer-bottom a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  .anim {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .anim.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-lede {
    max-width: 36ch;
  }

  .hero-art {
    max-width: 560px;
    margin-inline: auto;
  }

  .intro-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100dvh - var(--nav-h));
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    overflow: auto;
  }

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

  .nav-links a {
    padding: 12px;
    font-size: 15px;
  }

  .nav-links a.is-active::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 60px 0;
  }

  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .status-strip {
    grid-template-columns: 1fr 1fr;
  }

  .status-cell:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .status-cell:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: calc(var(--nav-h) + 52px);
  }

  .hero h1 {
    font-size: clamp(46px, 16vw, 64px);
  }

  .ip-chip {
    width: 100%;
    justify-content: space-between;
  }

  .hero-ip .copy-btn {
    flex: 1;
  }

  .hero-actions .btn {
    flex: none;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
