:root {
  --bg: #0f1419;
  --panel: #171f28;
  --ink: #e8eef5;
  --muted: #9aa8b8;
  --lime: #c8f542;
  --line: #2a3644;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 0 72px;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}
a { color: var(--lime); }
img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #243040;
  max-height: 320px;
  border-radius: 4px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--lime);
  z-index: 90;
}

.mast {
  padding: 28px 18px 10px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.issue {
  margin: 0;
  font-family: "Consolas", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--lime);
}
h1 {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
}
.dek { margin: 0; color: var(--muted); }

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: center;
}
.hero-text p { color: var(--muted); margin: 0 0 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.86rem; color: #7f90a3; }
.hero-frame {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  transform: rotate(1.2deg);
}
.hero-frame img {
  max-height: 260px;
  aspect-ratio: 16 / 10;
  object-position: center;
}

.stats {
  max-width: 1100px;
  margin: 10px auto 0;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stats article {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.stats strong { display: block; font-size: 1.7rem; color: var(--lime); font-family: monospace; }
.stats span { font-size: 0.84rem; color: var(--muted); }

section {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 18px;
}
h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  color: var(--lime);
  font-family: monospace;
  letter-spacing: 0.04em;
}
.lead { color: var(--muted); margin-top: 0; }

.zig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
}
.zig ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.zig figure { margin: 0; }
.zig img { max-height: 240px; aspect-ratio: 3 / 2; }

.panel {
  background: linear-gradient(135deg, #121820, #1a2430);
  border: 1px solid var(--line);
  padding: 16px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tabs button {
  border: 1px solid var(--line);
  background: #121820;
  color: var(--muted);
  padding: 8px 14px;
  font-family: monospace;
  cursor: pointer;
}
.tabs button.on {
  background: var(--lime);
  color: #101510;
  border-color: var(--lime);
  font-weight: 700;
}
.tab-panels article { display: none; }
.tab-panels article.show { display: block; }
.tab-panels h3 { margin: 0 0 8px; }
.tab-panels p { color: var(--muted); margin: 0 0 10px; }
.tab-panels img { max-height: 220px; aspect-ratio: 16 / 10; }

.steps .step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.step-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  background: var(--panel);
  border-left: 3px solid var(--lime);
  padding: 12px;
}
.step-list span {
  font-family: monospace;
  font-size: 1.2rem;
  color: var(--lime);
}
.step-list h3 { margin: 0 0 4px; font-size: 1rem; }
.step-list p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g-grid figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px;
}
.g-grid img { max-height: 180px; aspect-ratio: 4 / 3; }
.g-grid figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

.check {
  background: var(--panel);
  border: 1px dashed var(--line);
  padding: 14px;
}
.bar-wrap {
  height: 8px;
  background: #243040;
  border-radius: 999px;
  overflow: hidden;
}
#prog {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), #7dd3fc);
  transition: width 0.3s;
}
#progText { color: var(--muted); font-size: 0.9rem; }
.checks { display: grid; gap: 8px; margin-top: 8px; }
.checks label {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #121820;
  font-size: 0.92rem;
}

.policy {
  background: #121820;
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 20px;
}
.policy ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }

.foot {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: rgba(15, 20, 25, 0.94);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  z-index: 80;
  backdrop-filter: blur(8px);
}
.dock a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.dock a:hover,
.dock a.active {
  background: var(--lime);
  color: #101510;
  font-weight: 700;
}

.top-btn {
  position: fixed;
  right: 14px;
  bottom: 70px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--lime);
  background: #121820;
  color: var(--lime);
  border-radius: 8px;
  display: none;
  cursor: pointer;
  z-index: 70;
}
.top-btn.show { display: block; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: 0.45s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .hero, .zig, .stats, .g-grid { grid-template-columns: 1fr; }
  .hero-frame { transform: none; }
  .hero-frame img, .zig img { max-height: 220px; }
  .dock { width: calc(100% - 24px); justify-content: space-between; flex-wrap: wrap; border-radius: 14px; }
  .dock a { flex: 1; text-align: center; min-width: 56px; }
}
