/**
 * Premium Experience Layer
 * 참고 원칙: 한 장면·한 메시지, 비대칭 그리드, 절제된 깊이와 일관된 모션.
 * 기존 정보 구조와 검색/계산 기능은 변경하지 않는다.
 */

:root {
  --premium-ink: #08111f;
  --premium-navy: #0e2342;
  --premium-blue: #2d83f7;
  --premium-cyan: #87e5ff;
  --premium-lime: #d9ff69;
  --premium-paper: #f3f1ea;
  --premium-line: rgba(17, 24, 39, .13);
  --premium-ease: cubic-bezier(.22, 1, .36, 1);
  --premium-shadow: 0 24px 70px rgba(8, 17, 31, .14);
}

html { scroll-behavior: smooth; }

body {
  letter-spacing: -.012em;
  text-rendering: optimizeLegibility;
}

/* Header: 얇고 선명한 브랜드 바 */
.site-header {
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  border-bottom-color: color-mix(in srgb, var(--border) 72%, transparent);
  backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(8, 17, 31, .08);
}

.site-branding-mark {
  box-shadow: 0 8px 22px rgba(31, 117, 232, .22);
  transition: transform .45s var(--premium-ease), box-shadow .45s var(--premium-ease);
}

.site-branding:hover .site-branding-mark {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 12px 28px rgba(31, 117, 232, .3);
}

.primary-nav a {
  transition: color .22s ease, background .22s ease, transform .22s var(--premium-ease);
}

.primary-nav a:hover { transform: translateY(-1px); }

/* Hero: 강한 타이포 한 장면 + 검색 패널 */
body.home .home-hero {
  isolation: isolate;
  min-height: 650px;
  padding: clamp(72px, 8vw, 112px) 20px clamp(78px, 8vw, 108px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(45, 131, 247, .28), transparent 27%),
    radial-gradient(circle at 12% 88%, rgba(135, 229, 255, .12), transparent 30%),
    linear-gradient(126deg, #07101d 0%, #0c1d37 56%, #102a51 100%);
}

body.home .home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 5%, transparent 88%);
}

body.home .home-hero::after {
  height: 4px;
  opacity: 1;
  background: linear-gradient(90deg, var(--premium-lime) 0 12%, var(--premium-cyan) 12% 38%, var(--premium-blue) 38% 100%);
}

body.home .home-hero-inner {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
  gap: clamp(48px, 7vw, 92px);
}

body.home .hero-copy {
  position: relative;
  z-index: 1;
}

body.home .hero-eyebrow {
  margin-bottom: 22px;
  padding: 7px 15px;
  color: var(--premium-cyan);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}

body.home .hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--premium-lime);
  box-shadow: 0 0 0 6px rgba(217,255,105,.1);
  vertical-align: 1px;
}

body.home .home-hero h1 {
  max-width: 740px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(43px, 5.1vw, 70px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}

body.home .home-hero h1::after {
  content: '';
  display: block;
  width: 68px;
  height: 5px;
  margin-top: 25px;
  border-radius: 99px;
  background: var(--premium-lime);
}

body.home .home-hero .hero-lead {
  max-width: 34em;
  margin-bottom: 30px;
  color: rgba(235, 243, 255, .72);
  font-size: 18px;
  line-height: 1.72;
}

body.home .hero-action-row .btn {
  min-height: 56px;
  padding-inline: 28px;
}

body.home .hero-action-row .btn-primary {
  background: var(--premium-blue);
  box-shadow: 0 16px 34px rgba(45, 131, 247, .32);
}

body.home .hero-action-row .btn-primary:hover {
  background: #4694fb;
  box-shadow: 0 20px 42px rgba(45, 131, 247, .42);
  transform: translateY(-2px);
}

body.home .hero-action-row .btn-secondary {
  color: #fff;
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.24);
}

body.home .hero-action-row .btn-secondary:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-2px);
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-proof-list li { min-width: 94px; }
.hero-proof-list strong,
.hero-proof-list span { display: block; }
.hero-proof-list strong { color: #fff; font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.hero-proof-list span { margin-top: 2px; color: rgba(235,243,255,.54); font-size: 11px; }

body.home .hero-search-panel {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 34px 32px 28px;
  color: var(--premium-ink);
  background: color-mix(in srgb, #fff 94%, #dfeaff);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 26px;
  box-shadow: 0 36px 90px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.9);
}

body.home .hero-search-panel::before {
  content: 'QUICK SEARCH';
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--premium-ink);
  background: var(--premium-lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

body.home .hero-search-title {
  margin-bottom: 19px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
}

body.home .site-search-input,
body.home .home-search-form select {
  border-color: rgba(8,17,31,.13);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(8,17,31,.035);
}

body.home .site-search-input:focus,
body.home .home-search-form select:focus {
  border-color: var(--premium-blue);
  box-shadow: 0 0 0 4px rgba(45,131,247,.12);
  outline: 0;
}

body.home .hero-search-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: #7a8492;
  line-height: 1.45;
}

body.home .hero-search-note::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #18a879;
  box-shadow: 0 0 0 4px rgba(24,168,121,.1);
}

/* 첫 장면 모션은 하나의 방향과 속도 체계로 제한한다. */
body.home .hero-copy > *,
body.home .hero-search-panel {
  animation: premium-enter .85s var(--premium-ease) both;
}
body.home .hero-copy > :nth-child(2) { animation-delay: .07s; }
body.home .hero-copy > :nth-child(3) { animation-delay: .14s; }
body.home .hero-copy > :nth-child(4) { animation-delay: .21s; }
body.home .hero-copy > :nth-child(5) { animation-delay: .28s; }
body.home .hero-search-panel { animation-delay: .17s; }

@keyframes premium-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 빠른 도구: 떠 있는 조작 데크 */
body.home .quick-tools {
  position: relative;
  z-index: 4;
  margin-top: -34px;
  border: 0;
  background: transparent;
}

body.home .quick-tools-inner {
  padding: 12px;
  background: color-mix(in srgb, var(--bg-primary) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: 24px;
  box-shadow: var(--premium-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.home .quick-tool {
  min-width: 0;
  padding: 17px 15px;
  border-radius: 17px;
  transition: background .25s ease, transform .35s var(--premium-ease), box-shadow .35s var(--premium-ease);
}

body.home .quick-tool:hover {
  background: var(--bg-primary);
  box-shadow: 0 12px 28px rgba(8,17,31,.08);
  transform: translateY(-3px);
}

body.home .quick-tool-icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  overflow: visible;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* 통계·섹션: 종이 질감에 가까운 차분한 대비 */
body.home .trust-bar {
  margin-top: -1px;
  padding: 72px 20px 42px;
  border: 0;
  background: var(--premium-paper);
}

body.home .trust-stat strong {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.055em;
}

body.home .trust-stat {
  border-color: rgba(8,17,31,.14);
}

body.home .section-block { padding: clamp(80px, 9vw, 124px) 0; }
body.home .section-block-alt { background: var(--premium-paper); }
body.home .section-head { max-width: 760px; margin-bottom: 48px; }
body.home .section-head .section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 830;
  line-height: 1.15;
  letter-spacing: -.045em;
  text-wrap: balance;
}
body.home .section-head .eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
body.home .section-sub { font-size: 16px; line-height: 1.65; }

body.home .sido-grid { gap: 13px; }
body.home .sido-grid a,
body.home .symptom-card,
body.home .topic-column,
body.home .feature-card {
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 8px 28px rgba(8,17,31,.045);
}

body.home .sido-grid a { padding: 20px 10px; border-radius: 16px; }
body.home .sido-grid a:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(8,17,31,.11); }
body.home .sido-grid a::after { height: 4px; background: linear-gradient(90deg, var(--premium-blue), var(--premium-cyan)); }

body.home .feature-layout { gap: 34px; }
body.home .feature-card { border-radius: 24px; box-shadow: 0 18px 48px rgba(8,17,31,.09); }
body.home .feature-card:hover { transform: translateY(-6px); box-shadow: 0 28px 66px rgba(8,17,31,.15); }
body.home .feature-card-body { padding: 27px 29px 30px; }
body.home .feature-card-body h3 { font-size: clamp(23px, 2.7vw, 31px); }

body.home .symptom-card { min-height: 78px; border-radius: 18px; }
body.home .symptom-card:hover { transform: translateY(-3px); box-shadow: 0 17px 38px rgba(8,17,31,.1); }

body.home .topic-column {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 22px;
  transition: transform .35s var(--premium-ease), box-shadow .35s var(--premium-ease);
}
body.home .topic-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-cyan));
}
body.home .topic-column:hover { transform: translateY(-5px); box-shadow: 0 24px 54px rgba(8,17,31,.11); }

body.home .car-check-calc {
  border-radius: 26px;
  border-color: color-mix(in srgb, var(--border) 72%, transparent);
  box-shadow: 0 24px 70px rgba(8,17,31,.1);
}

body.home .closing-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(86px, 10vw, 132px) 20px;
  background: linear-gradient(125deg, #07101d, #102a51 68%, #173c70);
}
body.home .closing-cta::before,
body.home .closing-cta::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}
body.home .closing-cta::before {
  width: 420px;
  height: 420px;
  top: -260px;
  right: -90px;
  background: rgba(45,131,247,.23);
}
body.home .closing-cta::after {
  width: 260px;
  height: 260px;
  bottom: -190px;
  left: 10%;
  background: rgba(135,229,255,.12);
}
body.home .closing-cta-inner { max-width: 720px; }
body.home .closing-cta h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.12; letter-spacing: -.045em; }

/* 중간 폭에서 긴 한글 메뉴와 히어로가 충돌하지 않도록 조기 전환 */
@media (max-width: 1180px) {
  body.home .home-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 42px; }
  body.home .home-hero h1 { font-size: clamp(42px, 5vw, 60px); }
}

@media (max-width: 900px) {
  body.home .home-hero {
    min-height: 0;
    padding: 66px 20px 84px;
  }
  body.home .home-hero-inner { grid-template-columns: 1fr; gap: 50px; }
  body.home .hero-copy { max-width: 680px; }
  body.home .hero-search-panel { max-width: 680px; width: 100%; }
  body.home .quick-tools { margin-top: -30px; }
  body.home .quick-tools-inner { margin-inline: 16px; }
  body.home .trust-bar { padding-top: 66px; }
}

@media (max-width: 600px) {
  body.home .home-hero { padding: 48px 16px 72px; }
  body.home .home-hero::before { background-size: 44px 44px; }
  body.home .home-hero h1 { font-size: clamp(38px, 11.8vw, 52px); line-height: 1.1; }
  body.home .home-hero h1 br { display: none; }
  body.home .home-hero .hero-lead { font-size: 16px; }
  body.home .hero-search-panel { padding: 28px 18px 21px; border-radius: 21px; }
  body.home .hero-search-panel::before { right: 16px; }
  .hero-proof-list { gap: 14px 20px; margin-top: 28px; }
  .hero-proof-list li { min-width: calc(50% - 12px); }
  body.home .quick-tools-inner { margin-inline: 8px; border-radius: 20px; }
  body.home .quick-tool { padding: 14px; }
  body.home .trust-bar { padding: 62px 16px 34px; }
  body.home .trust-stat { flex-basis: 50%; }
  body.home .section-block { padding: 78px 0; }
  body.home .section-head { margin-bottom: 34px; }
  body.home .section-head .section-title { font-size: clamp(30px, 9vw, 40px); }
  body.home .feature-card-body,
  body.home .topic-column { padding: 23px; }
  body.home .closing-cta-form button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.home .hero-copy > *,
  body.home .hero-search-panel { animation: none !important; }
  .site-branding-mark,
  .primary-nav a,
  body.home .quick-tool,
  body.home .topic-column { transform: none !important; }
}
