/* =========================================================
   호스트클럽 CUBE — 랜딩 페이지 스타일
   외부 폰트/라이브러리 의존성 없음 (LCP 최적화 목적)
   ========================================================= */

:root {
  --bg:        #0d0b0f;
  --bg-alt:    #141118;
  --bg-card:   #1b1720;
  --line:      #2c2632;
  --text:      #e9e4ee;
  --text-dim:  #9d95a8;
  --gold:      #c9a227;
  --gold-soft: #e3c76a;
  --wine:      #6d1f3a;

  --wrap: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --font-disp: "Iropke Batang", "Nanum Myeongjo", "Apple SD Gothic Neo",
               Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(227, 199, 106, .18);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

.muted { color: var(--text-dim); }

/* ---------- 공통 타이포 ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* 한글이 섞인 상호 표기는 자간을 좁혀야 읽힌다 */
.eyebrow--brand {
  letter-spacing: .1em;
  font-size: 13px;
}

.section__title {
  font-family: var(--font-disp);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}

.section__lead {
  max-width: 640px;
  margin: 0 0 44px;
  color: var(--text-dim);
  font-size: 16px;
}
.section__lead strong { color: var(--text); font-weight: 600; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #201a06;
}
.btn--gold:hover { background: linear-gradient(135deg, #f0d78a, #d5ae2c); }

.btn--outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn--ghost { background: transparent; color: var(--text-dim); }
.btn--ghost:hover { color: var(--text); }

.btn--kakao { background: #fee500; color: #191600; }
.btn--kakao:hover { background: #ffec3d; }

.btn--lg { padding: 16px 34px; font-size: 16px; }

/* ---------- 성인 인증 게이트 ---------- */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 6, 10, .96);
  backdrop-filter: blur(6px);
}
.agegate[hidden] { display: none; }

.agegate__box {
  width: 100%;
  max-width: 440px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px 30px;
}

.agegate__badge {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 700;
  font-size: 20px;
}

.agegate__title {
  font-family: var(--font-disp);
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 600;
}

.agegate__text { color: var(--text-dim); font-size: 15px; margin: 0 0 28px; }
.agegate__text strong { color: var(--text); }

.agegate__actions { display: grid; gap: 10px; }

.agegate__note {
  margin: 22px 0 0;
  font-size: 12px;
  color: #6f6879;
  line-height: 1.6;
}

/* ---------- 헤더 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(13, 11, 15, .88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo { text-decoration: none; display: block; line-height: 1.1; }
.logo__mark {
  display: block;
  font-family: var(--font-disp);
  font-size: 22px;
  letter-spacing: .22em;
  color: var(--gold-soft);
}
.logo__sub {
  display: block;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--text-dim);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--text-dim);
  transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }

.nav__cta {
  padding: 9px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-soft) !important;
  font-weight: 600;
}
.nav__cta:hover { background: var(--gold); color: #201a06 !important; }

.navtoggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  cursor: pointer;
  padding: 11px 10px;
}
.navtoggle span {
  display: block; height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform .25s var(--ease), opacity .25s;
}
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 22% 18%, rgba(109, 31, 58, .38) 0%, transparent 62%),
    radial-gradient(55% 45% at 82% 76%, rgba(201, 162, 39, .16) 0%, transparent 62%),
    linear-gradient(180deg, #100d14 0%, var(--bg) 70%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}

.hero__inner { position: relative; }

.hero__title {
  font-family: var(--font-disp);
  font-size: clamp(34px, 6.2vw, 62px);
  line-height: 1.28;
  font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: -.015em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, #a8871c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 17px);
  margin: 0 0 38px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 46px;
  margin: 64px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.hero__facts strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-soft);
}
.hero__facts span { font-size: 13px; color: var(--text-dim); }

/* ---------- 섹션 ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }

/* ---------- 특징 카드 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  transition: border-color .25s, transform .25s var(--ease);
}
.card:hover { border-color: rgba(201, 162, 39, .45); transform: translateY(-3px); }

.card__num {
  display: block;
  font-family: var(--font-disp);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.card p { margin: 0; font-size: 14.5px; color: var(--text-dim); }

/* ---------- 요금표 ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.price {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.price th, .price td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.price thead th {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  background: rgba(201, 162, 39, .05);
}

.price tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  width: 150px;
}
.price tbody td { color: var(--text-dim); }
.price tbody tr:last-child th,
.price tbody tr:last-child td { border-bottom: 0; }

.price__won {
  text-align: right !important;
  white-space: nowrap;
  color: var(--gold-soft) !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.notelist {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-dim);
}
.notelist li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.notelist li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- 멤버 ---------- */
.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.member {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.member:hover { border-color: rgba(201, 162, 39, .45); transform: translateY(-3px); }

.member__photo {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, #241d2b 0%, #17131d 100%);
  border-bottom: 1px solid var(--line);
}

/* 실제 사진으로 교체하기 전까지 쓰는 이니셜 아바타 */
.member__photo span {
  font-family: var(--font-disp);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(227, 199, 106, .34);
  user-select: none;
}

.member:nth-child(2) .member__photo { background: linear-gradient(160deg, #2a1d26 0%, #17131d 100%); }
.member:nth-child(3) .member__photo { background: linear-gradient(160deg, #1e2130 0%, #17131d 100%); }
.member:nth-child(4) .member__photo { background: linear-gradient(160deg, #2b2519 0%, #17131d 100%); }

.member__name {
  margin: 20px 22px 4px;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-disp);
}
.member__name span {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
  margin-left: 6px;
}
.member__role { margin: 0 22px 10px; font-size: 13px; color: var(--gold-soft); }
.member__desc { margin: 0 22px 24px; font-size: 14px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-soft); }
.faq summary:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }

.faq details p {
  margin: 0;
  padding: 0 40px 24px 0;
  color: var(--text-dim);
  font-size: 15px;
}
.faq details p strong { color: var(--text); }

/* ---------- 오시는 길 ---------- */
.location {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 40px;
  align-items: start;
}

.location__info dl { margin: 0 0 28px; }
.location__info dt {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}
.location__info dd {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text);
}
.location__info dd a { color: var(--gold-soft); text-decoration: none; }
.location__info dd a:hover { text-decoration: underline; }

.location__map { min-height: 340px; }

.mapholder {
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 실제 네이버/카카오 지도 iframe으로 교체하기 전까지 쓰는 약도 */
.mapsvg { display: block; width: 100%; height: 100%; min-height: 340px; }

/* ---------- 예약 CTA ---------- */
.reserve {
  padding: clamp(72px, 10vw, 118px) 0;
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(109, 31, 58, .34) 0%, transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}

.reserve__title {
  font-family: var(--font-disp);
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 16px;
  font-weight: 600;
}
.reserve__lead { color: var(--text-dim); margin: 0 0 36px; }

.reserve__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.reserve__hours { margin: 24px 0 0; font-size: 13px; color: var(--text-dim); }

/* ---------- 푸터 ---------- */
.footer {
  background: #0a080c;
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  font-size: 14px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer__tagline { margin: 10px 0 0; color: var(--text-dim); font-size: 13px; }

.footer__biz p { margin: 0 0 5px; color: var(--text-dim); font-size: 13.5px; }
.footer__biz a { color: var(--gold-soft); text-decoration: none; }

.footer__legal { padding-top: 30px; }

.footer__warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer__warn strong { color: var(--text); }

.badge19 {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1.5px solid #d34a4a;
  border-radius: 50%;
  color: #d34a4a;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.footer__copy { margin: 22px 0 0; font-size: 12.5px; color: #5f5869; }

/* ---------- 모바일 하단 고정 바 ---------- */
.dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(13, 11, 15, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.dock__btn {
  flex: 1 1 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.dock__btn--call {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #201a06;
}

/* 카카오톡 버튼 (링크를 받으면 사용) */
.dock__btn--kakao { background: #fee500; color: #191600; }

/* ---------- 스크롤 등장 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .location { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 64px; }

  .header__inner { height: 64px; }
  .navtoggle { display: block; }

  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: rgba(13, 11, 15, .98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 15px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 16px; border-bottom: 0 !important; }

  /* 히어로: 접속하자마자 제목과 CTA가 한 화면에 들어오도록 */
  .hero { min-height: auto; padding: 116px 0 60px; }
  .hero__title { font-size: clamp(30px, 8.4vw, 42px); line-height: 1.3; }
  .hero__lead br { display: none; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 auto; min-height: 50px; }

  /* 정보 3종을 흩어놓지 않고 격자로 */
  .hero__facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
    margin-top: 44px;
  }
  .hero__facts li:last-child { grid-column: 1 / -1; }

  .section { padding: clamp(60px, 13vw, 88px) 0; }
  .section__lead { margin-bottom: 34px; }

  .members { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member__name { margin: 16px 14px 4px; font-size: 16px; }
  .member__role { margin: 0 14px 8px; }
  .member__desc { margin: 0 14px 18px; font-size: 13px; }

  /* 손가락으로 누르기 편한 크기 */
  .btn { min-height: 50px; }
  .faq summary { padding: 20px 36px 20px 0; }

  .location__map, .mapholder, .mapsvg { min-height: 260px; }

  .reserve__lead br { display: none; }
  .reserve__actions .btn { flex: 1 1 100%; }

  .footer__top { flex-direction: column; gap: 26px; }

  /* 하단 고정 바가 푸터를 가리지 않도록 */
  .dock { display: flex; }
  .footer { padding-bottom: 108px; }
}

/* ---------- 요금표: 좁은 화면에서는 가로 스크롤 대신 카드로 ---------- */
@media (max-width: 640px) {
  .table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .price { min-width: 0; display: block; }
  .price thead { display: none; }
  .price tbody, .price tr, .price th, .price td { display: block; }

  .price tr {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 10px;
  }

  .price tbody th,
  .price tbody td {
    width: auto;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .price tbody th { font-size: 16px; }
  .price tbody td { margin-top: 4px; font-size: 13.5px; }

  .price__won {
    text-align: left !important;
    margin-top: 12px !important;
    font-size: 21px !important;
  }
}

@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  .members { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
