/*
 * 홈페이지 전용 스타일 — Apple Store(apple.com/kr/store) 참고
 * 큰 타이포·여백, 이미지 중심 스포트라이트 패널, 가로 스크롤 캐러셀로
 * 체류시간을 늘리는 방향으로 재구성. 사이트 전체 단일 accent 원칙(STEP 2-4)은 유지.
 */

/* ── 히어로: 몰입감 있는 대형 타이틀 + 은은한 글로우 ── */
.hero--immersive {
  position: relative;
  max-width: 1080px;
  padding: 108px 20px 64px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.hero--immersive .hero-eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.hero--immersive h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.75rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero--immersive .lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 44px;
}
.btn-cta--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-cta--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 520px;
}
.hero-stats li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid var(--border);
}
.hero-stats li:first-child { border-left: none; }
.hero-stats strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── 스포트라이트: 허브 가이드를 Apple 제품 페이지 스타일 대형 패널로 ── */
.spotlight-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
}
.spotlight--reverse {
  grid-template-columns: 1fr 1.1fr;
}
.spotlight--reverse .spotlight__visual { order: 2; }
.spotlight--reverse .spotlight__body { order: 1; }
.spotlight__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}
.spotlight__body { padding: 8px 0; }
.spotlight__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.spotlight__body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.spotlight__body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.spotlight__link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--accent);
}
.spotlight__link:hover { text-decoration: none; opacity: 0.8; }
@media (max-width: 860px) {
  .spotlight, .spotlight--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .spotlight--reverse .spotlight__visual,
  .spotlight--reverse .spotlight__body { order: initial; }
  .spotlight-list { gap: 56px; }
}

/* ── 섹션 헤드: 오른쪽에 컨트롤을 두는 split 레이아웃 ── */
.he-section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  max-width: none;
  margin-bottom: 24px;
}
.he-section__head--split .he-section__title { margin-bottom: 0; }

/* ── 주제별로 보기: 타일 그리드 ── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.explore-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.explore-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  text-decoration: none;
}
.explore-tile__icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.explore-tile__name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
}
.explore-tile__count {
  font-size: 0.78rem;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 최신 글: 가로 스크롤 캐러셀 ── */
.scroller-controls { display: flex; gap: 8px; flex: none; }
.scroller-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.scroller-btn:hover { border-color: var(--accent); color: var(--accent); }
.scroller-btn:active { transform: scale(0.94); }

.latest-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: thin;
}
.latest-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.latest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.latest-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--border);
}
.latest-card__thumb--empty { background: var(--border); }
.latest-card__body { padding: 16px 18px 18px; }
.latest-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.latest-card__title {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── 신뢰 밴드: 다크 톤으로 리듬 전환 ── */
.trust-band {
  margin-top: 24px;
  padding: 72px 20px;
  background: var(--footer-bg);
  color: var(--footer-text-muted);
}
.trust-band__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.trust-item__icon {
  display: inline-flex;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.trust-item h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: var(--footer-text);
}
.trust-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
}
@media (max-width: 860px) {
  .trust-band__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .trust-band__inner { grid-template-columns: 1fr; }
  .hero-stats { max-width: 320px; }
}

/* ── 계산기 프로모 배너 (계산기 3종 허브 타일) ── */
.calc-promo {
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 0 20px;
}
.calc-promo__inner {
  padding: 44px 48px 48px;
  text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg-primary)), var(--bg-secondary));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.calc-promo__text { max-width: 560px; margin: 0 auto; }
.calc-promo__text .he-eyebrow { margin-bottom: 10px; }
.calc-promo__text h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.calc-promo__text p {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.calc-promo__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.calc-promo__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.calc-promo__tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  text-decoration: none;
}
.calc-promo__tile-icon { font-size: 1.9rem; margin-bottom: 4px; }
.calc-promo__tile-name { font-weight: 700; font-size: 0.96rem; color: var(--text-primary); }
.calc-promo__tile-desc { font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 720px) {
  .calc-promo__inner { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .calc-promo__grid { grid-template-columns: 1fr; }
}

/* ── 생애주기별 로드맵 ── */
.roadmap-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.roadmap-track::before {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.roadmap-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.roadmap-step__num {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 0 0 6px var(--bg-primary);
}
.roadmap-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 22px 20px 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.roadmap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  text-decoration: none;
}
.roadmap-card__stage {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.roadmap-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text-primary);
}
.roadmap-card p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.roadmap-card__more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}
@media (max-width: 780px) {
  .roadmap-track {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 28px;
  }
  .roadmap-track::before {
    top: 0;
    bottom: 0;
    left: 19px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .roadmap-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    margin-left: -28px;
    padding-bottom: 28px;
  }
  .roadmap-step:last-child { padding-bottom: 0; }
  .roadmap-card { align-items: flex-start; text-align: left; }
}

/* ── 스크롤 리빌 (JS가 .reveal 클래스를 붙였을 때만 적용 — JS 없이도 콘텐츠는 항상 보임) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
