/* =========================================================
   PLATFORM 홍보 사이트 — 전역 스타일
   순수 CSS (프레임워크 없음) / S3 정적 배포용
   ========================================================= */

:root {
  --c-bg: #0f1020;
  --c-bg-soft: #171933;
  --c-card: rgba(255, 255, 255, 0.04);
  --c-card-border: rgba(255, 255, 255, 0.1);
  --c-text: #eef0ff;
  --c-text-dim: #a6a9c8;
  --c-primary: #7c6cff;
  --c-primary-2: #b06cff;
  --grad: linear-gradient(135deg, #667eea, #764ba2);
  --grad-bright: linear-gradient(135deg, #7c6cff, #b06cff);
  --radius: 16px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}
.btn-primary {
  background: var(--grad-bright);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 108, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(124, 108, 255, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-card-border);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== 헤더 / 네비 ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(15, 16, 32, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad-bright);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(124, 108, 255, 0.4);
}
.logo-text {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-link {
  position: relative;
  color: var(--c-text-dim);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-bright);
  transition: width 0.25s var(--ease);
}
.nav-link:hover {
  color: var(--c-text);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--grad-bright);
  color: #fff;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 6px 18px rgba(124, 108, 255, 0.35);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(124, 108, 255, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 최상단 작업물 섹션 (한 화면에 꽉 차게) ===== */
.showcase {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 92px 0 36px;
  background: radial-gradient(1200px 600px at 70% -10%, #2a2360 0%, transparent 60%),
    var(--c-bg);
}
.showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.showcase > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 3vh, 30px);
}
.showcase .section-head {
  margin-bottom: 0;
}
.showcase .section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

/* ===== 소개(About) ===== */
.about {
  background: var(--c-bg-soft);
  text-align: center;
}
.about-inner {
  max-width: 760px;
}
.about .section-desc {
  margin-bottom: 2.2rem;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.blob-1 {
  width: 380px;
  height: 380px;
  background: #667eea;
  top: -60px;
  left: -40px;
}
.blob-2 {
  width: 320px;
  height: 320px;
  background: #b06cff;
  bottom: -80px;
  right: 10%;
  animation-delay: -4s;
}
.blob-3 {
  width: 260px;
  height: 260px;
  background: #764ba2;
  top: 30%;
  right: 30%;
  animation-delay: -8s;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.1);
  }
}
.hero-eyebrow {
  display: inline-block;
  color: var(--c-primary-2);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 섹션 공통 ===== */
section {
  padding: 110px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section-desc {
  color: var(--c-text-dim);
  margin-top: 0.8rem;
  font-size: 1.05rem;
}

/* ===== 특징 카드 ===== */
.features {
  background: var(--c-bg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 108, 255, 0.5);
  background: rgba(124, 108, 255, 0.06);
}
.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--c-text-dim);
}

/* ===== 항목 캐러셀 (1개만 부각) ===== */
.carousel {
  display: flex;
  align-items: center;
  gap: 10px;
}
.carousel-viewport {
  flex: 1;
  overflow: hidden;
  padding: 16px 0;
}
.carousel-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 0.55s var(--ease);
}
.carousel-slide {
  flex: 0 0 60%;
  max-width: 560px;
  opacity: 0.32;
  transform: scale(0.82);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  cursor: pointer;
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}
.slide-card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.carousel-slide.active .slide-card {
  border-color: rgba(124, 108, 255, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.carousel-btn {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--c-card-border);
  background: var(--c-card);
  backdrop-filter: blur(8px);
  color: var(--c-text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.carousel-btn:hover {
  background: rgba(124, 108, 255, 0.18);
  border-color: rgba(124, 108, 255, 0.5);
  transform: scale(1.08);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--c-card-border);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.carousel-dots button.active {
  width: 28px;
  background: var(--grad-bright);
}

/* ===== 전체 목록 ===== */
.items-list {
  background: var(--c-bg-soft);
}
.item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.list-row:hover {
  transform: translateX(6px);
  border-color: rgba(124, 108, 255, 0.5);
  background: rgba(124, 108, 255, 0.06);
}
.list-thumb {
  flex: 0 0 auto;
  width: 104px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #232544, #2c2058);
}
.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-info {
  flex: 1;
  min-width: 0;
}
.list-title {
  font-weight: 700;
  font-size: 1.05rem;
}
.list-tagline {
  color: var(--c-text-dim);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-arrow {
  flex: 0 0 auto;
  color: var(--c-primary-2);
  font-size: 1.3rem;
  transition: transform 0.25s var(--ease);
}
.list-row:hover .list-arrow {
  transform: translateX(4px);
}

/* ===== 항목 공통(썸네일/본문/배지) ===== */
.item-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #232544, #2c2058);
}
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.carousel-slide.active .item-thumb img {
  transform: scale(1.06);
}
.item-body {
  padding: 1.1rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.item-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-primary-2);
  background: rgba(176, 108, 255, 0.12);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.item-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.item-tagline {
  color: var(--c-text-dim);
  font-size: 0.95rem;
}
.item-more {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--c-primary-2);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== 문의 ===== */
.contact {
  text-align: center;
  background: radial-gradient(900px 400px at 50% 120%, #2a2360 0%, transparent 60%),
    var(--c-bg);
}
.contact .section-desc {
  margin-bottom: 2rem;
}

/* ===== 푸터 ===== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--c-card-border);
  background: var(--c-bg-soft);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  color: var(--c-text-dim);
  font-size: 0.9rem;
}

/* ===== 상세 모달 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.open {
  visibility: visible;
  opacity: 1;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 16, 0.7);
  backdrop-filter: blur(6px);
}
.modal-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-card-border);
  border-radius: 20px;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.modal.open .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(90deg);
}
.modal-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #232544, #2c2058);
  overflow: hidden;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-body {
  padding: 1.8rem 1.8rem 2rem;
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.modal-tags .item-tag {
  align-self: auto;
}
.modal-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.modal-desc {
  color: var(--c-text-dim);
  margin-bottom: 1.6rem;
  white-space: pre-line;
}

/* ===== 스크롤 등장 애니메이션 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] {
  transition-delay: 0.12s;
}
[data-reveal-delay="2"] {
  transition-delay: 0.24s;
}
[data-reveal-delay="3"] {
  transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== 반응형 ===== */
@media (max-width: 880px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel-slide {
    flex-basis: 78%;
  }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15, 16, 32, 0.97);
    backdrop-filter: blur(12px);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--c-card-border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--c-card-border);
  }
  .nav-link::after {
    display: none;
  }
  .nav-cta {
    margin-top: 0.8rem;
    text-align: center;
  }
}
@media (max-width: 540px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .carousel-slide {
    flex-basis: 86%;
  }
  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }
  .list-tagline {
    white-space: normal;
  }
  section {
    padding: 80px 0;
  }
}
