/* =============================================
   HANZOOM - pages/home.css
   메인 홈 페이지 전용 스타일
   ============================================= */

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 600px;
  max-height: 720px;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 배경 효과 */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,96,184,0.25) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,180,216,0.2) 0%, transparent 70%);
  bottom: 0; right: 10%;
}

.hero__inner {
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3rem;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

/* Hero 콘텐츠 */
.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-teal-lt);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.25rem;
  word-break: keep-all;
}
.hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  word-break: keep-all;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn--outline-white {
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
}
.btn--outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* 브랜드 배지 */
.hero__brands {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero__brand-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-teal-lt);
  letter-spacing: 0.08em;
}
.hero__brand-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.hero__brand-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

/* Hero 비주얼 — 컨테이너 내 배경 이미지 */
.hero__visual-bg {
  position: absolute;
  right: 0; bottom: 0;
  left: 25%;          /* 컨테이너 좌측에서 45% 지점부터 시작 */
  z-index: 0;
}

/* 4방향 → 네이비로 자연스럽게 페이드 */
.hero__visual-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  #0A1628 0%, transparent 40%),
    linear-gradient(to left,   #0A1628 0%, transparent 20%),
    linear-gradient(to bottom, #0A1628 0%, transparent 30%),
    linear-gradient(to top,    #0A1628 0%, transparent 30%);
  z-index: 2;
  pointer-events: none;
}
.hero__phone-wrap {
  position: relative;
  width: 280px;
  height: 480px;
}
.hero__phone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 380px;
  background: linear-gradient(145deg, #1a2744, #0d1829);
  border-radius: 32px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(0,180,216,0.2),
    0 32px 64px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  padding: 1.5rem 1rem 1rem;
}
.hero__phone-screen { height: 100%; display: flex; flex-direction: column; gap: 1rem; }
.hero__app-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__app-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 8px var(--color-teal);
}
.hero__app-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
}
.hero__app-otp {
  background: rgba(0,96,184,0.2);
  border: 1px solid rgba(0,180,216,0.25);
  border-radius: 12px;
  padding: 0.875rem;
  text-align: center;
}
.hero__otp-label {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}
.hero__otp-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-teal-lt);
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
}
.hero__otp-num span { color: rgba(255,255,255,0.2); font-size: 0.5rem; }
.hero__otp-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.hero__otp-progress {
  height: 100%;
  background: var(--color-teal);
  border-radius: 2px;
  animation: otp-progress 3s linear infinite;
}
@keyframes otp-progress {
  0%   { width: 100%; }
  100% { width: 0%; }
}
.hero__app-status { display: flex; flex-direction: column; gap: 0.5rem; }
.hero__status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.hero__status-item--on { color: rgba(255,255,255,0.9); }
.hero__status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.hero__status-item--on .hero__status-dot {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* 궤도 아이콘 */
.hero__orbit {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: orbit-float 4s ease-in-out infinite;
}
.hero__orbit-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  backdrop-filter: blur(8px);
}
.hero__orbit span {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}
.hero__orbit--1 { top: 10%;  left: -10%;  animation-delay: 0s; }
.hero__orbit--2 { top: 10%;  right: -10%; animation-delay: 1s; }
.hero__orbit--3 { bottom: 20%; left: -5%;  animation-delay: 2s; }
.hero__orbit--4 { bottom: 20%; right: -5%; animation-delay: 3s; }
@keyframes orbit-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* 스크롤 유도 */
.hero__scroll {
  display: none;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(0,180,216,0.6), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── 핵심 가치 ─── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.value-card__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #EFF6FF, #E0F9FF);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}
.value-card__icon svg { width: 32px; height: 32px; }
.value-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.value-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.value-card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-section);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ─── 통계 ─── */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, var(--color-navy) 100%);
  padding: 5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.5rem;
}
.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-teal-lt);
}
.stat-item__label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ─── 제품 ─── */
.product-group { margin-bottom: 3rem; }
.product-group:last-child { margin-bottom: 0; }
.product-group__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-teal);
}
.product-grid { display: grid; gap: 1.25rem; }
.product-grid--2 { grid-template-columns: repeat(2, 1fr); }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  text-decoration: none;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card__img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-section);
}
.product-card--individual .product-card__img-wrap { aspect-ratio: 16/10; }
.product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:nth-child(2) .product-card__img { object-position: top center; }
.product-card:hover .product-card__img { transform: scale(1.05); }
.product-card__body { padding: 1.25rem; flex: 1; }
.product-card__brand {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.375rem;
}
.product-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.product-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.product-card__price {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ─── 인증 스크롤 ─── */
.cert-scroll {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.cert-track {
  display: flex;
  gap: 1rem;
  animation: cert-scroll 30s linear infinite;
  width: max-content;
}
.cert-track:hover { animation-play-state: paused; }
.cert-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg-section);
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.cert-icon { font-size: 1.125rem; }
@keyframes cert-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── 구축사례 ─── */
.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.reference-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
}
.reference-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.reference-card--featured {
  grid-row: 1 / 3;
  flex-direction: column;
}
.reference-card:not(.reference-card--featured) { flex-direction: row; }
.reference-card__img-wrap {
  overflow: hidden;
  background: var(--color-bg-section);
  flex-shrink: 0;
}
.reference-card--featured .reference-card__img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
}
.reference-card:not(.reference-card--featured) .reference-card__img-wrap {
  width: 140px;
}
.reference-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.reference-card:hover img { transform: scale(1.04); }
.reference-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.reference-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}
.reference-card--featured .reference-card__body h3 { font-size: 1.25rem; }
.reference-card__body p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.reference-card__amount {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
}

/* ─── 협력사 ─── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.partner-card {
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); background: #fff; }
.partner-card__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s;
}
.partner-card:hover .partner-card__logo { filter: none; }
.partner-card__info strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.partner-card__info span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ─── 소개 영상 ─── */
.section--video {
  background: var(--color-bg-section);
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 50.625%; /* 900px 기준 16:9 */
  height: 0;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

/* ─── CTA 배너 ─── */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy) 100%);
  padding: 5rem 0;
  overflow: hidden;
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,180,216,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,96,184,0.2) 0%, transparent 50%);
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.cta-banner__text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-banner__text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.cta-banner__btns {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero__visual-bg { display: none; }
  .hero__inner { text-align: center; }
  .hero__content { max-width: 100%; }
  .hero__cta { justify-content: center; }
  .hero__brands { justify-content: center; }
  .value-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .reference-grid { grid-template-columns: 1fr; }
  .reference-card--featured { grid-row: auto; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .hero__title { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid--2 { grid-template-columns: 1fr; }
  .product-grid--3 { grid-template-columns: 1fr; }
  .reference-card:not(.reference-card--featured) { flex-direction: column; }
  .reference-card:not(.reference-card--featured) .reference-card__img-wrap { width: 100%; aspect-ratio: 16/9; }
  .partners-grid { grid-template-columns: 1fr; }
  .cta-banner__btns { flex-direction: column; }
}


/* ─── Hero 이미지 ─── */
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* 흰색 배경 → 네이비와 곱셈 합성으로 자연스럽게 제거 */
  mix-blend-mode: multiply;
  filter: brightness(1.0) contrast(1.0) saturate(1.0);
}
