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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --ink-0: #08120a;
  --ink-1: #0d1a10;
  --chrome: linear-gradient(135deg, #f4fff7 0%, #a6ffb7 16%, #63e9e9 38%, #ffffff 51%, #69ff69 66%, #00ffff 86%, #d9ffe4 100%);
  --glass: rgba(23, 38, 23, 0.5);
  --line: rgba(105, 255, 105, 0.28);
  --radius: 28px;
  --pad: clamp(1rem, 4vw, 2.2rem);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Fira Sans", system-ui, -apple-system, "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #e9ffec;
  background:
    radial-gradient(900px 620px at 12% -10%, rgba(0, 255, 255, 0.2), transparent 62%),
    radial-gradient(720px 540px at 94% 2%, rgba(105, 255, 105, 0.22), transparent 64%),
    radial-gradient(1100px 720px at 48% 112%, rgba(255, 105, 180, 0.14), transparent 66%),
    var(--ink-0);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: var(--neon);
  color: #04120a;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 10px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem var(--pad) 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--chrome);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 26px rgba(0, 255, 255, 0.5);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.mark-txt {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: "Fira Code", monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: #08170b;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem clamp(0.5rem, 3vw, 1.4rem);
  background: linear-gradient(180deg, rgba(7, 17, 9, 0.94), rgba(7, 17, 9, 0.74));
  border-block: 1px solid var(--line);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.bar a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  color: #c8ffd3;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 14px;
}

.bar a:hover,
.bar a:focus-visible {
  color: #04120a;
  background: var(--neon);
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(105, 255, 105, 0.65);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 45vh;
  padding: clamp(1.3rem, 5vw, 2.4rem) var(--pad) clamp(2rem, 6vw, 3.2rem);
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffffff, rgba(0, 255, 255, 0.6) 46%, rgba(105, 255, 105, 0.1) 72%);
  opacity: 0.7;
  pointer-events: none;
}

.hero::before {
  width: 46px;
  height: 46px;
  top: 10%;
  left: 4%;
}

.hero::after {
  width: 22px;
  height: 22px;
  bottom: 22%;
  right: 6%;
}

.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-family: "Fira Code", monospace;
  font-weight: 700;
  font-size: clamp(1.95rem, 7.4vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.45));
}

.hero-lead {
  margin: 0 auto;
  max-width: 58ch;
  font-size: 1rem;
  color: #b8f4c6;
}

.hero-fig {
  position: relative;
  width: min(100%, 740px);
  margin: 0.4rem auto 0;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--chrome);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.55), 0 0 44px rgba(0, 255, 255, 0.24);
}

.hero-fig img {
  display: block;
  width: 100%;
  max-height: 46vh;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
}

.hero-fig::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 22px;
  background: linear-gradient(158deg, rgba(0, 255, 255, 0.18), transparent 46%, rgba(255, 105, 180, 0.16));
  pointer-events: none;
}

.band {
  height: 26px;
  margin-bottom: -1px;
  background: linear-gradient(90deg, #69ff69, #00ffff 44%, #ffffff 60%, #69ff69);
  clip-path: polygon(0 0, 100% 0, 100% 52%, 0 100%);
  box-shadow: 0 0 32px rgba(105, 255, 105, 0.55);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 2.8rem) var(--pad) clamp(2rem, 6vw, 3.4rem);
}

.board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.paper {
  min-width: 0;
}

.paper > article {
  position: relative;
  margin-bottom: 1.4rem;
  padding: clamp(1.1rem, 3.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  scroll-margin-top: 96px;
}

.paper > article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--chrome);
  opacity: 0.8;
}

.paper > article:last-child {
  margin-bottom: 0;
}

.paper h2,
.rail h2 {
  margin: 0;
  font-family: "Fira Code", monospace;
  font-size: clamp(1.2rem, 3.4vw, 1.62rem);
  line-height: 1.34;
  color: #ecfff1;
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.5);
}

.paper h3 {
  margin: 1.3rem 0 0;
  font-family: "Fira Code", monospace;
  font-size: 1.08rem;
  line-height: 1.4;
  color: #c9ffd6;
}

.paper h2 + hr,
.paper h3 + hr,
.rail h2 + hr {
  height: 0;
  margin: 0.6rem 0 1.1rem;
  border: 0;
  border-top: 1px dashed rgba(0, 255, 255, 0.55);
}

.paper hr {
  height: 0;
  border: 0;
  border-top: 1px dashed rgba(105, 255, 105, 0.32);
  margin: 1.2rem 0;
}

.paper p {
  margin: 0 0 1rem;
}

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

.paper a {
  color: var(--neon);
  text-underline-offset: 3px;
}

.paper strong {
  color: #ffffff;
}

.paper ul,
.paper ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.paper li {
  margin: 0.35rem 0;
}

.paper img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 18px;
}

.paper blockquote {
  margin: 1.1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 16px 16px 0;
  background: rgba(0, 255, 255, 0.08);
}

.paper figure {
  margin: 1.1rem 0;
}

.paper figcaption {
  font-size: 0.86rem;
  color: #9dcaa6;
  font-family: "Fira Code", monospace;
}

.rail {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 20, 11, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.rail h2 {
  font-size: 1rem;
}

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

.rail li + li {
  border-top: 1px solid rgba(105, 255, 105, 0.14);
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.3rem;
  text-decoration: none;
  color: #bdf7c8;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  border-radius: 10px;
}

.rail a:hover,
.rail a:focus-visible {
  color: #04120a;
  background: var(--neon);
  padding-left: 0.6rem;
}

.foot {
  margin-top: clamp(1rem, 4vw, 2rem);
  padding: clamp(1.8rem, 6vw, 3rem) var(--pad) 1.4rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 22, 12, 0.88), rgba(5, 11, 7, 0.99));
}

.foot-mark {
  margin-bottom: 1.5rem;
  font-family: "Fira Code", monospace;
  font-weight: 700;
  font-size: clamp(2.3rem, 12.5vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  word-break: break-all;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 255, 255, 0.32));
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.foot-nav dl {
  margin: 0;
}

.foot-nav dt {
  margin-bottom: 0.4rem;
  color: var(--cyan);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.foot-nav dd {
  margin: 0;
}

.foot-nav dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0;
  color: #d6ffdf;
  font-size: 0.95rem;
  text-decoration: none;
}

.foot-nav dd a:hover,
.foot-nav dd a:focus-visible {
  color: #04120a;
  background: var(--neon);
  border-radius: 8px;
  padding-inline: 0.4rem;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(105, 255, 105, 0.25);
  font-size: 0.88rem;
  color: #9dcaa6;
}

.foot-base p {
  margin: 0;
}

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 0.3rem;
  color: var(--neon);
  text-decoration: none;
}

.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (min-width: 960px) {
  .board {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

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

@media (max-width: 520px) {
  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .hero::before {
    width: 30px;
    height: 30px;
  }

  .hero::after {
    width: 16px;
    height: 16px;
  }
}

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

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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