/* ============================================================
   워크스테이션 논현 — 공식 웹사이트 스타일
   콘셉트: 건축 제도(製圖) × 실사진.
   라이트 = 제도용지 위 먹선 + 코발트 / 다크 = 청사진(시아노타입)
   ============================================================ */
:root {
  --paper: #FAFAF6;
  --paper-raise: #FFFFFF;
  --ink: #182430;
  --ink-soft: #4B5A68;
  --line: rgba(24, 36, 48, 0.16);
  --line-faint: rgba(24, 36, 48, 0.07);
  --cobalt: #2743C8;
  --cobalt-deep: #1D33A0;
  --cobalt-soft: rgba(39, 67, 200, 0.08);
  --marker: #C64A2E;
  --shadow: 0 1px 2px rgba(24,36,48,.05), 0 8px 24px rgba(24,36,48,.06);
  --shadow-lift: 0 2px 4px rgba(24,36,48,.06), 0 16px 40px rgba(24,36,48,.12);

  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1F38;
    --paper-raise: #132844;
    --ink: #E9F1FB;
    --ink-soft: #9FB4CC;
    --line: rgba(233, 241, 251, 0.20);
    --line-faint: rgba(233, 241, 251, 0.08);
    --cobalt: #8FB5FF;
    --cobalt-deep: #6E9CF5;
    --cobalt-soft: rgba(143, 181, 255, 0.10);
    --marker: #FF9670;
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.3);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.4);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---- 스킵 링크 ---- */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--cobalt); color: var(--paper);
  padding: 10px 16px; border-radius: 0 0 4px 4px;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---- 스크롤 리빌 ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- 공통 타이포 ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--cobalt); flex: none; }
h2.sec-title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
  margin-top: 14px;
}
.sec-lede { color: var(--ink-soft); max-width: 36em; margin-top: 12px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

section { padding: 96px 0; border-top: 1px solid var(--line-faint); }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* 섹션 하단 반복 CTA */
.sec-cta { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sec-cta .hint { font-size: 0.85rem; color: var(--ink-soft); }

/* ---- 버튼 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  padding: 13px 26px; border-radius: 4px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--cobalt); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); background: var(--cobalt-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---- 상단 공지 바 ---- */
.notice-bar {
  background: var(--cobalt); color: var(--paper);
  font-size: 0.83rem; text-align: center; padding: 9px 16px;
  font-weight: 600; letter-spacing: 0.01em;
}
.notice-bar .mono { font-weight: 700; }

/* ---- 네비게이션 ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-faint);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
  text-decoration: none; display: flex; align-items: baseline; gap: 8px; flex: none;
}
.brand-logo { width: 26px; height: 26px; flex: none; align-self: center; }
.brand .en { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); letter-spacing: 0.18em; }
nav.menu { display: flex; gap: 26px; align-items: center; }
nav.menu a:not(.btn) { text-decoration: none; font-size: 0.9rem; color: var(--ink-soft); }
nav.menu a:not(.btn):hover { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 4px;
  width: 40px; height: 40px; cursor: pointer; color: var(--ink);
  font-size: 1.1rem; line-height: 1;
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  nav.menu {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  nav.menu.open { display: flex; }
  nav.menu a:not(.btn) { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line-faint); }
  nav.menu .btn { margin-top: 12px; }
}

/* ---- 히어로 ---- */
.hero {
  border-top: none;
  padding: 72px 0 80px;
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.13;
  text-wrap: balance; margin-top: 18px;
}
.hero h1 .u {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.hero p.lede { color: var(--ink-soft); margin-top: 20px; max-width: 27em; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.hero-stats div b { display: block; font-size: 1.4rem; letter-spacing: -0.02em; }
.hero-stats div span { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.1em; text-transform: uppercase; }

/* 히어로 사진: 도면 주석 오버레이 */
.hero-photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-photo .anno {
  position: absolute; inset: 0; pointer-events: none;
  font-family: var(--font-mono);
}
.hero-photo .anno .frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,0.75);
}
.hero-photo .anno .tag {
  position: absolute; left: 26px; top: 26px;
  background: rgba(14, 31, 56, 0.82); color: #E9F1FB;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 3px;
}
.hero-photo .anno .dim {
  position: absolute; right: 26px; bottom: 22px;
  color: #fff; font-size: 0.7rem; letter-spacing: 0.1em;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 26px 12px;
  background: linear-gradient(transparent, rgba(14,31,56,.55));
  color: rgba(233,241,251,.85); font-size: 0.72rem; text-align: right;
  font-family: var(--font-mono);
}

/* ---- 신뢰 스트립 ---- */
.strip {
  border-top: 1px solid var(--line-faint);
  background: var(--paper-raise);
  padding: 22px 0;
}
.strip-inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.strip-inner b { color: var(--ink); }

/* ---- 공간 갤러리 ---- */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 18px; margin-top: 48px;
}
.g-item {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  grid-column: span 6;
}
.g-item.wide { grid-column: span 12; }
.g-item.third { grid-column: span 4; }
@media (max-width: 860px) {
  .g-item, .g-item.third { grid-column: span 12; }
}
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .5s ease; }
.g-item.third img { aspect-ratio: 4 / 3; }
.g-item:hover img { transform: scale(1.03); }
.g-item .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 20px 16px;
  background: linear-gradient(transparent, rgba(14,31,56,.72));
  color: #fff;
}
.g-item .label b { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.g-item .label span {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(233,241,251,.8); margin-top: 2px;
}
.gallery-note {
  margin-top: 14px; font-size: 0.78rem; color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* ---- 평면도 ---- */
.plan-card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 48px;
}
.plan-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid var(--line-faint);
  padding-bottom: 12px; margin-bottom: 16px;
}
.plan-head b { color: var(--marker); font-weight: 600; }
svg.plan text { font-family: var(--font-mono); fill: var(--ink); }
svg.plan .zone { fill: var(--cobalt-soft); stroke: var(--ink); stroke-width: 1.2; transition: fill .15s ease; }
svg.plan .zone:hover, svg.plan .zone.hl { fill: var(--cobalt); fill-opacity: 0.28; }
svg.plan .wall { stroke: var(--ink); stroke-width: 2.5; fill: none; }
svg.plan .dim { stroke: var(--cobalt); stroke-width: 1; }
svg.plan .dim-t { fill: var(--cobalt); font-size: 10px; }
svg.plan .z-label { font-size: 11px; font-weight: 600; pointer-events: none; }
svg.plan .z-py { font-size: 9px; fill: var(--ink-soft); pointer-events: none; }
svg.plan .void { fill: var(--line-faint); stroke: var(--ink); stroke-width: 1.2; }
svg.plan .core-line { stroke: var(--ink); stroke-width: 0.8; }
svg.plan .door { fill: var(--marker); }
.plan-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft);
}
.plan-legend b { color: var(--ink); font-weight: 600; }

/* ---- 요금 카드 ---- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px; margin-top: 48px;
}
.card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.card p { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.card .price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; padding-top: 14px; border-top: 1px dashed var(--line); }
.card .price s { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.card .price b { font-size: 1.3rem; letter-spacing: -0.02em; color: var(--cobalt); }
.card .price span { font-size: 0.8rem; color: var(--ink-soft); }
.card .off {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: var(--marker); border: 1px solid var(--marker);
  padding: 2px 8px; border-radius: 3px; letter-spacing: 0.06em;
}
.card.pick { border-color: var(--cobalt); }
.card.pick::after {
  content: "추천"; position: absolute; top: -11px; left: 18px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  background: var(--cobalt); color: var(--paper); padding: 3px 10px; border-radius: 3px;
}

/* ---- 시설 ---- */
.amenities {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line-faint);
  border: 1px solid var(--line-faint); border-radius: 6px; overflow: hidden;
  margin-top: 48px;
}
.amen { background: var(--paper); padding: 24px 22px; }
.amen .no { font-family: var(--font-mono); font-size: 0.7rem; color: var(--cobalt); letter-spacing: 0.1em; }
.amen h4 { font-size: 1rem; font-weight: 700; margin-top: 6px; }
.amen p { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

/* ---- 타임라인 ---- */
.timeline { margin-top: 48px; }
.tl-row {
  display: grid; grid-template-columns: 110px 24px 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--line-faint);
}
.tl-row:last-child { border-bottom: 1px solid var(--line-faint); }
.tl-when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); padding-top: 3px; }
.tl-dot { position: relative; }
.tl-dot::before {
  content: ""; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--cobalt); background: var(--paper);
}
.tl-row.done .tl-dot::before { background: var(--cobalt); }
.tl-row.now .tl-dot::before { background: var(--marker); border-color: var(--marker); }
.tl-what b { font-weight: 700; }
.tl-what span { display: block; font-size: 0.88rem; color: var(--ink-soft); }
.tl-row.now .tl-what b::after {
  content: "진행 중"; font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--marker); border: 1px solid var(--marker); border-radius: 3px;
  padding: 2px 7px; margin-left: 10px; vertical-align: 2px; letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  .tl-row { grid-template-columns: 84px 18px 1fr; gap: 10px; }
}

/* ---- 입주 절차 ---- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 48px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--paper-raise);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 28px 26px;
  position: relative;
}
.step-no {
  font-size: 0.75rem; color: var(--cobalt); letter-spacing: 0.14em;
  display: inline-block; border-bottom: 1px solid var(--cobalt); padding-bottom: 4px;
}
.step h3 { font-size: 1.15rem; font-weight: 800; margin-top: 14px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 6px; }

/* ---- 사전등록 ---- */
.signup {
  background: var(--paper-raise);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-top: 48px;
}
@media (max-width: 800px) { .signup { grid-template-columns: 1fr; gap: 36px; } }
.signup form { display: grid; gap: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: transparent; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); }

/* ---- 개인정보 동의 ---- */
.field.consent { margin: 4px 0 2px; }
.consent-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; cursor: pointer; margin-bottom: 4px;
}
.consent-label input { width: 16px; height: 16px; accent-color: var(--cobalt); flex: none; }
.consent-label em { font-style: normal; color: var(--marker); font-size: 0.78rem; }
.consent-detail summary {
  font-size: 0.78rem; color: var(--ink-soft); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; width: fit-content;
}
.consent-detail p {
  font-size: 0.78rem; color: var(--ink-soft); line-height: 1.7;
  margin-top: 6px; padding: 10px 12px;
  background: var(--cobalt-soft); border-radius: 4px;
}
#form-done {
  display: none; font-size: 0.9rem; color: var(--cobalt); font-weight: 700;
  border: 1px dashed var(--cobalt); border-radius: 4px; padding: 12px 14px;
}
#form-done.err { color: var(--marker); border-color: var(--marker); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none !important; }
.signup-info h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.signup-info ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.signup-info li { padding-left: 20px; position: relative; font-size: 0.95rem; color: var(--ink-soft); }
.signup-info li::before { content: "—"; position: absolute; left: 0; color: var(--cobalt); }
.contact-lines { margin-top: 28px; font-family: var(--font-mono); font-size: 0.88rem; display: grid; gap: 6px; }
.contact-lines a { text-decoration: none; color: var(--cobalt); }
.contact-lines a:hover { text-decoration: underline; }

/* ---- 위치 ---- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; align-items: start; }
@media (max-width: 800px) { .loc-grid { grid-template-columns: 1fr; gap: 32px; } }
.loc-map-wrap { display: grid; gap: 14px; }
.loc-map-frame {
  width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line);
  border-radius: 6px; display: block;
}
.map-links { display: flex; gap: 10px; flex-wrap: wrap; }
.loc-list { display: grid; gap: 20px; }
.loc-item b { display: block; font-size: 0.95rem; }
.loc-item span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq { margin-top: 48px; }
.faq details { border-top: 1px solid var(--line-faint); }
.faq details:last-child { border-bottom: 1px solid var(--line-faint); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--cobalt); font-size: 1.1rem; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; color: var(--ink-soft); font-size: 0.95rem; max-width: 44em; }

/* ---- 푸터 ---- */
footer {
  border-top: 1px solid var(--line-faint);
  padding: 40px 0 120px;
  font-size: 0.85rem; color: var(--ink-soft);
}
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-grid .mono { font-size: 0.75rem; }
.foot-credit { margin-top: 18px; font-size: 0.72rem; color: var(--ink-soft); opacity: .8; }

/* ---- 모바일 하단 고정 CTA ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr 1.4fr;
  border-top: 1px solid var(--line);
  background: var(--paper-raise);
  box-shadow: 0 -6px 24px rgba(24,36,48,.12);
}
.sticky-cta a {
  text-decoration: none; text-align: center; font-weight: 700; font-size: 0.9rem;
  padding: 15px 8px;
}
.sticky-cta a + a { border-left: 1px solid var(--line-faint); }
.sticky-cta .go { background: var(--cobalt); color: var(--paper); }
@media (max-width: 860px) {
  .sticky-cta { display: grid; }
}
