/* ── HERO SECTION ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(177.78vh, 100vw);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%) scale(1.55);
  pointer-events: none;
}

.hero-bg-mobile {
  display: none;
}

/* Dark overlay for text readability */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.15) 70%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(32px, 5vw, 120px);
  padding-top: var(--nav-height);
  max-width: 1300px;
}

.hero-title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.3s;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-light);
  max-width: 900px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.5s;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 14px 28px;
  border-radius: 0;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.7s;
}

.btn-explore:hover {
  background: #f0f0f0;
  gap: 14px;
}

.btn-explore svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.btn-explore:hover svg {
  transform: translateX(3px);
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 1.2s;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 40px;
  background: var(--white);
  animation: scrollDown 2s ease-in-out infinite;
}

/* ── PARTICLES / FLOATING DOTS ── */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  z-index: 1;
  animation: float linear infinite;
  pointer-events: none;
}

/* ── SECTION 1: 제품 소개 ── */
.product-intro {
  width: 100%;
}

.intro-headline {
  position: relative;
}

.intro-headline img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-headline-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 40%);
  padding: 60px 32px 0;
  text-align: center;
}

.intro-headline h2 {
  font-size: clamp(16px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  max-width: 1100px;
  margin: 0 auto;
}

.intro-headline h2 strong {
  font-weight: 700;
}

.intro-features {
  background: #f0f0f0;
  padding: 80px 32px 100px;
}

.intro-features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: clamp(16px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #333;
  margin-bottom: 12px;
  word-break: keep-all;
}

.section-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 40px;
  word-break: keep-all;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.feature-img img,
.feature-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-img iframe,
.ai-side-img iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170%;
  height: 170%;
  transform: translate(-50%, -50%);
  border: none;
}

.feature-card:hover .feature-img img {
  transform: scale(1.03);
}

.feature-desc {
  font-size: clamp(13px, 1.5vw, 18px);
  line-height: 1.6;
  color: #444;
}

/* ── 제품 슬라이드쇼 ── */
.feature-slideshow {
  position: relative;
}

.feature-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.feature-slideshow .slide.active {
  opacity: 1;
}

/* ── 비대칭 레이아웃 (작은 + 큰) ── */
.features-grid--asymmetric {
  grid-template-columns: 1.2fr 2fr;
  align-items: stretch;
}

.feature-card--small .feature-img {
  aspect-ratio: 4/4;
}


.feature-card--large .feature-img {
  aspect-ratio: auto;
  height: 100%;
}

.feature-card--large .feature-img img {
  height: 100%;
}

.btn-feature {
  display: inline-block;
  padding: 12px 20px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
  align-self: flex-start;
}

.btn-feature:hover {
  background: #333;
}

/* ── SECTION 2: AI 기능 (다크) ── */
.ai-section {
  background: #1a1a1a;
  padding: 80px 32px 100px;
  color: var(--white);
}

.ai-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ai-label {
  display: inline-block;
  font-size: clamp(16px, 2.5vw, 26px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  background: none;
  padding: 0;
  margin-bottom: 16px;
}

.ai-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--white);
}

.ai-title span {
  background: #2196F3;
  padding: 0 8px;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.ai-main-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.ai-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-side-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.ai-side-img img,
.ai-side-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-desc {
  font-size: clamp(12px, 1.3vw, 15px);
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.btn-dark {
  display: inline-block;
  padding: 14px 24px;
  background: #333;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
  align-self: flex-start;
}

.btn-dark:hover {
  background: #555;
}

/* ── SCROLL ANIMATION ── */
.intro-headline-section, .product-intro, .ai-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-headline-section.visible, .product-intro.visible, .ai-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE (MAIN) ── */
@media (max-width: 1024px) {
  .hero-content {
    padding: 0 24px;
    padding-top: var(--nav-height);
    max-width: 100%;
  }

  .hero {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-grid--asymmetric {
    grid-template-columns: 1fr;
  }

  .feature-card--large {
    order: -1;
  }

  .feature-card--large .feature-img {
    aspect-ratio: 16/9;
    height: auto;
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .intro-headline-text {
    padding: 60px 20px 32px;
  }

  .intro-features,
  .ai-section {
    padding: 60px 20px 80px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .hero-subtitle {
    font-size: clamp(14px, 3.5vw, 18px);
  }

  .scroll-indicator {
    display: none;
  }

  .particle {
    display: none;
  }

}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 16px;
    padding-top: var(--nav-height);
  }

  .hero-title {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .btn-explore {
    padding: 12px 20px;
    font-size: clamp(11px, 3vw, 14px);
  }

  .intro-headline-text {
    padding: 40px 16px 24px;
  }

  .intro-headline h2 {
    font-size: clamp(16px, 2.5vw, 26px);
  }

  .intro-features,
  .ai-section {
    padding: 40px 16px 60px;
  }

  .btn-feature {
    font-size: clamp(10px, 2.8vw, 13px);
    padding: 10px 16px;
  }

  .btn-dark {
    font-size: clamp(10px, 2.8vw, 13px);
    padding: 10px 16px;
  }
}
