/* =========================================================
   Main page (ko/index.html, en/index.html)
   Figma: Main (2:15 KO / 283:1241 EN), main_m (2803:2611)
   ========================================================= */

/* ---------- Hero ---------- */
.main-hero {
  position: relative;
  height: 494px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff url('../img/main/banner.jpg') center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.main-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.main-hero__txt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 4px 4px 50px #000;
}
.main-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 72px;
  line-height: 108px;
  letter-spacing: -2.16px;
  color: var(--gray-6);
}
.main-hero__desc {
  font-size: 28px;
  letter-spacing: -0.84px;
  color: #fff;
}
html[lang="ko"] .main-hero__desc { font-weight: 500; }
html[lang="en"] .main-hero__desc { font-family: 'Poppins', sans-serif; font-weight: 400; }

/* ---------- Products ---------- */
.main-product {
  position: relative;
  min-height: 740px;
  padding: 100px 0;
  overflow: hidden;
}
.main-product::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../img/main/product-bg.webp') center bottom / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
}
.main-product__in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}
.main-product__list {
  display: flex;
  width: 100%;
  filter: drop-shadow(0 4px 50px rgba(0, 0, 0, 0.16));
}
.main-product__card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 334px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 50px 46px;
  color: #fff;
  text-align: center;
  transition: filter .25s;
}
.main-product__card:hover { filter: brightness(1.08); }
.main-product__card--1 { background: rgba(67, 127, 170, 0.9); }
.main-product__card--2 { background: rgba(45, 81, 137, 0.9); gap: 22px; }
.main-product__icon { width: 80px; height: 68.119px; }
.main-product__card--2 .main-product__icon { width: 76px; height: 76px; }
.main-product__txt { display: flex; flex-direction: column; align-items: center; }
.main-product__name { font-weight: 700; font-size: 24px; }
.main-product__desc { font-size: 18px; }
html[lang="ko"] .main-product__txt { gap: 4px; }
html[lang="ko"] .main-product__name { letter-spacing: -0.72px; }
html[lang="ko"] .main-product__desc { font-weight: 400; letter-spacing: -0.54px; }
html[lang="en"] .main-product__txt { gap: 12px; }
html[lang="en"] .main-product__name { font-family: 'Poppins', sans-serif; letter-spacing: -0.408px; text-transform: capitalize; }
html[lang="en"] .main-product__desc { font-weight: 400; line-height: 26px; letter-spacing: normal; }

/* ---------- Technology ---------- */
.main-tech {
  position: relative;
  min-height: 740px;
  padding: 100px 0;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}
.main-tech__bg1, .main-tech__bg2 {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  pointer-events: none;
}
.main-tech__bg1 {
  background-image: url('../img/main/tech-bg-1.webp');
  background-size: cover;
  background-position: center bottom;
  mix-blend-mode: multiply;
  opacity: 0.3;
}
.main-tech__bg2 {
  background-image: url('../img/main/tech-bg-2.webp');
  background-size: cover;
  background-position: center;
  mix-blend-mode: darken;
}
.main-tech__in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}
.main-tech .sec-title {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.main-tech__list {
  display: flex;
  gap: 24px;
  width: 100%;
  height: 334px;
  filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.8));
}
.main-tech__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 8px 38px;
  overflow: hidden;
  isolation: isolate;
}
.main-tech__card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: -3;
  transition: transform .4s;
}
.main-tech__card::before {        /* dark gradient */
  content: '';
  position: absolute; inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(60, 60, 60, 0) 25.521%, #3c3c3c 71.875%);
}
.main-tech__card:first-child::before {
  background:
    linear-gradient(180deg, rgba(60, 60, 60, 0) 25.521%, #3c3c3c 73.437%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
}
.main-tech__card:last-child { background: #fff; }
.main-tech__card:last-child::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(60, 60, 60, 0) 25.521%, #3c3c3c 71.875%),
    linear-gradient(180deg, #fff 0%, #fff 1.5625%, rgba(255, 255, 255, 0) 3.6458%);
}
.main-tech__card::after {         /* navy screen tint */
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: #233f69;
  mix-blend-mode: screen;
}
.main-tech__card:hover img { transform: scale(1.06); }
.main-tech__name {
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  text-align: center;
}
html[lang="ko"] .main-tech__name { letter-spacing: -0.72px; line-height: 30px; }
html[lang="en"] .main-tech__name { font-family: 'Poppins', sans-serif; letter-spacing: -0.408px; text-transform: capitalize; }

/* ---------- News ---------- */
.main-news { padding: 100px 0; min-height: 917px; }
.main-news__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}
.main-news__head { display: flex; flex-direction: column; align-items: center; gap: 40px; }
html[lang="ko"] .main-news .sec-title__desc { color: var(--gray-2); }
.main-news__list { display: flex; gap: 24px; width: 100%; }
.main-news__item { flex: 1 1 0; min-width: 0; }
.main-news__item a { display: flex; flex-direction: column; height: 474px; }
.main-news__img { flex: 1 1 0; min-height: 0; overflow: hidden; }
.main-news__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.main-news__item:first-child .main-news__img img { object-position: center 39%; }
.main-news__item:last-child .main-news__img img { object-position: center bottom; }
.main-news__item a:hover .main-news__img img { transform: scale(1.04); }
.main-news__txt {
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
  background: #fff;
}
.main-news__title {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.6px;
  color: var(--gray-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[lang="en"] .main-news__title { text-transform: capitalize; }
.main-news__item a:hover .main-news__title { color: var(--point-1); }
.main-news__date {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  letter-spacing: -0.45px;
  color: var(--gray-3);
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .main-tech__list { gap: 12px; }
  .main-tech__name { font-size: 18px; }
  .main-product__card { padding: 40px 24px; }
  .main-product__desc br { display: none; }
}

/* =========================================================
   Mobile (main_m)
   ========================================================= */
@media (max-width: 768px) {
  /* square on phones (360 design), capped at 480px tall on wider small screens.
     (aspect-ratio + max-height would also cap the WIDTH, so use a plain height) */
  .main-hero { height: min(100vw, 480px); }
  .main-hero__title { font-size: 36px; line-height: normal; letter-spacing: -1.08px; }
  .main-hero__desc { font-size: 14px; letter-spacing: -0.42px; }
  html[lang="en"] .main-hero__desc { font-size: 14px; }

  .main-product { min-height: 0; padding: 80px 0; }
  .main-product__in { gap: 32px; }
  .main-product__card, .main-product__card--2 { min-height: 0; gap: 16px; padding: 32px 16px; }
  .main-product__icon { width: 42.279px; height: 36px; }
  .main-product__card--2 .main-product__icon { width: 36px; height: 36px; }
  html[lang="ko"] .main-product__txt, html[lang="en"] .main-product__txt { gap: 8px; }
  .main-product__name { font-size: 14px; }
  html[lang="ko"] .main-product__name, html[lang="en"] .main-product__name { letter-spacing: -0.42px; }
  .main-product__desc { font-size: 12px; }
  html[lang="ko"] .main-product__desc, html[lang="en"] .main-product__desc { letter-spacing: -0.36px; line-height: normal; }

  .main-tech { min-height: 0; padding: 80px 0; }
  .main-tech::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.1); pointer-events: none; }
  .main-tech__in { gap: 24px; }
  .main-tech__list {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 20px;
    column-gap: 8px;
    max-width: 328px;
    margin: 0 auto;
  }
  .main-tech__card {
    flex: 0 0 calc((100% - 16px) / 3);
    height: 120px;
    padding: 0 4px 8px;
  }
  .main-tech__name { font-size: 13px; }
  html[lang="ko"] .main-tech__name, html[lang="en"] .main-tech__name { letter-spacing: -0.39px; line-height: 16px; }

  .main-news { min-height: 0; padding: 80px 0; }
  .main-news__in { gap: 40px; }
  .main-news__head { gap: 20px; }
  .main-news__list { flex-direction: column; gap: 40px; }
  .main-news__item a { height: auto; }
  .main-news__img { flex: none; aspect-ratio: 328 / 212; }
  .main-news__txt { height: auto; padding: 12px 0 0; }
  .main-news__title { font-size: 14px; letter-spacing: -0.42px; }
  .main-news__date { display: none; }
}
