/* ============================================
   전역 대화선
   ============================================ */
.conversation-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* ============================================
   헤더
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 249, 241, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(0, 101, 101, 0.08);
}
/* 모바일에서는 항상 반투명 배경 유지 (로고 가시성 확보) */
@media (max-width: 900px) {
  .site-header {
    background: rgba(251, 249, 241, 0.85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4px var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 128px;
}
@media (max-width: 900px) {
  .header-inner { min-height: 64px; padding: 0 var(--content-pad); gap: 8px; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 56px; }
}
@media (max-width: 480px) {
  .header-inner { min-height: 52px; }  
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-wordmark {
  height: 180px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}
@media (max-width: 900px) {
  .brand-wordmark { height: 44px; }
}
@media (max-width: 640px) {
  .brand-wordmark { height: 38px; }
}
@media (max-width: 480px) {
  .brand-wordmark { height: 34px; }
}
.header-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 8px 4px;
  position: relative;
}
.header-nav a:hover { color: var(--deep-teal); }
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--deep-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.header-nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 48px;      /* 채팅 버튼과 지구본 사이 간격 크게 → 채팅 버튼이 왼쪽으로 이동 */
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .header-cta { gap: 6px; }
}
.header-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
  min-height: 42px;
}

/* ============================================
   언어 전환 지구본 드롭다운
   ============================================ */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  min-height: 60px;
  min-width: auto;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: var(--radius-pill);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.lang-btn:hover { color: var(--deep-teal); }
.lang-btn svg {
  width: 30px;
  height: 30px;
  display: block;
}
.lang-btn:hover {
  color: var(--deep-teal);
  transform: scale(1.04);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 4px;
  border-radius: 8px;
}
/* 국기 이모지: 데스크톱에서만 표시 */
.lang-current-flag {
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
}
/* 영문 코드 (KR 등): 모바일에서만 표시 */
.lang-current-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  display: none;
}
@media (max-width: 900px) {
  .lang-current-flag { display: none; }
  .lang-current-code { display: inline-flex; align-items: center; }
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 101, 101, 0.14), 0 4px 12px rgba(0,0,0,0.04);
  padding: 8px;
  z-index: 200;
  animation: lang-dd-in 0.18s ease-out;
}
@keyframes lang-dd-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-dropdown-header {
  padding: 8px 12px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 6px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.15s ease;
  cursor: pointer;
}
.lang-option:hover {
  background: rgba(0, 101, 101, 0.06);
}
.lang-option.is-active {
  background: rgba(0, 101, 101, 0.10);
  color: var(--deep-teal);
  font-weight: 600;
}
.lang-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.lang-name {
  flex: 1;
}
.lang-check {
  color: var(--deep-teal);
  font-weight: 700;
}

@media (max-width: 480px) {
  .lang-dropdown {
    right: -12px;
    min-width: 200px;
  }
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu {
  display: none;
  padding: 24px var(--content-pad) 32px;
  background: #FBF9F1;   /* 완전 불투명 크림 (히어로 텍스트 가림) */
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-hairline);
  box-shadow: 0 12px 32px rgba(0, 101, 101, 0.10);
}
.mobile-menu a {
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-hairline);
}
.mobile-menu a:last-child {
  margin-top: 16px;
  border-bottom: none;
  padding: 14px 24px;
  text-align: center;
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-cta .btn-outline { display: none; }
  .lang-btn { min-height: 36px; padding: 4px; }
  .lang-btn svg { width: 20px; height: 20px; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}

/* ============================================
   히어로
   ============================================ */
.hero {
  padding: 140px 0 100px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  min-height: 640px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  color: var(--deep-teal);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--leaf-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(56, 180, 74, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(56, 180, 74, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(56, 180, 74, 0.05); }
}
.hero-title {
  font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--deep-teal) 0%, var(--accent-teal) 60%, var(--leaf-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-body {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

.hero-right {
  position: relative;
  min-height: 520px !important;
  height: 520px !important;
  max-width: 100%;
  align-self: stretch;
  overflow: hidden;
}
.hero-visual {
  position: relative;
  width: 100% !important;
  max-width: 100%;
  height: 520px !important;
  min-height: 520px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}
/* 시각 영역 뒤에 부드러운 원형 오로라만 배경으로 */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -5%;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(187, 232, 228, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 40% at 30% 40%, rgba(0, 123, 120, 0.14), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero-aurora {
  position: absolute;
  inset: 0;                /* 부모 밖으로 나가지 않도록 (가로 스크롤 방지) */
  background:
    radial-gradient(circle 50% at 50% 50%, rgba(232, 245, 212, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 40%, rgba(0, 123, 120, 0.12), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: aurora-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 4%) scale(1.06); }
}
.hero-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}
.hero-3d spline-viewer {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  display: block;
  /* 무우 크기 */
  transform: scale(1.2);
  transform-origin: 40% center;
}
.hero-fallback {
  width: min(90%, 560px);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-mascot 6s ease-in-out infinite;
}
.hero-fallback img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 101, 101, 0.24));
}
@keyframes float-mascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* 다국어 말풍선 */
.bubble {
  position: absolute;
  padding: 10px 18px 10px 12px;
  background: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 101, 101, 0.12);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: bubble-float 5s ease-in-out infinite;
  pointer-events: none; /* Spline 마우스 인터랙션 방해 방지 */
}
.bubble .flag { font-size: 18px; line-height: 1; }
.bubble-1 { top: 6%; left: 2%; animation-delay: 0s; }
.bubble-2 { top: 38%; right: 4%; animation-delay: 1.4s; }
.bubble-3 { bottom: 22%; left: 8%; animation-delay: 2.6s; background: var(--deep-teal); color: #fff; border-color: transparent; }
@keyframes bubble-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* 채팅 화면 조각 — 무우 우측 하단에 조연으로 */
.chat-peek {
  position: absolute;
  bottom: -12%;
  right: -10%;
  width: 175px;
  max-width: 36%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  border: 5px solid #1a1a1a;
  background: #1a1a1a;
  transform: rotate(6deg);
  z-index: 5;
  pointer-events: none;
}
.chat-peek img {
  width: 100%;
  display: block;
  transform: translateY(-8%);
}
.chat-peek-blur-name {
  position: absolute;
  top: 8px;
  left: 45px;
  width: 90px;
  height: 22px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.5);
  border-radius: 6px;
}

@media (max-width: 768px) {
  .hero { padding: 72px 0 48px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; min-height: auto; }
  .hero-right {
    min-height: 420px !important;
    height: 420px !important;
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
  }
  .hero-visual {
    min-height: 420px !important;
    height: 420px !important;
    overflow: hidden;
  }
  .hero-fallback { width: min(80%, 320px); }
  .chat-peek {
    width: clamp(110px, 22vw, 150px);
    max-width: 26%;
    right: 4%;
    bottom: 2%;
    transform: rotate(6deg) translateY(0);
  }
  .bubble-1 { top: 4%; left: 4%; }
  .bubble-2 { top: 38%; right: 4%; }
  .bubble-3 { bottom: 28%; left: 8%; }
}

@media (max-width: 480px) {
  .hero-right {
    min-height: 360px !important;
    height: 360px !important;
    overflow: hidden;
  }
  .hero-visual {
    min-height: 360px !important;
    height: 360px !important;
    overflow: hidden;
  }
  .chat-peek { width: 100px; right: 2%; bottom: 2%; }
  .bubble { padding: 8px 14px 8px 10px; font-size: 12px; }
  .bubble .flag { font-size: 15px; }
}
