/* =============================================
   ConnexioH Homepage — style.css
   Design System: Deep Ocean of Data
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #101622;
  --bg-card: rgba(255, 255, 255, 0.04);
  --blue: #256AF4;
  --blue-dim: rgba(37, 106, 244, 0.25);
  --blue-glow: rgba(37, 106, 244, 0.15);
  --white: #FFFFFF;
  --gray: #8892B0;
  --gray-dim: rgba(136, 146, 176, 0.3);
  --border: 1px solid rgba(37, 106, 244, 0.25);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-w: clamp(1280px, 90vw, 1800px);
  --px: clamp(48px, 6vw, 120px);
  --py: clamp(160px, 14vh, 280px);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn--primary {
  background: var(--blue);
  color: #101622;
}
.btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(37, 106, 244, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn--ghost:hover {
  background: rgba(37, 106, 244, 0.08);
}

.btn--cta {
  background: var(--blue);
  color: #ffffff;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.02em;
}
.btn--cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 32px rgba(37, 106, 244, 0.45);
  transform: translateY(-1px);
}

/* ---------- GNB ---------- */
.gnb {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(16, 22, 34, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-subtle);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.gnb__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px var(--px);
  display: flex;
  align-items: center;
  gap: 48px;
}

.gnb__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--white);
  flex-shrink: 0;
}

.gnb__logo-mark {
  flex-shrink: 0;
}

.gnb__nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.gnb__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
  padding: 0 10px;
}
.gnb__nav a:hover,
.gnb__nav a:active,
.gnb__nav a.active {
  color: var(--white);
  font-weight: 600;
}

.gnb__cta {
  margin-left: auto;
  background: var(--blue);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.gnb__cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 16px rgba(37, 106, 244, 0.35);
}

/* ---------- S1 Hero ---------- */
.s1 {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}

/* BG: video/image 레이어 — 영상 교체 시 video src만 변경 */
.s1__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.s1__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* poster 속성으로 영상 없을 때 이미지 표시 */
}

/* video가 없을 때 폴백 배경 */
.s1__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #060c18;
  z-index: -1;
}

.s1__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 12, 24, 0.75) 0%,
    rgba(6, 12, 24, 0.90) 60%,
    rgba(6, 12, 24, 1.00) 100%
  );
}

.s1__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Hero 하단 마키 */
.s1__marquee {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(16, 22, 34, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.s1__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 106, 244, 0.10);
  border: 1px solid rgba(37, 106, 244, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 12px 6px 12px;
  border-radius: 6px;
  margin-bottom: 40px;
}

.s1__badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.s1__badge-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.s1__headline {
  font-size: clamp(32px, 3.96vw, 76px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: var(--white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.s1__headline-blue {
  color: var(--white);
}

.s1__sub {
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 400;
  color: #8892B0;
  line-height: 1.6;
  text-wrap: balance;
}

.s1__sub-bold {
  font-weight: 700;
  color: var(--white);
}

/* ---------- Partner Marquee ---------- */
.marquee-track {
  overflow: hidden;
  padding: 20px 0;
}

.marquee-inner {
  display: flex;
  width: max-content;
  will-change: transform;
  white-space: nowrap;
}

.partner-tag {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 36px;
  white-space: nowrap;
  flex-shrink: 0;
}

.partner-tag img {
  width: 80px;
  height: 26px;
  object-fit: contain;
  display: block;
  opacity: 0.8;
}

.partner-tag::after {
  display: none;
}

/* ---------- S2-A Metrics ---------- */
.s2a {
  padding: var(--py) 0;
  position: relative;
  background:
    linear-gradient(rgba(37, 106, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 106, 244, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px, 48px 48px, 100%;
}

.s2a__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.s2a__left .section-eyebrow {
  text-align: left;
}

.s2a__headline {
  font-size: clamp(32px, 2.8vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.s2a__sub {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  color: #8892B0;
  line-height: 1.6;
  margin: 32px 0 40px 0;
  text-wrap: balance;
}

.s2a__date {
  font-size: 13px;
  color: rgba(136, 146, 176, 0.5);
  margin-bottom: 40px;
}

.s2a__metrics {
  display: flex;
  gap: 24px;
  align-items: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-logo {
  height: clamp(16px, 1.1vw, 20px);
  width: auto;
  object-fit: contain;
}

.metric-value {
  font-size: clamp(20px, 1.8vw, 32px);
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1;
}

.metric-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

.metric-label-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--blue);
  opacity: 0.7;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.s2a__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-graph {
  width: clamp(320px, 40vw, 640px);
  height: clamp(320px, 40vw, 640px);
  flex-shrink: 0;
  position: relative;
}

#networkCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Slot Counter ---------- */
.slot-counter {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 0;
}

.slot-char {
  display: inline-block;
  position: relative;
  overflow: hidden;
  /* height는 JS에서 px로 직접 설정 */
  vertical-align: middle;
}

.slot-char__inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slot-char__inner span {
  display: block;
  text-align: center;
  /* height/line-height는 JS에서 px로 직접 설정 */
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(103deg, #FF7039 18%, #0F4CC7 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- S2-C Company Milestone ---------- */
.s2c {
  padding: var(--py) 0;
  background: linear-gradient(180deg,
    #101622 0%,
    #0a1e3d 50%,
    #082060 100%
  );
}

.s2c__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.s2c__headline {
  font-size: clamp(32px, 2.8vw, 52px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: -0.5px;
  color: var(--white);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--blue) 8%, var(--blue) 92%, transparent);
  transform: translateX(-50%);
  opacity: 0.7;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 0 48px;
  padding: 28px 0;
  margin-bottom: -100px;
}

.timeline__item--left .timeline__card {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}
.timeline__item--left .timeline__dot {
  grid-column: 2;
  grid-row: 1;
}

.timeline__item--right .timeline__dot {
  grid-column: 2;
  grid-row: 1;
}
.timeline__item--right .timeline__card {
  grid-column: 3;
  grid-row: 1;
}

/* 빈 공간 채우기 */
.timeline__item--left::after {
  content: '';
  grid-column: 3;
}
.timeline__item--right::before {
  content: '';
  grid-column: 1;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 50%;
  border: 3px solid #0a1020;
  box-shadow: 0 0 0 2px var(--blue), 0 0 12px rgba(37, 106, 244, 0.5);
  justify-self: center;
  z-index: 1;
  position: relative;
}

.timeline__card {
  background: rgba(13, 22, 38, 0.85);
  border: 1px solid rgba(37, 106, 244, 0.2);
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.timeline__date {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.timeline__phase {
  font-size: 13px;
  color: var(--gray);
  font-weight: 400;
}

.timeline__card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}

.timeline__card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.timeline__icon {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 106, 244, 0.1);
  border: 1px solid rgba(37, 106, 244, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.timeline__item--left .timeline__icon {
  right: 28px;
  left: auto;
}

/* ---------- S2C New (Showcase 리스트) ---------- */
.s2c-new {
  background: var(--bg);
  padding: var(--py) 0;
}

.s2c-new__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.s2c-new__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.9;
}

.s2c-new__label {
  font-size: clamp(32px, 2.8vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
  text-align: left;
  margin-bottom: 0;
  padding-top: 32px;
  position: sticky;
  top: 120px;
  align-self: start;
}

/* 호버 프리뷰 */
.showcase-preview {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  width: clamp(140px, 16vw, 280px);
  height: clamp(90px, 10.3vw, 180px);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.showcase-preview.is-visible {
  opacity: 1;
  transform: scale(1);
}

.showcase-preview__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase-preview__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
  border-radius: var(--radius-md);
}

.showcase-preview__img.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

/* 리스트 */
.showcase-list {
  display: flex;
  flex-direction: column;
}

.showcase-list__bottom-border {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-item {
  position: relative;
}

.showcase-item__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-item__left {
  flex: 1;
  min-width: 0;
}

.showcase-item__title-wrap {
  display: inline-flex;
  align-items: center;
}

.showcase-item__title {
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.3px;
}

.showcase-item__desc {
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  color: #8892B0;
  line-height: 1.5;
}

.showcase-item__year {
  font-size: clamp(32px, 2.8vw, 52px);
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  color: var(--gray);
  text-align: center;
  opacity: 0.35;
  white-space: nowrap;
  padding-top: 4px;
}

/* ---------- S2C 로드맵 ---------- */
.s2c__roadmap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 64px;
  padding: 32px 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(37, 106, 244, 0.15);
  border-radius: 20px;
}

.s2c__roadmap-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px;
}

.s2c__roadmap-arrow {
  font-size: 20px;
  color: rgba(37, 106, 244, 0.4);
  flex-shrink: 0;
}

.s2c__roadmap-year {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.s2c__roadmap-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

.s2c__roadmap-item--future .s2c__roadmap-year {
  color: rgba(37, 106, 244, 0.5);
}

.s2c__roadmap-item--future .s2c__roadmap-desc {
  color: rgba(136, 146, 176, 0.6);
}

/* ---------- S3 Technology (통합) ---------- */
.s3 {
  padding: var(--py) 0;
  background: var(--bg);
}

.s3__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.s3__headline {
  font-size: clamp(32px, 2.8vw, 52px);
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.s3__sub {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  color: #8892B0;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 64px;
  text-wrap: balance;
}

/* 수치 바 */
.s3__stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(37, 106, 244, 0.2);
  padding-top: 48px;
}

.s3__stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 32px;
  border-right: 1px solid rgba(37, 106, 244, 0.15);
}

.s3__stat-item:first-child { padding-left: 0; }
.s3__stat-item:last-child  { border-right: none; }

.s3__stat-value {
  font-size: clamp(28px, 2.4vw, 48px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.s3__stat-unit {
  color: var(--blue);
  font-size: 0.75em;
}

.s3__stat-num {
  color: var(--white);
}

.s3__stat-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 400;
}


.tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(37, 106, 244, 0.2);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 호버 시 보더를 따라 도는 shimmer 효과 */
.tech-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--shimmer-angle, 0deg),
    transparent 60%,
    rgba(37, 106, 244, 0.8) 75%,
    rgba(100, 180, 255, 1) 85%,
    rgba(37, 106, 244, 0.8) 95%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.tech-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 3px;
  background: #0d1424;
  z-index: 1;
}

.tech-card > * {
  position: relative;
  z-index: 2;
}

@property --shimmer-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes shimmer-rotate {
  to { --shimmer-angle: 360deg; }
}

.tech-card:hover::before {
  opacity: 1;
  animation: shimmer-rotate 4s linear infinite;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(37, 106, 244, 0.4);
  border-color: rgba(37, 106, 244, 0.45);
}

.tech-card:hover .tech-card__icon--ontology,
.tech-card:hover .tech-card__icon--ai,
.tech-card:hover .tech-card__icon--mcp {
  background: var(--blue);
  transition: background 0.3s ease;
}

.tech-card:hover .tech-card__tags span {
  background: rgba(37, 106, 244, 0.25);
  color: var(--white);
  transition: background 0.3s ease;
}

.tech-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 아이콘 bg: blue tint로 배경 대비 확보 */
.tech-card__icon--ontology { background: rgba(37, 106, 244, 0.18); }
.tech-card__icon--ai       { background: rgba(37, 106, 244, 0.18); }
.tech-card__icon--mcp      { background: rgba(37, 106, 244, 0.18); }

.tech-card h3 {
  font-size: 22px;
  font-weight: 600;
}

.tech-card p {
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  color: #8892B0;
  line-height: 1.5;
  flex: 1;
}

.tech-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-card__tags span {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}


/* ---------- S4 Solutions ---------- */
.s4 {
  padding: var(--py) 0;
  background: var(--bg);
}

.s4__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.s4__headline {
  font-size: clamp(32px, 2.8vw, 52px);
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--white);
}

.s4__sub {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  color: #8892B0;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 64px;
}

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

.solution-card {
  border-radius: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(37, 106, 244, 0.2);
}

.solution-card__img-wrap {
  position: relative;
}

.solution-card__img {
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.solution-card__img--crepan {
  background: linear-gradient(160deg, #0a1525 0%, #0d1e38 40%, #091220 100%);
}

.solution-card__img--agent {
  background: linear-gradient(160deg, #0f1420 0%, #151825 50%, #0d1020 100%);
}

/* 이미지 placeholder */
.solution-card__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.solution-card__img-placeholder--crepan {
  background:
    linear-gradient(160deg, #0a1525 0%, #0d1e38 40%, #091220 100%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(37,106,244,0.04) 40px, rgba(37,106,244,0.04) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(37,106,244,0.04) 40px, rgba(37,106,244,0.04) 41px);
}

.solution-card__img-placeholder--agent {
  background: radial-gradient(ellipse at 50% 40%, #1a1f35 0%, #0d1020 70%);
}

.solution-card__img-real {
  width: 100%;
  height: auto;
  display: block;
}

.solution-card__img--crepan .solution-card__img-real,
.solution-card__img--agent .solution-card__img-real {
  opacity: 0.8;
}

/* crepan 하단 그라디언트 페이드 오버라이드 */
.solution-card__img-wrap:has(.solution-card__img--crepan)::after {
  background: linear-gradient(to top, rgba(13,16,26,0.6), transparent);
}

/* 하단 그라디언트 페이드 */
.solution-card__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(13,16,26,0.9), transparent);
  pointer-events: none;
}

.solution-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 3px 8px 2px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.solution-badge--fintech {
  background: var(--blue);
  color: var(--white);
}

.solution-badge--agent {
  background: var(--blue);
  color: var(--white);
}

.solution-card__body {
  padding: 20px 24px 28px;
}

.solution-card__name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 10px;
}

.solution-card__name {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

.solution-card__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-card__desc {
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  color: #8892B0;
  line-height: 1.5;
}

/* --- Card Overlay (hover) --- */
.solution-card__flipper {
  position: relative;
  width: 100%;
}

.solution-card__front {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.solution-card:hover .solution-card__front {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(37, 106, 244, 0.4);
  border-color: rgba(37, 106, 244, 0.4);
}

/* 이미지 줌인 */
.solution-card__img-real,
.solution-card__img-placeholder {
  transition: transform 0.4s ease;
}

.solution-card:hover .solution-card__img-real,
.solution-card:hover .solution-card__img-placeholder {
  transform: scale(1.05);
}

.solution-card__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #0a1020;
  border: 1px solid rgba(37, 106, 244, 0.5);
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.solution-card:hover .solution-card__back,
.solution-card.is-flipped .solution-card__back {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: none) {
  .solution-card:hover .solution-card__front {
    transform: none;
    box-shadow: none;
  }
  .solution-card:hover .solution-card__back {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
  }
  .solution-card.is-flipped .solution-card__back {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* 백 내부 콘텐츠 stagger */
.solution-card__back .solution-badge,
.solution-card__back-title,
.solution-card__back-desc,
.solution-card__back-list {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.solution-card:hover .solution-card__back .solution-badge,
.solution-card.is-flipped .solution-card__back .solution-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.solution-card:hover .solution-card__back-title,
.solution-card.is-flipped .solution-card__back-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.17s;
}

.solution-card:hover .solution-card__back-desc,
.solution-card.is-flipped .solution-card__back-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.solution-card:hover .solution-card__back-list,
.solution-card.is-flipped .solution-card__back-list {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.31s;
}

.solution-card__back-title {
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 500;
  color: var(--white);
  margin-top: 4px;
}

.solution-card__back-desc {
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  color: #8892B0;
  line-height: 1.5;
}

.solution-card__back-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.solution-card__back-list li {
  font-size: clamp(15px, 1.1vw, 18px);
  color: #8892B0;
  font-weight: 400;
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}

.solution-card__back-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4.4px;
  height: 4.4px;
  background: #ffffff;
  border-radius: 50%;
}

/* ---------- S5 Competitive Cards (mobile only) ---------- */
.comp-cards { display: none; }

.comp-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.comp-card--cah {
  border-color: rgba(37, 106, 244, 0.4);
  background: rgba(37, 106, 244, 0.06);
}

.comp-card__header {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-card--cah .comp-card__header {
  background: rgba(37, 106, 244, 0.15);
  color: var(--white);
}

.comp-card__row {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-card__row:last-child { border-bottom: none; }

.comp-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  min-width: 72px;
  padding-top: 1px;
}

.comp-card__val {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.comp-card--cah .comp-card__val {
  color: var(--white);
  font-weight: 600;
}

/* ---------- S5 Competitive Table ---------- */
.s5 {
  padding: var(--py) 0;
  background: var(--bg);
}

.s5__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.s5__headline {
  font-size: clamp(32px, 2.8vw, 52px);
  font-weight: 700;
  text-align: center;
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 64px;
}

.comp-table-wrap {
  overflow-x: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 19px;
}

/* 헤더 */
.comp-table thead tr {
  background: rgba(255, 255, 255, 0.03);
}

.comp-table thead th {
  padding: 20px 28px;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  color: var(--gray);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 행 */
.comp-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.comp-table tbody tr:last-child {
  border-bottom: none;
}

.comp-table tbody td {
  padding: 22px 28px;
  vertical-align: top;
  color: var(--gray);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 500;
  line-height: 1.6;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-table tbody td:last-child {
  border-right: none;
}

.comp-table thead th {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-table thead th:last-child {
  border-right: none;
}

/* 첫 번째 열 (항목명) — 헤더와 동일한 스타일 */
.comp-table tbody td:first-child {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}

/* ConnexioH 열 */
.comp-col--cah {
  background: rgba(37, 106, 244, 0.08) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.comp-table thead th.comp-col--cah {
  font-size: 16px;
  font-weight: 800 !important;
  color: var(--white) !important;
}

/* 각주 마크 */
.comp-footnote-mark {
  font-size: 11px;
  vertical-align: super;
  color: var(--gray);
}

.comp-footnote {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray);
  opacity: 0.7;
  padding: 0 4px;
}

/* 차별화 뱃지 */
.comp-badge {
  display: inline-block;
  background: #FF7039;
  color: #050505;
  border: none;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 10px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* ---------- S5 Market Size Block ---------- */
.s5__market {
  margin-top: 64px;
  padding-top: 40px;
}

/* Market SVG Text Hover Effect */
.market-svg-wrap {
  width: 100%;
  height: clamp(43px, 4.8vw, 66px);
  cursor: default;
  overflow: visible;
}

.market-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mo-only-svg { display: none; }

.market-svg__base {
  fill: #101622;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.2;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 100.8px;
  letter-spacing: -2px;
}

.market-svg__stroke {
  fill: #101622;
  stroke: #ffffff;
  stroke-width: 1.2;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 100.8px;
  letter-spacing: -2px;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.market-svg__stroke--anim {
  animation: strokeReveal 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes strokeReveal {
  to { stroke-dashoffset: 0; }
}

/* reveal 레이어: fill 화이트, stroke는 없음 */
.market-svg__reveal {
  fill: #ffffff;
  stroke: none;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 100.8px;
  letter-spacing: -2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.s5__market-item:hover .market-svg__reveal {
  opacity: 1;
}

.s5__market-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.8;
  margin-bottom: 32px;
  text-align: center;
}

.s5__market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.s5__market-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
  cursor: default;
}

.s5__market-item .s5__market-value {
  transition: filter 0.35s ease;
}

.s5__market-item .s5__market-desc {
  transition: color 0.35s ease;
}

.s5__market-item:hover {
}

.s5__market-item:hover .s5__market-value {
  filter: brightness(1.2);
}

.s5__market-item:hover .s5__market-desc {
  color: rgba(255, 255, 255, 0.75);
}

.s5__market-item--highlight .s5__market-value {
  color: var(--white);
}

.s5__market-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(136, 146, 176, 0.6);
}

.s5__market-value {
  font-size: clamp(40px, 4.4vw, 84px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -3px;
  line-height: 1;
}

.s5__market-unit {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--white);
  margin-left: 2px;
  letter-spacing: -1px;
}

.s5__market-desc {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  color: #8892B0;
  text-align: center;
  line-height: 1.4;
}

.s5__market-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--gray);
  opacity: 0.5;
  text-align: center;
}

/* ---------- History Table (S3 내부) ---------- */
.history-table-wrap {
  width: 100%;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.history-table td {
  padding: 20px 0;
  vertical-align: top;
}

.history-year {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  width: 80px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.history-event {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 2px;
}

.history-month {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 36px;
}

.history-content {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.6;
}

.s7__glow { display: none; }

/* ---------- S7 Final CTA ---------- */
.s7 {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(16, 22, 34, 0) 0.12%, #101622 94.48%),
    linear-gradient(90deg, #FF7039 0%, #256AF4 100%);
}

.s7__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: calc(var(--py) * 2) var(--px) calc(var(--py) * 1);
  position: relative;
  z-index: 2;
}

.s7__headline {
  font-size: clamp(44px, 4vw, 72px);
  font-weight: 700;
  text-align: center;
  letter-spacing: -2.5px;
  line-height: 1.15;
  color: var(--white);
}

.s7__headline strong {
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s7__sub {
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  line-height: 1.5;
  margin-top: -24px;
}

/* ---------- Footer ---------- */
.footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: var(--border-subtle);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__logo {
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.footer__logo-img {
  height: 24px;
  width: auto;
  opacity: 0.6;
  flex-shrink: 0;
}

.footer__info {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.7;
}

.footer__copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}


/* ---------- Hero Entrance Animation ---------- */
.s1__badge,
.s1__headline,
.s1__sub {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.s1__badge.hero-visible    { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.s1__headline.hero-visible { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.s1__sub.hero-visible      { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .s1__badge, .s1__headline, .s1__sub {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Scroll Animations ---------- */
/* 기본은 보임 — JS가 .js-ready를 <html>에 붙인 후에만 숨김 처리 */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .fade-in {
  opacity: 0;
  transform: translateY(24px);
}

.js-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---------- Responsive (basic) ---------- */
@media (max-width: 900px) {
  :root {
    --px: 24px;
  }

  .gnb__nav { display: none; }

  .pc-br { display: none; }
  .pc-only-svg { display: none; }
  .mo-only-svg { display: block; }
  .s1__headline { font-size: 36px; letter-spacing: -1px; text-wrap: balance; }
  .s7__headline { font-size: 36px; letter-spacing: -1px; text-wrap: balance; }
  .solution-card__back-list { gap: 4px; }
  .s2a__metrics { gap: 8px; }

  .s2a__inner { grid-template-columns: 1fr; }
  .s2a__right { display: none; }
  .s2c-new__inner { grid-template-columns: 1fr; gap: 40px; }
  .s2c-new__label { position: static; }

  .tech-cards { grid-template-columns: 1fr; }

  .s3__stat-bar { grid-template-columns: 1fr; gap: 24px; }
  .s3__stat-item { border-right: none; padding: 0; border-bottom: 1px solid rgba(37, 106, 244, 0.15); padding-bottom: 20px; }
  .s3__stat-item:last-child { border-bottom: none; }

  .s2c__roadmap { flex-direction: column; gap: 16px; padding: 24px; }
  .s2c__roadmap-arrow { transform: rotate(90deg); }

  .solution-cards { grid-template-columns: 1fr; }

  .s5__market-grid { grid-template-columns: 1fr; gap: 60px; }

  /* Competitive Table → 3 cards */
  .comp-table-wrap { display: none; }
  .comp-cards { display: flex; flex-direction: column; gap: 12px; }
  .s5__market-desc { white-space: normal; font-size: 15px; }

  .timeline__item {
    grid-template-columns: 1fr 20px;
  }
  .timeline__item--right .timeline__card {
    grid-column: 1;
  }
  .timeline__line { left: calc(50% - 4px); }

  .s5__headline,
  .s4__headline,
  .s3__headline,
  .s2c-new__label,
  .s2a__headline { font-size: 28px; }
  .s4__headline,
  .s3__headline,
  .s2c-new__label { text-wrap: balance; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
