/* =====================================================================
   ONE SERVER — v3 "Glass"
   심플, 투명, 여백
   ===================================================================== */
:root {
  --bg: #08080a;
  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.68);
  --text-3: rgba(245, 245, 247, 0.42);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-2: rgba(255, 255, 255, 0.22);
  --blur: blur(22px) saturate(160%);
  --discord: #5865f2;
  --ok: #9fe0b0;
  --warn: #f1d49a;
  --err: #ff9d8a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 64px);
  --r: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; word-break: keep-all;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
::selection { background: #fff; color: #000; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.glass { background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-solid { background: #fff; color: #08080a; }
.btn-solid:hover { background: rgba(255,255,255,0.86); }
.btn-line { background: var(--glass); border: 1px solid var(--stroke-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-line:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.4); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #4b57e6; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }

/* ---------- 등장 ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: 0.12s; } .rv[data-d="2"] { transition-delay: 0.24s; } .rv[data-d="3"] { transition-delay: 0.36s; }

/* =====================================================================
   인트로
   ===================================================================== */
#intro {
  position: fixed; inset: 0; z-index: 2000; cursor: pointer; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(900px 500px at 50% 45%, #141417 0%, #060607 70%);
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
#intro.out { opacity: 0; visibility: hidden; }
.intro-in { animation: rise 1.6s var(--ease) both; }
.intro-logo { width: min(240px, 56vw); margin: 0 auto 32px; }
.intro-msg { color: var(--text-2); font-size: 15px; line-height: 1.9; }
.intro-enter { margin-top: 44px; color: var(--text-3); animation: breathe 2.4s ease-in-out infinite; }
.intro-skip { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); cursor: pointer; user-select: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.chk { appearance: none; width: 18px; height: 18px; flex: none; border-radius: 6px; border: 1px solid var(--stroke-2); display: grid; place-items: center; cursor: pointer; transition: all 0.2s; }
.chk:checked { background: #fff; border-color: #fff; }
.chk:checked::after { content: ''; width: 8px; height: 4px; border: 2px solid #000; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* =====================================================================
   헤더 (떠 있는 유리 바)
   ===================================================================== */
.hdr { position: fixed; top: 16px; left: 0; right: 0; z-index: 500; pointer-events: none; }
.hdr-in {
  pointer-events: auto; max-width: 1200px; margin: 0 auto; height: 60px; padding: 0 10px 0 22px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: background 0.4s, border-color 0.4s;
}
.hdr-wrap { padding: 0 var(--pad); }
.hdr-logo img { height: 20px; width: auto; }
.hdr-nav { display: flex; gap: 2px; }
.hdr-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color 0.25s, background 0.25s; }
.hdr-nav a:hover { color: var(--text); background: var(--glass); }
.hdr-right { display: flex; align-items: center; gap: 8px; }
.ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: all 0.25s; }
.ico:hover { color: var(--text); background: var(--glass-2); }
.ico svg { width: 18px; height: 18px; }
.burger { display: none; }
.burger span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease); }
.burger span + span { margin-top: 5px; }
.menu-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.drawer {
  position: fixed; inset: 0; z-index: 450; padding: 110px var(--pad) 36px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(8,8,10,0.72); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer a.big { padding: 14px 0; font-size: 26px; font-weight: 700; border-bottom: 1px solid var(--stroke); }
.drawer .btn { margin-top: auto; }

/* =====================================================================
   히어로
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.35) 40%, rgba(8,8,10,0.7) 80%, var(--bg) 100%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 110px; padding-bottom: 90px; }
.hero-kicker { color: var(--text-2); }
.hero-h { margin-top: 20px; font-size: clamp(44px, 6.2vw, 88px); font-weight: 800; line-height: 1.06; letter-spacing: -0.05em; }
.hero-sub { margin-top: 22px; max-width: 420px; color: var(--text-2); font-size: 17px; line-height: 1.75; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 시민증 카드 (유리) ---------- */
.card-stage { perspective: 1200px; display: grid; place-items: center; }
.idcard {
  position: relative; width: 100%; aspect-ratio: 1.586; border-radius: 22px; padding: 24px 26px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg));
  transition: transform 0.8s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between; color: var(--text);
}
.float { width: min(420px, 100%); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.idcard::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  background-size: 260% 100%; background-position: var(--gx, 20%) 0; transition: background-position 0.9s var(--ease);
}
.id-top { display: flex; justify-content: space-between; align-items: center; }
.id-top img { height: 16px; width: auto; }
.id-top .mono { font-size: 9.5px; color: var(--text-3); }
.id-mid { display: flex; gap: 18px; align-items: center; }
.id-photo { width: 76px; height: 92px; flex: none; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); display: grid; place-items: center; overflow: hidden; }
.id-photo img { width: 100%; height: 100%; object-fit: cover; }
.id-photo svg { width: 34px; height: 34px; color: rgba(255,255,255,0.35); }
.id-name { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-user { margin-top: 2px; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-bot { display: flex; gap: 22px; align-items: flex-end; }
.id-bot div { display: flex; flex-direction: column; gap: 2px; }
.id-bot .mono { font-size: 8.5px; color: var(--text-3); }
.id-bot b { font-size: 13px; font-weight: 650; }
.stamp {
  position: absolute; right: 22px; bottom: 20px; transform: rotate(-8deg);
  padding: 5px 12px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.85); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.22em;
}
.stamp.pending { border-style: dashed; border-color: var(--text-3); color: var(--text-3); }
.stamp.hit { animation: stamp 0.6s var(--ease) both; }
@keyframes stamp { 0% { transform: rotate(-8deg) scale(2); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }

/* =====================================================================
   가치
   ===================================================================== */
.sec { padding: clamp(96px, 12vw, 160px) 0; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .mono { color: var(--text-3); }
.sec-head h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.045em; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.val { border-radius: var(--r); padding: 32px 30px 34px; transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease); }
.val:hover { background: var(--glass-2); border-color: var(--stroke-2); transform: translateY(-4px); }
.val .mono { color: var(--text-3); }
.val h3 { margin-top: 40px; font-size: 22px; font-weight: 750; letter-spacing: -0.03em; }
.val p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.75; }
.sec-bg { position: relative; overflow: hidden; }
.sec-bg::before { content: ''; position: absolute; left: 50%; top: 10%; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,255,255,0.06), transparent); pointer-events: none; }

/* =====================================================================
   푸터
   ===================================================================== */
.ftr { border-top: 1px solid var(--stroke); padding: 36px 0; color: var(--text-3); font-size: 13px; }
.ftr-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.ftr-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ftr-links a:hover { color: var(--text); }
.ftr-bot { margin-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11.5px; }
.ftr img { height: 18px; width: auto; opacity: 0.8; }

/* BGM */
.bgm { position: fixed; right: 20px; bottom: 20px; z-index: 400; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: color 0.3s; }
.bgm:hover { color: var(--text); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; border-radius: 1px; background: currentColor; }
.bgm.on { color: var(--text); }
.bgm.on .eq i { animation: eq 0.9s ease-in-out infinite; }
.bgm.on .eq i:nth-child(2) { animation-delay: 0.15s; } .bgm.on .eq i:nth-child(3) { animation-delay: 0.3s; } .bgm.on .eq i:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 3000; transform: translate(-50%, 16px); padding: 12px 20px; border-radius: 999px; background: #fff; color: #000; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   가입 페이지
   ===================================================================== */
.join { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.join .hero-bg::after { background: rgba(8,8,10,0.62); }
.join-in { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: 110px; padding-bottom: 60px; }
.panel { border-radius: 28px; padding: clamp(28px, 4vw, 44px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 36px; }
.steps div { color: var(--text-3); font-size: 10.5px; transition: color 0.4s; }
.steps div::before { content: ''; display: block; height: 3px; border-radius: 3px; margin-bottom: 10px; background: rgba(255,255,255,0.12); transition: background 0.5s var(--ease); }
.steps div.done, .steps div.cur { color: var(--text); }
.steps div.done::before { background: #fff; }
.steps div.cur::before { background: linear-gradient(90deg, #fff 50%, rgba(255,255,255,0.12) 50%); }
.panel h1 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; }
.lead { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }
.acts { margin-top: 28px; display: grid; gap: 10px; }
.fine { margin-top: 16px; color: var(--text-3); font-size: 12.5px; line-height: 1.7; }
.who { margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); }
.who img, .who .ph { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; background: var(--glass-2); display: grid; place-items: center; font-weight: 700; }
.who b { display: block; font-size: 14.5px; line-height: 1.3; }
.who small { color: var(--text-3); font-size: 12px; }
.who .tag { margin-left: auto; font-size: 10px; color: #b7bdff; }
.who a { margin-left: 12px; font-size: 12px; color: var(--text-3); }
.who a:hover { color: var(--text); }
.agree { margin-top: 14px; border-radius: 14px; border: 1px solid var(--stroke); overflow: hidden; }
.agree label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14px; cursor: pointer; user-select: none; }
.agree label + label { border-top: 1px solid var(--stroke); }
.agree label.all { font-weight: 650; background: var(--glass); }
.agree .req { color: var(--text-3); font-size: 12px; }
.agree a { margin-left: auto; color: var(--text-3); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.65; display: flex; gap: 10px; border: 1px solid; }
.note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.note.err { color: var(--err); border-color: rgba(255,157,138,0.3); background: rgba(255,157,138,0.07); }
.note.warn { color: var(--warn); border-color: rgba(241,212,154,0.28); background: rgba(241,212,154,0.06); }
.note.info { color: var(--text-2); border-color: var(--stroke); background: var(--glass); }
.note code { font-size: 12px; }
.test-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; color: var(--warn); }
.test-row input { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--stroke-2); background: transparent; color: var(--text); padding: 0 12px; font: inherit; font-size: 14px; color-scheme: dark; }
.done-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); margin-bottom: 14px; }
.done-mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.role { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px 1px 8px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--stroke-2); font-weight: 700; font-size: 0.92em; }
.role::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.2); border-top-color: currentColor; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { height: 240px; border-radius: 16px; background: linear-gradient(90deg, var(--glass), var(--glass-2), var(--glass)); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* 약관 */
.doc { display: grid; grid-template-columns: 200px 1fr; gap: 56px; padding-top: 140px; padding-bottom: 100px; }
.doc-side { position: sticky; top: 110px; align-self: start; display: grid; gap: 4px; }
.doc-side a { color: var(--text-3); padding: 6px 0; }
.doc-side a:hover { color: var(--text); }
.doc h1 { margin-top: 12px; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.045em; }
.doc h2 { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--stroke); font-size: 22px; letter-spacing: -0.03em; }
.doc pre { margin-top: 20px; white-space: pre-wrap; font-family: inherit; font-size: 15px; color: var(--text-2); line-height: 1.95; }

/* =====================================================================
   반응형
   ===================================================================== */
@media (max-width: 960px) {
  .hero-in, .join-in { grid-template-columns: 1fr; }
  .hero-in { padding-top: 120px; text-align: left; }
  .hero .card-stage { display: none; }
  .join .card-stage { order: -1; }
  .values { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .doc-side { position: static; display: flex; gap: 18px; }
}
@media (max-width: 760px) {
  .hdr-nav, .hdr-right .ico:not(.burger) { display: none; }
  .burger { display: grid; place-items: center; align-content: center; }
  .hdr-in { height: 56px; padding: 0 8px 0 18px; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-sub { font-size: 15.5px; }
  .idcard { padding: 18px 20px; border-radius: 18px; }
  .id-photo { width: 62px; height: 76px; }
  .id-name { font-size: 19px; }
  .stamp { right: 16px; bottom: 16px; font-size: 10px; }
  .join-in { padding-top: 96px; }
  .panel { padding: 24px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
