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

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

:root {
  --ink: #172617;
  --ink-deep: #0d1a0d;
  --neon: #69ff69;
  --cyan: #00ffff;
  --paper: #e9ffef;
  --soft: #cfe9d6;
  --muted: #9dbfa6;
  --line: rgba(105, 255, 105, 0.26);
  --chrome: linear-gradient(180deg, #ffffff 0%, #dbffe5 28%, #69ff69 64%, #10c98d 100%);
  --r: 10px;
  --font: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--ink-deep);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 16% 6%, rgba(0, 255, 255, 0.16), transparent 44%),
    radial-gradient(circle at 86% 22%, rgba(105, 255, 105, 0.17), transparent 46%),
    radial-gradient(circle at 46% 96%, rgba(0, 255, 255, 0.11), transparent 52%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 34%, rgba(0, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 32% 74%, rgba(105, 255, 105, 0.6), transparent 60%),
    radial-gradient(2px 2px at 64% 88%, rgba(255, 255, 255, 0.4), transparent 60%);
  background-size: 340px 340px, 280px 280px, 420px 420px, 300px 300px;
  opacity: 0.55;
}

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

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

/* 顶部细条 */
.ticker {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #69ff69 0%, #00ffff 52%, #69ff69 100%);
  color: #0b1a0b;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-align: center;
  padding: 5px 12px;
  line-height: 1.5;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 8px));
}

/* 顶部栏 */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(12, 24, 12, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  background: var(--chrome);
  border: 1px solid #e2ffe9;
  box-shadow: 0 0 20px rgba(105, 255, 105, 0.55), inset 0 -4px 8px rgba(0, 90, 60, 0.35);
  overflow: hidden;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: #0a1a0a;
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.navpop {
  position: relative;
}

.navpop summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--neon);
  background: linear-gradient(180deg, rgba(105, 255, 105, 0.16), rgba(0, 255, 255, 0.08));
  color: #d8ffe4;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(105, 255, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-shadow: 0 0 10px rgba(105, 255, 105, 0.7);
}

.navpop summary::-webkit-details-marker {
  display: none;
}

.navpop summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--neon);
  border-bottom: 2px solid var(--neon);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.navpop[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.navpop menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(88vw, 440px);
  margin: 0;
  padding: 14px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 10, 0.97);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.navpop menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.34);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.12), rgba(105, 255, 105, 0.06));
  color: #d6ffe0;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.5;
}

.navpop menu a:hover,
.navpop menu a:focus-visible {
  color: #0b1a0b;
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 18px rgba(105, 255, 105, 0.6);
}

/* 首屏 */
.hero {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 8vw, 96px) clamp(14px, 4vw, 40px) clamp(38px, 6vw, 64px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  top: 12%;
  width: 42vw;
  height: 42vw;
  max-width: 460px;
  max-height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(0, 255, 255, 0.28), rgba(105, 255, 105, 0.06) 58%, transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

.hero-brand {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: 0.42em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.75);
}

.hero-title {
  position: relative;
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.5rem, 8.4vw, 6.2rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(105, 255, 105, 0.45));
  will-change: transform;
}

.hero-desc {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 17px;
  color: var(--soft);
  line-height: 1.85;
}

.hero-cut {
  margin-top: 40px;
  width: min(420px, 66%);
  height: 14px;
  border-radius: 3px;
  transform: skewX(-26deg);
  background: linear-gradient(90deg, #69ff69, #00ffff 70%, rgba(0, 255, 255, 0));
  box-shadow: 0 0 26px rgba(0, 255, 255, 0.45);
}

/* 主体 */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: start;
  gap: clamp(22px, 4vw, 54px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 40px) 64px;
}

.prose {
  min-width: 0;
  max-width: 74ch;
}

.prose > div {
  padding: clamp(26px, 4vw, 46px) clamp(0px, 1.2vw, 16px);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r);
  scroll-margin-top: 100px;
  background: linear-gradient(180deg, rgba(105, 255, 105, 0.05), rgba(105, 255, 105, 0) 72%);
}

.prose > div:first-child {
  padding-top: 0;
}

.prose small {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: 0.26em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.65);
}

.prose h2 {
  margin: 0.1em 0 0.7em;
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f0fff4;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.45);
}

.prose h3 {
  margin: 1.4em 0 0.55em;
  font-size: 1.18rem;
  line-height: 1.45;
  color: #e6ffee;
}

.prose p {
  margin: 0 0 1.1em;
  color: #d6f2dd;
  line-height: 1.85;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.prose li {
  margin: 0.35em 0;
  line-height: 1.8;
}

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

.prose strong {
  color: #ffffff;
}

.prose blockquote {
  margin: 1.3em 0;
  padding: 16px 18px;
  border-radius: var(--r);
  border-left: 3px solid var(--cyan);
  border-bottom: 2px solid rgba(0, 255, 255, 0.35);
  background: rgba(0, 255, 255, 0.07);
  color: #e4fff2;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 16px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  background: rgba(105, 255, 105, 0.12);
  color: #f0fff4;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 92px;
  padding: 20px 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.1), rgba(105, 255, 105, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.32);
}

.rail small {
  display: block;
  font-size: 16px;
  letter-spacing: 0.26em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.rail-title {
  margin: 4px 0 16px;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #f0fff4;
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--r);
  border-bottom: 2px solid rgba(0, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.05);
  color: #d8ffe4;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

.rail a:hover,
.rail a:focus-visible {
  background: rgba(105, 255, 105, 0.18);
  border-bottom-color: var(--neon);
  color: #ffffff;
}

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 0 clamp(14px, 4vw, 40px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(105, 255, 105, 0.07), rgba(0, 255, 255, 0.06));
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px) 0;
  border-bottom: 1px dashed rgba(0, 255, 255, 0.32);
}

.cta-brand {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(105, 255, 105, 0.4));
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid #e4ffe9;
  background: var(--chrome);
  color: #0a1a0a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(105, 255, 105, 0.55), inset 0 -3px 6px rgba(0, 90, 60, 0.3);
}

.btn-neon:hover,
.btn-neon:focus-visible {
  box-shadow: 0 0 32px rgba(0, 255, 255, 0.75), inset 0 -3px 6px rgba(0, 90, 60, 0.35);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 46px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px) 0;
}

.foot-cols dl {
  margin: 0;
}

.foot-cols dt {
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.55);
}

.foot-cols dd {
  margin: 0;
}

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  color: #cfe9d6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-cols dd a:hover,
.foot-cols dd a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}

.foot-bar p {
  margin: 0;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.62s ease, transform 0.62s ease;
  }

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

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

  .prose {
    order: 1;
    max-width: none;
  }

  .rail {
    order: 2;
    position: static;
  }

  .prose > div {
    padding-inline: 0;
  }

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

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-title {
    max-width: 100%;
  }

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

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

  .navpop menu {
    width: min(92vw, 400px);
  }
}

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