/* HLAB - AI 전문 개발 기업 소개 홈페이지 (초기 시안용) */

:root{
  --bg0:#05060a;
  --bg1:#070a14;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);
  --primary:#8b5cf6; /* purple */
  --primary2:#22d3ee; /* cyan */
  --danger:#fb7185;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-offset: 88px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple SD Gothic Neo","Noto Sans KR", "Malgun Gothic";
  /* 콘텐츠와 겹칠 때 튀지 않도록, 기본 배경은 더 단색(한 톤)으로 정리 */
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  overflow-x: hidden;
}

/* 스크롤바를 블랙 톤으로 통일 */
*{
  scrollbar-width: thin;
  scrollbar-color: #000 #000; /* Firefox */
}
*::-webkit-scrollbar{
  width: 10px;
}
*::-webkit-scrollbar-track{
  background: #000;
}
*::-webkit-scrollbar-thumb{
  background: #000;
  border-radius: 999px;
  border: 2px solid #000;
}
*::-webkit-scrollbar-thumb:hover{
  background: #111; /* 기본은 완전 블랙, 호버 때만 약간 더 진한 톤 */
}

/* 배경 그라데이션이 천천히 움직이는 애니메이션 */
.bg-ambient{
  position: fixed;
  inset: -200px;
  z-index: -1;
  pointer-events: none;
  /* 배경 색 패치(구분감)를 없애기 위해, 약한 단일 오버레이로 통일 */
  background:
    radial-gradient(980px 620px at 50% 20%, rgba(139,92,246,.10), transparent 62%),
    radial-gradient(880px 560px at 60% 40%, rgba(34,211,238,.07), transparent 65%);
  opacity: .28;
  filter: blur(70px);
  animation: ambientMove 30s ease-in-out infinite;
}
@keyframes ambientMove{
  0%{ transform: translate3d(0,0,0) scale(1); opacity: .95; }
  50%{ transform: translate3d(0,-10px,0) scale(1.01); opacity: 1; }
  100%{ transform: translate3d(0,0,0) scale(1); opacity: .95; }
}

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

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* 헤더 */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-offset);
  display: flex;
  align-items: center;
  overflow: visible;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid rgba(255,255,255,.0);
  /* 헤더 영역에서 배경 그라데이션이 강하게 비치지 않도록 불투명도 강화 */
  background: rgba(5,6,10,.35);
  backdrop-filter: blur(10px);
}
.site-header .header-inner,
.site-header .container{
  overflow: visible;
}
.site-header.is-scrolled{
  background: rgba(5,6,10,.66);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand{
  display: inline-flex;
  align-items: center;
  padding: 10px 6px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: visible;
  /* perspective는 플립의 직계 조상에 두어 3D가 깨지지 않게 */
  perspective: 560px;
  -webkit-perspective: 560px;
  perspective-origin: 50% 50%;
}
/* 텍스트 로고 ↔ PNG 로고 상하(rotateX) 플립 교체 */
.brand-flip{
  display: block;
  width: 220px;
  height: 56px;
  flex-shrink: 0;
  /* 텍스트 면(HLAB + 서브) 실제 높이와 로고 PNG 세로를 동일하게 맞춤 (글자 크기는 기존 1rem 수준 유지) */
  --brand-name-font: 1rem;
  --brand-sub-font: 0.75rem;
  --brand-stack-gap: 2px;
  --brand-text-block-h: calc(
    (var(--brand-name-font) * 1.1) + var(--brand-stack-gap) + (var(--brand-sub-font) * 1.2)
  );
}
.brand-flip-inner{
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
  animation: brandFlipX 7s ease-in-out infinite;
}
@keyframes brandFlipX{
  0%, 32%{ transform: rotateX(0deg); }
  38%, 48%{ transform: rotateX(180deg); }
  54%, 86%{ transform: rotateX(180deg); }
  92%, 100%{ transform: rotateX(360deg); }
}
.brand-face{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  overflow: visible;
}
.brand-face--text{
  transform: rotateX(0deg) translateZ(2px);
  padding-left: 2px;
  padding-right: 0;
}
/* 텍스트 로고와 동일한 좌측 기준선(1:1) — 이미지 면도 flex-start + 동일 패딩 */
.brand-face--img{
  transform: rotateX(180deg) translateZ(2px);
  justify-content: flex-start;
  padding-left: 2px;
  padding-right: 0;
}
.brand-face--img picture{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  max-width: 100%;
  margin: 0;
}
.brand-face--img img{
  display: block;
  width: auto;
  height: auto;
  /* 텍스트 스택 실측 높이와 동일(플립 박스보다 클 땐 박스에 맞춤) */
  max-height: min(100%, var(--brand-text-block-h));
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 14px rgba(139,92,246,.35));
}
.brand-text-stack{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--brand-stack-gap);
}
.brand:hover .brand-flip-inner{
  animation-play-state: paused;
}
.brand-name{
  font-size: var(--brand-name-font);
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(139,92,246,.2);
}
.brand-sub{
  font-size: var(--brand-sub-font);
  line-height: 1.2;
  color: var(--muted2);
}
@media (max-width: 920px){
  .brand-flip{
    width: 190px;
    height: 52px;
    --brand-name-font: 0.9375rem;
    --brand-sub-font: 0.6875rem;
    --brand-stack-gap: 2px;
  }
}

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav a{
  font-size: 14px;
  color: rgba(255,255,255,.78);
  padding: 10px 10px;
  border-radius: 12px;
  position: relative;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.nav a.is-active{
  color: rgba(255,255,255,.96);
}
.nav a.is-active::after{
  content:'';
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(139,92,246,.35);
}

.header-cta{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  user-select: none;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
}
.btn-primary{
  border-color: rgba(139,92,246,.40);
  background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(34,211,238,.18));
  box-shadow: 0 0 24px rgba(139,92,246,.20);
}
.btn-primary:hover{
  box-shadow: 0 0 40px rgba(139,92,246,.30);
}

.icon-button{
  display: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 11px 12px;
  cursor: pointer;
}
.hamburger-lines{
  width: 18px;
  height: 14px;
  position: relative;
}
.hamburger-lines span{
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.hamburger-lines span:nth-child(1){ top: 0; }
.hamburger-lines span:nth-child(2){ top: 6px; }
.hamburger-lines span:nth-child(3){ top: 12px; }

.mobile-nav{
  display: none;
}

/* 모바일 */
@media (max-width: 920px){
  .nav, .header-cta .btn:not(.btn-primary) { display: none; }
  .icon-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
  }
  .mobile-nav{
    position: fixed;
    top: var(--header-offset);
    left: 0;
    right: 0;
    padding: 18px 0 24px;
    background: rgba(5,6,10,.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: none;
  }
  .mobile-nav.is-open{ display: block; }
  .mobile-nav .mobile-nav-inner{
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    gap: 10px;
  }
  .mobile-nav a{
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    font-weight: 700;
    color: rgba(255,255,255,.90);
    transition: transform .15s ease, border-color .15s ease;
  }
  .mobile-nav a:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.20);
  }
}

main{
  padding-top: calc(var(--header-offset) + 10px);
  padding-bottom: 64px;
}

/* 공통 섹션 */
.section{
  margin-top: 70px;
}
.section:first-of-type{
  margin-top: 34px;
}
.section-title{
  font-size: 26px;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
.section-subtitle{
  color: var(--muted);
  margin: 0 0 26px;
  line-height: 1.6;
}
.section-subtitle code{
  font-size: 0.88em;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
}

/* 파트너 로고 마퀴 (오른쪽 → 왼쪽 흐름) */
.partners-section .container .section-subtitle{
  margin-bottom: 22px;
}
.marquee{
  width: 100%;
  overflow: hidden;
  margin-top: 8px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track{
  display: flex;
  width: max-content;
  animation: marquee-rtl 40s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track{
  animation-play-state: paused;
}
.marquee-group{
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: 0 clamp(24px, 4vw, 48px);
  flex-shrink: 0;
}
.marquee-item{
  flex: 0 0 auto;
  opacity: .88;
  transition: opacity .2s ease;
}
.marquee-item:hover{
  opacity: 1;
}
.marquee-item img{
  display: block;
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.15);
}
@keyframes marquee-rtl{
  from{ transform: translate3d(0, 0, 0); }
  to{ transform: translate3d(-50%, 0, 0); }
}

/* 뉴스 카드 */
.news-card{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}
.news-date{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--primary2);
  margin-bottom: 12px;
}
.news-thumb{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  margin: 0 0 14px;
}
.news-thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-title{
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.news-excerpt{
  margin: 0 0 14px;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.news-link{
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,.88);
  border-bottom: 2px solid transparent;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: color .2s ease, opacity .2s ease;
}
.news-link:hover{
  color: #fff;
  opacity: .95;
}

/* Reveal 애니메이션 */
[data-reveal]{
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Hero */
.hero{
  padding: 34px 0 0;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: center;
}
.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-weight: 800;
  letter-spacing: .2px;
}
.dot{
  width: 9px; height: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  box-shadow: 0 0 18px rgba(139,92,246,.35);
}
.hero h1{
  margin: 16px 0 12px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -1.2px;
}
.hero p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-visual{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  min-height: 320px;
}
.hero-visual::before{
  content:'';
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(340px 240px at 30% 35%, rgba(139,92,246,.40), transparent 58%),
    radial-gradient(320px 230px at 70% 25%, rgba(34,211,238,.30), transparent 58%);
  filter: blur(14px);
  opacity: .9;
}
.hero-visual-inner{
  position: relative;
  padding: 22px;
  height: 100%;
  display: grid;
  align-items: end;
}
.typed{
  font-weight: 900;
  letter-spacing: -0.5px;
  font-size: 18px;
}
.codebox{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  padding: 14px 14px;
}
.codebox .line{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
  line-height: 1.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cursor{
  display: inline-block;
  width: 10px;
  color: var(--primary2);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50%{ opacity: 0; } }

/* 비디오 풀스크린 히어로 (메인) */
.hero--video{
  position: relative;
  isolation: isolate;
  min-height: max(520px, calc(100vh - var(--header-offset)));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0 72px;
  margin-top: 0;
  overflow: hidden;
}
.hero-video-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  /* 영상 로드 실패 시에도 배경이 보이도록 */
  background: linear-gradient(145deg, #0c0e18 0%, #1a1240 42%, #062028 100%);
}
.hero-video-bg.hero-video-bg--fallback .hero-video-media{
  display: none;
}
.hero-video-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-video-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,6,10,.82) 0%, rgba(5,6,10,.55) 38%, rgba(5,6,10,.88) 100%),
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(139,92,246,.12), transparent 55%);
  pointer-events: none;
}
.hero-video-content{
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-video-inner{
  max-width: min(820px, 94vw);
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.hero--video .hero-badge{
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.08);
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(13px, 2.25vw, 20px);
  padding: 10px 16px;
  gap: 10px;
}
.hero--video .hero-badge .dot{
  width: 11px;
  height: 11px;
}
.hero--video .hero-title-shimmer{
  text-align: center;
  font-size: clamp(2.6rem, 7.7vw, 4.55rem);
  letter-spacing: -1.4px;
  margin: 15px 0 14px;
  line-height: 1.06;
}
.hero-title-shimmer{
  margin: 16px 0 14px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -1.2px;
  font-weight: 900;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,.98) 0%,
    rgba(196,181,253,.95) 35%,
    rgba(103,232,249,.92) 65%,
    rgba(255,255,255,.98) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroTitleShimmer 10s ease-in-out infinite;
}
@keyframes heroTitleShimmer{
  0%, 100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}
.hero-lead{
  margin: 0 auto;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  font-size: clamp(15px, 1.9vw, 17px);
  max-width: 560px;
  text-shadow: 0 1px 24px rgba(0,0,0,.45);
}
.hero--video .hero-typed{
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
  max-width: min(620px, 92vw);
  color: rgba(255,255,255,.88);
  text-shadow: 0 0 28px rgba(139,92,246,.25);
  font-size: clamp(14px, 2.8vw, 25px);
  letter-spacing: -0.2px;
  line-height: 1.35;
}
.hero--video .hero-typed .cursor{
  width: 10px;
  font-size: 1em;
}
.hero--video .hero-actions{
  margin-top: 22px;
  justify-content: center;
  gap: 11px;
}
.hero--video .hero-actions .btn{
  font-size: clamp(12px, 1.85vw, 18px);
  padding: 11px 17px;
  border-radius: 12px;
}

/* 주요 솔루션 — 대형 카드 (첫 .section 규칙보다 우선해 여백 유지) */
main > .section.solutions-showcase:first-of-type{
  margin-top: clamp(48px, 8vw, 88px);
}
.solution-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 720px){
  .solution-grid{
    grid-template-columns: 1fr;
  }
}
.solution-card{
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 36px);
  min-height: clamp(240px, 28vw, 300px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.solution-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  margin: 10px 0 18px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.solution-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .35s cubic-bezier(.22,1,.36,1), filter .35s ease, opacity .35s ease;
  opacity: .95;
  filter: saturate(1.05) contrast(1.02);
}
.solution-card:hover .solution-media img{
  transform: scale(1.06);
  opacity: 1;
}
.solution-card::before{
  content:'';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(139,92,246,.45),
    rgba(34,211,238,.25),
    rgba(139,92,246,.35),
    rgba(34,211,238,.4)
  );
  background-size: 300% 300%;
  animation: solutionBorderFlow 8s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .75;
}
@keyframes solutionBorderFlow{
  0%, 100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}
.solution-card:hover{
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 24px 64px rgba(0,0,0,.45),
    0 0 0 1px rgba(139,92,246,.2),
    0 0 48px rgba(139,92,246,.12);
}
.solution-card-num{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  color: rgba(255,255,255,.42);
  margin-bottom: 12px;
}
.solution-card-title{
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.solution-card-desc{
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 42ch;
}
.solution-card-link{
  margin-top: 20px;
  font-size: 14px;
  font-weight: 850;
  color: rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s ease, color .2s ease;
}
.solution-card-link::after{
  content:'→';
  transition: transform .25s ease;
}
.solution-card-link:hover{
  color: #fff;
  gap: 10px;
}
.solution-card-link:hover::after{
  transform: translateX(4px);
}

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 36px; }
  .hero-visual{ min-height: 260px; }
  .hero--video{
    min-height: calc(100svh - var(--header-offset));
    padding: 44px 0 56px;
  }
}

/* 카드/그리드 */
.grid{
  display: grid;
  gap: 14px;
}
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .grid-3, .grid-2, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.12);
  /* 반투명도가 낮아서 배경이 카드 내부로 “번지는” 느낌을 줄임 */
  background: rgba(255,255,255,.085);
  padding: 18px;
  box-shadow: 0 10px 34px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}
.card::after{
  content:'';
  position: absolute;
  inset: -1px;
  background: radial-gradient(550px 180px at 20% 0%, rgba(139,92,246,.18), transparent 55%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events:none;
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.075);
}
.card:hover::after{ opacity: 1; }
.card h3{
  margin: 10px 0 8px;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.card .tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 12px;
}
.tag .pill-dot{
  width: 8px; height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  box-shadow: 0 0 16px rgba(34,211,238,.25);
}

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
}

/* 프로세스 */
.step{
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: start;
}
.step-num{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 900;
}
.step h3{ margin: 0; }

/* 수치 카운트 */
.stat{
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stat .num{
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -1px;
  background: linear-gradient(90deg, rgba(139,92,246,.95), rgba(34,211,238,.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label{
  color: var(--muted);
  font-weight: 700;
}

/* FAQ 아코디언 */
.accordion{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.acc-item + .acc-item{
  border-top: 1px solid rgba(255,255,255,.10);
}
.acc-button{
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: rgba(255,255,255,.04);
  border: 0;
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-weight: 850;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.acc-panel{
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.acc-panel .acc-content{
  padding: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.acc-item.is-open .acc-panel{
  max-height: 240px;
}
.chev{
  width: 18px; height: 18px;
  display: inline-block;
  border-right: 2px solid rgba(255,255,255,.76);
  border-bottom: 2px solid rgba(255,255,255,.76);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.acc-item.is-open .chev{
  transform: rotate(-135deg);
}

/* 레퍼런스 카드 이미지 */
.card-media{
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
}

/* 폼 */
.form{
  display: grid;
  gap: 12px;
}
.field{
  display: grid;
  gap: 8px;
}
label{
  font-size: 13px;
  color: rgba(255,255,255,.84);
  font-weight: 800;
}
input, textarea, select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 12px 14px;
  color: rgba(255,255,255,.92);
  outline: none;
}
textarea{ min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder{
  color: rgba(255,255,255,.45);
}
.form-note{
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.6;
}
.toast{
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(34,211,238,.35);
  background: rgba(34,211,238,.10);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  white-space: pre-wrap;
  word-break: break-word;
}
.toast.is-error{
  border-color: rgba(251,113,133,.45);
  background: rgba(251,113,133,.12);
}
.form[data-contact-form]{
  position: relative;
}
.hp-field{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
footer{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 46px 0 18px;
  background: rgba(0,0,0,.08);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-col h4{
  margin: 0 0 12px;
  color: rgba(255,255,255,.92);
}
.footer-col p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.footer-col p.footer-main-phone,
.footer-col p.footer-main-email{
  color: #fff;
  font-size: calc(14px * 1.3);
}
.footer-col p.footer-main-email{
  margin-top: calc(14px * 1.3 * 0.3);
}
.footer-links{
  display: grid;
  gap: 10px;
}
.footer-links a{
  color: rgba(255,255,255,.76);
  font-weight: 750;
  font-size: 14px;
  padding: 6px 0;
  border-radius: 10px;
  transition: color .2s ease;
  width: fit-content;
  position: relative;
}
.footer-links a::after{
  content:'';
  position:absolute;
  left:0; right:0;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  border-radius: 999px;
}
.footer-links a:hover{
  color: rgba(255,255,255,.92);
}
.footer-links a:hover::after{
  transform: scaleX(1);
}

.footer-bottom{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  color: rgba(255,255,255,.52);
  font-size: 13px;
}
.pill{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

/* —— Solutions 페이지: 목차, 업무 방식, 제품 상세 —— */
.solutions-toc-wrap{
  padding-top: 8px;
  padding-bottom: 8px;
}
.solutions-toc-label{
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.solutions-toc{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.solutions-toc__link{
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.solutions-toc__link:hover{
  color: #fff;
  border-color: rgba(34,211,238,.35);
  background: rgba(34,211,238,.08);
}

.workflow-section .workflow-native{
  margin-bottom: 20px;
}
.workflow-steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px){
  .workflow-steps{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 620px){
  .workflow-steps{
    grid-template-columns: 1fr;
  }
}
.workflow-step{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.18);
}
.workflow-step__n{
  flex: 0 0 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  background: linear-gradient(135deg, rgba(139,92,246,.45), rgba(34,211,238,.35));
}
.workflow-step__title{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 850;
  color: rgba(255,255,255,.92);
}
.workflow-step__desc{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.workflow-figure{
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
}
.workflow-figure__caption{
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 750;
  color: rgba(255,255,255,.55);
}
.workflow-figure__frame{
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  line-height: 0;
}
.workflow-figure__frame img{
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.solution-detail-section{
  scroll-margin-top: 88px;
}
/* hero(1), workflow(2) 다음부터 제품 섹션: 4·6·8번째 section에 교대 배경 */
.solutions-page > section:nth-of-type(4),
.solutions-page > section:nth-of-type(6),
.solutions-page > section:nth-of-type(8){
  background: rgba(255,255,255,.02);
}
.solution-detail-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.solution-detail-grid--reverse .solution-detail-media{
  order: 2;
}
.solution-detail-grid--reverse .solution-detail-body{
  order: 1;
}
@media (max-width: 960px){
  .solution-detail-grid,
  .solution-detail-grid--reverse{
    grid-template-columns: 1fr;
  }
  .solution-detail-grid--reverse .solution-detail-media,
  .solution-detail-grid--reverse .solution-detail-body{
    order: unset;
  }
  .solution-detail-media{
    order: -1;
  }
}
.solution-detail-media{
  margin: 0;
}
.solution-detail-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.solution-detail-eyebrow{
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(34,211,238,.85);
}
.solution-detail-title{
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: rgba(255,255,255,.96);
}
.solution-detail-lead{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
}
.solution-detail-list{
  margin: 0;
  padding: 0 0 0 1.15em;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.75;
  max-width: 52ch;
}
.solution-detail-list li{
  margin-bottom: 8px;
}
.solution-detail-list li:last-child{
  margin-bottom: 0;
}
.solution-detail-cta{
  margin-top: 22px;
}

/* Reduced motion 대응 */
@media (prefers-reduced-motion: reduce){
  .bg-ambient{ animation: none; }
  [data-reveal]{ opacity: 1; transform: none; transition: none; transition-delay: 0s !important; }
  .cursor{ animation: none; }
  .marquee-track{ animation: none; transform: none; }
  .hero-title-shimmer{ animation: none; background-position: 50% 50%; }
  .solution-card::before{ animation: none; }
  .brand-flip-inner{ animation: none; transform: rotateX(0deg); }
}

