/* =========================================================
   유발마사지 — style.css
   디자인 틀: shadcn/ui (New York) 스타일을 순수 CSS로 재현
   뉴트럴 zinc 토큰 · 미세 보더 · 모노크롬 · 다크/라이트
   ========================================================= */

/* ---------- shadcn 디자인 토큰 (HSL) ---------- */
:root {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-elevated: 240 6% 10%;
  --popover: 240 10% 3.9%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --accent-emerald: 152 76% 44%;
  --ring: 240 4.9% 70%;

  --radius: 0.65rem;
  --maxw: 1120px;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --shadow-card: 0 1px 0 0 hsl(0 0% 100% / .04) inset, 0 16px 40px -12px hsl(0 0% 0% / .5);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="light"] {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-elevated: 0 0% 100%;
  --popover: 0 0% 100%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --ring: 240 5.9% 10%;
  --shadow-card: 0 1px 2px hsl(240 6% 10% / .06), 0 12px 32px -12px hsl(240 6% 10% / .12);
}

/* ---------- 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: hsl(var(--foreground) / .16); }

/* ---------- 배경 레이어 (그리드 + 스포트라이트) ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(hsl(var(--foreground) / .035) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground) / .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-spot {
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 12%), hsl(var(--foreground) / .06), transparent 60%);
  transition: background .2s linear;
}

/* ---------- 유틸 ---------- */
.container { width: min(92%, var(--maxw)); margin-inline: auto; }
.muted { color: hsl(var(--muted-foreground)); }
.mono { font-family: var(--font-mono); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.022em; line-height: 1.12; }
.h-display { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.h-section { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---------- Badge (shadcn) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 500; line-height: 1;
  padding: .34rem .7rem; border-radius: 100px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / .5);
  color: hsl(var(--foreground));
}
.badge--solid { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--accent-emerald)); box-shadow: 0 0 0 3px hsl(var(--accent-emerald) / .18); }
.badge .arr { transition: transform .25s var(--ease); }
.badge:hover .arr { transform: translateX(3px); }

/* ---------- Button (shadcn) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.65rem; padding: 0 1.15rem; border-radius: calc(var(--radius) - 1px);
  font-size: .94rem; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn--primary:hover { background: hsl(var(--primary) / .9); transform: translateY(-1px); }
.btn--outline { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.btn--outline:hover { background: hsl(var(--muted) / .6); }
.btn--ghost { background: transparent; color: hsl(var(--foreground)); }
.btn--ghost:hover { background: hsl(var(--muted) / .6); }
.btn--secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn--secondary:hover { background: hsl(var(--secondary) / .8); }
.btn--sm { height: 2.2rem; padding: 0 .85rem; font-size: .86rem; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Card (shadcn) ---------- */
.card {
  background: hsl(var(--card-elevated));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { border-color: hsl(var(--foreground) / .22); }
.card__icon {
  width: 40px; height: 40px; border-radius: calc(var(--radius) - 2px);
  display: grid; place-items: center; font-size: 1.15rem;
  background: hsl(var(--muted) / .7); border: 1px solid hsl(var(--border)); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.card p { font-size: .92rem; color: hsl(var(--muted-foreground)); }

.separator { height: 1px; background: hsl(var(--border)); border: 0; }

/* =========================================================
   스크롤 진행 바
   ========================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: hsl(var(--foreground)); z-index: 1000; }

/* =========================================================
   Header (shadcn 상단바)
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease), background .4s var(--ease);
}
.header.scrolled { background: hsl(var(--background) / .72); backdrop-filter: blur(12px) saturate(160%); border-bottom-color: hsl(var(--border)); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 3.9rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: -.01em; }
.brand__mark { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 700; font-size: .9rem; font-family: var(--font-mono); }
.brand small { font-family: var(--font-mono); font-size: .62rem; color: hsl(var(--muted-foreground)); letter-spacing: .05em; }

.nav { display: flex; align-items: center; gap: .4rem; }
.nav__list { display: flex; align-items: center; gap: .2rem; }
.nav__list a { font-size: .9rem; color: hsl(var(--muted-foreground)); padding: .5rem .8rem; border-radius: calc(var(--radius) - 2px); transition: color .2s, background .2s; }
.nav__list a:hover { color: hsl(var(--foreground)); background: hsl(var(--muted) / .5); }
.nav__sep { width: 1px; height: 20px; background: hsl(var(--border)); margin: 0 .5rem; }

.icon-btn { width: 2.35rem; height: 2.35rem; border-radius: calc(var(--radius) - 2px); border: 1px solid hsl(var(--border)); background: transparent; color: hsl(var(--foreground)); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: hsl(var(--muted) / .6); }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.nav__toggle { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: 9.5rem 0 6rem; overflow: hidden; }
.hero__inner { position: relative; z-index: 5; max-width: 760px; }
.hero .announce { margin-bottom: 1.6rem; }
.hero__title { margin-bottom: 1.4rem; }
.hero__title .grad { background: linear-gradient(180deg, hsl(var(--foreground)), hsl(var(--foreground) / .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-bottom: 2.2rem; max-width: 52ch; }
.hero__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 1.8rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__meta .m b { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.hero__meta .m small { display: block; font-size: .82rem; color: hsl(var(--muted-foreground)); }

/* 떠다니는 컴포넌트 목업 (스크롤·마우스 패럴랙스) */
.floaters { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.floaty { position: absolute; will-change: transform; }
.mini {
  background: hsl(var(--card-elevated)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); box-shadow: var(--shadow-card); padding: .85rem 1rem;
  backdrop-filter: blur(6px);
}
.mini__row { display: flex; align-items: center; gap: .55rem; }
.mini__dot { width: 9px; height: 9px; border-radius: 50%; }
.mini .lbl { font-size: .8rem; font-weight: 500; }
.mini .sub { font-size: .7rem; color: hsl(var(--muted-foreground)); font-family: var(--font-mono); }
.switch { width: 34px; height: 20px; border-radius: 100px; background: hsl(var(--accent-emerald)); position: relative; }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.mini-badge { font-size: .68rem; font-family: var(--font-mono); padding: .2rem .5rem; border-radius: 6px; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.bars i { width: 7px; background: hsl(var(--foreground) / .8); border-radius: 2px; }
.floaty--1 { top: 14%; right: 6%; }
.floaty--2 { top: 46%; right: 20%; }
.floaty--3 { top: 70%; right: 8%; }
.floaty--4 { top: 30%; right: 38%; }

/* =========================================================
   마퀴 (키워드 스트립)
   ========================================================= */
.marquee { border-block: 1px solid hsl(var(--border)); padding: 1.1rem 0; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: inline-flex; align-items: center; gap: 2.6rem; will-change: transform; animation: marq 28s linear infinite; }
.marquee__track span { font-size: .95rem; color: hsl(var(--muted-foreground)); font-family: var(--font-mono); letter-spacing: .02em; }
.marquee__track .dot { color: hsl(var(--foreground) / .3); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   진입 애니메이션
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

/* =========================================================
   섹션 공통
   ========================================================= */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head .badge { margin-bottom: 1rem; }
.section__head h2 { margin-bottom: .9rem; }

/* Features (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.bento .card { grid-column: span 2; }
.bento .card--wide { grid-column: span 3; }
.bento .card--tall { grid-column: span 3; }
.bento .card__big { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; }

/* Programs (pricing 형태) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.plan { position: relative; background: hsl(var(--card-elevated)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.6rem; transition: border-color .3s, transform .3s var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: hsl(var(--foreground) / .22); }
.plan--featured { border-color: hsl(var(--foreground) / .35); }
.plan--featured::before { content: "추천"; position: absolute; top: -.7rem; right: 1.3rem; font-size: .7rem; font-family: var(--font-mono); padding: .2rem .55rem; border-radius: 6px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.plan__name { font-size: .82rem; font-family: var(--font-mono); color: hsl(var(--muted-foreground)); letter-spacing: .04em; }
.plan__price { font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; margin: .5rem 0 .2rem; }
.plan__price small { font-size: .85rem; font-weight: 400; color: hsl(var(--muted-foreground)); }
.plan__time { font-size: .82rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.1rem; }
.plan__list { display: grid; gap: .55rem; margin: 1.1rem 0 1.4rem; }
.plan__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: hsl(var(--muted-foreground)); }
.plan__list .ck { color: hsl(var(--foreground)); flex: 0 0 auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.step { background: hsl(var(--card-elevated)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.5rem; }
.step .sn { font-family: var(--font-mono); font-size: .8rem; color: hsl(var(--muted-foreground)); }
.step h4 { font-size: 1.02rem; margin: .7rem 0 .4rem; }
.step p { font-size: .9rem; color: hsl(var(--muted-foreground)); }

/* Accordion (FAQ) */
.faq { max-width: 760px; margin-inline: auto; border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; }
.ac { border-bottom: 1px solid hsl(var(--border)); }
.ac:last-child { border-bottom: 0; }
.ac__q { width: 100%; text-align: left; background: transparent; border: 0; color: inherit; cursor: pointer; padding: 1.25rem 1.4rem; font-size: 1rem; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: inherit; }
.ac__q:hover { background: hsl(var(--muted) / .4); }
.ac__q .chev { transition: transform .3s var(--ease); color: hsl(var(--muted-foreground)); flex: 0 0 auto; }
.ac.open .ac__q .chev { transform: rotate(180deg); }
.ac__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.ac__a p { padding: 0 1.4rem 1.25rem; font-size: .94rem; color: hsl(var(--muted-foreground)); }

/* CTA */
.cta-card { position: relative; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) + 4px); padding: clamp(2.4rem, 5vw, 4rem); text-align: center; background: hsl(var(--card-elevated)); }
.cta-card .bg-grid { mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%); }
.cta-card h2 { margin-bottom: .9rem; position: relative; z-index: 2; }
.cta-card .lead { margin: 0 auto 1.8rem; max-width: 46ch; position: relative; z-index: 2; }
.cta-card .hero__actions { justify-content: center; position: relative; z-index: 2; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-list { display: grid; gap: .8rem; }
.info-item { display: flex; gap: 1rem; align-items: center; background: hsl(var(--card-elevated)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.info-item .ic { width: 40px; height: 40px; border-radius: calc(var(--radius) - 2px); display: grid; place-items: center; background: hsl(var(--muted) / .7); border: 1px solid hsl(var(--border)); font-size: 1.1rem; flex: 0 0 auto; }
.info-item h4 { font-size: .72rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: .15rem; font-weight: 500; }
.info-item p, .info-item a { font-size: .98rem; }
.map-card { position: relative; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: var(--radius); min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; background: hsl(var(--card-elevated)); }
.map-card .pin { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); font-size: 2rem; will-change: transform; }
.map-card b { position: relative; z-index: 2; }
.map-card p { position: relative; z-index: 2; font-size: .9rem; color: hsl(var(--muted-foreground)); }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid hsl(var(--border)); padding: 3.5rem 0 2.2rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; }
.footer__brand p { font-size: .9rem; color: hsl(var(--muted-foreground)); max-width: 34ch; margin-top: 1rem; }
.footer__sns { display: flex; gap: .5rem; margin-top: 1.2rem; }
.footer__sns a { width: 36px; height: 36px; border-radius: calc(var(--radius) - 2px); border: 1px solid hsl(var(--border)); display: grid; place-items: center; font-size: .72rem; font-family: var(--font-mono); color: hsl(var(--muted-foreground)); transition: background .2s, color .2s; }
.footer__sns a:hover { background: hsl(var(--muted) / .6); color: hsl(var(--foreground)); }
.footer__col h5 { font-size: .72rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.footer__col a, .footer__col p { display: block; font-size: .9rem; color: hsl(var(--muted-foreground)); margin-bottom: .55rem; }
.footer__col a:hover { color: hsl(var(--foreground)); }
.footer__biz { font-size: .82rem; color: hsl(var(--muted-foreground)); line-height: 1.9; padding-top: 1.6rem; border-top: 1px solid hsl(var(--border)); }
.footer__biz strong { color: hsl(var(--foreground)); font-weight: 500; }
.footer__bottom { margin-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: hsl(var(--muted-foreground)); }
.footer__bottom .mono { font-size: .76rem; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 900px) {
  .bento .card, .bento .card--wide, .bento .card--tall { grid-column: span 3; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .floaty--4 { display: none; }
}
@media (max-width: 720px) {
  .nav__list, .nav__sep { display: none; }
  .floaters { display: none; }
  .hero { padding-top: 8rem; }
}
@media (max-width: 560px) {
  .bento .card, .bento .card--wide, .bento .card--tall { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .floaty, .pin { transform: none !important; }
}
