/* ============================================================
   main.css — 00_MAIN 전용
   ++ main visual / ++ sticky bg / txt slide / 섹션 +1 ~ +6
   ============================================================ */

/* ------------------------------------------------------------
   ++ main visual — 히어로 (텍스트 + 인포그래픽 + 카운트업 stats)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  background:
    radial-gradient(
      900px 520px at 82% 30%,
      rgba(46, 166, 216, 0.2),
      transparent 62%
    ),
    radial-gradient(
      700px 500px at 12% 82%,
      rgba(142, 224, 106, 0.1),
      transparent 60%
    ),
    linear-gradient(165deg, #0a2136 0%, var(--navy-950) 58%);
  color: var(--white);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 0;
}
.hero__eyebrow {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 22px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(46, 166, 216, 0.4);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero__title {
  margin-top: 24px;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: normal;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__desc {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
}
.hero__actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
}

/* 인포그래픽 — 아이소메트릭 큐브 다이어그램(box_comp 합성 이미지 + box_ani1~4) */
.hero-info {
  position: relative;
  width: 580px;
  height: 508px;
  margin-left: 64px;
}
.hero-info__comp {
  position: absolute;
  left: 0;
  top: 31.3%;
  width: 100%;
  pointer-events: none;
}

.hero-info__box {
  position: absolute;
  width: 17.1%;
  transform: translate(-50%, -50%);
}
.hero-info__box img {
  display: block;
  width: 100%;
  animation: floaty-rev 4.2s ease-in-out infinite;
}
.hero-info__box span {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}
.hero-info__box--data {
  left: 26%;
  top: 17%;
}
.hero-info__box--cloud {
  left: 73%;
  top: 17%;
}
.hero-info__box--cloud img {
  animation-delay: 0.9s;
}
.hero-info__box--server {
  left: 19%;
  top: 55%;
}
.hero-info__box--server img {
  animation-delay: 1.7s;
}
.hero-info__box--dr {
  left: 80%;
  top: 55%;
}
.hero-info__box--dr img {
  animation-delay: 2.5s;
}
@keyframes floaty-rev {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 라인 애니 — data/cloud/server/dr·bcp → 중앙 연결 */
.hero-info__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-info__lines path {
  fill: none;
  stroke: rgba(79, 214, 255, 0.55);
  stroke-width: 1.5;
}
.hero-info__flow {
  fill: #bff0ff;
  filter: drop-shadow(0 0 4px rgba(143, 230, 255, 0.9));
}

/* 카운트업 stats — 30 / 100 / 24 */
.hero__stats {
  grid-column: 1 / -1;
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat::before {
  content: "";
  position: absolute;
  top: -45px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-500), var(--green-400));
}
.stat__num {
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.stat__num .unit {
  font-size: 30px;
  font-weight: 500;
  color: var(--cyan-400);
  margin-left: 4px;
}
.stat__label {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.66);
}

/* ------------------------------------------------------------
   ++ sticky bg + ++ contents 오버랩
   ------------------------------------------------------------ */
.sticky-bg {
  position: sticky;
  top: 0;
  z-index: -1;
  height: 0;
}
.contents {
  position: relative;
  z-index: 1;
  background: var(--white);
}

/* txt slide — 다크 티커 무한 롤링 */
.txt-slide {
  overflow: hidden;
  padding: 22px 0;
  background: rgba(6, 12, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.txt-slide__track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.txt-slide__track span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.txt-slide__track span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-600);
  flex-shrink: 0;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* 공통 섹션 여백 */
.sec {
  padding: 70px 0;
}

/* ------------------------------------------------------------
   +1 모듈형 인프라 — Plug & Play (아이콘 체인 + 카드 패널)
   ------------------------------------------------------------ */
.sec-infra {
  background: var(--navy-950);
}
.sec-infra__head {
  margin: 0 auto 56px;
  text-align: center;
}
.sec-infra__head .sec-eyebrow {
  color: var(--cyan-400);
}
.sec-infra__head .sec-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-500);
}
.sec-infra__head .sec-title {
  color: var(--white);
}
.sec-infra__head .sec-desc {
  color: rgba(255, 255, 255, 0.68);
}

.infra-panel {
  padding: 56px 48px 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}
.infra-nodes {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.infra-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.infra-node img {
  width: 152px;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
}
.infra-panel:has(.infra-cards .infra-card:nth-child(1):hover)
  .infra-nodes
  .infra-node:nth-of-type(1)
  img,
.infra-panel:has(.infra-cards .infra-card:nth-child(2):hover)
  .infra-nodes
  .infra-node:nth-of-type(2)
  img,
.infra-panel:has(.infra-cards .infra-card:nth-child(3):hover)
  .infra-nodes
  .infra-node:nth-of-type(3)
  img,
.infra-panel:has(.infra-cards .infra-card:nth-child(4):hover)
  .infra-nodes
  .infra-node:nth-of-type(4)
  img {
  animation: floaty 1.1s ease-in-out infinite;
}
.infra-node span {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.infra-node--add span {
  color: rgba(255, 255, 255, 0.55);
}
.infra-link {
  position: relative;
  flex: 0 0 84px;
  margin-top: 84px;
}
.infra-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 2px dotted rgba(255, 255, 255, 0.22);
}
.infra-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-500);
  transform: translate(-50%, -50%);
}
.infra-link--dashed::before {
  border-top-color: rgba(142, 224, 106, 0.45);
}
.infra-link--dashed::after {
  background: var(--green-400);
}

.infra-cards {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.infra-card {
  padding: 24px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.infra-card:hover {
  transform: translateY(-4px);
}
.infra-card h3 {
  font-size: 22px;
  font-weight: 700;
}
.infra-card:nth-child(1) h3 {
  color: #4db4ee;
}
.infra-card:nth-child(1):hover {
  border-color: #4db4ee;
  box-shadow: 0 16px 32px rgba(77, 180, 238, 0.2);
}
.infra-card:nth-child(2) h3 {
  color: #6fe0ff;
}
.infra-card:nth-child(2):hover {
  border-color: #6fe0ff;
  box-shadow: 0 16px 32px rgba(111, 224, 255, 0.2);
}
.infra-card:nth-child(3) h3 {
  color: #8ee06a;
}
.infra-card:nth-child(3):hover {
  border-color: #8ee06a;
  box-shadow: 0 16px 32px rgba(142, 224, 106, 0.2);
}
.infra-card:nth-child(4) h3 {
  color: #59d6c4;
}
.infra-card:nth-child(4):hover {
  border-color: #59d6c4;
  box-shadow: 0 16px 32px rgba(89, 214, 196, 0.2);
}
.infra-card p {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

/* approach box — 1:1 맞춤 솔루션 카드 */
.approach {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.approach__card {
  background: var(--white);
  border: 1px solid #e2ebf0;
  border-radius: 20px;
  padding: 40px 36px;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}
.approach__card:hover {
  border-color: var(--cyan-400);
  box-shadow: 0 18px 44px rgba(28, 102, 144, 0.14);
  transform: translateY(-6px);
}
.approach__card .ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(53, 183, 224, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan-600);
}
.approach__card h3 {
  font-size: 22px;
  font-weight: 700;
}
.approach__card p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-600);
}

/* ------------------------------------------------------------
   +2 솔루션 카드 3종 (solution ov — 440×540, hover 시 CTA 노출)
   ------------------------------------------------------------ */
.sol-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 440px));
  justify-content: center;
  gap: 44px;
  margin-top: 64px;
}
.sol-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 680 / 780;
  background: var(--navy-950);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.sol-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(6, 12, 24, 0.35);
}
.sol-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sol-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 24, 0) 34%,
    rgba(6, 12, 24, 0.88) 78%
  );
}
.sol-card__body {
  position: relative;
  z-index: 2;
  padding: 34px 32px 36px;
}
.sol-card__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
  text-transform: uppercase;
}
.sol-card__title {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
}
.sol-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    margin 0.3s ease;
}
.sol-card:hover .sol-card__more {
  max-height: 40px;
  opacity: 1;
  margin-top: 18px;
}
.sol-card__more .arw {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  color: var(--cyan-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ------------------------------------------------------------
   +3 서비스 3종 — 좌우 교차형 (service row)
   ------------------------------------------------------------ */
.sec-service {
  background: var(--white);
  color: var(--ink);
}
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-inline: auto;
}
.svc-row + .svc-row {
  margin-top: 110px;
}
.svc-row:nth-child(odd) .svc-row__media {
  order: 2;
}
.svc-row__media {
  aspect-ratio: 660 / 460;
  border-radius: 20px;
  overflow: hidden;
}
.svc-row__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.svc-row__media--ph {
  aspect-ratio: 680 / 440;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.svc-row__num {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.svc-row__title {
  position: relative;
  margin-top: 14px;
  padding-bottom: 24px;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.svc-row__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-500), var(--green-400));
}
.svc-row__desc {
  margin-top: 14px;
  margin-bottom: 34px;
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink-600);
  max-width: 560px;
}

/* ------------------------------------------------------------
   +4 Why OFIT — 화이트 카드 3종 (service ov 448×331 → hover 488×381)
   ------------------------------------------------------------ */
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 460px));
  justify-content: center;
  gap: 32px;
  margin-top: 64px;
}
.why-card {
  background: var(--bg-soft);
  border: 1px solid #e2ebf0;
  border-radius: 20px;
  padding: 44px 40px;
  min-height: 331px;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.why-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--cyan-400);
  box-shadow: 0 24px 56px rgba(28, 102, 144, 0.16);
}
.why-card img {
  display: block;
  margin-bottom: 30px;
}
.why-card .ico {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(53, 183, 224, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--cyan-600);
}
.why-card h3 {
  font-size: 26px;
  font-weight: 700;
}
.why-card p {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-600);
}

/* ------------------------------------------------------------
   +5 Clients — logo slide 무한 롤링
   ------------------------------------------------------------ */
.sec-clients {
  background: var(--bg-soft);
}
.clients-more {
  margin-top: 48px;
  text-align: center;
}
.logo-slide {
  margin-top: 60px;
  overflow: hidden;
  position: relative;
}
.logo-slide::before,
.logo-slide::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.logo-slide::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-soft), transparent);
}
.logo-slide::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-soft), transparent);
}
.logo-slide__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 110s linear infinite;
}
.logo-slide__track .client-cell {
  flex: 0 0 200px;
  height: 96px;
  margin-right: 24px;
}
.logo-slide__track .client-cell img {
  max-height: 44px;
}

/* ------------------------------------------------------------
   반응형 안전장치
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-info {
    width: min(480px, 100%);
    height: 420px;
  }
  .sol-cards,
  .why-cards,
  .approach {
    grid-template-columns: 1fr 1fr;
  }
  .infra-panel {
    padding: 40px 24px 32px;
  }
  .infra-node img {
    width: 96px;
  }
  .infra-node span {
    font-size: 14px;
  }
  .infra-link {
    flex-basis: 36px;
    margin-top: 54px;
  }
  .infra-cards {
    grid-template-columns: 1fr 1fr;
  }
}
/* 768px 이하(폰)는 common.css #phone-scale-inner의 zoom 축소 방식으로 대체 — 개별 리플로우 규칙 없음 */
