:root {
  color-scheme: dark;
  --page: #090e0b;
  --surface: #111813;
  --text: #f3f6e9;
  --muted: #b1bcb2;
  --line: #2c382f;
  --accent: #d0fa50;
  --accent-ink: #151d0e;
  --gutter: clamp(1.15rem, 5.2vw, 4.5rem);
  --reading-width: 76rem;
  --text-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display-font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-family: var(--text-font);
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 0.25rem; }
::selection { color: var(--accent-ink); background: var(--accent); }

.wrap {
  width: min(var(--reading-width), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--accent-ink);
  background: var(--accent);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  border-bottom: 1px solid #b0c59e26;
  background: #0a0f0deb;
  backdrop-filter: blur(16px);
}

.site-header__inner, .site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__inner { min-height: 4.5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.brand__mark { width: 2.5rem; height: 2.5rem; }
.brand__type { display: grid; gap: 0.2rem; }
.brand__name {
  font-family: var(--display-font);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.07em;
}
.brand__latin {
  color: var(--muted);
  font: 600 0.75rem/1 "Bahnschrift", "Aptos", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.6rem); }
.site-nav a, .site-footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.9375rem;
}
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }
.site-nav a:last-child { gap: 0.52em; }
.site-nav a:last-child::before, .matrix-symbol {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  background:
    linear-gradient(currentColor, currentColor) top left / 42% 42% no-repeat,
    linear-gradient(currentColor, currentColor) top right / 42% 42% no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / 42% 42% no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / 42% 42% no-repeat;
  content: "";
}
.site-nav a:last-child::before { color: var(--accent); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #82985b48;
  background: radial-gradient(ellipse at 72% 50%, #222e1c 0, #111a14 35%, var(--page) 77%);
}

.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  min-height: clamp(33rem, 43vw, 39rem);
  padding-block: 2rem 3rem;
}

.hero__copy { position: relative; z-index: 1; }
.hero h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3.8rem, 6.4vw, 6.3rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.1;
}
.hero h1 span {
  display: block;
  color: var(--accent);
  background: linear-gradient(105deg, #edffaf, #cdfb4c 54%, #93c86a);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  max-width: 25rem;
  margin: 1.45rem 0 1.65rem;
  color: #c4cec3;
  font-size: 1.0625rem;
  line-height: 1.85;
  text-wrap: pretty;
}

.hero__cta {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.65rem 1.35rem;
  border-radius: 0.18rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 700;
}
.hero__cta:hover { background: #e4ff96; }

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 33.5rem);
  aspect-ratio: 1;
}
.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__controls {
  position: absolute;
  inset: auto 0 0.7rem;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.motion-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.9rem;
  border: 1px solid #84976c60;
  border-radius: 2rem;
  background: #0b110dec;
  color: var(--muted);
  font-size: 0.8125rem;
  cursor: pointer;
  pointer-events: auto;
}
.motion-toggle:hover { color: var(--text); border-color: var(--accent); }
.motion-icon {
  width: 0.55rem;
  height: 0.65rem;
  border-inline: 2px solid var(--accent);
}
[data-motion="paused"] .motion-icon {
  height: 0;
  border: solid transparent;
  border-width: 0.32rem 0 0.32rem 0.53rem;
  border-left-color: var(--accent);
}

h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.5vw, 3.125rem);
  line-height: 1.2;
}
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { min-height: 5.3rem; color: var(--muted); }
.footer-brand { font-size: 0.875rem; }

@media (max-width: 46rem) {
  :root { scroll-padding-top: 4rem; }
  .site-header__inner { min-height: 4rem; }
  .brand__mark { width: 2.2rem; height: 2.2rem; }
  .brand { gap: 0.45rem; }
  .site-nav a { font-size: 0.875rem; }
  .hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding-block: 2.75rem 3.6rem;
  }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.75rem); }
  .hero p { margin: 1.1rem 0 1.2rem; font-size: 1rem; }
  .hero__visual { width: min(81%, 21rem); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .motion-toggle { display: none; }
}
