@charset "utf-8";

/* ==========================================================================
   Main Page (front-page) — H-PHY(TM) Portal Home
   하이브리드: Hero/Applications/CTA = 다크 · 본문 = 라이트  ·  accent #2E6BFF
   ========================================================================== */

/* ---------- HERO (full-bleed bg + left copy, intro anim) ---------- */
.hp-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--d-bg); }
.hp-hero__bg { position: absolute; inset: 0; z-index: 0; background-repeat: no-repeat; background-position: center center; background-size: cover;
  transform-origin: center; animation: heroZoom 2s cubic-bezier(.3, 1, .6, 1) both; }
.hp-hero__scrim { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,11,.94) 0%, rgba(10,10,11,.80) 28%, rgba(10,10,11,.30) 56%, rgba(10,10,11,0) 78%),
    linear-gradient(0deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 42%); }
.hp-hero .area { position: relative; z-index: 2; width: 100%; }
.hp-hero__copy { max-width: 600px; }
.hp-hero__copy > * { opacity: 0; will-change: transform, opacity; animation: heroRise .85s cubic-bezier(.16, 1, .3, 1) forwards; }

.hp-hero__wordmark { font-family: var(--font-title); font-weight: 700; font-size: clamp(58px, 7vw, 110px); line-height: .9; letter-spacing: -.04em; color: #fff; animation-delay: .15s; }
.hp-hero__wordmark .tm { 
    font-size: 0.64em;
    font-weight: 400;
    vertical-align: super;
    margin-left: 0.14em;
    top: 10px;
    position: relative; }
.hp-hero__lead { position: relative; margin-top: 22px; padding-top: 22px; font-family: var(--font-title);
  font-size: clamp(21px, 2.4vw, 31px); font-weight: 400; color: var(--primary); letter-spacing: -.01em; animation-delay: .32s; }
.hp-hero__sub { margin-top: 20px; font-size: clamp(13px, 1.35vw, 19px); color: var(--d-dim);  line-height: 1.65; animation-delay: .48s; }

.hp-hero__kpis { display: grid; grid-template-columns: repeat(4, auto); gap: 30px; margin-top: 46px; animation-delay: .64s; }
.hp-kpi { display: flex; flex-direction: column; gap: 14px; max-width: 132px; }
.hp-kpi__ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(130, 165, 255, .55); color: #fff; background: rgba(46, 107, 255, .22);
  box-shadow: 0 0 22px rgba(46, 107, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .08); }
.hp-kpi__ic svg { width: 32px; height: 32px; }
.hp-kpi span { font-size: 14.5px; line-height: 1.35; color: var(--d-dim); }

.hp-hero__cta { margin-top: 46px; animation-delay: .82s; }
.hp-hero__btn { padding: 16px 34px; font-size: 16px; }

@keyframes heroZoom { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hp-hero__bg { animation: none; }
  .hp-hero__copy > * { opacity: 1; animation: none; }
}

/* ---------- STATS (dark band) ---------- */
.hp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--d-line);
  border: 1px solid var(--d-line); border-radius: var(--radius); overflow: hidden; }
.hp-stat { background: var(--d-bg-2); padding: 34px 28px; }
.hp-stat__num { font-family: var(--font-title); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1; color: #fff; letter-spacing: -.02em; }
.hp-stat__num .u { color: var(--primary); font-size: .46em; font-weight: 700; margin-left: 5px; }
.hp-stat__lbl { color: var(--d-text); font-size: 15px; margin-top: 14px; font-weight: 500; }
.hp-stat__note { color: var(--d-dim); font-size: 13px; margin-top: 4px; }
.hp-stats-note { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--d-dim); }

/* ---------- SPLIT teaser (본문 → 서브페이지) ---------- */
.hp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hp-split--flip .hp-split__copy { order: 2; }
.hp-split__copy h3 { font-family: var(--font-title); font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.hp-split__copy p { margin-top: 18px; font-size: 17px; line-height: 1.75; color: var(--text-sub); max-width: 48ch; }
.hp-split__copy .cm-btn-more { margin-top: 26px; }
.sec--dark .hp-split__copy h3 { color: #fff; }
.sec--dark .hp-split__copy p { color: var(--d-dim); }

/* ---------- CARD GRID (아이콘 카드, 통일 라인) ---------- */
.hp-grid { display: grid; gap: 20px; }
.hp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hp-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: var(--transition); }
.hp-card:hover { border-color: var(--primary-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.hp-card__ic { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 20px; }
.hp-card__ic svg { width: 27px; height: 27px; }
.hp-card h4 { font-family: var(--font-title); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.hp-card p { margin-top: 9px; font-size: 14.5px; line-height: 1.6; color: var(--text-sub); }
/* 다크 섹션 카드 */
.sec--dark .hp-card { background: var(--d-bg-2); border-color: var(--d-line); }
.sec--dark .hp-card h4 { color: #fff; }
.sec--dark .hp-card p { color: var(--d-dim); }

/* ---------- PLACEHOLDER (전문 그래픽 컨펌 후 적용) ---------- */
.hp-ph { border: 1.5px dashed var(--primary-line); border-radius: var(--radius); background: var(--primary-soft);
  min-height: 300px; display: grid; place-items: center; text-align: center; padding: 34px; }
.hp-ph__badge { font-family: var(--font-title); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.hp-ph__t { color: var(--black); font-weight: 700; font-size: 19px; margin-top: 12px; font-family: var(--font-title); }
.hp-ph__s { color: var(--text-sub); font-size: 13.5px; margin-top: 8px; max-width: 42ch; }
.sec--dark .hp-ph__t { color: #fff; }
.sec--dark .hp-ph__s { color: var(--d-dim); }

/* ---------- PATENT stat chips (IP teaser) ---------- */
.hp-pats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.hp-pat { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; background: var(--l-bg-2); }
.hp-pat b { display: block; font-family: var(--font-title); font-size: 34px; font-weight: 700; color: var(--black); letter-spacing: -.02em; }
.hp-pat span { display: block; margin-top: 8px; font-size: 14px; color: var(--text-sub); }

/* ---------- CTA (dark panel) ---------- */
.hp-cta-wrap { padding: 96px 0; background: var(--d-bg); }
.hp-cta { background: linear-gradient(135deg, rgba(46, 107, 255, .18), rgba(46, 107, 255, .04));
  border: 1px solid var(--primary-line); border-radius: var(--radius-lg); padding: 66px; text-align: center; }
.hp-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); max-width: 22ch; margin: 0 auto; }
.hp-cta p { color: var(--d-dim); font-size: 17px; margin: 18px auto 32px; max-width: 52ch; }
.hp-cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- EXPLORE cards (이미지형 + 호버, Learn More) ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 54px; }
.explore-card { position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); text-decoration: none; background: var(--l-bg-2);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, border-color .35s ease; }
.explore-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-line); }
.explore-card__media { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: #e3e9f6; transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.explore-card:hover .explore-card__media { transform: scale(1.06); }
.explore-card__overlay { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 30%, rgba(11, 18, 32, .35) 60%, rgba(11, 18, 32, .82) 100%); transition: background .4s ease; }
.explore-card:hover .explore-card__overlay { background: linear-gradient(180deg, rgba(11, 18, 32, .12) 0%, rgba(11, 18, 32, .5) 48%, rgba(11, 18, 32, .92) 100%); }
.explore-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; }
.explore-card__num { display: block; font-family: var(--font-title); font-size: 13px; font-weight: 700; color: #7EA6FF; letter-spacing: .12em; }
.explore-card__title { display: block; margin-top: 10px; font-family: var(--font-title); font-size: 21px; font-weight: 700; color: #fff; line-height: 1.18; letter-spacing: -.01em; }
.explore-card__more { display: inline-flex; align-items: center; gap: 7px; max-height: 0; margin-top: 0; overflow: hidden;
  font-family: var(--font-title); font-size: 14px; font-weight: 700; color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, max-height .35s ease, margin-top .35s ease; }
.explore-card__more svg { width: 16px; height: 16px; }
.explore-card:hover .explore-card__more { opacity: 1; max-height: 32px; margin-top: 14px; transform: translateY(0); }

/* ---------- CTA BANNER (→ contact) ---------- */
.hp-csbanner { padding: 24px 0 96px; }
.csbanner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 210px; padding: 46px 56px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  background-color: #0d2266; background-size: cover; background-position: center;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease; }
.csbanner::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(7, 16, 48, .55) 0%, rgba(7, 16, 48, 0) 58%); }
.csbanner:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(13, 34, 102, .35); }
.csbanner__title { position: relative; z-index: 2; font-family: var(--font-title); font-weight: 700;
  font-size: clamp(23px, 2.6vw, 33px); line-height: 1.34; color: #fff; letter-spacing: -.01em; }
.csbanner__btn { position: relative; z-index: 2; flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; color: #fff;
  font-family: var(--font-title); font-weight: 700; font-size: 13.5px; letter-spacing: .1em;
  transition: background .3s ease, border-color .3s ease, color .3s ease; }
.csbanner__btn svg { width: 15px; height: 15px; }
.csbanner:hover .csbanner__btn { background: #fff; border-color: #fff; color: var(--primary); }
