/* 웨스트 서버 홈페이지 — 공통 스타일. 색은 웨스트 톡·접속기와 같은 검정·금색. */
:root {
  --bg: #0b0b0f; --bg2: #101016; --panel: #15151c; --panel2: #1c1c25; --panel3: #24242f;
  --line: #2a2834; --line2: #3a3746; --text: #ece6d8; --dim: #a39a86; --faint: #6f695b;
  --gold: #d6b166; --gold-hi: #f7db9c; --gold-ink: #2a1d08; --gold-soft: rgba(214, 177, 102, .12);
  --green: #74d383; --red: #e8665f; --amber: #e5b453;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "나눔명조", "Batang", "바탕", Georgia, "Times New Roman", serif;
  --sans: "Pretendard", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --radius: 14px; --wrap: 1120px; --gutter: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* 언어: html[data-lang] 이 고른 말만 보인다 (lang.js 가 그리기 전에 정함) */
html:not([data-lang="en"]) .en { display: none !important; }
html[data-lang="en"] .ko { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere;
  background-image:
    radial-gradient(1200px 520px at 12% -8%, rgba(214, 177, 102, .10), transparent 60%),
    radial-gradient(900px 480px at 100% 30%, rgba(120, 90, 40, .08), transparent 65%);
  background-repeat: no-repeat;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 10px;
  background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- 머리 */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 15, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand-t b { font-family: var(--serif); font-size: 19px; letter-spacing: .18em; color: var(--gold-hi); }
.brand-t small { font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--dim); padding: 8px 12px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-hi); background: var(--gold-soft); }
.nav .ext::after { content: " ↗"; font-size: 12px; opacity: .7; }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--panel); color: var(--dim); font-size: 13px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
[data-state="online"] .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(116, 211, 131, .18); }
[data-state="odd"] .dot { background: var(--amber); }
[data-state="offline"] .dot { background: var(--red); }
.lang-btn, .menu-btn { font: inherit; font-size: 13px; color: var(--text); background: var(--panel);
  border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.lang-btn:hover, .menu-btn:hover { border-color: var(--gold); }
.menu-btn { display: none; width: 40px; height: 36px; padding: 0; font-size: 18px; line-height: 1; }
@media (max-width: 919px) {
  .top-in { flex-wrap: wrap; gap: 10px; }
  .tools { margin-left: auto; }
  .menu-btn { display: inline-block; }
  .nav { order: 5; display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0 0 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .top .chip .txt { display: none; }
}

/* ---------------------------------------------------------------- 공통 조각 */
main { display: block; }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 10px; }
.h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.lead { color: var(--dim); font-size: 17px; max-width: 62ch; }
.head { margin-bottom: 30px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; }
.more::after { content: "→"; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 0 20px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid var(--line2); background: var(--panel); color: var(--text); text-decoration: none !important;
  transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { border-color: var(--gold); background: var(--panel2); }
.btn:active { transform: translateY(1px); }
.btn-gold { border: 0; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.btn-gold:hover { background: linear-gradient(180deg, #ffe9b8, #e0bd72); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .sub { font-weight: 500; font-size: 13px; opacity: .8; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 15px; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: rgba(214, 177, 102, .55); transform: translateY(-2px); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ico { width: 42px; height: 42px; padding: 9px; border-radius: 12px; color: var(--gold-hi);
  background: var(--gold-soft); border: 1px solid rgba(214, 177, 102, .25); margin-bottom: 14px; display: block; }
.ico svg { width: 100%; height: 100%; display: block; }

/* ---------------------------------------------------------------- 첫 화면 */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(214, 177, 102, .05) 119px 120px),
    linear-gradient(180deg, transparent 60%, var(--bg)); }
.hero-mark { position: absolute; right: -80px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%);
  color: var(--gold); opacity: .07; pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 920px) { .hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); } }
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-hi); }
html[data-lang="en"] .hero h1 { font-size: clamp(32px, 4.8vw, 50px); }
.hero .lead { font-size: 18px; margin-bottom: 28px; }
.hero .btns .btn { min-height: 52px; }
.status-card { background: rgba(21, 21, 28, .82); border: 1px solid var(--line2); border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow); }
.status-card .label { font-size: 13px; color: var(--dim); letter-spacing: .08em; }
.status-big { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 26px;
  font-weight: 700; margin: 6px 0 16px; }
.status-big .dot { width: 12px; height: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fact b { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-hi); }
.fact span { font-size: 13px; color: var(--dim); }
.online-line { color: var(--dim); font-size: 14px; margin: -8px 0 14px; }
.class-online { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--green);
  border: 1px solid rgba(116, 211, 131, .35); border-radius: 999px; padding: 1px 9px; }

/* 배율 */
.rates { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.rate { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.rate b { display: block; font-family: var(--serif); font-size: 28px; color: var(--gold-hi); line-height: 1.2; }
.rate span { color: var(--dim); font-size: 14px; }
.note { color: var(--faint); font-size: 13px; margin-top: 14px; }
@media (min-width: 900px) { .rates { grid-template-columns: repeat(4, 1fr); } }

/* 클래스 */
.class-card { text-align: left; }
.class-card .ico { width: 48px; height: 48px; }
.class-card h3 small { display: block; font-family: var(--sans); font-size: 12px; color: var(--faint); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

/* 소식 */
.news-list { display: grid; gap: 14px; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.news-item header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.news-item h3 { font-size: 20px; color: var(--gold-hi); }
.news-item time { color: var(--faint); font-size: 13px; }
.news-item .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--gold); border: 1px solid rgba(214, 177, 102, .4);
  border-radius: 999px; padding: 1px 8px; }
.news-item ul { margin: 0; padding-left: 20px; color: var(--dim); }
.news-item li { margin: 3px 0; }
.news-item li::marker { color: var(--gold); }
.empty { color: var(--faint); padding: 20px 0; }

/* 톡 띠 */
.band { background: linear-gradient(120deg, rgba(214, 177, 102, .14), rgba(214, 177, 102, .03) 60%), var(--panel);
  border: 1px solid rgba(214, 177, 102, .3); border-radius: 20px; padding: 32px; display: grid; gap: 22px; align-items: center; }
@media (min-width: 820px) { .band { grid-template-columns: 1fr auto; padding: 40px 44px; } }

/* ---------------------------------------------------------------- 쪽 머리·본문 */
.page-head { padding: 56px 0 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 12px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 44px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p { margin: 10px 0; color: var(--dim); }
.prose p b, .prose li b { color: var(--text); }
.prose ul, .prose ol { color: var(--dim); padding-left: 22px; margin: 10px 0; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--gold); }
kbd, code { font-family: Consolas, "D2Coding", "Cascadia Mono", monospace; font-size: .92em; background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; color: var(--gold-hi); white-space: nowrap; }
.callout { border-left: 3px solid var(--gold); background: var(--panel); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0;
  color: var(--dim); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 18px 52px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--gold-ink); background: var(--gold); }
.steps > li > b { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
/* 시작하기 맨 위의 네 걸음 한눈에 */
.prose .flow { counter-reset: flow; list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.prose .flow li { counter-increment: flow; margin: 0; }
.flow a { display: flex; gap: 10px; align-items: center; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600; }
.flow a::before { content: counter(flow); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; color: var(--gold-ink); background: var(--gold); }
.flow a:hover { border-color: var(--gold); }
.dl-box { display: grid; gap: 12px; margin: 18px 0; }
.dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel);
  border: 1px solid var(--line2); border-radius: 14px; padding: 16px 18px; }
.dl .name { font-weight: 700; color: var(--text); }
.dl .meta { color: var(--faint); font-size: 13px; }

.page-body { padding-top: 40px; padding-bottom: 72px; }
.narrow { max-width: 860px; }
.prose.wide { max-width: none; }
.faq-h { font-size: 22px; margin: 30px 0 6px; }
.faq-h.first { margin-top: 0; }

/* 목차 옆 배치 (넓은 화면) */
.with-toc { display: grid; gap: 36px; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 980px) { .with-toc { grid-template-columns: 220px minmax(0, 1fr); } }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc b { display: block; color: var(--faint); font-size: 12px; letter-spacing: .14em; margin-bottom: 8px; }
.toc a { display: block; color: var(--dim); padding: 5px 0 5px 12px; border-left: 1px solid var(--line2); }
.toc a:hover { color: var(--gold-hi); border-left-color: var(--gold); text-decoration: none; }
@media (max-width: 979px) { .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc b { width: 100%; } .toc a { border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; } }

/* 표 */
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel2); color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
td { color: var(--dim); }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
td code + code { margin-left: 4px; }

/* 클래스 쪽 */
.class-sec { display: grid; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.class-sec:last-child { border-bottom: 0; }
@media (min-width: 860px) { .class-sec { grid-template-columns: 96px minmax(0, 1fr); } }
.class-sec .ico { width: 84px; height: 84px; padding: 18px; border-radius: 22px; margin: 0; }
.class-sec h2 { font-size: 28px; margin-bottom: 4px; }
.class-sec h3 { font-size: 18px; margin: 26px 0 8px; }
.new-badge { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 700; letter-spacing: .04em; color: var(--gold-ink); background: var(--gold); }
.class-sec .tagline { color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.traits { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 16px; }
.trait { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.trait b { display: block; font-size: 12px; letter-spacing: .12em; color: var(--faint); margin-bottom: 4px; }
.trait span { color: var(--text); font-size: 15px; }

/* 자주 묻는 질문 */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 16px; color: var(--dim); }
.faq details > div p + p { margin-top: 8px; }

/* ---------------------------------------------------------------- 발 */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--faint); font-size: 14px; margin-top: 24px; }
.foot-in { display: grid; gap: 18px; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--dim); }
.foot .brand-line { font-family: var(--serif); color: var(--dim); letter-spacing: .14em; }
.foot p { margin-top: 8px; }
