/* ============================================================
   메인 (Innofit Hub) — 다크 무드 + Hover 배경 전체 무드 전환
   ============================================================ */
body.hub {
  background: var(--hub-bg);
  color: var(--hub-ink);
}

/* ---------- 무드 레이어 (Hover 시 배경 전체 전환) ---------- */
.mood-layer {
  position: fixed; inset: 0; z-index: 0;
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}
.mood-layer.baro {
  background:
    radial-gradient(1000px 700px at 30% 40%, rgba(255,107,74,0.28) 0%, transparent 60%),
    linear-gradient(160deg, #1A100C 0%, #0A0E1A 100%);
}
.mood-layer.edge {
  background:
    radial-gradient(1000px 700px at 70% 40%, rgba(0,229,204,0.22) 0%, transparent 60%),
    linear-gradient(200deg, #041014 0%, #05070D 100%);
}
body.mood-baro .mood-layer.baro { opacity: 1; }
body.mood-edge .mood-layer.edge { opacity: 1; }

/* 배경 별 필드 (은은한 파티클) */
.starfield { position: fixed; inset: 0; z-index: 0; opacity: 0.5; }

.hub .gnb { color: var(--hub-ink); }
.hub .gnb.scrolled { background: rgba(10,14,26,0.7); }
.hub .gnb nav { background: transparent; }
@media (max-width: 900px) { .hub .gnb nav { background: rgba(10,14,26,0.96); } }

/* ---------- HERO 인트로 ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 60px;
}
.hero .eyebrow { color: var(--hub-sub); }
/* 히어로 배경 영상 위에 텍스트 가독성 확보 (다크 톤) */
.hub .hero-video-overlay {
  background:
    radial-gradient(1200px 700px at 50% 30%, rgba(10,14,26,0.35) 0%, rgba(10,14,26,0.72) 70%),
    linear-gradient(180deg, rgba(10,14,26,0.55) 0%, rgba(10,14,26,0.86) 100%);
}
/* 히어로 내부 콘텐츠는 영상 위로 */
.hero > .eyebrow, .hero > .display, .hero > .tagline, .hero > .scroll-hint { position: relative; z-index: 1; }

/* 글자 단위 스태거 등장 */
.hero .display .ch {
  display: inline-block; opacity: 0; transform: translateY(0.6em);
  animation: chIn 0.7s var(--ease-out) forwards;
}
@keyframes chIn { to { opacity: 1; transform: none; } }

.hero .tagline {
  margin-top: 20px; color: var(--hub-sub); font-size: clamp(16px, 2vw, 20px);
  opacity: 0; animation: chIn 0.8s var(--ease-out) 0.9s forwards;
}
.hero .scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--hub-sub); font-size: 12px; letter-spacing: 0.2em;
  animation: hintFloat 2.2s ease-in-out infinite;
}
@keyframes hintFloat { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- 듀얼 심볼 내비게이션 ---------- */
.duo {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px;
}
.duo-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px); width: 100%; max-width: 1080px;
}
.brand-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hub-line);
  background: rgba(255,255,255,0.02);
  transition: transform 0.5s var(--ease-out), border-color 0.5s, background 0.5s, opacity 0.5s, box-shadow 0.5s;
  cursor: pointer;
}
.brand-card:hover { transform: translateY(-8px); }

/* 상대편 딤 처리 */
body.mood-baro .brand-card.edge-card,
body.mood-edge .brand-card.baro-card { opacity: 0.35; }

.brand-card.baro-card:hover {
  border-color: rgba(255,107,74,0.5);
  background: rgba(255,107,74,0.05);
  box-shadow: 0 30px 80px -30px rgba(255,107,74,0.45);
}
.brand-card.edge-card:hover {
  border-color: rgba(0,229,204,0.45);
  background: rgba(0,229,204,0.04);
  box-shadow: 0 30px 80px -30px rgba(0,229,204,0.4);
}

/* 글로우 링 + 심볼 */
.symbol-ring {
  position: relative; width: clamp(110px, 14vw, 150px); height: clamp(110px, 14vw, 150px);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.symbol-ring::before {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  padding: 2px; opacity: 0.7;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity 0.4s;
}
.baro-card .symbol-ring::before { background: var(--baro-grad); }
.edge-card .symbol-ring::before { background: var(--edge-grad); }
.brand-card:hover .symbol-ring::before { opacity: 1; animation: ringSpin 6s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.symbol-ring img { width: 58%; height: auto; }
.symbol-ring .edge-mark {
  font-size: clamp(34px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.02em;
  background: var(--edge-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.brand-card .b-name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.brand-card .b-tag { margin-top: 10px; color: var(--hub-sub); font-size: 15px; }
.brand-card .b-go {
  margin-top: 26px; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0.75; transition: opacity 0.3s, gap 0.3s;
}
.brand-card:hover .b-go { opacity: 1; gap: 12px; }
.baro-card .b-go { color: var(--baro); }
.edge-card .b-go { color: var(--edge); }

/* ---------- ABOUT ---------- */
.about { position: relative; z-index: 1; padding: 120px 0; }
.about .eyebrow { color: var(--baro); }
.about .lead { color: var(--hub-sub); max-width: 680px; margin-top: 16px; }
.about .stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px;
}
.about .stat {
  border: 1px solid var(--hub-line); border-radius: var(--radius);
  padding: 32px; background: rgba(255,255,255,0.02);
}
.about .stat .n {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 800;
  background: linear-gradient(135deg, #FF6B4A, #00E5CC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about .stat .l { color: var(--hub-sub); font-size: 15px; margin-top: 6px; }

/* ---------- 지식재산권 (IP) 섹션 — 허브 다크 무드 ---------- */
.ip-section { position: relative; z-index: 1; padding: 110px 0 60px; }
.ip-section .eyebrow {
  background: linear-gradient(135deg, #FF6B4A, #00E5CC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ip-section .lead { color: var(--hub-sub); }
.ip-card.hub-ip {
  border: 1px solid var(--hub-line);
  background: rgba(255,255,255,0.02);
}
.ip-card.hub-ip:hover { border-color: rgba(255,255,255,0.18); }
.ip-card.hub-ip:nth-child(1):hover { box-shadow: 0 30px 80px -32px rgba(0,229,204,0.4); }
.ip-card.hub-ip:nth-child(2):hover { box-shadow: 0 30px 80px -32px rgba(255,107,74,0.4); }
.ip-badge-edge { background: rgba(0,229,204,0.1); color: var(--edge); border: 1px solid rgba(0,229,204,0.3); }
.ip-badge-baro { background: rgba(255,107,74,0.1); color: var(--baro); border: 1px solid rgba(255,107,74,0.35); }
.ip-card.hub-ip h3 { color: var(--hub-ink); }
.ip-card.hub-ip .ip-no { color: var(--hub-sub); }

/* 마퀴 — 허브 톤 */
.hub .trust-marquee { margin-top: 72px; border-top: 1px solid var(--hub-line); border-bottom: 1px solid var(--hub-line); }
.hub .tm-item { background: rgba(255,255,255,0.03); border: 1px solid var(--hub-line); color: var(--hub-sub); }

/* ---------- 반응형 ---------- */
@media (max-width: 768px) {
  .duo { min-height: auto; padding: 40px 20px 80px; }
  .duo-inner { grid-template-columns: 1fr; gap: 24px; }
  /* 모바일: 카드에 브랜드 무드 상시 적용 */
  .brand-card.baro-card {
    border-color: rgba(255,107,74,0.4);
    background: linear-gradient(160deg, rgba(255,107,74,0.12), rgba(255,255,255,0.02));
  }
  .brand-card.edge-card {
    border-color: rgba(0,229,204,0.35);
    background: linear-gradient(160deg, rgba(0,229,204,0.10), rgba(255,255,255,0.02));
  }
  .brand-card .b-go { opacity: 1; }
  .about .stats { grid-template-columns: 1fr; }
}
