/* style.css - 집값해독 v2 홈탭 */

/* ── 공통 ── */
.hm-dim { color: var(--text3); }
.hm-purple { color: var(--accent); }
.hm-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 20px;
}

/* ── 1. 히어로 ── */
.hm-hero {
  background-color: var(--bg0);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  text-align: center;
  padding: 100px 24px 80px;
}
.hm-hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

/* 실시간 배지 */
.hm-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 32px;
  letter-spacing: .3px;
}
.hm-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: hm-pulse 1.6s ease-in-out infinite;
}
@keyframes hm-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: .7; box-shadow: 0 0 0 6px transparent; }
}

.hm-hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--text1);
  line-height: 1.2;
  margin: 0 0 24px;
  letter-spacing: -1.5px;
}
.hm-hero-sub {
  font-size: 16px;
  color: var(--text3);
  line-height: 1.7;
  margin: 0 0 40px;
}

/* CTA 버튼 */
.hm-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hm-btn-white {
  background: var(--text1);
  color: var(--bg0);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s, box-shadow .15s;
}
.hm-btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.hm-btn-ghost {
  background: transparent;
  color: var(--text3);
  border: 1px solid var(--rule);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .15s, color .15s;
}
.hm-btn-ghost:hover {
  border-color: var(--text3);
  color: var(--text1);
}

/* ── 2. AI 해독사 ── */
.hm-ai {
  padding: 80px 24px;
  background: var(--bg0);
}
.hm-ai-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg1);
  border-radius: 16px;
  padding: 48px 40px;
  border: 1px solid var(--rule);
}
.hm-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hm-ai-left {}
.hm-ai-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text1);
  line-height: 1.4;
  margin: 0 0 16px;
}
.hm-ai-desc {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.8;
  margin: 0 0 20px;
}
.hm-ai-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hm-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 12px;
}
.hm-ai-badge i { color: var(--accent); font-size: 11px; }

.hm-ai-right {}
.hm-ai-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hm-ai-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.hm-ai-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
}
.hm-ai-card i { font-size: 22px; margin-bottom: 10px; display: block; }
.hm-ai-card span { font-size: 13px; font-weight: 600; color: var(--text2); }
.hm-ic-red { color: #ef4444; }
.hm-ic-purple { color: var(--accent); }
.hm-ic-green { color: var(--green); }
.hm-ic-gold { color: var(--gold); }

.hm-ai-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--text3);
  text-align: center;
}
.hm-ai-footer i { color: var(--accent); margin-right: 4px; }

/* ── 3. 창업자 스토리 ── */
.hm-founder {
  padding: 80px 24px;
  background: var(--bg0);
}
.hm-founder-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.hm-founder-left {}
.hm-quote {
  font-size: 15px;
  font-style: italic;
  color: var(--text3);
  line-height: 1.7;
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.hm-founder-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text1);
  margin: 0 0 16px;
}
.hm-founder-body {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.8;
  margin: 0 0 16px;
}
.hm-founder-sig {
  font-size: 12px;
  color: var(--text3);
  margin: 8px 0 0;
}
.hm-founder-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 기능 카드 */
.hm-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.hm-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hm-feat-red { background: rgba(239,68,68,.12); color: #ef4444; }
.hm-feat-green { background: var(--accent-glow); color: var(--accent); }
.hm-feat-purple { background: var(--accent-glow); color: var(--accent); }
.hm-feat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text1);
  margin: 0 0 6px;
}
.hm-feat-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  margin: 0;
}

/* ── 4. 철학 ── */
.hm-philo {
  padding: 80px 24px;
  background: var(--bg0);
}
.hm-philo-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg1);
  border-radius: 16px;
  padding: 48px 40px;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hm-philo-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.hm-philo-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text2);
}
.hm-philo-line + .hm-philo-line {
  border-top: 1px solid var(--rule);
}
.hm-philo-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--text3);
  min-width: 28px;
  letter-spacing: 1px;
}

/* ── 5. 요금제 ── */
.hm-pricing {
  padding: 80px 24px;
  background: var(--bg0);
}
.hm-pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.hm-pricing-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text1);
  margin: 0 0 12px;
}
.hm-pricing-sub {
  font-size: 14px;
  color: var(--text3);
  margin: 0;
  line-height: 1.6;
}
.hm-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.hm-price-card {
  background: var(--bg1);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 36px 24px 32px;
  position: relative;
  transition: transform .2s, border-color .2s;
}
.hm-price-card:hover { transform: translateY(-3px); }
.hm-price-basic { border-color: var(--rule); }
.hm-price-basic:hover { border-color: var(--text3); }
.hm-price-pro { border-color: var(--accent-glow); }
.hm-price-pro:hover { border-color: var(--accent); }
.hm-price-expert { border-color: rgba(232,213,163,.3); }
.hm-price-expert:hover { border-color: var(--gold); }

/* 추천/전문가 배지 */
.hm-price-badge-pro,
.hm-price-badge-expert {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.hm-price-badge-pro { background: var(--accent); color: #fff; }
.hm-price-badge-expert { background: var(--gold); color: #0C0C0E; }

.hm-price-top {
  margin-bottom: 16px;
}
.hm-price-amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--text1);
}
.hm-price-period {
  font-size: 14px;
  color: var(--text3);
  margin-left: 4px;
}
.hm-price-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--text1);
  margin: 0 0 8px;
}
.hm-price-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  margin: 0 0 20px;
}
.hm-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.hm-price-features li {
  font-size: 13px;
  color: var(--text2);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hm-price-features li i {
  color: var(--accent);
  font-size: 11px;
  width: 14px;
  text-align: center;
}

/* 요금 버튼 */
.hm-price-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s;
}
.hm-price-btn:hover { transform: translateY(-1px); }
.hm-btn-purple {
  background: var(--accent);
  color: #fff;
}
.hm-btn-purple:hover { box-shadow: 0 4px 16px var(--accent-glow); }
.hm-btn-gold {
  background: var(--gold);
  color: #0C0C0E;
}
.hm-btn-gold:hover { box-shadow: 0 4px 16px rgba(232,213,163,.3); }

/* ── 모바일 반응형 ── */
@media (max-width: 640px) {
  .hm-hero { padding: 72px 20px 56px; }
  .hm-hero-title { font-size: 32px; }
  .hm-ai-box { padding: 32px 20px; }
  .hm-ai-grid { grid-template-columns: 1fr; gap: 28px; }
  .hm-founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .hm-founder { padding: 56px 20px; }
  .hm-philo { padding: 56px 20px; }
  .hm-philo-box { padding: 32px 20px; }
  .hm-philo-line { font-size: 14px; }
  .hm-pricing { padding: 56px 20px; }
  .hm-price-grid { grid-template-columns: 1fr; max-width: 360px; }
  .hm-pricing-title { font-size: 22px; }
}

/* ============================================================
   Issue / News Ticker
============================================================ */
.tk-bar {
  height: 44px;
  display: flex;
  background: var(--bg1);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 56px;
  z-index: 150;
  cursor: pointer;
  transition: background .15s;
}
.tk-bar:hover { background: var(--bg2); }
.tk-bar:focus { outline: none; background: var(--bg2); }

.tk-col {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  overflow: hidden;
}
.tk-col-issue { border-right: 1px solid var(--rule); }

.tk-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: tk-pulse 1.6s ease-in-out infinite;
}
.tk-dot-red  { background: var(--red);  box-shadow: 0 0 8px var(--red); }
.tk-dot-blue { background: #3b82f6;     box-shadow: 0 0 8px #3b82f6; }
.tk-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: .5px;
}

.tk-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .3s ease;
  opacity: 1;
}

.tk-time {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text3);
  font-variant-numeric: tabular-nums;
}

@keyframes tk-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

@media (max-width: 600px) {
  .tk-col { padding: 0 10px; gap: 6px; }
  .tk-label { display: none; }
  .tk-time  { display: none; }
  .tk-text  { font-size: 12px; }
}

/* ============================================================
   Site Header (sh-) — 3-zone: logo / market indicators / login
============================================================ */
.sh-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 14px;
  background: var(--bg1);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 200;
}

.sh-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 6px 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: opacity .15s;
}
.sh-logo:hover { opacity: .82; }
.sh-logo i { font-size: 16px; color: var(--accent); }

.sh-mid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}
.sh-mid-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.sh-mid-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 500;
}
.sh-mid-item strong {
  font-weight: 700;
  color: var(--text1);
  font-variant-numeric: tabular-nums;
}
.sh-mid-sep {
  color: var(--text3);
  font-weight: 700;
  opacity: .6;
}
.sh-up   { color: var(--accent) !important; }
.sh-down { color: #ef4444 !important; }
.sh-mid-sub {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sh-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sh-theme {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.sh-theme:hover { color: var(--text1); border-color: var(--accent); }

.sh-kakao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #FEE500;
  color: #191919;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.sh-kakao:hover { opacity: .88; }
.sh-kakao i { font-size: 14px; }

@media (max-width: 720px) {
  .sh-mid { display: none; }
  .sh-kakao-label { display: none; }
  .sh-kakao { padding: 0 12px; }
}
