/* ==========================================================
   fitness-landing 베이스 템플릿
   2025 트렌드: 다크 + 오로라 글로우 + 베ント 그리드 + 글래스모피즘
   컬러·폰트는 js/config.js 에서 CSS 변수로 주입됩니다
   ========================================================== */

:root {
  --brand: #101014;        /* 딥 다크 */
  --accent: #c9f73a;       /* 라임 */
  --accent-2: #7cf5d4;     /* 민트 (그라디언트 짝) */
  --violet: #7c5cff;       /* 오로라 보조광 */
  --kakao: #fee500;
  --kakao-ink: #191919;
  --bg: #0a0a0c;
  --tint: #0f0f13;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-line: rgba(255, 255, 255, 0.09);
  --ink: #f2f2f0;
  --ink-soft: #9a9aa3;
  --radius: 20px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: min(1120px, 92%); margin: 0 auto; }
.container--narrow { width: min(760px, 92%); }

/* 그라디언트 텍스트 */
.grad {
  background: linear-gradient(92deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 247, 58, 0.18); }
.btn--kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn--lime { background: var(--accent); color: #0c0f02; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 17px; }

/* ---------- 헤더 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.header.is-scrolled {
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-line);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; gap: 32px; }
.header__logo { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.header__nav { display: flex; gap: 26px; margin-left: auto; }
.header__nav a { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.header__nav a:hover { color: var(--accent); }

/* ---------- 히어로 (오로라) ---------- */
.hero { position: relative; color: #fff; padding-bottom: 72px; overflow: hidden; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__glow--a {
  width: 640px; height: 640px;
  top: -220px; right: -140px;
  background: radial-gradient(circle, rgba(201, 247, 58, 0.22), transparent 65%);
}
.hero__glow--b {
  width: 560px; height: 560px;
  top: 180px; left: -220px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.2), transparent 65%);
}
.hero__glow--c {
  width: 700px; height: 700px;
  bottom: -350px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 247, 58, 0.14), transparent 65%);
}
.hero__content {
  position: relative;
  padding: 200px 0 90px;
  max-width: 820px;
}
.hero__badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(201, 247, 58, 0.08);
  border: 1px solid rgba(201, 247, 58, 0.35);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(44px, 7.2vw, 84px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  margin-bottom: 38px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* 실적 스트립 (글래스) */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 10px;
  transform: translateY(40px);
  margin-top: -10px;
}
.stats__item { text-align: center; padding: 6px 12px; }
.stats__item + .stats__item { border-left: 1px solid var(--glass-line); }
.stats__item strong {
  display: block;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.stats__item strong span { font-size: inherit; font-weight: inherit; color: var(--accent); }
.stats__item > span:last-child { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 120px 0 96px; position: relative; }
.section--tint { background: var(--tint); }
.section__eyebrow {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.24em;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 52px;
}
.section__note { margin-top: 28px; font-size: 13px; color: var(--ink-soft); }

/* ---------- 베ント 그리드 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 148px;
  gap: 16px;
}
.bento__item {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.bento__item:hover { transform: translateY(-4px); border-color: rgba(201, 247, 58, 0.4); }
.bento__icon { font-size: 26px; margin-bottom: auto; }
.bento__item h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.bento__item p { font-size: 13.5px; color: var(--ink-soft); }

.bento__item--hero { grid-column: span 2; grid-row: span 2; padding: 0; }
.bento__item--photo { grid-column: span 2; padding: 0; }
.bento__item--hero img, .bento__item--photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bento__item--hero figcaption, .bento__item--photo figcaption {
  position: relative;
  z-index: 1;
  padding: 26px 24px;
  background: linear-gradient(to top, rgba(6, 6, 8, 0.85), transparent);
  margin-top: auto;
}
.bento__item--hero figcaption strong, .bento__item--photo figcaption strong {
  display: block; font-size: 19px; font-weight: 800;
}
.bento__item--hero figcaption span { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }

.bento__item--stat { grid-row: span 2; justify-content: center; text-align: center; gap: 10px; }
.bento__item--stat strong { font-size: clamp(48px, 5vw, 72px); font-weight: 900; letter-spacing: -0.04em; }
.bento__item--stat span { font-size: 14px; color: var(--ink-soft); }

.bento__item--wide { grid-column: span 2; }

/* ---------- 카드 공통 ---------- */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 프로그램 가격 카드 ---------- */
.price {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.price:hover { transform: translateY(-6px); border-color: rgba(201, 247, 58, 0.4); }
.price--hot { border-color: rgba(201, 247, 58, 0.55); background: rgba(201, 247, 58, 0.05); }
.price__tag {
  position: absolute;
  top: -13px; right: 24px;
  background: var(--accent);
  color: #0c0f02;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
}
.price h3 { font-size: 17px; font-weight: 700; color: var(--ink-soft); }
.price strong { font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.price strong em {
  font-style: normal;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.price ul { list-style: none; flex: 1; }
.price ul li {
  font-size: 14.5px;
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px dashed var(--glass-line);
}
.price ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}
.price .btn { width: 100%; }

/* ---------- 코치 카드 ---------- */
.member {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 24px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.member:hover { transform: translateY(-6px); border-color: rgba(201, 247, 58, 0.4); }
.member img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; margin-bottom: 20px; filter: saturate(0.9); }
.member h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.member p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- 후기 ---------- */
.review {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review__stars { color: var(--accent); font-size: 17px; letter-spacing: 3px; }
.review p { font-size: 15px; flex: 1; color: var(--ink); }
.review span { font-size: 13px; color: var(--ink-soft); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 24px 20px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 오시는 길 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--map { align-items: stretch; }
.info { list-style: none; margin-bottom: 30px; }
.info li {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--glass-line);
  font-size: 16px;
}
.info strong { flex: 0 0 84px; color: var(--accent); font-weight: 800; }
.info a { font-weight: 700; color: var(--ink); }
.map {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  min-height: 380px;
  box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.map__placeholder {
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 600;
}
.map__placeholder span { font-size: 42px; }
.map__placeholder small { font-weight: 400; }

/* ---------- CTA 밴드 ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--tint);
  border-top: 1px solid var(--glass-line);
  color: #fff;
  padding: 110px 0;
  text-align: center;
}
.cta-band__inner { position: relative; }
.cta-band h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 14px;
}
.cta-band p { font-size: 17px; color: var(--ink-soft); margin-bottom: 36px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- 푸터 ---------- */
.footer {
  background: #060608;
  color: rgba(255, 255, 255, 0.45);
  padding: 44px 0 120px;
  font-size: 13.5px;
}
.footer strong { display: block; color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer__biz { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.28); }

/* ---------- 모바일 하단 고정 바 ---------- */
.fixed-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
.fixed-bar__btn {
  flex: 1;
  text-align: center;
  padding: 17px 0;
  font-size: 16px;
  font-weight: 800;
}
.fixed-bar__btn--tel { background: #17171c; color: #fff; }
.fixed-bar__btn--kakao { background: var(--kakao); color: var(--kakao-ink); }

/* ---------- 패럴럭스 (JS가 --py 값을 매 프레임 갱신) ---------- */
.parallax-on .photo img {
  transform: translateY(var(--py, 0px)) scale(1.12);
  will-change: transform;
}

/* ---------- 등장 애니메이션 (JS 활성 시에만 숨김 → 실패해도 콘텐츠 보장) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-on { opacity: 1; transform: translateY(0); }

/* ---------- 반응형 ---------- */
.br-mobile { display: none; }

@media (max-width: 900px) {
  .header__nav { display: none; }
  .cards--3 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .bento__item--hero { grid-column: span 2; }
  .bento__item--stat { grid-row: span 1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .hero__content { padding: 160px 0 70px; }
  .stats { transform: translateY(30px); padding: 22px 4px; }
  .stats__item { padding: 6px 4px; }
  .stats__item strong { font-size: 22px; }
  .stats__item > span:last-child { font-size: 12px; }
  .section { padding: 88px 0 72px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__item { min-height: 130px; }
  .bento__item--hero, .bento__item--photo, .bento__item--wide { grid-column: span 1; min-height: 240px; }
  .br-mobile { display: block; }
  .header .btn { display: none; }
  .fixed-bar { display: flex; }
  .footer { padding-bottom: 140px; }
}
