/* ==========================================================
   와우오더 — 01. 히어로 (다크 테마)
   색은 검정 · 흰색 · 회색만 쓴다 (브랜드 노랑 없음).
   레퍼런스 메인 히어로 문법: 작은 라벨 → 두 줄 제목 → 버튼 하나(화살표 원).
   오른쪽에 B타입 테이블오더 기기 전체를 세운다.
   ========================================================== */

/* main.css 의 .page-table section(여백)보다 이기도록 section.hx 로 쓴다 */
section.hx {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 740px;
  padding: 76px 0 0;                 /* 위 = 상단바 높이 */
  color: #fff;
  background:
    radial-gradient(42% 70% at 76% 78%, rgba(72, 98, 255, .30) 0%, rgba(72, 98, 255, 0) 70%),     /* 기기 뒤 푸른 빛 */
    radial-gradient(30% 50% at 92% 30%, rgba(146, 108, 255, .14) 0%, rgba(146, 108, 255, 0) 70%),  /* 오른쪽 위 보랏빛 아주 옅게 */
    #09090c;
}

.hx__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

/* 글 */
.hx .hx__title {
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #fff;
}

/* 굵기 대비 — 윗줄은 얇게(400), 아랫줄은 굵게(800). 색은 같은 흰색 계열 */
.hx__thin { font-weight: 400; color: rgba(255, 255, 255, .86); }
/* 바뀌는 수식어만 그라데이션 — 배경의 푸른빛·보랏빛과 같은 계열(노랑 없음) */
.hx-rot__word {
  background: linear-gradient(100deg, #a9c6ff 0%, #c4b5ff 55%, #e2c6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 둘째 줄은 한 줄로 — 수식어가 바뀌어도 "와우오더에서"가 다음 줄로 넘어가지 않게 */
.hx__line { white-space: nowrap; }
/* 수식어 상자 — 단어 폭에 맞춰 늘었다 줄었다(폭은 hero-rotator.js 가 정한다) */
.hx-rot { position: relative; display: inline-block; height: 1.3em; overflow: hidden; vertical-align: top; transition: width .5s cubic-bezier(.16, 1, .3, 1); }
.hx-rot__word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-100%);       /* 기다리는 단어는 위에 */
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .45s;
}
.hx-rot__word:first-child { position: relative; }   /* 스크립트가 없어도 첫 단어가 자리를 잡는다 */
.hx-rot__word.is-on { opacity: 1; transform: translateY(0); }
.hx-rot__word.is-out { opacity: 0; transform: translateY(100%); }   /* 지나간 단어는 아래로 */
.hx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 버튼 줄 — 흰 채움 버튼(행동 하나) + 오른쪽 전화번호(글자형, 버튼보다 낮게) */
.hx__cta { display: flex; align-items: center; gap: 32px; margin-top: 48px; }

/* 버튼 — 흰 채움 알약 + 오른쪽 먹색 원 화살표. 어두운 배경 위에서 바로 누를 곳으로 보이게 */
.hx__btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 62px;
  padding: 0 8px 0 30px;
  border-radius: 100px;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #171717;
  transition: background-color .2s;
}
.hx__btn:hover { background: #e9eaee; }
.hx__arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #171717; transition: transform .2s; }
.hx__arrow svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx__btn:hover .hx__arrow { transform: translateX(3px); }

/* 기기 — 오른쪽. 기둥은 섹션 아래 끝으로 이어진다 */
.hx__device {
  position: absolute;
  z-index: 1;
  right: max(40px, calc((100vw - 1280px) / 2 + 60px));
  bottom: -48px;                     /* 살짝 내려 기둥 아래쪽은 섹션 밖으로 */
  width: 440px;
  margin: 0;
}
.hx__device img { display: block; width: 100%; height: auto; max-width: none; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .5)); }

/* 태블릿 */
@media (max-width: 1199px) {
  .hx__inner { padding: 0 40px; }
  .hx .hx__title { font-size: 46px; }
  .hx__device { width: 360px; right: 24px; }
}

/* 세로로 — 글 위, 기기 아래 */
@media (max-width: 1023px) {
  section.hx { display: block; min-height: 0; padding: 114px 0 0; }   /* 상단바 66 + 48 */
  .hx__device { position: relative; right: auto; bottom: auto; width: min(70%, 380px); margin: 40px auto -48px; }
}
@media (max-width: 599px) {
  section.hx { padding: 98px 0 0; }                                  /* 상단바 66 + 32 */
  .hx__inner { padding: 0 20px; }
  .hx .hx__title { font-size: 28px; }
  .hx__cta { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 28px; }
  .hx__btn { height: 52px; padding-left: 22px; font-size: 16px; }
  .hx__arrow { width: 38px; height: 38px; }
  .hx__device { width: 76%; }
}
