* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: system-ui, -apple-system, sans-serif;
  width: 100%;
  overflow-x: hidden;
}
body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* =============================================
   반응형 스케일: 750px 디자인을 뷰포트에 맞게 비율 축소
============================================= */
.page {
  width: 100%;
  max-width: 750px;
  position: relative;
  background: #000;
  margin: 0 auto;
  --scale: 1;
}
.page > section {
  width: 100%;
  aspect-ratio: 750 / 1334;
  height: auto;
  position: relative;
  overflow: hidden;
}

/* 상담 CTA/푸터 섹션들은 aspect-ratio 지정 안 함 (콘텐츠 높이) */
.page > section.section-7,
.page > section.section-8,
.page > section.section-9 {
  aspect-ratio: auto;
  overflow: hidden;
  height: auto;
}

/* CTA/푸터 섹션 내부 래퍼: 750px 고정 + JS scale로 축소 */
.scale-wrap {
  width: 750px;
  transform-origin: top left;
}

/* 섹션 #1 */
.section-1 {
  background-image: url('/static/images/s1-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 섹션 #2 */
.section-2 {
  background-image: url('/static/images/s2-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 섹션 #3 */
.section-3 {
  background-image: url('/static/images/s3-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 섹션 #4 */
.section-4 {
  background-image: url('/static/images/s4-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 섹션 #5 */
.section-5 {
  background-image: url('/static/images/s5-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 섹션 #6 */
.section-6 {
  background-image: url('/static/images/s6-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =============================================
   섹션 #7 — 상담 신청 CTA
============================================= */
.section-7 {
  background: linear-gradient(180deg, #f8f6f2 0%, #ffffff 100%);
}
.section-7 .scale-inner {
  width: 750px;
  padding: 80px 60px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  box-sizing: border-box;
}
.section-7 .s7-title {
  font-size: 52px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 22px;
}
.section-7 .s7-desc {
  font-size: 26px;
  font-weight: 400;
  color: #555;
  line-height: 1.6;
  margin-bottom: 50px;
  letter-spacing: -0.01em;
}
.section-7 .s7-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  padding: 32px 40px;
  background: linear-gradient(135deg, #0042c9 0%, #0066ff 100%);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 18px;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 30px rgba(0, 66, 201, 0.35), 0 4px 10px rgba(0, 66, 201, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: ctaPulse 2.2s ease-in-out infinite;
}
.section-7 .s7-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 66, 201, 0.45), 0 6px 14px rgba(0, 66, 201, 0.25);
}
.section-7 .s7-cta:active {
  transform: translateY(0);
}
.section-7 .s7-cta .s7-arrow {
  font-size: 30px;
  transition: transform 0.2s ease;
}
.section-7 .s7-cta:hover .s7-arrow {
  transform: translateX(6px);
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(0, 66, 201, 0.35), 0 4px 10px rgba(0, 66, 201, 0.2); }
  50%      { box-shadow: 0 12px 30px rgba(0, 66, 201, 0.55), 0 0 0 8px rgba(0, 66, 201, 0.08); }
}

.section-7 .s7-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.section-7 .s7-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 500;
  color: #333;
  letter-spacing: -0.01em;
}
.section-7 .s7-badge .s7-emoji {
  font-size: 24px;
}

.section-7 .s7-note {
  margin-top: 30px;
  font-size: 20px;
  color: #888;
  letter-spacing: -0.01em;
}

/* =============================================
   섹션 #8 — 문의하기 + 채널 버튼
============================================= */
.section-8 {
  background: #111;
}
.section-8 .scale-inner {
  width: 750px;
  padding: 80px 60px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  box-sizing: border-box;
}
.section-8 .s8-label {
  font-size: 26px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.section-8 .s8-phone {
  font-size: 68px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  margin-bottom: 70px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.section-8 .s8-phone .s8-phone-icon {
  font-size: 54px;
}

.section-8 .s8-divider {
  width: 80px;
  height: 2px;
  background: #333;
  margin-bottom: 50px;
}

.section-8 .s8-channels {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}
.section-8 .s8-channel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px;
  background: #1c1c1c;
  border: 1.5px solid #2a2a2a;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.section-8 .s8-channel:hover {
  transform: translateY(-4px);
  border-color: #444;
  background: #232323;
}
.section-8 .s8-channel-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-8 .s8-channel-icon svg {
  width: 100%;
  height: 100%;
}
.section-8 .s8-channel-label {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #eee;
  line-height: 1.3;
  text-align: center;
}

.section-8 .s8-footer {
  margin-top: 60px;
  font-size: 18px;
  color: #555;
  letter-spacing: 0.02em;
}

/* =============================================
   섹션 #9 — 회사 정보 (푸터 상세)
============================================= */
.section-9 {
  background: #0a0a0a;
}
.section-9 .scale-inner {
  width: 750px;
  padding: 90px 60px 100px;
  color: #ccc;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: -0.01em;
  box-sizing: border-box;
}

.section-9 .s9-brand {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-9 .s9-tagline {
  font-size: 22px;
  font-weight: 400;
  color: #888;
  line-height: 1.6;
  margin-bottom: 60px;
}

.section-9 .s9-block {
  padding: 28px 0;
  border-top: 1px solid #1f1f1f;
}
.section-9 .s9-block:last-of-type {
  border-bottom: 1px solid #1f1f1f;
}

.section-9 .s9-block-title {
  font-size: 20px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-9 .s9-block-body {
  font-size: 24px;
  font-weight: 400;
  color: #e0e0e0;
  line-height: 1.7;
}

.section-9 .s9-row {
  display: flex;
  gap: 14px;
  margin-bottom: 6px;
}
.section-9 .s9-row:last-child { margin-bottom: 0; }

.section-9 .s9-key {
  flex: 0 0 160px;
  color: #888;
  font-weight: 500;
}
.section-9 .s9-val {
  flex: 1;
  color: #e8e8e8;
}
.section-9 .s9-val a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.section-9 .s9-val a:hover {
  border-bottom-color: #888;
}

.section-9 .s9-copyright {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #1f1f1f;
  font-size: 16px;
  color: #444;
  text-align: center;
  letter-spacing: 0.05em;
}

/* 공통: 겹쳐 올리는 레이어 */
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  will-change: transform, opacity;
}

/* 섹션 #1 (페이지 로드 즉시 재생) */
.layer-1 {
  transform: translateY(-50px);
  animation: fadeInDown 0.6s ease-out 0.2s forwards;
}
.layer-2 {
  animation: fadeIn 0.6s ease-out 0.8s forwards;
}
.layer-3 {
  transform: translateY(50px);
  animation: fadeInUp 0.6s ease-out 1.4s forwards;
}

/* 섹션 #2 레이어 애니메이션 - 섹션이 화면에 도달했을 때 재생 */
.section-2 .layer-2-1 { transform: translateY(50px); }
.section-2 .layer-2-3 { transform: translateY(50px); }

.section-2.in-view .layer-2-1 {
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}
.section-2.in-view .layer-2-2 {
  animation: fadeIn 0.6s ease-out 0.8s forwards;
}
.section-2.in-view .layer-2-3 {
  animation: fadeInUp 0.6s ease-out 1.4s forwards;
}
.section-2.in-view .layer-2-4 {
  animation: fadeIn 0.6s ease-out 2.0s forwards;
}

/* 섹션 #3 레이어 애니메이션 - 섹션이 화면에 도달했을 때 재생 */
.section-3 .layer-3-3 { transform: translateX(-50px); }
.section-3 .layer-3-4 { transform: translateX(50px); }
.section-3 .layer-3-5 { transform: translateX(-50px); }
.section-3 .layer-3-6 { transform: translateX(50px); }

.section-3.in-view .layer-3-1 {
  animation: fadeIn 0.6s ease-out 0.2s forwards;
}
.section-3.in-view .layer-3-2 {
  animation: fadeIn 0.6s ease-out 0.8s forwards;
}
.section-3.in-view .layer-3-3 {
  animation: fadeInRight 0.6s ease-out 1.4s forwards;
}
.section-3.in-view .layer-3-4 {
  animation: fadeInLeft 0.6s ease-out 2.0s forwards;
}
.section-3.in-view .layer-3-5 {
  animation: fadeInRight 0.6s ease-out 2.6s forwards;
}
.section-3.in-view .layer-3-6 {
  animation: fadeInLeft 0.6s ease-out 3.2s forwards;
}

/* 섹션 #5 레이어 애니메이션 - 섹션이 화면에 도달했을 때 재생 */
.section-5 .layer-5-1 { transform: translateY(-50px); }
.section-5 .layer-5-3 { transform: translateX(-50px); }

.section-5.in-view .layer-5-1 {
  animation: fadeInDown 0.6s ease-out 0.2s forwards;
}
.section-5.in-view .layer-5-2 {
  animation: fadeIn 0.6s ease-out 0.8s forwards;
}
.section-5.in-view .layer-5-3 {
  animation: fadeInRight 0.6s ease-out 1.4s forwards;
}

@keyframes fadeIn        { from {opacity:0} to {opacity:1} }
@keyframes fadeInDown    { from {opacity:0; transform: translateY(-50px);} to {opacity:1; transform: translateY(0);} }
@keyframes fadeInUp      { from {opacity:0; transform: translateY(50px);}  to {opacity:1; transform: translateY(0);} }
@keyframes fadeInRight   { from {opacity:0; transform: translateX(-50px);} to {opacity:1; transform: translateX(0);} }
@keyframes fadeInLeft    { from {opacity:0; transform: translateX(50px);}  to {opacity:1; transform: translateX(0);} }
