@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap');

:root{
  --ink:#172617;
  --ink-deep:#0b150c;
  --neon:#69ff69;
  --cyan:#00ffff;
  --pink:#ff69b4;
  --edge:rgba(105,255,105,.34);
  --r:28px;
  --chrome:linear-gradient(180deg,#ffffff 0%,#d6f7de 22%,#a9cdb4 40%,#5f7f66 52%,#e9fff0 64%,#9dc4a8 100%);
  --font:"Kalam","Patrick Hand","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  background:var(--ink);
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.75;
  color:#e9ffe9;
  overflow-x:hidden;
  overflow-wrap:anywhere;
  background:
    radial-gradient(1100px 560px at 10% -8%, rgba(0,255,255,.20), transparent 62%),
    radial-gradient(880px 640px at 94% 2%, rgba(105,255,105,.22), transparent 60%),
    radial-gradient(720px 520px at 50% 108%, rgba(255,105,180,.16), transparent 66%),
    var(--ink);
}

a{color:var(--cyan)}
img{max-width:100%;height:auto}

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

.ticker{
  padding:9px 14px;
  text-align:center;
  font-size:16px;
  letter-spacing:.34em;
  color:#d8ffe0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  border-bottom:1px solid rgba(105,255,105,.28);
  background:linear-gradient(90deg, rgba(105,255,105,.16), rgba(0,255,255,.18) 50%, rgba(255,105,180,.16));
  text-shadow:0 0 10px rgba(105,255,105,.65);
}

.bar{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:60px;
  padding:8px clamp(13px,4vw,40px);
  border-bottom:1px solid var(--edge);
  background:rgba(11,21,12,.88);
  backdrop-filter:blur(10px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  color:inherit;
}

.mark{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 0 0 2px rgba(105,255,105,.55), 0 0 18px rgba(0,255,255,.5);
}

.mark.dot{
  background:radial-gradient(circle at 34% 28%, #ffffff, var(--neon) 46%, #0a3a2b 100%);
}

.brand-name{
  font-size:19px;
  font-weight:700;
  letter-spacing:.05em;
  background:var(--chrome);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.65));
}

.drawer{position:relative}

.drawer summary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 18px;
  list-style:none;
  cursor:pointer;
  font-size:17px;
  letter-spacing:.2em;
  color:#0a1b0d;
  border:1px solid #d5ffdd;
  border-radius:999px;
  background:linear-gradient(180deg,#f2fff6,#afffbd 44%,#38d94f 58%,#c4ffd0);
  box-shadow:inset 0 1px 0 #ffffff, 0 0 16px rgba(105,255,105,.55);
  transition:box-shadow .18s ease, transform .18s ease;
}

.drawer summary::-webkit-details-marker{display:none}
.drawer summary::after{
  content:"";
  width:16px;
  height:11px;
  background:repeating-linear-gradient(#0d2c16 0 2px, transparent 2px 5px);
}

.drawer summary:hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 #ffffff, 0 0 24px rgba(0,255,255,.6)}

.drawer menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:min(84vw,320px);
  max-height:min(72vh,520px);
  overflow:auto;
  margin:0;
  padding:10px;
  list-style:none;
  border:1px solid rgba(0,255,255,.5);
  border-radius:24px;
  background:linear-gradient(160deg, rgba(23,38,23,.98), rgba(9,18,10,.98));
  box-shadow:0 24px 60px rgba(0,0,0,.62), 0 0 26px rgba(0,255,255,.28), inset 0 1px 0 rgba(255,255,255,.14);
}

.drawer menu a{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:8px 14px;
  border-radius:16px;
  font-size:17px;
  color:#d9ffdf;
  text-decoration:none;
}

.drawer menu a:hover,
.drawer menu a:focus-visible{
  color:#ffffff;
  background:rgba(105,255,105,.16);
  box-shadow:inset 0 0 0 1px rgba(105,255,105,.6);
}

.rail{
  position:sticky;
  top:60px;
  z-index:35;
  border-bottom:1px solid rgba(0,255,255,.26);
  background:rgba(9,17,10,.9);
  backdrop-filter:blur(8px);
}

.rail ul{
  display:flex;
  gap:8px;
  margin:0;
  padding:8px clamp(12px,3vw,28px);
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}

.rail ul::-webkit-scrollbar{display:none}

.rail a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 14px;
  white-space:nowrap;
  font-size:16px;
  color:#c9ffd6;
  text-decoration:none;
  border:1px solid rgba(105,255,105,.36);
  border-radius:999px;
  background:rgba(105,255,105,.08);
  transition:color .16s ease, box-shadow .16s ease, background .16s ease;
}

.rail a:hover{
  color:#ffffff;
  background:rgba(0,255,255,.16);
  box-shadow:0 0 16px rgba(0,255,255,.45), inset 0 0 0 1px rgba(0,255,255,.6);
}

.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 238px;
  align-items:start;
  gap:clamp(16px,3vw,38px);
  max-width:1180px;
  margin:0 auto;
  padding:clamp(14px,3vw,30px) clamp(13px,4vw,40px) 54px;
}

.hero{
  position:relative;
  display:grid;
  grid-template-rows:1fr auto;
  place-items:center;
  gap:24px;
  min-height:100svh;
  margin-bottom:clamp(18px,4vw,32px);
  padding:clamp(22px,6vw,52px);
  overflow:hidden;
  text-align:center;
  border:1px solid rgba(0,255,255,.34);
  border-radius:40px;
  background:
    radial-gradient(70% 56% at 50% 6%, rgba(0,255,255,.22), transparent 70%),
    radial-gradient(64% 52% at 18% 92%, rgba(255,105,180,.22), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.30));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 30px 80px rgba(0,0,0,.45);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.4;
  background-image:
    radial-gradient(#ffffff 1.2px, transparent 1.4px),
    radial-gradient(#69ff69 1.5px, transparent 1.7px);
  background-size:118px 118px, 184px 184px;
  background-position:22px 34px, 84px 96px;
}

.hero-copy{position:relative;z-index:1}

.hero h1{
  margin:0 0 22px;
  font-size:clamp(2.05rem,8.4vw,4.7rem);
  line-height:1.12;
  letter-spacing:.02em;
  color:#f4fff7;
  text-shadow:0 0 6px rgba(105,255,105,.9), 0 0 26px rgba(105,255,105,.55), 0 0 62px rgba(0,255,255,.45);
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 34px;
  font-size:18px;
  letter-spacing:.14em;
  color:#08190e;
  text-decoration:none;
  border:1px solid #eafff1;
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#c2ffcd 40%,#2ddd4a 60%,#cbffd5);
  box-shadow:0 10px 30px rgba(105,255,105,.4), inset 0 1px 0 #ffffff, inset 0 -6px 14px rgba(0,120,45,.35);
  transition:transform .18s ease, box-shadow .18s ease;
}

.cta:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 16px 40px rgba(0,255,255,.5), inset 0 1px 0 #ffffff}

.hero-art{position:relative;z-index:1;width:100%;max-width:620px}
.hero-art:empty{display:none}

.hero-art img{
  width:100%;
  border:1px solid rgba(0,255,255,.45);
  border-radius:28px;
  box-shadow:0 22px 60px rgba(0,0,0,.55), 0 0 30px rgba(0,255,255,.22);
}

.lede{
  margin:0 0 clamp(16px,3vw,26px);
  padding:clamp(18px,4vw,32px);
  border:1px solid rgba(0,255,255,.28);
  border-radius:var(--r);
  background:linear-gradient(150deg, rgba(0,255,255,.11), rgba(105,255,105,.06));
}

.lede h2{
  margin:0 0 8px;
  font-size:clamp(1.35rem,4.6vw,1.9rem);
  line-height:1.3;
  color:#dafff1;
  text-shadow:0 0 16px rgba(0,255,255,.5);
}

.subtitle{margin:0;color:#bdf3cc;font-size:17px;line-height:1.7}

.body > section{
  position:relative;
  margin:0 0 clamp(15px,3vw,24px);
  padding:clamp(20px,4.5vw,36px);
  border:1px solid var(--edge);
  border-radius:var(--r);
  background:linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.032) 44%, rgba(0,0,0,.26));
  box-shadow:0 18px 46px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.18);
  scroll-margin-top:140px;
  animation:rise .55s ease both;
}

.body > section::after{
  content:"";
  position:absolute;
  top:14px;
  right:18px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--pink);
  box-shadow:0 0 14px var(--pink), 10px 8px 0 -2px var(--cyan), 10px 8px 12px -2px var(--cyan);
}

.body > section:nth-of-type(2){animation-delay:.05s}
.body > section:nth-of-type(3){animation-delay:.1s}
.body > section:nth-of-type(4){animation-delay:.15s}
.body > section:nth-of-type(5){animation-delay:.2s}
.body > section:nth-of-type(6){animation-delay:.25s}
.body > section:nth-of-type(7){animation-delay:.3s}

.body h2{
  margin:0 0 14px;
  font-size:clamp(1.28rem,4vw,1.72rem);
  line-height:1.36;
  color:#edfff3;
  text-shadow:0 0 14px rgba(105,255,105,.45);
}

.body h2::after{
  content:"";
  display:block;
  width:58px;
  height:3px;
  margin-top:10px;
  border-radius:2px;
  background:linear-gradient(90deg, var(--neon), var(--cyan));
}

.body h3{margin:22px 0 8px;font-size:1.12rem;color:#b9ffd1}
.body p{margin:0 0 1em}
.body p:last-child{margin-bottom:0}
.body ul,.body ol{margin:0 0 1em;padding-left:1.35em}
.body li{margin:.32em 0}
.body strong{color:#ffffff}

.body a{
  color:var(--cyan);
  text-decoration:underline;
  text-underline-offset:4px;
}

.body blockquote{
  margin:18px 0;
  padding:14px 18px;
  color:#d7ffe0;
  border-left:3px solid var(--neon);
  border-radius:0 18px 18px 0;
  background:rgba(105,255,105,.08);
}

.body img{
  max-width:100%;
  margin:10px 0;
  border:1px solid rgba(0,255,255,.3);
  border-radius:20px;
}

.body table{
  width:100%;
  max-width:100%;
  border-collapse:collapse;
  font-size:16px;
}

.body th,.body td{
  padding:8px 10px;
  border:1px solid rgba(105,255,105,.28);
  text-align:left;
}

.toc{
  position:sticky;
  top:132px;
  padding:18px;
  border:1px solid rgba(0,255,255,.32);
  border-radius:24px;
  background:linear-gradient(170deg, rgba(0,255,255,.14), rgba(18,36,22,.92));
  box-shadow:0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.16);
}

.toc-t{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:.32em;
  color:#9dffe1;
}

.toc ol{margin:0;padding-left:1.35em;display:grid;gap:2px}

.toc li{
  animation:rise .5s ease both;
}

.toc li:nth-child(2){animation-delay:.05s}
.toc li:nth-child(3){animation-delay:.1s}
.toc li:nth-child(4){animation-delay:.15s}
.toc li:nth-child(5){animation-delay:.2s}
.toc li:nth-child(6){animation-delay:.25s}
.toc li:nth-child(7){animation-delay:.3s}

.toc a{
  display:block;
  min-height:40px;
  padding:6px 4px;
  font-size:16px;
  color:#d9ffe5;
  text-decoration:none;
}

.toc a:hover{color:#ffffff;text-shadow:0 0 12px var(--neon)}

.foot{
  display:grid;
  grid-template-columns:1.25fr 1fr .8fr;
  gap:clamp(16px,3vw,30px);
  padding:clamp(28px,5vw,54px) clamp(15px,4vw,46px) 18px;
  border-top:1px solid var(--edge);
  background:linear-gradient(180deg, rgba(0,255,255,.08), rgba(8,16,9,.92) 42%);
}

.f-big{
  margin:0;
  font-size:clamp(2.1rem,7.6vw,3.8rem);
  line-height:1;
  letter-spacing:.03em;
  background:var(--chrome);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 16px rgba(105,255,105,.38));
}

.f-t{margin:0 0 10px;font-size:16px;letter-spacing:.32em;color:#8fffc5}

.f-nav ul{display:grid;gap:2px;margin:0;padding:0;list-style:none}

.f-nav a,
.to-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 6px;
  font-size:16px;
  color:#d9ffe5;
  text-decoration:none;
}

.f-nav a:hover,
.to-top:hover{color:#ffffff;text-shadow:0 0 12px var(--cyan)}

.copy{
  grid-column:1/-1;
  margin:14px 0 0;
  padding-top:12px;
  font-size:16px;
  text-align:center;
  color:#9fc9a9;
  border-top:1px dashed rgba(105,255,105,.3);
}

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

@media (max-width:980px){
  .stage{grid-template-columns:minmax(0,1fr)}
  .toc{position:static;order:2}
  .toc ol{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot{grid-template-columns:1fr 1fr}
  .f-brand{grid-column:1/-1}
  .hero{border-radius:28px}
}

@media (max-width:700px){
  body{font-size:17px}
  .hero{min-height:84svh}
  .brand-name{font-size:17px}
  .rail a{font-size:16px}
}

@media (max-width:520px){
  .toc ol{grid-template-columns:minmax(0,1fr)}
  .foot{grid-template-columns:minmax(0,1fr)}
  .f-brand{grid-column:auto}
  .ticker{letter-spacing:.22em}
  .drawer menu{width:min(88vw,300px)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation:none !important;
    transition:none !important;
  }
}

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