@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root {
  --neon: #80ff00;
  --neon2: #00ff00;
  --ink: #1f2617;
  --void: #0b0f07;
  --card: #11160c;
  --txt: #e9ffd8;
  --dim: #9db98a;
  --dock: 66px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--txt);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock) + 14px);
  filter: saturate(115%);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--neon2);
}

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

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 90px 18px calc(var(--dock) + 74px);
  overflow: hidden;
  border-bottom: 4px solid var(--neon);
  text-align: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 255, 0, 0.16), transparent 55%),
    radial-gradient(circle at 12% 76%, rgba(128, 255, 0, 0.14), transparent 58%),
    var(--void);
}

.hero-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: clamp(58px, 21vw, 230px);
  font-weight: 900;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(128, 255, 0, 0.42);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-8deg) translate3d(0, var(--py, 0px), 0);
  animation: jit 7s ease-in-out infinite;
}

@keyframes jit {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
}

.hero-h {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 12px 20px;
  font-size: clamp(30px, 8.6vw, 64px);
  font-weight: 900;
  color: var(--ink);
  background: var(--neon);
  border: 4px solid var(--ink);
  border-radius: 18px;
  transform: rotate(-2deg);
  box-shadow: 9px 9px 0 rgba(0, 255, 0, 0.5);
  word-break: break-word;
}

.hero-fig {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  margin: 0;
  border: 4px solid var(--neon);
  border-radius: 18px;
  overflow: hidden;
  background: #0f1408;
  transform: rotate(2.6deg) translate3d(0, var(--fy, 0px), 0);
  box-shadow: 10px 10px 0 rgba(31, 38, 23, 0.9);
}

.hero-fig:empty {
  display: none;
}

.hero-fig img {
  display: block;
  width: 100%;
}

.tick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--dock) + 8px);
  z-index: 3;
  overflow: hidden;
  padding: 7px 0;
  border-top: 2px solid rgba(128, 255, 0, 0.45);
  border-bottom: 2px solid rgba(128, 255, 0, 0.45);
  background: rgba(11, 15, 7, 0.7);
}

.tick-in {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--neon);
  animation: slide 20s linear infinite;
}

.tick-in i {
  font-style: normal;
  color: var(--neon2);
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- stage ---------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.rail {
  border: 3px solid var(--neon);
  border-radius: 18px;
  background: rgba(128, 255, 0, 0.07);
  padding: 16px 14px 18px;
  transform: rotate(-1.2deg);
}

.rail-k {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--neon2);
}

.rail-h {
  font-size: 19px;
  margin: 2px 0 12px;
  color: var(--neon);
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.rail li {
  animation: stag 0.45s ease both;
  animation-delay: calc(var(--i) * 55ms);
}

@keyframes stag {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 12px;
  border-bottom: 1px dashed rgba(128, 255, 0, 0.28);
  color: var(--txt);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rail a:hover {
  background: var(--neon);
  color: var(--ink);
  border-bottom-color: var(--ink);
  transform: translateX(3px);
}

.dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon2);
  border: 1px solid var(--ink);
}

/* ---------- prose ---------- */

.prose {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.prose > div {
  padding: 22px 18px;
  border: 3px solid var(--neon);
  border-radius: 18px;
  background: var(--card);
  scroll-margin-top: 22px;
}

.prose > div:nth-child(odd) {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--ink);
  transform: rotate(-0.45deg);
}

.prose > div:nth-child(even) {
  transform: rotate(0.45deg);
}

.prose h2 {
  font-size: clamp(22px, 5.6vw, 33px);
}

.prose h3 {
  font-size: clamp(19px, 4.6vw, 24px);
}

.prose h2,
.prose h3 {
  margin-top: 0.2em;
}

.prose > div > :last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose img {
  border: 3px solid currentColor;
  border-radius: 14px;
}

.prose a {
  color: var(--neon2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose > div:nth-child(odd) a {
  color: #0a2b00;
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 8px 0 8px 14px;
  border-left: 4px solid currentColor;
  font-style: italic;
}

.prose code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92em;
}

/* ---------- footer ---------- */

.foot {
  border-top: 4px solid var(--neon);
  padding: 36px 16px 26px;
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.foot-cta {
  width: 100%;
  max-width: 760px;
  padding: 26px 18px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(120deg, var(--neon), var(--neon2));
  color: var(--ink);
  transform: rotate(-1deg);
  display: grid;
  justify-items: center;
  gap: 14px;
}

.foot-big {
  margin: 0;
  font-size: clamp(26px, 7.4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--neon);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

.foot-btn:hover {
  background: #fff;
  color: var(--ink);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: center;
}

.foot address {
  font-style: normal;
  font-weight: 800;
  color: var(--neon);
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  color: var(--txt);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot ul a:hover {
  color: var(--neon2);
  border-bottom-color: var(--neon2);
}

.foot-copy {
  margin: 0;
  font-size: 15px;
  color: var(--dim);
}

/* ---------- dock ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: var(--dock);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(11, 15, 7, 0.97);
  border-top: 3px solid var(--neon);
  backdrop-filter: blur(6px);
}

.dock-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--neon);
  border-radius: 13px;
  background: #0f1408;
  color: var(--neon);
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  transform: rotate(-6deg);
}

.dock-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-nav::-webkit-scrollbar {
  display: none;
}

.dock-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: #daffbd;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.dock-nav a:hover,
.dock-nav a.is-on {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--ink);
}

.dock-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--neon2);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

/* ---------- wide ---------- */

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }

  .stage {
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 38px;
    padding: 44px 24px 64px;
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 26px;
  }

  .prose {
    gap: 24px;
  }

  .prose > div {
    padding: 34px 30px;
  }

  .hero {
    padding-bottom: calc(var(--dock) + 96px);
  }
}

/* ---------- motion ---------- */

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

  .hero-bg,
  .tick-in,
  .rail li {
    animation: none;
  }

  .rail a:hover {
    transform: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
