/* ==========================================================================
   가족의꿈 — 가족사진 전문 (v2)
   디자인 레퍼런스: design_assets/runway (runwayml.com/product)
   화이트 캔버스 · 중앙정렬 미디엄 헤딩 · 블랙 필 버튼 · 넉넉한 세로 리듬
   브랜드 액센트: 퍼플 #8559ec (Runway의 오렌지 아이콘 포인트 위치에만)
   ========================================================================== */
:root {
  --white: #fff;
  --off-black: #1a1a1a;
  --gray-7: #4b5563;
  --gray-5: #9ca3af;
  --gray-2: #e5e7eb;
  --gray-1: #f6f7f8;
  --purple: #8559ec;
  --wood: #a67c48;          /* 무드보드 프레임 (runway 콜라주 프레임 톤) */
  --font: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--off-black); background: var(--white); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.container { width: min(1280px, 100% - 3rem); margin-inline: auto; }

/* Runway 타이포: 중앙정렬 · 미디엄 굵기 · tracking-tight */
.h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); font-weight: 550; letter-spacing: -0.025em; line-height: 1.15; }
.h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
.sub { font-size: clamp(1rem, 1.4vw, 1.1875rem); color: var(--gray-7); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section__head { max-width: 720px; margin-inline: auto; text-align: center; }
.section__head .sub { margin-top: 1.125rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Runway 버튼: 컴팩트 블랙 필 + 아웃라인 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0.5625rem 1.125rem; border-radius: 8px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--black { background: var(--off-black); color: #fff; }
.btn--black:hover { background: #333; }
.btn--line { border: 1px solid var(--gray-2); background: #fff; }
.btn--line:hover { border-color: var(--off-black); }
.btn--lg { padding: 0.8125rem 1.625rem; font-size: 1.0625rem; border-radius: 10px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav__inner { display: flex; align-items: center; gap: 1.75rem; height: 60px; width: min(1400px, 100% - 3rem); margin-inline: auto; }
.nav__logo { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.nav__logo em { font-style: normal; color: var(--purple); }
.nav__menu { display: flex; gap: 1.375rem; margin-left: auto; }
.nav__menu a { font-size: 0.9063rem; font-weight: 500; color: var(--gray-7); }
.nav__menu a:hover { color: var(--off-black); }

/* ---------- HERO (Runway 홈: 풀하이트 인셋 미디어 + 문구·버튼 오버레이) ---------- */
.hero { padding: 76px 0 0; }
.hero__media {
  position: relative; overflow: hidden;
  border-radius: 14px;
  height: calc(100dvh - 96px); min-height: 560px;
  width: min(1560px, 100% - 2.5rem); margin-inline: auto;
  background: var(--gray-1);
  color: #fff; text-align: center;
}
.hero__media .blur-fill {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  filter: blur(34px) saturate(1.1) brightness(0.8);
  transform: scale(1.1);
}
.hero__media .main-img {
  position: absolute; inset: 0; margin: auto;
  height: 100%; width: auto; object-fit: contain;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.55) 100%);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 1.5rem clamp(3rem, 7vh, 5.5rem);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero__title {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
}
.hero__actions { margin-top: 2rem; }
.hero__actions .btn--white {
  background: #fff; color: var(--off-black);
  padding: 0.9375rem 1.75rem; font-size: 1.0625rem; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero__actions .btn--white:hover { background: var(--gray-2); }
.hero__caption { margin-top: 1.375rem; font-size: 0.9688rem; color: rgba(255,255,255,0.92); font-weight: 500; }
.hero__media .swap-note {
  position: absolute; right: 1rem; top: 1rem; z-index: 2;
  background: rgba(26,26,26,0.6); color: #fff;
  font-size: 0.75rem; letter-spacing: 0.06em;
  padding: 0.375rem 0.75rem; border-radius: 999px;
}

/* ---------- 상품 4열 카드 (Runway 'latest models and tools') ---------- */
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.375rem; margin-top: 3rem; }
.product__media { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--gray-1); }
.product__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 0.5s var(--ease); }
.product:hover .product__media img { transform: scale(1.04); }
.product h3 { margin-top: 1.125rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }
.product p { margin-top: 0.375rem; font-size: 0.9063rem; color: var(--gray-7); }
.product__actions { display: flex; gap: 0.5rem; margin-top: 0.9375rem; }
.product__actions .btn { padding: 0.4375rem 0.875rem; font-size: 0.8438rem; border-radius: 6px; }

/* ---------- 컨셉 무드보드 (Runway 'Dozens of tools') ---------- */
.concepts__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-top: 2.25rem; }
.concepts__tab {
  padding: 0.4375rem 1rem; border-radius: 999px;
  font-size: 0.9063rem; font-weight: 600; color: var(--gray-7);
  transition: all 0.2s;
}
.concepts__tab:hover { color: var(--off-black); }
.concepts__tab.is-active { background: var(--off-black); color: #fff; }
.concepts__body { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 3rem; }
.concepts__text h3 { font-size: 1.625rem; font-weight: 550; letter-spacing: -0.02em; }
.concepts__text p { margin-top: 1rem; color: var(--gray-7); font-size: 0.9688rem; }
.concepts__hintcard {
  margin-top: 1.75rem; border: 1px solid var(--gray-2); border-radius: 14px;
  padding: 1.125rem 1.25rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.concepts__hintcard img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.concepts__hintcard span { font-size: 0.9375rem; color: var(--gray-7); }
.concepts__hintcard .up {
  margin-left: auto; width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--gray-2); border-radius: 8px;
  display: grid; place-items: center; color: var(--gray-7);
}
/* 우드 프레임 콜라주 — 가족사진 액자 톤 */
.moodboard {
  background: var(--wood); border-radius: 6px;
  padding: clamp(0.875rem, 2vw, 1.5rem);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14), inset 0 0 0 2px rgba(255,255,255,0.18);
}
.moodboard__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 96px; gap: 4px; }
.moodboard__grid .cell { overflow: hidden; }
.moodboard__grid img { width: 100%; height: 100%; object-fit: cover; }
.cell--w2 { grid-column: span 2; }
.cell--w3 { grid-column: span 3; }
.cell--h2 { grid-row: span 2; }
.cell--ph { background: rgba(255,255,255,0.22); display: grid; place-items: center; color: rgba(255,255,255,0.85); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }

/* ---------- 액자 워크플로우 (Runway 'Build the Workflows') ---------- */
.frames { overflow: hidden; }
.frames__stage { position: relative; margin-top: 3.5rem; height: 640px; }
.frames__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.frames__wires path { fill: none; stroke: #d8cfc2; stroke-width: 1.5; }
.node {
  position: absolute; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-2);
  box-shadow: 0 14px 34px rgba(0,0,0,0.09);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.node:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0,0,0,0.14); z-index: 5; }
.node__head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5625rem 0.875rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  border-bottom: 1px solid var(--gray-2); background: #fff;
}
.node__head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.node__img { background: var(--gray-1); }
.node__img img { width: 100%; height: 100%; object-fit: cover; }
.node__meta { display: flex; align-items: center; justify-content: space-between; padding: 0.5625rem 0.875rem; font-size: 0.71875rem; color: var(--gray-5); font-variant-numeric: tabular-nums; }
.node__meta b { color: var(--off-black); font-size: 0.78125rem; }
.node--text { background: var(--off-black); color: #fff; border: 0; padding: 1rem 1.125rem; width: 240px; }
.node--text .label { font-size: 0.71875rem; color: var(--gray-5); display: block; margin-bottom: 0.5rem; }
.node--text p { font-size: 0.875rem; line-height: 1.55; }
/* 노드 배치 (데스크탑) */
.node--input  { left: 2%;  top: 300px; width: 190px; }
.node--prompt { left: 16%; top: 40px; }
.node--s11    { left: 33%; top: 200px; width: 210px; }
.node--s16    { left: 55%; top: 60px;  width: 250px; }
.node--s20    { left: 76%; top: 240px; width: 290px; }

/* ---------- 서비스 화이트 카드 (Runway 'Apps for Everything') ---------- */
.services-cards { background: var(--gray-1); }
.svc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; margin-top: 3rem; }
.svc {
  background: #fff; border: 1px solid var(--gray-2); border-radius: 14px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,0.08); }
.svc__icon {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--gray-2); display: grid; place-items: center;
  font-size: 1.25rem; color: var(--purple); margin-bottom: 0.875rem;
}
.svc h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
.svc p { font-size: 0.875rem; color: var(--gray-7); }
.svc__media { margin-top: 1rem; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--gray-1); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__media.ph { display: grid; place-items: center; color: var(--gray-5); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px dashed var(--gray-2); }

/* ---------- 지점 (미니멀 스트립) ---------- */
.branches__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2rem; margin-top: 2.75rem; }
.branch { border-top: 1px solid var(--gray-2); padding-top: 1rem; }
.branch b { font-size: 1rem; font-weight: 700; }
.branch p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--gray-7); }
.branch a { font-size: 0.8438rem; font-weight: 600; color: var(--purple); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--gray-2); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; text-align: left; font-size: 1.0313rem; font-weight: 600; }
.faq-q::after { content: "+"; font-size: 1.25rem; font-weight: 400; color: var(--gray-5); transition: transform 0.3s; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 0 1.25rem; color: var(--gray-7); font-size: 0.9375rem; }

/* ---------- CTA / FOOTER ---------- */
.cta { text-align: center; }
.cta__actions { display: flex; justify-content: center; gap: 0.625rem; margin-top: 2rem; }

.footer { background: var(--off-black); color: #fff; padding: 3.5rem 0 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__logo { font-weight: 800; font-size: 1.25rem; }
.footer__logo em { font-style: normal; color: var(--purple); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; color: var(--gray-5); }
.footer__links a:hover { color: #fff; }
.footer__copy { width: 100%; margin-top: 1.5rem; font-size: 0.8125rem; color: var(--gray-5); }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .frames__stage { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .frames__wires { display: none; }
  .node { position: static; width: auto !important; }
  .node--text { width: auto; }
}
@media (max-width: 860px) {
  .nav__menu { display: none; }
  .concepts__body { grid-template-columns: 1fr; }
  .svc__grid { grid-template-columns: 1fr; }
  .branches__grid { grid-template-columns: 1fr 1fr; }
  .hero__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .products__grid, .frames__stage, .branches__grid { grid-template-columns: 1fr; }
  .moodboard__grid { grid-auto-rows: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
