/* 홈페이지 body 배경: 히어로 scroll fade-out 시 투과색 (#111116 = sol-impact) */
/* overflow-x: Windows 스크롤바(17px)로 인한 100vw 넘침 방지 (sol-impact 풀블리드) */
body { background-color: #111116 !important; overflow-x: hidden; }

/* 태블릿: 터치 시 텍스트 선택 방지 (홈페이지 전용 — index.css) */
@media (pointer: coarse) and (min-width: 769px) {
  body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
}

.content-block {
  margin-left: 30px;
  margin-right: 30px;
  color: var(--clr-desc);
  overflow: auto;
}

.content-block h1 {
  color: var(--clr-title);
  font-size: var(--fs-h1);
}

.hero-banner h3 {
  color: var(--gs-accent);
  font-size: var(--fs-h2);
  font-family: 'Source Sans Pro', 'SCDream', 'Noto Sans KR', sans-serif;
  font-weight: 300;
}

@media(min-width: 900px) {
.content-block, .content-block-row {
  margin-left: 50px;
  margin-right: 50px;
}
}

@media (min-width: 1200px) {
.content-block, .content-block-row {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
}

/*
@media (min-width: 1400px) {
  .content-block {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
  }
  }
*/

.hero-image-back {
  position: relative;
  min-height: calc(100vh - 76px);  /* navbar 높이 제외 */
  overflow: hidden;
  background: #1e1e1e url('images/hero-universe-02.jpg') center / cover no-repeat;
}

/* 우주 배경 톤다운 스크린 */
.hero-image-back::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.60);
}

/* Hero particle canvas — behind .content-block (z-index:2) */
#hero-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-banner {
  position: relative;
  background-color: var(--gs-body-bg); /* 이미지 로딩 전 기본 배경색 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner .hero-image {
  position: absolute;
  display: none;
  height: auto;
}

.hero-banner .content-block {
  display: flex;
  flex-direction: row;
}

.content-block-row{
  display: flex;
  flex-direction: row;
  overflow: visible;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding-top: 10px !important;
}

.content-block-column{
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  margin-left: 50px;
}

.hero-banner .content-block .hero-text {
  width: 100%;
  font-weight: 300;
}

.hero-text-white {
  width: 100%;
  color: var(--clr-title);
  padding: 10px 20px 10px 20px;
  font-size: var(--fs-base);
  font-weight: 700;
}

.hero-text-lightgrey {
  width: 100%;
  color: var(--clr-sub);
  padding: 10px 18px 10px 18px;
  font-size: var(--fs-base);
}

.hero-text-lightgrey h4 {
  color: var(--clr-title);
}

.hero-text-deepblue {
  width: 100%;
  color: #30333F;
  padding: 10px 20px 10px 20px;
  font-size: var(--fs-base)
}

.hero-banner .content-block .hero-animation {
  margin-left: 40px;
  margin-top: 45px;
  width: 350px;
  height: 455px;
}

.hero-banner .content-block .hero-animation video {
  width: 350px;
  height: 455px;
}

.hero-box {
  flex-basis: auto;
  width : 310px;
  min-width: 240px;
  margin: 0px 0px 15px 0px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.42, 0.0, 0.58, 1.0);
  background-color: #1b1b1b;
  font-size: var(--fs-body);
  position: relative;
}

.hero-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gs-accent, #00ccac), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.hero-box:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  transform: translateY(-4px);
  border: 1px solid #3a3a3a;
}

.hero-box:hover::before { opacity: 1; }
.hero-box p{
  margin-bottom: 0px;
}
.hero-box h4{
  margin-top: 10px;
  font-size: var(--fs-h3);
}

.hero-box-white {
  flex-basis: auto;
  width : 300px;
  margin-left: 60px;
  margin-top: 10px;
  border-radius: 10px;
  border: 0px solid var(--gs-accent);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.42, 0.0, 0.58, 1.0);
  padding: 0px;
  background-color: #fff
}

.hero-box-white:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  transform: translateY(-6px);
}

@media (min-width: 1000px) {
.hero-banner .hero-image {
  display: initial;
  width: 270px;
}
}

@media (min-width: 1200px) {
.hero-banner .hero-image {
  width: 340px;
}
}

@media (min-width: 1400px) {
.hero-banner .hero-image {
  width: 440px;
}
}

.hero-banner .hero-image p {
  margin-bottom: 0;
}

.hero-banner .hero-image-left {
  left: 0;
  bottom: 0;
}

.hero-banner .hero-image-right {
  right: 0;
  bottom: 0;
}

.hero-banner .content-block {
  position: relative;   /* z-index 활성화 (static에서는 z-index 무효) */
  z-index: 2;
  overflow: visible;    /* 캐러셀 margin-top 음수 시 콘텐츠 잘림 방지 */
}

pre.sourceCode {
    background-color: rgba(0,0,0,0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner .content-block, .content-block-row {
    max-width: 760px;
  }

  .hero-banner .content-block .hero-text {
    width: 100%;
  }
  .hero-text-white {
    width: 100%;
    color: var(--clr-title);
    padding: 10px 20px 10px 20px;
    font-size: var(--fs-body)
  }
  .hero-banner .content-block .content-block-column {
    display: none;
  }
}

@media (max-width: 960px)  {
  .hero-banner .content-block {
    max-width: 760px;
  }
  .hero-banner .content-block .hero-text {
    width: 100%;
  }
  .hero-banner .content-block .hero-text  h1 {
    font-size: var(--fs-h2);
  }

.hero-text-white {
    width: 100%;
    color: var(--clr-title);
    padding: 10px 20px 10px 20px;
    font-size: var(--fs-body)
  }

  .hero-banner .content-block .content-block-column {
    display: none;
  }

  /* 하단 카드: wrap + 중앙 정렬 (960: 3+1, 768: 2×2) */
  .content-block-row {
    flex-wrap: wrap;
    gap: 20px;
  }
  .content-block-row .hero-box {
    flex: 0 1 240px;
    width: auto;
    min-width: 200px;
  }
}

/* 히어로 로고가 컬럼 폭을 넘지 않도록 (SVG inline injection 대응) */
.hero-slide img,
.hero-slide svg {
  max-width: 100%;
  height: auto;
}

/* 960px~1200px 중간 구간: 우측 컬럼 표시, 카드 축소 */
@media (min-width: 961px) and (max-width: 1199px) {
  .hero-banner .content-block .hero-text h1 {
    font-size: var(--fs-h2);
  }
  /* 하단 카드 4장 한 줄 유지, 폭만 축소 */
  .content-block-row {
    gap: 16px;
  }
  .content-block-row .hero-box {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
}

.hero-banner a {
  text-decoration: none;
}

.hero-banner h3 {
  margin-top: 1.3rem;
  margin-bottom: 1.3rem;
}

.hero-banner h4 {
  margin-top: 0;
}

.hero-banner a[role="button"] {
  margin-right: 17px;
  margin-top: 0.6rem;
  margin-bottom: 1.6rem;
}


.hero-banner #btn-guide {
  background-color: #959595 !important;
  border: none;
}

.hero-banner #btn-guide:hover {
  background-color: color-mix(in srgb, #959595 70%, transparent) !important;
  color: #fff !important;
  border: none;
}

.hero-banner ul {
  padding-inline-start: 21px;
  font-size: var(--fs-body);
}

.hero-banner ul li {
  padding-bottom: 0.4rem;
}


.alt-background {
  background-color: #2d2d2d;
  border-top: 1px solid #424242;
  border-bottom: 1px solid #222222;
}

.logo-title {
  margin-top: -10px;
  margin-right: 20px;
}
/* ============================================================
   Hero Carousel (블럭 구조: 10→9→8→7→6→5→4 반영)
   - .hero-carousel (8) > .hero-carousel-dots (7), .hero-carousel-viewport (7)
   - .hero-carousel-viewport > .hero-carousel-track (6) > .hero-slide (5)
   ============================================================ */

/* 캐러셀 래퍼: content-block(9)의 왼쪽 flex 자식, 외부 블럭 구조 변경 없음 */
.hero-banner .content-block .hero-carousel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align:center;
}

.hero-carousel {
  margin-top: -80px;
}

/* 12px 원형 도트 컨테이너 (상단) */
.hero-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0px;
  margin-bottom: 12px;
  flex-shrink: 0;
  justify-content: center;
}

.hero-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.35);
  transition: background-color 0.2s;
}

.hero-carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.hero-carousel-dot.active {
  background-color: var(--gs-accent);
}

/* 슬라이드 뷰포트 (한 번에 한 블럭만 노출, 우→좌 슬라이딩) */
.hero-carousel-viewport {
  flex: 1;
  min-height: 0;
  margin-top: -10px;
  overflow: hidden;
}

/* 트랙: 가로 나열, translateX로 이동 */
.hero-carousel-track {
  display: flex;
  flex-direction: row;
  transition: transform 0.35s ease-out;
}

/* 각 슬라이드: 뷰포트 너비의 100% 고정 */
.hero-carousel .hero-slide,
.hero-carousel-track .hero-text.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* 콘텐츠 중앙 영역 스타일 정의 */

.hello-quarto {
  padding-bottom: 1rem;
}

.hello-subtitle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #444444;
  padding-bottom: 0px;
}

.hello-subtitle-header h2 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.hello-getmore {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 28px;
  padding-bottom: 4px;
  margin-bottom: -24px;
  background-color: var(--gs-accent);
  color: #fff !important;
  font-size: var(--fs-body);
  font-weight: 400;
  font-family: 'Noto Sans KR', 'Montserrat', sans-serif;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.hello-getmore:hover {
  background-color: color-mix(in srgb, var(--gs-accent) 70%, transparent);
  color: #fff !important;
  text-decoration: none;
}

.hello-subtitle h2 {
  color: var(--clr-title);
}

.hello-subtitle h4{
  font-family: 'Source Sans Pro', 'SCDream', 'Noto Sans KR', sans-serif;
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--clr-desc);
  /* color: var(--gs-accent); */
}

@media (min-width: 600px) {
.hello-quarto-banner {
  display: inline-flex;
  align-content: center;
  justify-content: center;
}

.hello-quarto-banner h1 {
  margin-right: 40px;
}
}

.hello-quarto-banner .nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  border: none;
  border-bottom: 2px solid var(--gs-accent) !important;
  color: var(--gs-accent);
  background-color: transparent;
  
}

.hello-quarto-banner .nav-pills button {
  width: 140px;
}

.hello-quarto .tab-content {
  border: none;
  padding: 0;
  color: var(--clr-desc);
}


.tab-content {
  margin-top: 1.0em;
  font-size: var(--fs-caption)
}
.hello-quarto .tab-content p {
  font-size: var(--fs-body);
  margin-bottom: 1.5em;
}

.hello-quarto .tab-content li {
  color: var(--clr-body);
}

.hello-quarto .tab-content .tab-pane p{
  margin-bottom: 0px;
}

.hello-quarto div.sourceCode {
  background-color: #00000020;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
}

.hello-output {
  background-color: #222222;
  max-height: 660px;
}

.tab-pane .grid{
  margin-top: 1.8em;
}

.features {
  padding-top: 0em;
  padding-bottom: 0em;
}

.feature {
  margin-top: 20px;
}

@media (min-width: 800px) { 
.features {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0 0 0 -30px;
  width: calc(100% + 30px);
}

.feature {
  width: calc(33% - 30px);
  margin: 20px 0 0 30px;
}
}

.feature h3 {
  margin-top: 0;
  color: var(--clr-title);
}

.feature h4 {
  color: var(--clr-title);
  font-weight: 600;
  font-size: var(--fs-h3);
}

.feature p:first-of-type {
  margin-bottom: 0.2rem;
  color: var(--clr-desc);
}

.get-started {
   text-align: center;
   padding-bottom: 2rem;
}

.get-started h3 {
   margin-top: 1rem;
   margin-bottom: 2rem;
}

nav.page-navigation {
  display: none;
}

.nav-footer {
  border-top: none !important; 
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  color: #fff;
  background-color: #ff7518;
}

/* Homepage listing cards inside hero-box */
.content-block-row .quarto-listing {
  margin: 0;
  padding: 0;
}

.content-block-row .hero-box h4 a {
  color: var(--clr-title);
  text-decoration: none;
}

.content-block-row .hero-box h4 a:hover {
  color: var(--gs-accent);
}

/* Card inner layout: flex column so "get more..." stays at bottom */
.content-block-row .hero-box .hero-text-lightgrey {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Listing wrapper also needs flex column */
.content-block-row .hero-box .hero-text-lightgrey .quarto-listing {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.content-block-row .hero-box .hero-text-lightgrey p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  font-weight: 300;
  font-size: var(--fs-body);
  /* -webkit-line-clamp is set dynamically by JS (js.html) */
}

.content-block-row .hero-box .hero-text-lightgrey .learn-more {
  margin-top: auto;
  padding-top: 6px;
  flex-shrink: 0;
}

.content-block-row .hero-box .hero-text-lightgrey .learn-more a {
  color: var(--gs-accent);
  text-decoration: none;
  font-size: var(--fs-body);
}

.content-block-row .hero-box .hero-text-lightgrey .learn-more a:hover {
  text-decoration: underline;
}

/* ── Solution Impact Showcase ── */
.sol-impact {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111116;
  background-attachment: fixed;   /* 패럴랙스 */
  overflow: hidden;
}

.sol-impact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 8%;
  gap: 14px;
}

/* ── 스크롤 페이드인 애니메이션 ── */
.sol-impact-overlay > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.sol-impact-overlay > *:nth-child(1) { transition-delay: 0s; }
.sol-impact-overlay > *:nth-child(2) { transition-delay: 0.15s; }
.sol-impact-overlay > *:nth-child(3) { transition-delay: 0.3s; }
.sol-impact-overlay > *:nth-child(4) { transition-delay: 0.45s; }

.sol-impact.visible .sol-impact-overlay > * {
  opacity: 1;
  transform: translateY(0);
}

/* Pandoc이 생성하는 p, figure 래퍼 margin 리셋 */
.sol-impact-overlay > p,
.sol-impact-overlay > figure {
  margin: 0;
}

/* 로고: img 또는 SVG injection 후 svg — 외곽선 제거, 하단 gradient 구분선 */
.sol-impact-overlay img.sol-impact-logo,
.sol-impact-overlay .sol-impact-logo img,
.sol-impact-overlay svg.sol-impact-logo,
.sol-impact-overlay .sol-impact-logo svg {
  height: 48px;
  width: auto;
  opacity: 0.6;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 로고를 감싸는 p/figure — gradient 구분선 (로고 폭의 120%) */
.sol-impact-overlay > p:first-child,
.sol-impact-overlay > figure:first-child {
  position: relative;
  padding-bottom: 18px;
}
.sol-impact-overlay > p:first-child::after,
.sol-impact-overlay > figure:first-child::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(60px * 1.2 * 3);
  max-width: 360px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}

.sol-impact-main {
  font-family: 'SCDream', 'Noto Sans KR', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.02em;
  border-bottom: none;
  padding-bottom: 0;
}

.sol-impact-sub {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: #d0d0d0;
  line-height: 1.6;
  max-width: 560px;
}

.sol-impact-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 28px;
  font-size: var(--fs-body);
  font-weight: 400;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.sol-impact-cta:hover {
  background: var(--gs-accent);
  border-color: var(--gs-accent);
  color: #fff;
}

/* 섹션 간 미세 구분선 */
.sol-impact + .sol-impact {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* 반응형 */
@media (max-width: 768px) {
  .sol-impact {
    height: 80vh;
    background-attachment: scroll;  /* iOS: fixed 미지원 → fallback */
  }
  .sol-impact-overlay {
    padding: 0 6%;
    justify-content: center;
  }
  .sol-impact-overlay img.sol-impact-logo,
  .sol-impact-overlay .sol-impact-logo img,
  .sol-impact-overlay svg.sol-impact-logo,
  .sol-impact-overlay .sol-impact-logo svg {
    height: 38px;
  }
}

/* iOS/iPadOS: background-attachment:fixed + cover 시 문서 전체 높이 기준 계산 → 극심한 확대 */
@supports (-webkit-touch-callout: none) {
  .sol-impact {
    background-attachment: scroll;
  }
}

/* prefers-reduced-motion: 애니메이션 비활성화 */
@media (prefers-reduced-motion: reduce) {
  .sol-impact-overlay > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sol-impact {
    background-attachment: scroll;
  }
}
