/* 은결 랜딩 — 고대비 미니멀(볼드 산세리프 + 따뜻한 테라코타) 디자인 시스템.
   참고 시안: docs/stitch_/DESIGN.md (Warm Minimalist). 폰트는 Pretendard 단일. */
:root {
  --bg: #FFFFFF;
  --surface: #F7F4F1;
  --surface-2: #EFE8E2;
  --ink: #1A140F;
  --ink-soft: #8A7E73;
  --line: rgba(26, 20, 15, .08);
  --line-strong: rgba(26, 20, 15, .14);
  --accent: #C96F4A;
  --accent-ink: #A9522F;
  --accent-soft: #F6E7DD;
  --dark: #1A140F;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }

/* 헤더 — 상단 고정, 반투명 블러 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.home-link .logo { width: 30px; height: 30px; border-radius: 8px; }
.nav-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  padding: 7px 14px;
  border-radius: 999px;
}
/* 히어로 위 투명 헤더 — JS가 clear를 부여(미동작 시 흰 헤더 고정, 무해).
   overlay는 랜딩 전용: 흐름에서 빼내 히어로 위에 겹친다(법적 문서 페이지는 sticky 유지). */
.site-header { transition: background .3s ease, border-color .3s ease; }
.site-header.overlay { position: fixed; top: 0; left: 0; right: 0; }
.site-header.clear { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.clear .home-link, .site-header.clear .site-nav a { color: #fff; }
.site-header.clear .nav-chip { background: rgba(255,255,255,.16); color: #fff; }

/* 상단 앵커 내비 — 데스크톱 전용(모바일은 로고+칩만) */
.bar-right { display: flex; align-items: center; gap: 20px; }
.site-nav { display: none; }
/* 스티키 헤더(64px)에 가리지 않도록 앵커 위치 보정 */
section[id] { scroll-margin-top: 84px; }

/* 곧 출시 배지 — 활성 버튼처럼 보이지 않게 '상태'로 표현 */
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.badge-soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* 시네마틱 히어로 — 실사 3장 크로스페이드(21s), 장면별 카메라 워크 */
.cine-hero { position: relative; overflow: hidden; background: #14100C; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.cine-slide { position: absolute; inset: -5%; background-size: cover; background-position: center 30%; opacity: 0; }
.cine-slide.s1 { background-image: url('../assets/8.webp'); animation: cineA 21s ease-in-out infinite; }
.cine-slide.s2 { background-image: url('../assets/3.webp'); animation: cineB 21s ease-in-out infinite 7s; }
.cine-slide.s3 { background-image: url('../assets/7.webp'); animation: cineC 21s ease-in-out infinite 14s; }
@keyframes cineA { 0% {opacity:0; transform:scale(1.07);} 5% {opacity:1;} 33% {opacity:1; transform:scale(1);} 40% {opacity:0;} 100% {opacity:0;} }
@keyframes cineB { 0% {opacity:0; transform:translateX(1.6%) scale(1.04);} 5% {opacity:1;} 33% {opacity:1; transform:translateX(-1.6%) scale(1.04);} 40% {opacity:0;} 100% {opacity:0;} }
@keyframes cineC { 0% {opacity:0; transform:scale(1);} 5% {opacity:1;} 33% {opacity:1; transform:scale(1.07);} 40% {opacity:0;} 100% {opacity:0;} }
.cine-veil { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(10,7,5,.55) 100%),
  linear-gradient(180deg, rgba(20,16,12,.6) 0%, rgba(20,16,12,.34) 45%, rgba(20,16,12,.78) 100%); }
.cine-copy { position: relative; z-index: 2; padding: 140px 20px 120px; max-width: 860px; }
.cine-copy h1 { color: #fff; font-size: clamp(40px, 7.2vw, 72px); line-height: 1.12; letter-spacing: -.03em; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.cine-copy h1 em { font-style: normal; color: #F2B08C; }
.cine-copy h1 .l { display: block; opacity: 0; transform: translateY(26px); animation: rise 1s cubic-bezier(.2,.7,.3,1) forwards; }
.cine-copy h1 .l2 { animation-delay: .35s; }
.cine-sub { margin: 26px auto 36px; color: rgba(255,255,255,.86); font-size: clamp(16px, 2.3vw, 19.5px); font-weight: 500; line-height: 1.7; max-width: 30em; text-shadow: 0 2px 16px rgba(0,0,0,.4); opacity: 0; transform: translateY(20px); animation: rise 1s cubic-bezier(.2,.7,.3,1) .7s forwards; }
.cine-cta { opacity: 0; animation: rise 1s ease 1.05s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.badge-soon.on-dark { background: rgba(255,255,255,.95); border-color: transparent; }
.cine-caption { position: absolute; z-index: 2; bottom: 64px; left: 0; right: 0; height: 24px; pointer-events: none; }
.cine-caption span { position: absolute; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.72); font-size: 14.5px; font-weight: 600; letter-spacing: .01em; text-shadow: 0 2px 12px rgba(0,0,0,.5); white-space: nowrap; opacity: 0; }
.cine-caption .c1 { animation: cap 21s ease-in-out infinite; }
.cine-caption .c2 { animation: cap 21s ease-in-out infinite 7s; }
.cine-caption .c3 { animation: cap 21s ease-in-out infinite 14s; }
@keyframes cap { 0% {opacity:0; transform:translate(-50%, 8px);} 6% {opacity:1; transform:translate(-50%, 0);} 30% {opacity:1;} 37% {opacity:0;} 100% {opacity:0;} }
.scroll-cue { position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%); width: 22px; height: 34px; border: 1.6px solid rgba(255,255,255,.45); border-radius: 12px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: rgba(255,255,255,.75); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% {opacity:0; transform:translateY(0);} 30% {opacity:1;} 100% {opacity:0; transform:translateY(10px);} }
@media (prefers-reduced-motion: reduce) {
  .cine-slide, .cine-caption span, .scroll-cue::after { animation: none !important; }
  .cine-slide.s1, .cine-caption .c1 { opacity: 1; }
  .cine-slide.s1 { transform: none; }
  .cine-copy h1 .l, .cine-sub, .cine-cta { animation: none; opacity: 1; transform: none; }
}

/* 흐름 3단계 — 헤딩 + 단계 + 가로 가득 채우는 실사 이미지 밴드 */
.section-head h2 { font-size: clamp(28px, 5.5vw, 48px); letter-spacing: -.025em; }
.section-head .lead { margin-top: 14px; color: var(--ink-soft); font-size: 17px; font-weight: 500; }
.step-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.step-list li { display: flex; gap: 18px; }
.steps-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  margin-top: 40px;
}
.steps-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.step-num {
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  width: 34px;
  letter-spacing: -.02em;
}
.step-body h3 { font-size: clamp(19px, 3vw, 24px); margin-bottom: 6px; }
.step-body p { color: var(--ink-soft); font-size: 16px; }

/* 기능 시리즈 — 헤딩 + 가로 가득 채우는 실사 이미지 밴드 */
.features { padding-top: 16px; display: flex; flex-direction: column; gap: 64px; }
.feature { display: flex; flex-direction: column; gap: 22px; }
.feat-copy h3 { font-size: clamp(26px, 5vw, 40px); letter-spacing: -.025em; line-height: 1.15; }
.feat-copy p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; font-weight: 500; max-width: 30em; }

.feat-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
}
.feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 감정 은하 — 프라이버시와 이어지는 '밤 밴드'의 감성 다크 */
.galaxy { background: #171129; color: #fff; position: relative; overflow: hidden; padding: 96px 0; }
.galaxy .container { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.galaxy h2 { color: #fff; font-size: clamp(28px, 5.5vw, 48px); letter-spacing: -.025em; }
.gx-eyebrow { color: #C9A7E8; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.gx-lead { margin-top: 20px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.75; max-width: 30em; }
.gx-points { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.gx-points span { color: rgba(255,255,255,.85); font-size: 15px; font-weight: 600; }
.gx-points span::before { content: "✦"; color: #E9A17C; margin-right: 10px; }
.gx-phone { justify-self: center; width: min(300px, 78vw); border-radius: 36px; padding: 12px; background: #0d0a18; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1.5px rgba(255,255,255,.09); }
.gx-phone img { width: 100%; border-radius: 26px; display: block; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .5; animation: tw 3.4s ease-in-out infinite; }
@keyframes tw { 0%,100% { opacity: .12; transform: scale(.8);} 50% { opacity: .85; transform: scale(1.25);} }
@media (min-width: 860px) { .galaxy .container { grid-template-columns: 1.1fr .9fr; } }
@media (prefers-reduced-motion: reduce) { .star { animation: none; opacity: .4; } }

/* 프라이버시 — 다크 섹션 */
.privacy {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 88px 0;
}
.privacy .lock {
  width: 56px; height: 56px; margin: 0 auto 24px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.privacy .lock svg { width: 26px; height: 26px; }
.privacy h2 { font-size: clamp(28px, 5.5vw, 48px); letter-spacing: -.025em; color: #fff; }
.privacy p {
  max-width: 38em;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, .72);
  font-size: 17px;
  line-height: 1.7;
}
.privacy .more {
  display: inline-block;
  margin-top: 26px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
}

/* FAQ — 프라이버시 강점을 문답으로 한 번 더 */
.faq { background: var(--surface); padding: 64px 0; }
.faq h2 { font-size: clamp(28px, 5.5vw, 44px); letter-spacing: -.025em; }
.faq-list { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 16.5px; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
@media (min-width: 768px) { .faq { padding: 96px 0; } }

/* CTA */
.cta { text-align: center; padding: 96px 0; }
.cta h2 { font-size: clamp(30px, 6vw, 54px); letter-spacing: -.03em; }
.cta p { margin: 16px 0 30px; color: var(--ink-soft); font-size: 17px; font-weight: 500; }

/* 푸터 */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 48px 0 56px;
}
.foot-grid { display: flex; flex-direction: column; gap: 24px; }
.foot-brand { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-footer nav a:hover { color: var(--accent); }
.foot-meta { color: var(--ink-soft); font-size: 14px; }
.foot-meta a { color: var(--ink-soft); }
.foot-meta p { margin: 2px 0; }

/* 법적 문서 페이지 */
.legal { max-width: 680px; margin: 0 auto; padding: 48px 0 72px; }
.legal h1 { font-size: clamp(28px, 6vw, 36px); letter-spacing: -.025em; }
.legal .updated { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.legal > p { margin-top: 18px; }
.legal section { margin-top: 32px; }
.legal h2 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 12px; }
.legal section p { margin: 0 0 12px; }

/* 스크롤 등장 연출 (점진적 향상 — JS 없으면 그냥 보임) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 데스크톱 */
@media (min-width: 768px) {
  .section { padding: 96px 0; }

  .site-nav { display: flex; gap: 28px; }
  .site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -.01em; transition: color .15s ease; }
  .site-nav a:hover { color: var(--accent); }

  .step-list { flex-direction: row; gap: 40px; margin-top: 36px; }
  .step-list li { flex: 1; }
  .steps-media { aspect-ratio: 16 / 10; margin-top: 52px; }

  .features { gap: 112px; padding-top: 28px; }
  .feature { gap: 36px; }
  .feat-media { aspect-ratio: 16 / 10; }
}

/* 나를 알아가는 섹션 — 서브 톤 배경으로 3단계/기능 사이 완충 */
.discover { background: #FBF8F4; }
.discover-block { margin-top: 40px; }
.discover h3 { font-size: clamp(22px, 4.5vw, 32px); letter-spacing: -.025em; }
.discover-block > p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 500;
  max-width: 34em;
}
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
/* 성향 결과 카드 — 일러스트가 '내 유형 결과'로 읽히도록 유형명 캡션을 붙인다 */
.persona-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 10px 14px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(26, 20, 15, .06);
}
.persona-card img { width: 100%; border-radius: 10px; }
.persona-card figcaption { margin-top: 10px; line-height: 1.35; }
.p-name { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; }
.p-code { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }

/* 성향 리빌 프레임 — 결과 발표 순간의 축약 연출(실기기 장면 확보 시 배경 교체) */
.reveal-frame { margin-top: 26px; border-radius: 20px; overflow: hidden; position: relative; background: linear-gradient(160deg, #241a30 0%, #3a2233 55%, #6b3a2e 100%); padding: 52px 28px 44px; text-align: center; }
.reveal-frame .rv-eyebrow { color: rgba(255,255,255,.55); font-size: 13.5px; font-weight: 600; }
.reveal-frame .rv-line { margin-top: 14px; color: #fff; font-size: clamp(20px, 3.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.reveal-frame .caret { border-right: 2px solid rgba(255,255,255,.8); animation: blink 1s step-end infinite; padding-right: 2px; }
@keyframes blink { 50% { border-color: transparent; } }
.reveal-frame .rv-voice { margin-top: 16px; color: rgba(255,255,255,.65); font-size: 14px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .reveal-frame .caret { animation: none; } }

@media (min-width: 768px) {
  .discover-block { margin-top: 56px; }
  .persona-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .p-name { font-size: 14px; }
}

/* 실용 기능 미니 그리드 — 이미지 없는 기능 확장(되묻기·검색·공유·잠금) */
.mini-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; }
.mini-feature { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; }
.mini-ic { font-size: 24px; display: block; line-height: 1; }
.mini-feature h3 { margin: 12px 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.mini-feature p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

@media (min-width: 768px) {
  .mini-features { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 88px; }
}
