/* ==================================================================
   ENISM MULTI VIEWER-AI — viewer.lhenism.com
   ================================================================== */

@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/PretendardVariable.woff2') format('woff2-variations'),
       url('../fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NanumSquareRound';
  src: url('../fonts/NanumSquareRoundB.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jalnan Gothic';
  src: url('../fonts/JalnanOTF.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-text: #1B1B1B;
  --color-text-dark: #141414;
  --color-muted: #7E7E7E;
  --color-muted-2: #717583;
  --color-muted-3: #666C73;
  --color-line: #D9D9D9;
  --color-accent: #1B68F4;
  --color-accent-2: #2475BB;
  --color-footer-bg: #23262A;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
video { display: block; width: 100%; height: 100%; object-fit: cover; }

.container {
  max-width: 1920px;
  margin: 0 auto;
}

/* ============ 헤더 ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background-color .3s ease;
}

.site-header__inner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img { height: 32px; width: auto; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: #fff;
  color: #1B1B1B;
  font-size: 22px;
  border-radius: 60px;
  white-space: nowrap;
}

/* 히어로 구간(어두운 배경) 위에 있을 때만 헤더 배경 적용 — JS가 토글 */
.site-header.is-on-dark {
  background: rgba(0, 0, 0, 0.41);
}

/* ============ 공통: 섹션 폭 ============ */
section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ============ Section 1: 히어로 ============ */
.hero {
  height: 993px;
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 406px;
  background: rgba(20, 2, 2, 0.7);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 280px 64px;
  color: #fff;
}

.hero__logotype {
  display: block;
  width: 1045px;
  max-width: 100%;
  height: auto;
  margin-bottom: 28px;
}

.hero__tagline {
  margin: 0;
  font-family: 'NanumSquareRound', 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 55px;
  color: #fff;
}

/* ============ Section 2: 소개 ============ */
.intro {
  height: 993px;
  display: flex;
}

.intro__media {
  position: absolute;
  inset: 0;
}

.intro__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__panel {
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: 959px;
  max-width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
}

.intro__panel-inner {
  position: absolute;
  left: 101px;
  top: 177px;
  width: 579px;
  max-width: calc(100% - 122px);
}

.intro__title {
  margin: 0 0 86px;
  font-family: 'Pretendard';
  font-weight: 900;
  font-size: 70px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: var(--color-text);
}

.intro__title-line {
  display: block;
  font-family: 'Jalnan Gothic', 'Pretendard', sans-serif;
  font-weight: 400;
  white-space: nowrap;
}

.intro__title-line--accent {
  color: var(--color-accent-2);
}

.intro__desc {
  margin: 0;
  font-size: 30px;
  line-height: 1.71;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

/* ============ Section 3: 기능 7행 ============ */
.features {
  background: #fff;
}

.feature-row {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--color-line);
}

.feature-row__text {
  flex: 0 0 961px;
  width: 961px;
  padding: 60px 0 60px 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  box-sizing: border-box;
}

/* 3행만 좌우 패딩(280px)이 동일 — 피그마 원본 스펙 */
.feature-row--tight .feature-row__text {
  padding: 60px 280px;
}

.feature-row__title {
  margin: 0;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: var(--color-text);
}

.feature-row__desc {
  margin: 0;
  max-width: 595px;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.19;
  color: var(--color-muted);
}

.feature-row__media {
  flex: 0 0 960px;
  width: 960px;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.feature-row__media video {
  width: 960px;
  height: 540px;
  max-width: 100%;
  object-fit: cover;
}

/* ============ Section 4: 카드 ============ */
.cards {
  padding: 151px 38px 120px;
  background: #fff;
  text-align: center;
}

.cards__title {
  margin: 0 0 70px;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--color-text-dark);
}

.cards__row {
  max-width: 1361px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px;
}

.card {
  flex: 0 0 407px;
  width: 407px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card__illust {
  width: 407px;
  height: 371px;
  border-radius: 10px;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card__illust img {
  max-width: 80%;
  max-height: 80%;
}

.card__title {
  margin: 27px 0 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
}

.card__desc {
  margin: 0;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-muted-2);
}

/* ============ Section 5: CTA + Footer ============ */
.cta {
  position: relative;
  height: 993px;
  background: #fff;
  background-image: radial-gradient(circle at 50% 82%, rgba(147, 187, 219, 0.37) 0%, rgba(183, 228, 244, 0) 100%);
}

.cta__content {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 108px 312px 0;
  box-sizing: border-box;
}

.cta__title {
  margin: 0 0 40px;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--color-text-dark);
}

.cta__desc {
  margin: 0 0 40px;
  max-width: 693px;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-muted-2);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 30px;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  border-radius: 11px;
  box-shadow: 0 0 4.5px 0 rgba(0, 0, 0, 0.25);
}

.btn-cta__arrow {
  font-size: 32px;
}

.cta__illust {
  position: absolute;
  left: calc(954 / 1920 * 100%);
  top: 198px;
  width: calc(673 / 1920 * 100%);
  max-width: 673px;
  z-index: 1;
}

/* ============ 푸터 ============ */
.site-footer {
  background: var(--color-footer-bg);
}

.site-footer__inner {
  position: relative;
  max-width: 1920px;
  min-height: 320px;
  margin: 0 auto;
}

.site-footer__brand {
  position: absolute;
  left: 232px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.site-footer__brand img { width: 321px; height: auto; }

.site-footer__copyright {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--color-muted-3);
}

.site-footer__info {
  position: absolute;
  right: 241px;
  top: 56px;
  width: 592px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  color: #fff;
  font-size: 20px;
  line-height: 1.45;
}

.site-footer__row {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer__row--sub {
  color: var(--color-muted-3);
}

.site-footer__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: -3px;
  margin-right: 8px;
  opacity: 0.85;
}

.site-footer__zip {
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
}

.site-footer__ceo {
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.25);
}

.site-footer__contact {
  display: inline-flex;
  align-items: center;
}

.site-footer__contact + .site-footer__contact {
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.25);
}

.site-footer__privacy {
  position: absolute;
  right: 241px;
  top: 251px;
  font-size: 18px;
  color: var(--color-muted-3);
}

/* ==================================================================
   반응형 — 모바일 (Figma 모바일 시안 1080px 기준)
   ================================================================== */
@media (max-width: 1024px) {

  .site-header__inner { padding: 0 20px; }
  .site-header__logo img { height: 26px; }
  .btn-pill { font-size: 16px; padding: 8px 16px; }

  /* ---- 히어로 ---- */
  .hero { height: 100vh; min-height: 560px; }
  .hero__overlay { height: 45%; }
  .hero__content { padding: 0 30px 60px; }
  .hero__logotype { width: 78vw; max-width: 380px; margin-bottom: 16px; }
  .hero__tagline { font-size: 6.5vw; line-height: 1.3; max-width: 100%; }

  /* ---- 소개 ---- */
  .intro { height: auto; flex-direction: column; }
  .intro__media { position: relative; height: 60vh; min-height: 320px; }
  .intro__panel {
    position: relative;
    width: 100%;
    margin-left: 0;
    background: #fff;
    padding: 48px 24px;
  }
  .intro__panel-inner { position: static; width: 100%; max-width: 100%; }
  .intro__title { font-size: 36px; margin-bottom: 24px; }
  .intro__title-line { white-space: normal; }
  .intro__desc { font-size: 18px; line-height: 1.6; }

  /* ---- 기능 7행: 전부 1단, 텍스트 위 → 미디어 아래 ---- */
  .feature-row {
    flex-direction: column;
  }
  .feature-row__text,
  .feature-row--tight .feature-row__text {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    padding: 48px 24px 32px;
    gap: 16px;
  }
  .feature-row__title { font-size: 24px; }
  .feature-row__desc { font-size: 16px; max-width: 100%; }
  .feature-row__media {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .feature-row__media video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* ---- 카드 ---- */
  .cards { padding: 80px 24px 60px; }
  .cards__title { font-size: 28px; margin-bottom: 48px; }
  .cards__row { flex-direction: column; align-items: center; gap: 48px; max-width: 100%; }
  .card { flex: 0 0 auto; max-width: 420px; width: 100%; }
  .card__illust { width: 100%; height: auto; aspect-ratio: 407 / 371; }

  /* ---- CTA ---- */
  .cta { height: auto; padding: 80px 0; }
  .cta__content { padding: 0 24px; }
  .cta__title { font-size: 30px; }
  .cta__desc { font-size: 17px; max-width: 100%; }
  .btn-cta { font-size: 22px; padding: 14px 22px; }
  .cta__illust { display: none; }

  /* ---- 푸터 ---- */
  .site-footer__inner {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 28px;
  }
  .site-footer__brand {
    position: static;
    transform: none;
    gap: 20px;
  }
  .site-footer__brand img { width: 160px; }
  .site-footer__info {
    position: static;
    width: 100%;
    align-items: flex-start;
    font-size: 14px;
    gap: 12px;
  }
  .site-footer__zip,
  .site-footer__ceo,
  .site-footer__contact + .site-footer__contact {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    display: flex;
    width: 100%;
  }
  .site-footer__privacy { position: static; margin-top: 4px; }
}
