@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --ink: #ffffff;
  --neon: #00ff80;
  --blue: #0000ff;
  --line: #1f1f1f;
  --card: #070707;
  --mute: #b9b9b9;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
  font-weight: 500;
}

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

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

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

p { margin: 0 0 1em; }

.strip {
  margin: 0;
  background: var(--neon);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-align: center;
  padding: 7px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 3px solid var(--neon);
}

.head nav {
  display: flex;
  align-items: stretch;
  gap: 6px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 10px;
}

.menu {
  display: flex;
  flex: 1 1 0;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

.menu.right { justify-content: flex-end; }

.menu a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: -3px;
  border-bottom: 3px solid transparent;
}

.menu a:hover,
.menu a:focus-visible {
  background: var(--neon);
  color: #000;
  border-bottom-color: var(--blue);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon);
  white-space: nowrap;
}

.brand:hover { background: var(--blue); color: #fff; }

.head.slim .brand { font-size: 17px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: 90px 20px 130px;
  background: #000;
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.35) brightness(0.8);
  opacity: 0.4;
}

.hero-ghost {
  position: absolute;
  top: 8%;
  left: -1%;
  z-index: 1;
  font-size: clamp(3.2rem, 17vw, 15rem);
  line-height: 0.82;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--neon);
  opacity: 0.45;
  white-space: nowrap;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 7.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 4px 4px 0 rgba(0, 0, 255, 0.85);
}

.lede {
  max-width: 40ch;
  margin: 0 0 26px;
  padding-left: 14px;
  border-left: 5px solid var(--neon);
  color: #d8d8d8;
  font-size: 17px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 24px;
  background: var(--blue);
  color: #fff;
  border: 3px solid var(--neon);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
}

.cta:hover,
.cta:focus-visible {
  background: var(--neon);
  color: #000;
}

.hero-slash {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 42%;
  height: 8px;
  background: var(--blue);
  transform: skewY(-2.2deg);
  transform-origin: right bottom;
}

.layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: 56px 20px 0;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

section { min-width: 0; }

.rail {
  position: sticky;
  top: 78px;
  border: 3px solid var(--neon);
  background: #050505;
  padding: 16px 16px 20px;
}

.rail small {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--neon);
}

.rail h2 {
  margin: 4px 0 12px;
  font-size: 23px;
  letter-spacing: 0.06em;
  border: 0;
  padding: 0;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list li:first-child a { border-top: 1px solid var(--line); }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
}

.rail-list a span {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.08em;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--neon);
  color: #000;
  padding-left: 8px;
}

.rail-list a:hover span { color: #0000ff; }

.body > article {
  background: var(--card);
  border: 2px solid #262626;
  border-radius: 10px;
  box-shadow: 10px 10px 0 rgba(0, 255, 128, 0.16);
  padding: 28px 26px 30px;
  margin: 0 0 36px;
  scroll-margin-top: 120px;
}

.body > article:nth-child(even) { box-shadow: 10px 10px 0 rgba(0, 0, 255, 0.55); }

.body h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  border-bottom: 3px solid var(--neon);
  padding-bottom: 10px;
}

.body h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  color: var(--neon);
  letter-spacing: 0.02em;
}

.body p { color: #dedede; }

.body ul,
.body ol { padding-left: 22px; margin: 0 0 1em; }

.body li { margin-bottom: 8px; }

.body a {
  color: var(--neon);
  border-bottom: 2px solid var(--blue);
}

.body a:hover { background: var(--neon); color: #000; }

.body img { border: 2px solid #333; margin: 18px 0; }

.body blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  background: #0a0a22;
  border-left: 6px solid var(--blue);
  color: #cfcfcf;
}

.body blockquote p:last-child { margin-bottom: 0; }

.body strong { color: #fff; }

.body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: #141414;
  border: 1px solid #2a2a2a;
  padding: 1px 5px;
  font-size: 15px;
}

.foot {
  margin-top: 74px;
  background: #050505;
  border-top: 4px solid var(--neon);
  padding: 44px 20px 0;
}

.foot-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
  padding-bottom: 32px;
  align-items: start;
}

.foot-brand .brand {
  justify-content: flex-start;
  padding: 0;
  min-height: 40px;
  font-size: 20px;
  border-bottom: 3px solid var(--blue);
  display: inline-flex;
}

.foot dl { margin: 0; }

.foot dt {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--neon);
  border-bottom: 2px solid #232323;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.foot dd { margin: 0; }

.foot dd a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 16px;
  color: var(--mute);
}

.foot dd a:hover,
.foot dd a:focus-visible {
  color: #000;
  background: var(--neon);
  padding-left: 8px;
}

.copy {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px 0 28px;
  border-top: 1px solid #1c1c1c;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #8c8c8c;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.28s steps(4, end) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }

  .rail-list li { animation: rise 0.26s steps(4, end) both; animation-delay: calc(var(--i, 0) * 55ms); }

  .body > article { animation: rise 0.3s steps(4, end) both; }
  .body > article:nth-child(1) { animation-delay: 0.03s; }
  .body > article:nth-child(2) { animation-delay: 0.09s; }
  .body > article:nth-child(3) { animation-delay: 0.15s; }
  .body > article:nth-child(4) { animation-delay: 0.21s; }
  .body > article:nth-child(5) { animation-delay: 0.27s; }
  .body > article:nth-child(6) { animation-delay: 0.33s; }
  .body > article:nth-child(7) { animation-delay: 0.39s; }
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }
  .menu a { padding: 0 7px; font-size: 15px; }
  .brand { font-size: 17px; padding: 0 10px; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 32px; gap: 30px; }
  .rail { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero { padding: 76px 18px 110px; }
}

@media (max-width: 720px) {
  .head nav { flex-wrap: wrap; padding: 0; }
  .brand {
    order: -1;
    width: 100%;
    min-height: 46px;
    border-bottom: 2px solid var(--line);
    font-size: 18px;
  }
  .menu {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0;
  }
  .menu.right { justify-content: flex-start; }
  .menu a {
    min-height: 44px;
    padding: 0 12px;
    margin-bottom: 0;
    border-bottom: 2px solid transparent;
    font-size: 16px;
  }
  .hero { min-height: 92svh; clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
  .hero-ghost { top: 5%; opacity: 0.32; }
  .body > article { padding: 22px 18px 24px; box-shadow: 7px 7px 0 rgba(0, 255, 128, 0.16); }
  .body > article:nth-child(even) { box-shadow: 7px 7px 0 rgba(0, 0, 255, 0.5); }
  .foot { padding-top: 34px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .menu a { padding: 0 10px; }
  .hero h1 { text-shadow: 3px 3px 0 rgba(0, 0, 255, 0.9); }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
}

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