@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@1.3.9/dist/web/variable/pretendardvariable.css");

:root {
  width: 100%;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 140%;
  letter-spacing: -0.5px;
  background: #fff;
  color: #0b0c0d;
  white-space: nowrap;
}

section {
  height: auto;
}

.text-wrap {
  white-space: normal;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll {
  scrollbar-width: none;
}

.scroll::-webkit-scrollbar {
  display: none;
}

.last-row td:first-child {
  border-bottom-left-radius: 24px;
}
.last-row td:last-child {
  border-bottom-right-radius: 24px;
}

.last-row-no td:first-child {
  border-bottom-left-radius: 0px;
}
.last-row-no td:last-child {
  border-bottom-right-radius: 0px;
}

input:-webkit-autofill {
  box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: black !important;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  max-width: 85%;
  background: #e5e7eb;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 50;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 80;
}

.maintenance-modal {
  position: relative;
  width: min(720px, 100%);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
  padding: 40px 40px 32px;
  color: #0b0c0d;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: normal;
}

.maintenance-modal::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 30% 30%, #49ded2, transparent 60%);
  opacity: 0.5;
  filter: blur(10px);
}

.maintenance-modal::after {
  content: "";
  position: absolute;
  inset: auto -40% -40% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 70% 70%, #7f8cff, transparent 65%);
  opacity: 0.5;
  filter: blur(12px);
}

.maintenance-header {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 1;
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(73, 222, 210, 0.18);
  border: 1px solid rgba(73, 222, 210, 0.45);
  color: #0f766e;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.maintenance-title {
  margin: 14px 0 8px;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.4;
  font-weight: 800;
  color: #0b0c0d;
}

.maintenance-desc {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.7;
}

.maintenance-close {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #111827;
  transition: all 0.18s ease;
}

.maintenance-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.maintenance-list {
  position: relative;
  z-index: 1;
  margin: 26px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.maintenance-list__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.maintenance-list__item--muted .maintenance-value {
  color: #4b5563;
}

.maintenance-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #49ded2, #5245eb);
  box-shadow: 0 0 0 4px rgba(73, 222, 210, 0.18);
}

.maintenance-label {
  margin: 0 0 4px;
  font-size: 15px;
  color: #6b7280;
}

.maintenance-value {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0b0c0d;
  line-height: 1.5;
}

.maintenance-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.maintenance-brand {
  color: #1f2937;
  font-weight: 700;
}

.maintenance-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.maintenance-btn {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  min-width: 140px;
  text-align: center;
}

.maintenance-btn--ghost {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

.maintenance-btn--ghost:hover {
  background: #f3f4f6;
}

.maintenance-btn--primary {
  background: linear-gradient(135deg, #5245eb, #49ded2);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(82, 69, 235, 0.3);
}

.maintenance-btn--primary:hover {
  filter: brightness(1.02);
}

@media (max-width: 640px) {
  .maintenance-modal {
    padding: 24px 20px 20px;
  }

  .maintenance-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .maintenance-actions {
    width: 100%;
    justify-content: stretch;
  }

  .maintenance-btn {
    flex: 1 1 0;
    width: 100%;
  }
}

.logo-card {
  position: relative;
  width: 120px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 512px) {
  .logo-card {
    width: 320px;
    height: 148px;
    border-radius: 32px;
    padding: 18px 58px;
  }
}

.logo-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* tailwindcss-animate 애니메이션 */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoom-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes slide-in-from-top {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slide-in-from-bottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slide-in-from-left {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-in-from-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-out-to-top {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@keyframes slide-out-to-bottom {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes slide-out-to-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes slide-out-to-right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

.animate-in {
  animation: fade-in 0.15s ease-out;
}

.animate-out {
  animation: fade-out 0.15s ease-in;
}

.fade-in {
  animation: fade-in 0.15s ease-out;
}

.fade-out {
  animation: fade-out 0.15s ease-in;
}

.zoom-in {
  animation: zoom-in 0.15s ease-out;
}

.zoom-out {
  animation: zoom-out 0.15s ease-in;
}

.slide-in-from-top {
  animation: slide-in-from-top 0.3s ease-out;
}

.slide-in-from-bottom {
  animation: slide-in-from-bottom 0.3s ease-out;
}

.slide-in-from-left {
  animation: slide-in-from-left 0.3s ease-out;
}

.slide-in-from-right {
  animation: slide-in-from-right 0.3s ease-out;
}

.slide-out-to-top {
  animation: slide-out-to-top 0.3s ease-in;
}

.slide-out-to-bottom {
  animation: slide-out-to-bottom 0.3s ease-in;
}

.slide-out-to-left {
  animation: slide-out-to-left 0.3s ease-in;
}

.slide-out-to-right {
  animation: slide-out-to-right 0.3s ease-in;
}

/* Catalog (소재 카탈로그) */
.catalog-ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f6f5ff;
  color: #2563eb;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.catalog-tab:hover {
  background: #eef2ff;
}

.catalog-tab.is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 10px 30px rgba(82, 69, 235, 0.15);
}

.catalog-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-radius: 12px;
  background: #f8f7ff;
  border: 1px solid #eef2ff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.catalog-banner__body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.catalog-banner__icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-banner__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-banner__text h3 {
  margin: 0;
  font-size: clamp(18px, 1vw + 16px, 24px);
  font-weight: 700;
  color: #1f2937;
}

.catalog-banner__text p {
  margin: 6px 0 0 0;
  font-size: clamp(16px, 0.7vw + 15px, 18px);
  color: #4b5563;
}

.catalog-banner__cta {
  padding: 12px 18px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  border: 1px solid #2563eb;
  box-shadow: 0 10px 30px rgba(82, 69, 235, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}

.catalog-banner__cta:hover {
  background: #4135d7;
  border-color: #4135d7;
  box-shadow: 0 14px 32px rgba(65, 53, 215, 0.2);
}

.catalog-banner__cta:active {
  transform: translateY(1px);
}

.catalog-cards {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.catalog-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 36px 24px;
}

.catalog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  font-size: clamp(16px, 0.6vw + 14px, 18px);
  color: #4b5563;
  margin-bottom: 16px;
}

.catalog-card__badge {
  border-radius: 10px;
  font-weight: 400;
  margin-right: 120px;
}

.catalog-card__title {
  margin: 6px 0 10px 0;
  font-size: clamp(22px, 1vw + 19px, 24px);
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.catalog-card__info {
  margin-bottom: 16px;
}

.catalog-card__info,
.catalog-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  font-size: clamp(16px, 0.6vw + 15px, 18px);
  color: #4b5563;
}

@media (max-width: 640px) {
  .catalog-tabs {
    display: none;
  }
  .catalog-banner {
    display: none;
  }

  .catalog-banner__body {
    align-items: flex-start;
  }

  .catalog-banner__cta {
    width: 100%;
    text-align: center;
  }

  .catalog-card {
    padding: 16px;
  }
  .catalog-card__meta {
    justify-content: space-between;
  }
  .catalog-card__badge {
    margin-right: 0;
    font-size: 12px;
  }
  .catalog-card__date {
    font-size: 12px;
  }
  .catalog-card__title {
    text-align: left;
    font-size: 16px;
    margin: 18px 0px 10px 0px;
  }
  .catalog-card__info {
    margin-bottom: 6px;
  }
  .catalog-card__metrics {
    margin-bottom: 6px;
  }
}

/* Material swiper (global) */
.material-swiper {
  position: relative;
  border-radius: 24px;
  padding: 32px 0 40px;
  overflow: hidden;
}

.material-swiper__side {
  position: absolute;
  top: 16%;
  bottom: 22%;
  width: 30vw;
  max-width: 320px;
  min-width: 140px;
  border-radius: 26px;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.25s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.material-swiper__side--left {
  left: 0;
  transform: translateX(-14px);
}

.material-swiper__side--right {
  right: 0;
  transform: translateX(14px);
}

.material-swiper--active .material-swiper__side {
  opacity: 1;
  transform: translateX(0);
}

.material-swiper__track {
  position: relative;
  z-index: 2;
  display: flex;
  overflow-x: auto;
  padding: 0 clamp(0px, 3vw, 24px);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.material-swiper__track::-webkit-scrollbar {
  display: none;
}

.material-card {
  flex: 0 0 auto;
  min-width: clamp(300px, 70vw, 640px);
  max-width: clamp(360px, 78vw, 720px);
  background: #f5f5f5;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
  position: relative;
  z-index: 2;
  transform: scale(0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.material-card__top {
  display: flex;
  gap: 16px;
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.material-card__image {
  width: clamp(120px, 16vw, 180px);
  height: clamp(120px, 16vw, 180px);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

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

.material-card__badge {
  position: absolute;
  top: 0px;
  left: 0px;
  width: clamp(48px, 8vw, 72px) !important;
  height: clamp(48px, 8vw, 72px) !important;
}

.material-card__body {
  padding: 10px 10px 10px 0px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.material-card__bottom {
  padding: 0 22px 22px 22px;
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.material-card__title {
  font-size: clamp(18px, 1.6vw + 12px, 22px);
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
}

.material-card__info_1 {
  display: flex;
  font-size: 12px;
}

.material-card__info_1 div:nth-child(1) {
  margin-right: 36px;
}

.material-card__info {
  gap: 10px 24px;
  font-size: 12px;
  color: #1f2937;
}

.material-card__info p {
  margin: 0;
  line-height: 1.6;
}

.material-card.is-active .material-card__top,
.material-card.is-active .material-card__bottom {
  opacity: 1;
}

.material-card.is-active {
  transform: scale(1);
  z-index: 3;
}

.material-swiper__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.material-swiper__dots .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background-color 0.2s ease;
}

@media (max-width: 640px) {
  .material-swiper {
    padding: 24px 0 32px;
    border-radius: 18px;
  }

  .material-swiper__track {
    padding: 0 12vw;
  }

  .material-card {
    flex-basis: 50vw;
  }
}
