/* ═══════════════════════════════════════════════════════════
   concept.css — 화엄53세계 전용 컴포넌트
   (base.css를 보완. 컨셉 고유의 히어로·인드라망·순례길·타일 등)
   ═══════════════════════════════════════════════════════════ */

/* ── 선택 색 ── */
::selection { background: rgba(201,162,74,.28); color: #fff; }

/* 금빛 그라디언트 텍스트 유틸 */
.gold-text {
  background: linear-gradient(180deg, #f0d996 0%, var(--brand) 55%, var(--accent-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* 영문 게송(偈頌) — Cormorant 이탤릭 */
.verse-en {
  font-family: var(--font-en); font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.5;
  color: var(--ink-soft); letter-spacing: .01em;
}

/* 산스크리트/키워드 라벨 */
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  color: var(--brand);
}
.kicker::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
}
.kicker.center { justify-content: center; }
.kicker.center::after {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

/* 섹션 상단 정렬 헤더 */
.sec-head { max-width: 62ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-top: .8rem; }
.sec-head .lead { margin-top: 1.1rem; }
.sec-head.center .lead { margin-inline: auto; }

/* 얇은 금빛 구분선 */
.rule-gold {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-gold) 20%, var(--line-gold) 80%, transparent);
}

/* ══════════════════ 헤더 로고 ══════════════════ */
.nav__logo { display: inline-flex; align-items: baseline; gap: .5em; }
.nav__logo .en { font-family: var(--font-en); font-style: italic; font-weight: 500; font-size: .82em; color: var(--ink-faint); }

/* ══════════════════ 히어로 ══════════════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(201,162,74,.12), transparent 55%),
    radial-gradient(90% 80% at 12% 100%, rgba(134,180,166,.09), transparent 60%),
    var(--bg-deep);
}
/* 히어로 배경 사진 (도시+사원) — 없으면 자연스레 배경만 보임 */
.hero__photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(9,10,17,.92) 0%, rgba(9,10,17,.5) 45%, rgba(9,10,17,.35) 100%),
    linear-gradient(180deg, rgba(9,10,17,.35) 0%, rgba(9,10,17,.2) 45%, rgba(13,15,23,.96) 100%),
    url("/assets/hero-city.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center 20%;
  background-repeat: no-repeat;
}
/* 인드라망 캔버스 */
.hero__net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; mix-blend-mode: screen;
}
/* 하단 페이드 */
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, transparent, var(--bg)); z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 46rem; }
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: var(--fs-hero); line-height: 1.08; letter-spacing: -.01em;
  margin-top: 1.2rem;
}
.hero__sub {
  margin-top: 1.4rem; font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--ink);
  font-weight: 400;
}
.hero .verse-en { margin-top: .5rem; }
.hero .lead { margin-top: 1.6rem; }
.hero .btn-row { margin-top: 2.4rem; }

/* 스크롤 힌트 */
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; color: var(--ink-faint); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint span {
  width: 1px; height: 40px;
  background: linear-gradient(var(--brand), transparent);
  animation: scrollpulse 2.4s var(--ease) infinite;
}
@keyframes scrollpulse { 0%,100%{opacity:.3; transform:scaleY(.6)} 50%{opacity:1; transform:scaleY(1)} }

/* ══════════════════ 버튼 (금박) ══════════════════ */
.btn--primary {
  background: linear-gradient(180deg, var(--accent), var(--brand));
  color: var(--brand-ink); box-shadow: 0 10px 30px -12px rgba(201,162,74,.6);
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(201,162,74,.75); }
.btn--ghost { border: 1px solid var(--line-gold); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); background: rgba(201,162,74,.06); }

/* ══════════════════ 세계관 인용 ══════════════════ */
.world {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(201,162,74,.06), transparent 60%),
    var(--bg);
}
.world__quote {
  max-width: 30ch; margin-inline: auto; text-align: center;
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.6rem); line-height: 1.4;
}
.world__quote em { font-style: normal; }
.world__grid { margin-top: clamp(3rem, 6vw, 5rem); }
.world__stat { text-align: center; padding: 1.2rem 0; }
.world__stat b {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1;
}
.world__stat span { display: block; margin-top: .6rem; color: var(--ink-soft); font-size: .95rem; }

/* ══════════════════ 세 공간 카드 ══════════════════ */
.space-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.space-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 80% at 100% 0%, rgba(201,162,74,.14), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.space-card:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: var(--shadow-lg); }
.space-card:hover::before { opacity: 1; }
.space-card__no {
  font-family: var(--font-en); font-style: italic; font-size: 1.1rem; color: var(--brand);
}
.space-card__glyph {
  width: 60px; height: 60px; margin: .4rem 0 1.4rem; color: var(--brand);
}
.space-card h3 {
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3);
  letter-spacing: -.01em;
}
.space-card h3 .en { display: block; font-family: var(--font-en); font-style: italic; font-weight: 500; font-size: .8rem; color: var(--ink-faint); margin-top: .2rem; letter-spacing: .02em; }
.space-card p { color: var(--ink-soft); margin-top: .9rem; position: relative; }
.space-card ul { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .55rem; position: relative; }
.space-card li { display: flex; gap: .6em; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.space-card li::before { content: "◦"; color: var(--brand); margin-top: -.05em; }

/* ══════════════════ 디지털 사원 쇼케이스 ══════════════════ */
.showcase-sec { padding-block: clamp(48px, 7vw, 96px); }
.showcase {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  min-height: clamp(340px, 46vw, 560px); display: flex; align-items: flex-end;
}
.showcase__img {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(9,10,17,.15) 0%, rgba(9,10,17,.35) 55%, rgba(9,10,17,.92) 100%),
    linear-gradient(90deg, rgba(9,10,17,.55), transparent 60%),
    var(--card-hi) url("/assets/temple-cave.jpg") center/cover no-repeat;
  transition: transform 1.2s var(--ease);
}
.showcase:hover .showcase__img { transform: scale(1.04); }
.showcase__cap {
  position: relative; z-index: 1;
  padding: clamp(24px, 4vw, 48px); max-width: 60ch;
}
.showcase__cap h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem); margin-top: .8rem; color: var(--ink);
}
.showcase__cap > p:last-child { color: var(--ink-soft); margin-top: .8rem; max-width: 52ch; }

/* ══════════════════ 순례길 (53선지식) ══════════════════ */
.pilgrimage { background: var(--bg-soft); position: relative; }
.path {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; gap: 11px; justify-content: center;
  max-width: 900px; margin-inline: auto;
}
.path__node {
  --d: 34px;
  width: var(--d); height: var(--d); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-en); font-size: .74rem; color: var(--ink-faint);
  border: 1px solid var(--line); background: var(--card);
  transition: transform .3s var(--ease), color .3s, border-color .3s, box-shadow .3s;
  cursor: default;
}
.path__node:hover { transform: scale(1.18); color: var(--brand); border-color: var(--brand); box-shadow: var(--glow-gold); }
.path__node.is-key {
  background: linear-gradient(180deg, var(--accent), var(--brand));
  color: var(--brand-ink); border-color: transparent; font-family: var(--font-head); font-weight: 700;
  box-shadow: 0 6px 18px -6px rgba(201,162,74,.6);
}
.path__legend {
  margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; justify-content: center;
  font-size: .88rem; color: var(--ink-soft);
}
.path__legend b { color: var(--ink); font-weight: 600; font-family: var(--font-head); }
.path__legend .num { color: var(--brand); font-family: var(--font-en); font-style: italic; margin-right: .35em; }

/* 여정 단계 (퀘스트) */
.journey { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(16px,2.4vw,26px); grid-template-columns: repeat(3,1fr); }
.journey__step {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px,2.6vw,30px); background: var(--card); position: relative;
}
.journey__step .step-no { font-family: var(--font-en); font-style: italic; color: var(--brand); font-size: 1.2rem; }
.journey__step h4 { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-top: .5rem; }
.journey__step p { color: var(--ink-soft); font-size: .95rem; margin-top: .6rem; }

/* ══════════════════ 타일 / 보유 EPL ══════════════════ */
.tiles-grid {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 18px);
}
.tile-epl {
  position: relative; display: flex; flex-direction: column; gap: .35rem;
  padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.tile-epl::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.tile-epl:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: var(--shadow); }
.tile-epl:hover::after { transform: scaleX(1); }
.tile-epl .ko { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.tile-epl .en { font-family: var(--font-en); font-style: italic; color: var(--brand); font-size: .95rem; }
.tile-epl .url { font-size: .74rem; color: var(--ink-faint); margin-top: .3rem; letter-spacing: .01em; word-break: break-all; }
.tile-epl .arrow { position: absolute; top: 18px; right: 18px; color: var(--ink-faint); opacity: 0; transform: translate(-3px,3px); transition: .3s var(--ease); }
.tile-epl:hover .arrow { opacity: 1; transform: none; color: var(--brand); }

/* ══════════════════ 쉼 (명상) ══════════════════ */
.rest {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(134,180,166,.08), transparent 65%),
    var(--bg-deep);
  text-align: center;
}
.rest__lotus { color: var(--jade); width: 72px; height: 72px; margin: 0 auto 1.6rem; opacity: .9; }
.rest__quote {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.5;
  max-width: 24ch; margin-inline: auto;
}
.rest__tags { margin-top: 2rem; display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.rest__tags span {
  padding: .5em 1.2em; border: 1px solid var(--line-gold); border-radius: 999px;
  font-size: .85rem; color: var(--ink-soft);
}

/* ══════════════════ CTA / 초대 ══════════════════ */
.invite {
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(201,162,74,.1), transparent 60%),
    var(--bg);
}
.invite__band {
  border: 1px solid var(--line-gold); border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 84px); text-align: center;
  background: linear-gradient(180deg, var(--card-hi), var(--bg-deep));
  position: relative; overflow: hidden;
}
.invite__band h2 { font-family: var(--font-head); }
.invite__band .verse-en { margin: 1.4rem auto 0; max-width: 44ch; }
.invite__band .lead { margin: 1.2rem auto 0; }

/* ══════════════════ 문의 폼 ══════════════════ */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px,4vw,44px); }
.field input, .field textarea { background: var(--bg-deep); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(201,162,74,.12); }

/* 배지 하이라이트 */
.chip { display: inline-block; padding: .35em 1em; border: 1px solid var(--line-gold); border-radius: 999px; font-size: .78rem; color: var(--brand); letter-spacing: .04em; }

/* ══════════════════ 반응형 ══════════════════ */
@media (max-width: 900px) {
  .tiles-grid { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .path__node { --d: 30px; }
  .hero { min-height: auto; padding-block: clamp(90px, 22vw, 140px); }
}
@media (max-width: 400px) {
  .tiles-grid { grid-template-columns: 1fr; }
}
