/* 창원자이 더 스카이 — 광고 랜딩
   팔레트는 소재와 통일: 딥틸 #003040 + 시안 #5FD0F5. 🚨 골드 금지(더헤븐 톤이다). */

:root {
  --teal: #003040;
  --teal-deep: #001A24;
  --teal-mid: #0A4459;
  --mist: #A9C2CC;
  --cyan: #5FD0F5;
  --white: #ffffff;
  --ink: #16242b;
  --line: #dfe5e8;
  --muted: #5b6b73;

  --wrap: 1120px;
  --pad-sec: clamp(72px, 9vw, 132px);
  --r: 3px;

  --t-hero: clamp(38px, 7.4vw, 84px);
  --t-ttl: clamp(29px, 4.6vw, 56px);
  --t-lead: clamp(15.5px, 1.65vw, 19px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  /* 🚨 한글 어절 중간 줄바꿈 방지 — 빼면 "무순위 잔여세/대"처럼 깨진다 */
  word-break: keep-all;
  line-break: strict;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===================== 히어로 ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--teal-deep);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('img/02_야경타워_세로.jpg') center 38% / cover no-repeat;
  filter: saturate(1.2) contrast(1.05);
  /* 켄번스 — 아주 느린 줌인. 🚩 20초에 4%만 움직인다. 빠르면 광고 느낌이 싸구려가 된다 */
  transform: scale(1.04);
  animation: kenburns 20s ease-out forwards;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13); }
}

/* 히어로 텍스트 순차 등장 — 위에서 아래로 읽는 순서대로 */
.hero__xi, .badge, .hero__ttl, .hero__sub, .hero__cta, .hero__gs {
  opacity: 0;
  animation: rise .9s cubic-bezier(.16,1,.3,1) forwards;
}
.hero__xi   { animation-delay: .10s; }
.badge      { animation-delay: .26s; }
.hero__ttl  { animation-delay: .38s; }
.hero__sub  { animation-delay: .54s; }
.hero__cta  { animation-delay: .68s; }
.hero__gs   { animation-delay: .84s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 🚨 모션 최소화를 켠 사용자에겐 전부 끈다 — 접근성 요건이다 */
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; transform: scale(1.04); }
  .hero__xi, .badge, .hero__ttl, .hero__sub, .hero__cta, .hero__gs {
    opacity: 1; animation: none; transform: none;
  }
  .hero__scroll span { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(0,17,26,.96) 0%, rgba(0,19,28,.88) 22%, rgba(0,22,32,.55) 48%, rgba(0,24,34,.18) 72%, rgba(0,24,34,0) 90%),
    linear-gradient(90deg, rgba(0,17,26,.72) 0%, rgba(0,20,30,.34) 46%, rgba(0,24,34,0) 78%);
}
.hero__in {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap);
  margin: 0 auto; padding: 120px 24px 118px;
}
.hero__xi { width: clamp(92px, 12vw, 138px); margin-bottom: 30px;
  filter: drop-shadow(0 4px 22px rgba(0,12,20,.6)); }
.hero__gs { width: clamp(96px, 11vw, 126px); margin-top: 46px; opacity: .9;
  filter: drop-shadow(0 3px 16px rgba(0,12,20,.7)); }

.badge {
  display: inline-block;
  border: 1.5px solid var(--cyan); color: var(--cyan);
  background: rgba(0,26,36,.5);
  font-size: clamp(12px, 1.4vw, 14.5px); font-weight: 700; letter-spacing: .01em;
  padding: 9px 18px; border-radius: 2px;
  box-shadow: 0 4px 18px rgba(0,12,20,.4);
}
.hero__ttl {
  margin-top: 24px;
  font-size: var(--t-hero); font-weight: 800; line-height: 1.13; letter-spacing: -.035em;
  text-shadow: 0 2px 12px rgba(0,12,20,.72), 0 10px 44px rgba(0,12,20,.55);
}
.hero__ttl em { font-style: normal; color: var(--cyan); }
.hero__sub {
  margin-top: 24px; max-width: 30em;
  font-size: var(--t-lead); font-weight: 500; color: rgba(255,255,255,.93);
  text-shadow: 0 2px 10px rgba(0,12,20,.7);
}
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scroll {
  position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px; background: rgba(255,255,255,.24); overflow: hidden;
}
.hero__scroll span {
  display: block; width: 100%; height: 46%; background: var(--cyan);
  animation: drop 2.1s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes drop { 0% { transform: translateY(-110%);} 60%,100% { transform: translateY(240%);} }

/* ===================== 버튼 ===================== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: clamp(14.5px, 1.5vw, 16.5px); font-weight: 700;
  padding: 16px 28px; border-radius: var(--r);
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn b { font-weight: 800; letter-spacing: -.01em; }
.btn:hover { transform: translateY(-2px); }
.btn--call { background: var(--white); color: var(--teal); box-shadow: 0 8px 30px rgba(0,12,20,.42); }
.btn--call:hover { background: var(--cyan); color: var(--teal-deep); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--big { width: 100%; justify-content: center; padding: 20px 28px; font-size: clamp(16px, 1.8vw, 19px); }
.btn--submit {
  width: 100%; justify-content: center; margin-top: 6px;
  background: var(--teal); color: var(--white); border: 0; cursor: pointer;
  padding: 18px; font-size: 16.5px; font-family: inherit;
}
.btn--submit:hover { background: var(--teal-mid); }
.btn--submit:disabled { opacity: .55; cursor: default; transform: none; }

/* 스크롤 등장 — IntersectionObserver 가 .on 을 붙인다.
   🚩 JS가 죽어도 콘텐츠가 사라지면 안 되므로 .no-js 면 그대로 보이게 둔다 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.on { opacity: 1; transform: none; }

/* ===================== 섹션 공통 ===================== */
.sec { padding: var(--pad-sec) 0; position: relative; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 620px; }

.eyebrow {
  font-size: 12.5px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan);
}
.sec--split .eyebrow, .sec--terms .eyebrow { color: var(--teal-mid); }

.ttl {
  margin-top: 14px;
  font-size: var(--t-ttl); font-weight: 800; line-height: 1.18; letter-spacing: -.035em;
}
.lead {
  margin-top: 22px; max-width: 34em;
  font-size: var(--t-lead); font-weight: 500; line-height: 1.75;
}
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }
.fine { margin-top: 26px; font-size: 13px; color: var(--muted); }

.quote {
  margin-top: 34px; padding-left: 18px;
  border-left: 2px solid var(--cyan);
  font-size: clamp(16px, 1.9vw, 21px); font-weight: 600; line-height: 1.6;
  letter-spacing: -.02em;
}
.quote--dark { border-left-color: var(--teal); }

/* 어두운 섹션 */
.sec--dark { background: var(--teal-deep); color: var(--white); }
.sec--dark .fine { color: rgba(255,255,255,.55); }

/* 이미지 배경 섹션 */
.sec--img { color: var(--white); background: var(--teal-deep); }
.sec--img::before {
  content: ""; position: absolute; inset: 0;
  background: var(--bg) center / cover no-repeat;
  filter: saturate(1.15);
}
.sec--img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,17,26,.94) 0%, rgba(0,20,30,.82) 42%, rgba(0,24,34,.42) 70%, rgba(0,24,34,.18) 100%),
    linear-gradient(0deg, rgba(0,17,26,.6) 0%, rgba(0,17,26,0) 55%);
}
.sec--img .wrap { position: relative; z-index: 2; }

/* ===================== 공급 공백 ===================== */
.years {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(169,194,204,.32);
}
.years > div {
  padding: 26px 12px 4px;
  border-right: 1px solid rgba(169,194,204,.16);
}
.years > div:last-child { border-right: 0; }
.years b {
  display: block; font-size: clamp(15px, 2vw, 19px); font-weight: 600; color: var(--mist);
  letter-spacing: .02em;
}
.years span {
  display: block; margin-top: 8px;
  font-size: clamp(26px, 4.4vw, 46px); font-weight: 800; color: var(--cyan);
  letter-spacing: -.04em; line-height: 1.1;
}

/* ===================== 카드 ===================== */
.cards {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.card {
  padding: 22px 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  backdrop-filter: blur(3px);
}
.card b { display: block; font-size: 13px; font-weight: 700; color: var(--mist); letter-spacing: .02em; }
.card span { display: block; margin-top: 9px; font-size: clamp(16px, 1.9vw, 21px); font-weight: 800;
  color: var(--white); letter-spacing: -.025em; }

/* ===================== 좌우 분할 ===================== */
.wrap--split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.sec--rev .wrap--split { direction: rtl; }
.sec--rev .wrap--split > * { direction: ltr; }
.split__img img { width: 100%; border-radius: var(--r); box-shadow: 0 18px 60px rgba(0,32,48,.18); }

.ticks { margin-top: 26px; list-style: none; }
.ticks li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 16px; font-weight: 500;
}
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(95,208,245,.2);
}

/* ===================== 계약 조건 ===================== */
.sec--terms { background: #f4f7f8; text-align: center; }
.sec--terms .ttl, .sec--terms .eyebrow { text-align: center; }
.terms {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.terms > div {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 14px;
}
.terms span { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.terms b {
  display: block; margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; color: var(--teal);
  letter-spacing: -.04em; line-height: 1.15;
}
.terms em {
  display: block; margin-top: 8px; font-style: normal;
  font-size: 13px; color: var(--muted);
}

/* ===================== 단지 개요 ===================== */
.specs {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  border-top: 1px solid rgba(169,194,204,.32); padding-top: 30px;
}
.specs b {
  display: block; font-size: clamp(20px, 2.8vw, 32px); font-weight: 800; color: var(--cyan);
  letter-spacing: -.035em; line-height: 1.2;
}
.specs span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--mist); }

.gal {
  margin-top: 46px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.gal figure { overflow: hidden; border-radius: var(--r); aspect-ratio: 3/4; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal figure:hover img { transform: scale(1.06); }

/* ===================== 신청 ===================== */
.sec--apply { background: var(--white); text-align: center; }
.sec--apply .lead { margin-left: auto; margin-right: auto; }
.sec--apply .btn--call { margin-top: 34px; background: var(--teal); color: var(--white); }
.sec--apply .btn--call:hover { background: var(--teal-mid); color: var(--white); }

.form { margin-top: 16px; text-align: left; }
.form label {
  display: block; margin-top: 16px;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.form input[type=text], .form input[type=tel], .form select {
  display: block; width: 100%; margin-top: 7px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white);
}
.form input:focus, .form select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,48,64,.1);
}
.form .agree {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 22px; font-size: 14px; font-weight: 500; color: var(--ink);
}
.form .agree input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--teal); flex: none; }
.form .agree a { color: var(--teal); text-underline-offset: 3px; }
.form__msg { margin-top: 14px; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.form__msg.ok { color: #0a7b4f; }
.form__msg.err { color: #c0392b; }

/* ===================== 푸터 ===================== */
.ft {
  background: var(--teal-deep); color: rgba(255,255,255,.66);
  padding: 54px 24px; text-align: center; font-size: 13.5px;
}
.ft__name { color: var(--white); font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.ft__links { margin-top: 16px; }
.ft__links a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(95,208,245,.4); padding-bottom: 2px; }
.ft__in { max-width: 620px; margin: 0 auto; }


.ft__fine { margin-top: 26px; font-size: 12.5px; color: rgba(255,255,255,.42); line-height: 1.65; }

/* 하단 고정 전화 버튼 — 모바일 전용 */
.floatcall {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  display: none; align-items: center; justify-content: center;
  height: 60px; background: var(--cyan); color: var(--teal-deep);
  font-size: 16px; font-weight: 800; letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 -6px 24px rgba(0,12,20,.22);
}

/* ===================== 반응형 ===================== */
@media (max-width: 880px) {
  .wrap--split { grid-template-columns: 1fr; }
  .sec--rev .wrap--split { direction: ltr; }
  .split__img { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .terms, .specs { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .sec--img::after {
    background:
      linear-gradient(0deg, rgba(0,17,26,.95) 0%, rgba(0,19,28,.88) 34%, rgba(0,22,32,.6) 62%, rgba(0,24,34,.28) 100%);
  }
}

@media (max-width: 560px) {
  .years { grid-template-columns: repeat(2, 1fr); }
  .years > div:nth-child(2) { border-right: 0; }
  .years > div { border-bottom: 1px solid rgba(169,194,204,.16); }
  .hero__in { padding: 100px 20px 96px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .floatcall { display: flex; }
  .sec--apply { padding-bottom: calc(var(--pad-sec) + 68px); }
  .ft { padding-bottom: calc(54px + 68px); }
  .hero__scroll { display: none; }
}
