/* ==========================================================================
   Reset / Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
    'Noto Sans KR', sans-serif;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: linear-gradient(148deg, #267c96 23%, #142b4f 74%);
}

.hero__bg-wrap {
  position: absolute;
  inset: 0;
  border-bottom-right-radius: min(200px, 15vw);
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero__header {
  position: absolute;
  top: 40px;
  left: 16.3vw;
  z-index: 5;
}

@media (min-width: 1920px) {
  .hero__header {
    left: 313px;
  }
}

.hero__logo {
  height: 45px;
  width: auto;
}

.hero__content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 8.9vw;
}

@media (min-width: 1920px) {
  .hero__content {
    padding: 0 171px;
  }
}

.hero__text {
  display: none;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  max-width: 865px;
}

.hero__text.is-active {
  display: flex;
}

.hero__text--right {
  align-items: flex-end;
  align-self: flex-end;
  text-align: right;
}

.hero__text--center {
  align-items: center;
  align-self: center;
  text-align: center;
  max-width: 1040px;
}

.hero__text--left {
  align-items: flex-start;
  align-self: flex-start;
  text-align: left;
  max-width: 1040px;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__desc {
  font-weight: 400;
  font-size: clamp(15px, 1.7vw, 32px);
  line-height: 1.29;
  letter-spacing: -0.04em;
}

.hero__text--right .hero__desc {
  max-width: 609px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 18px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero__btn:hover {
  background: #fff;
  color: #142b4f;
}

.hero__indicators {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__dot {
  width: 12px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s ease, background 0.3s ease;
}

.hero__dot.is-active {
  width: 31px;
  background: #fff;
}

@media (max-width: 768px) {
  .hero__content {
    align-items: center;
    text-align: center;
    padding: 0 24px;
  }
  .hero__text,
  .hero__text.is-active {
    align-items: center;
  }
  .hero__header {
    left: 24px;
    top: 24px;
  }
  .hero__indicators {
    bottom: 32px;
  }
}

/* ==========================================================================
   Section 2: AI Multi Viewer
   공통 배경(장식 포함, 텍스트/콘텐츠 없는 순수 배경) 위에
   탭별 콘텐츠 비주얼(투명 PNG) + 실제 HTML 텍스트 + 실제 버튼(탭바)을 오버레이.
   좌표는 피그마 1920x1080 절대좌표를 %로 환산해 .viewer__stage 안에 배치.
   ========================================================================== */
.viewer {
  position: relative;
  width: 100%;
  background: #f0f0f0;
  overflow: hidden;
}

.viewer__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  max-width: 1920px;
  margin: 0 auto;
  z-index: 2;
}

.viewer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.viewer__bg.is-active {
  opacity: 1;
  z-index: 1;
}

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

.viewer__logo {
  position: absolute;
  left: 16.3%;
  top: 3.7%;
  height: 4.17%;
  width: auto;
  z-index: 5;
}

.viewer__more {
  position: absolute;
  left: 72.08%;
  top: 3.24%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 0.9% 1.6%;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.48);
  color: #bcd6de;
  font-size: clamp(11px, 1.1vw, 21px);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.viewer__more:hover {
  background: rgba(255, 255, 255, 0.8);
}

.viewer__title {
  position: absolute;
  left: 36.2%;
  top: 11.85%;
  width: 27.6%;
  height: auto;
  z-index: 3;
}

.viewer__panel {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.viewer__panel.is-active {
  display: block;
}

.viewer__panel-visual {
  position: absolute;
  height: auto;
}

.viewer__panel-text {
  position: absolute;
  left: 39.79%;
  top: 59.91%;
  width: 20.5%;
  text-align: center;
  z-index: 3;
}

.viewer__panel-text h3 {
  font-size: clamp(16px, 1.9vw, 36px);
  font-weight: 700;
  color: #293553;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.viewer__panel-text h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  max-width: 40%;
  height: 2px;
  background: #82acbe;
}

.viewer__panel-text p {
  font-size: clamp(11px, 1.35vw, 26px);
  color: #1b1b1b;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.viewer__panel[data-panel="custom"] .viewer__panel-visual {
  left: 37.66%;
  top: 28.61%;
  width: 30.94%;
}

.viewer__panel[data-panel="preview"] .viewer__panel-visual {
  left: 31.72%;
  top: 28.8%;
  width: 36.56%;
}

.viewer__panel[data-panel="folded"] .viewer__panel-visual {
  left: 23.28%;
  top: 25.46%;
  width: 55.52%;
}

.viewer__panel[data-panel="search"] .viewer__panel-visual {
  left: 33.65%;
  top: 27.04%;
  width: 35.97%;
}

.viewer__panel[data-panel="class"] .viewer__panel-visual {
  left: 35.94%;
  top: 30.09%;
  width: 29.06%;
}

.viewer__tabs {
  position: absolute;
  left: 50%;
  top: 80.6%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.51%;
  width: 100%;
  padding: 0 24px;
}

.viewer__tab {
  padding: 0.74% 1.2%;
  border-radius: 59px;
  background: rgba(255, 255, 255, 0.42);
  color: #333;
  font-size: clamp(13px, 1.67vw, 32px);
  line-height: 1.17;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.viewer__tab:hover {
  background: rgba(255, 255, 255, 0.75);
}

.viewer__tab.is-active {
  background: #004fb7;
  color: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.viewer__tab.is-active:hover {
  background: #003d91;
}

@media (max-width: 768px) {
  .viewer__tabs {
    gap: 6px;
    position: static;
    transform: none;
    margin-top: 16px;
    padding: 0 12px 24px;
  }
  .viewer__tab {
    padding: 8px 16px;
  }
}

/* ==========================================================================
   Section 3: How We Work
   ========================================================================== */
.work {
  position: relative;
  width: 100%;
  background: #f0f0f0;
  padding: 70px 0 160px;
  overflow: hidden;
}

.work__logo {
  display: block;
  height: 45px;
  width: auto;
  margin: 0 auto 25px;
}

.work__title {
  text-align: center;
  font-weight: 600;
  font-size: clamp(32px, 4.17vw, 80px);
  line-height: 1.17;
  color: #1b1b1b;
  margin-bottom: 80px;
}

.work__cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1500px;
  margin: 0 auto 140px;
  padding: 0 24px;
}

.work__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 460px;
  max-width: 100%;
  padding: 40px 30px 30px;
  border-radius: 160px;
  text-align: center;
}

.work__card-icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work__card-icon img {
  width: 82%;
  height: auto;
}

.work__card h3 {
  font-weight: 700;
  font-size: 36px;
  color: #293553;
}

.work__card-rule {
  width: 100px;
  height: 2px;
  background: #82acbe;
}

.work__card p {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #1b1b1b;
}

.work__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1600px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

.work__row:last-child {
  margin-bottom: 0;
}

.work__row--left {
  flex-direction: row;
}

.work__row--right {
  flex-direction: row-reverse;
}

.work__row-text {
  flex: 1 1 460px;
  max-width: 620px;
}

.work__row--right .work__row-text {
  text-align: right;
}

.work__row-text h3 {
  font-weight: 900;
  font-size: clamp(24px, 2.7vw, 52px);
  line-height: 1.2;
  color: #293553;
}

.work__row-rule {
  display: block;
  width: 100px;
  height: 2px;
  background: #1b1b1b;
  margin: 20px 0;
}

.work__row--right .work__row-rule {
  margin-left: auto;
}

.work__row-text p {
  font-size: clamp(14px, 1.15vw, 22px);
  line-height: 1.37;
  letter-spacing: -0.03em;
  color: #6b6b6b;
  margin-bottom: 30px;
}

.work__row-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 23px;
  border: 2px solid #2c80e6;
  border-radius: 25px;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #2c80e6;
  transition: background 0.25s ease, color 0.25s ease;
}

.work__row-link:hover {
  background: #2c80e6;
  color: #fff;
}

.work__row-photo {
  flex: 1 1 480px;
  max-width: 560px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.work__row-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 128, 230, 0.25);
  z-index: 1;
  pointer-events: none;
}

.work__row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

@media (max-width: 900px) {
  .work__row,
  .work__row--right {
    flex-direction: column;
  }
  .work__row--right .work__row-text,
  .work__row--right .work__row-rule {
    text-align: center;
    margin-left: 0;
  }
  .work__row-text {
    text-align: center !important;
  }
}

/* ==========================================================================
   Section: Our Works
   ========================================================================== */
.works {
  position: relative;
  width: 100%;
  background: #fff;
  padding: 70px 0 100px;
  overflow: hidden;
}

.works__logo {
  display: block;
  height: 45px;
  width: auto;
  margin: 0 auto 25px;
}

.works__title {
  text-align: center;
  font-weight: 600;
  font-size: clamp(32px, 4.17vw, 80px);
  line-height: 1.17;
  color: #293553;
  margin-bottom: 60px;
}

.works__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto 90px;
  padding: 0 24px;
  flex-wrap: wrap;
}

.works__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 470px;
  max-width: 100%;
  padding: 40px 30px 30px;
  text-align: center;
}

.works__stat img {
  width: 100px;
  height: auto;
}

.works__stat-rule {
  width: 100px;
  height: 1px;
  background: rgba(41, 53, 83, 0.33);
}

.works__stat h3 {
  font-weight: 400;
  font-size: 36px;
  color: #293553;
}

.works__stat-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #2c80e6;
  border-radius: 60px;
  color: #fff;
  font-size: 22px;
  transition: background 0.25s ease;
}

.works__stat-link:hover {
  background: #1f66bd;
}

.works__stat-divider {
  width: 2px;
  height: 100px;
  background: rgba(49, 61, 99, 0.3);
}

@media (max-width: 900px) {
  .works__stat-divider {
    display: none;
  }
}

.works__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px 70px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.works__logo-item {
  height: 45px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.works__logo-item:hover {
  opacity: 1;
}

/* ==========================================================================
   Footer / CTA
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  background: #e7ecf4;
  border-top-left-radius: min(200px, 15vw);
}

.site-footer__hero {
  position: relative;
  max-width: 1854px;
  margin: 0 auto;
  border-radius: min(200px, 15vw) min(200px, 15vw) 0 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    radial-gradient(circle at 3% 10%, rgba(22, 71, 140, 0.6) 0%, rgba(4, 20, 78, 0.6) 100%);
  padding: 90px 24px 110px;
  text-align: center;
}

.site-footer__lead {
  font-size: clamp(18px, 1.56vw, 30px);
  line-height: 1.29;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 40px;
}

.site-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px 15px 34px;
  border: 1px solid #fff;
  border-radius: 60px;
  color: #fff;
  font-size: clamp(18px, 1.77vw, 34px);
  transition: background 0.25s ease, color 0.25s ease;
}

.site-footer__cta img {
  width: 40px;
  height: 40px;
}

.site-footer__cta:hover {
  background: #fff;
  color: #142b4f;
}

.site-footer__bottom {
  position: relative;
  background: rgba(0, 0, 0, 0.64);
  padding: 45px 24px;
  text-align: center;
}

.site-footer__logo {
  height: 45px;
  width: auto;
  margin: 0 auto 20px;
}

.site-footer__info {
  font-size: clamp(11px, 1.15vw, 22px);
  line-height: 1.4;
  color: #fff;
}

@media (max-width: 768px) {
  .site-footer__hero {
    padding: 60px 24px 70px;
  }
  .site-footer__bottom {
    padding: 30px 24px;
  }
}
