@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Varela+Round&display=swap');

:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #080808;
  --panel-2: #121212;
  --line: #262626;
  --line-soft: #1a1a1a;
  --text: #ededed;
  --muted: #a0a0a0;
  --green: #a3ff5f;
  --blue: #6ec8ff;
  --gold: #ffd166;
  --purple: #c79cff;
  --radius: 18px;
  --wrap: 1160px;
  --head: "Varela Round", "Nunito Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Nunito Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(16px, 0.98rem + 0.08vw, 18px);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 10px;
}

.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;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid #121212;
  backdrop-filter: blur(16px);
}

.brandrow {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 11px 20px 9px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-family: var(--head);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid #303030;
  border-radius: 50%;
}

.brand-name {
  text-shadow: 0 0 10px rgba(163, 255, 95, 0.22);
}

.navrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 7px;
}

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

.menu::-webkit-scrollbar {
  display: none;
}

.menu-list {
  display: flex;
  gap: 3px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  color: #cfcfcf;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.menu-list a:hover,
.menu-list a[aria-current="true"] {
  color: var(--green);
  background: #0c1108;
}

.search {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.search input {
  width: clamp(92px, 13vw, 190px);
  height: 42px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0a0a0a;
  color: var(--text);
  font-size: 0.93rem;
}

.search input::placeholder {
  color: #777;
}

.search button {
  height: 42px;
  padding: 0 14px;
  border: 1px solid #34472a;
  border-radius: 999px;
  background: #10160b;
  color: var(--green);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.search button:hover {
  border-color: var(--green);
  background: #16200d;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 70vh;
  padding: 90px 20px 122px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(110, 200, 255, 0.1), transparent 34%),
    radial-gradient(circle at 82% 30%, rgba(163, 255, 95, 0.08), transparent 36%),
    #000;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%);
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(0.82) contrast(1.08);
  transform: translate3d(0, 0, 0) scale(1.07);
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.7) 55%, #000 100%),
    radial-gradient(circle at center, transparent 10%, rgba(0, 0, 0, 0.38) 78%);
}

.hero-copy {
  width: 100%;
  max-width: 950px;
}

.hero h1 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(2.2rem, 7vw, 4.7rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero-lead {
  display: -webkit-box;
  max-width: 700px;
  margin: 20px auto 0;
  overflow: hidden;
  color: #c8c8c8;
  font-size: clamp(1rem, 2.1vw, 1.14rem);
  line-height: 1.78;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-band {
  position: absolute;
  bottom: 17px;
  left: 50%;
  width: min(230px, 44vw);
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--green), var(--blue), var(--purple), transparent);
  opacity: 0.84;
  transform: translateX(-50%);
}

main {
  padding: clamp(34px, 6vw, 76px) 0 clamp(52px, 8vw, 96px);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.prose {
  min-width: 0;
  overflow-wrap: anywhere;
}

.prose > section {
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #080808, #050505);
  scroll-margin-top: 152px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

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

.prose > section:hover {
  border-color: #2d2d2d;
  background: linear-gradient(180deg, #0a0a0a, #060606);
}

.prose > section.flash {
  border-color: var(--green);
  background: #091005;
}

.prose h2 {
  margin: 0 0 15px;
  color: #fff;
  font-family: var(--head);
  font-size: clamp(1.42rem, 3vw, 2.05rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.prose h3 {
  margin: 1.65em 0 0.55em;
  color: #ededed;
  font-family: var(--head);
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.4;
}

.prose h4 {
  margin: 1.4em 0 0.45em;
  color: #fff;
  font-size: 1.02rem;
}

.prose p {
  margin: 0 0 1em;
  color: #d3d3d3;
}

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

.prose strong,
.prose b {
  color: #fff;
  font-weight: 700;
}

.prose em {
  color: var(--gold);
  font-style: normal;
}

.prose a {
  color: var(--green);
  border-bottom: 1px solid rgba(163, 255, 95, 0.35);
}

.prose a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.prose ul,
.prose ol {
  margin: 0.7em 0 1.1em;
  padding-left: 1.25em;
  color: #d0d0d0;
}

.prose li {
  margin: 0.4em 0;
}

.prose li::marker {
  color: var(--green);
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--gold);
  color: #c8c8c8;
}

.prose blockquote p {
  margin: 0;
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.3em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid #252525;
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--green);
  background: #0d1209;
  font-weight: 600;
}

.prose tr:nth-child(even) td {
  background: #090909;
}

.prose hr {
  height: 1px;
  margin: 1.8em 0;
  border: 0;
  background: #242424;
}

.prose code {
  padding: 0.12em 0.38em;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: #101010;
  color: var(--blue);
  font-size: 0.9em;
}

.prose pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid #242424;
  border-radius: 14px;
  background: #090909;
  color: #ddd;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.prose img {
  height: auto;
  margin: 1.2em 0;
  border: 1px solid #222;
  border-radius: 14px;
}

.subtitle {
  margin: 0;
  color: #8da78e;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.2em;
}

.rail {
  position: sticky;
  top: 152px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080808;
}

.rail h2 {
  margin: 0;
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
}

.rail .subtitle {
  margin: 6px 0 16px;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 12px;
  color: #bcbcbc;
  font-size: 0.93rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.rail-list a:hover {
  color: var(--green);
  background: #11160d;
}

.side-no {
  flex: 0 0 1.4em;
  color: var(--purple);
  font-family: var(--head);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.site-foot {
  padding: 0 20px 34px;
  border-top: 1px solid #151515;
  background: #000;
}

.foot-cta {
  position: relative;
  max-width: var(--wrap);
  margin: clamp(34px, 5vw, 66px) auto 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #27351f;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(163, 255, 95, 0.13), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(110, 200, 255, 0.07), transparent 40%),
    linear-gradient(135deg, #0b1008, #050505 66%);
}

.foot-cta h2 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(1.7rem, 4.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
}

.foot-cta .subtitle {
  margin: 8px 0 22px;
  color: #aec7ab;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #3e5b2c;
  border-radius: 999px;
  background: #121a0b;
  color: var(--green);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.cta-link::after {
  content: "→";
  margin-left: 10px;
}

.cta-link:hover {
  border-color: var(--green);
  background: #19240e;
  filter: brightness(1.08);
}

.foot-base {
  max-width: var(--wrap);
  margin: 26px auto 0;
}

.foot-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #161616;
}

.copyright {
  margin: 0;
  color: #777;
  font-size: 0.86rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  border-radius: 8px;
  color: #8f8f8f;
  font-size: 0.83rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.foot-links a:hover {
  color: #e4e4e4;
  background: #111;
}

.js .prose > section,
.js .rail,
.js .hero-copy {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (hover: hover) {
  .hero h1:hover {
    text-shadow: 0 0 18px rgba(163, 255, 95, 0.24);
  }
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
  }

  .hero {
    min-height: 70vh;
    padding: 80px 18px 106px;
  }

  .rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .brandrow {
    padding: 10px 16px 7px;
  }

  .navrow {
    gap: 8px;
    padding: 0 16px 7px;
  }

  .brand {
    font-size: 1.06rem;
  }

  .menu-list a {
    padding: 0 11px;
    font-size: 0.9rem;
  }

  .search {
    gap: 5px;
  }

  .search input {
    width: 93px;
    padding: 0 10px;
  }

  .search button {
    padding: 0 11px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero {
    min-height: 70vh;
    padding: 74px 16px 102px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .prose > section {
    padding: 22px 18px;
    scroll-margin-top: 145px;
  }

  .rail {
    padding: 19px 17px;
  }

  .rail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-foot {
    padding: 0 16px 28px;
  }

  .foot-cta {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .foot-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .prose > section,
  .js .rail,
  .js .hero-copy {
    opacity: 1;
    transform: none;
  }

  .hero-img {
    transform: none !important;
    will-change: auto;
  }
}

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