/* ═══ HERO ═══ */
.hero--home .hero-bg img {
  /* 하단의 테이블·단말기가 보이도록 */
  object-position: center 78%;
}

.hero--home .hero-overlay {
  background: linear-gradient(0deg, rgba(32, 32, 32, 0.05) 5%, rgba(32, 32, 32, 0.5) 62%);
}

.hero--home .hero-title {
  font-size: 42px;
  line-height: 1.19;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.hero--home .hero-title span {
  display: block;
}

.hero--home .hero-title span + span {
  margin-top: 15px;
}

.hero-logo {
  display: block;
  margin-top: 21px;
  height: 28px;
  width: auto;
}

/* ═══ CLIENTS ═══ */
@keyframes marquee {
  from { transform: translateX(0); }
  /* --set-w: 로고 세트 하나의 너비 (clients-marquee.js가 계산) */
  to { transform: translateX(calc(-1 * var(--set-w, 50%))); }
}

.clients {
  height: 74px;
  display: flex;
  align-items: center;
  background: var(--white);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* clients-marquee.js가 세트를 복제한 뒤 is-ready를 붙이면 세트 하나 너비만큼 흘러 끊김 없이 순환 */
.clients-track {
  display: flex;
  width: max-content;
}

.clients-track.is-ready {
  animation: marquee 60s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.clients-set {
  list-style: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.clients-set li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-3);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.clients-set img {
  height: 32px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

/* 이름이 들어 있는 가로형 로고는 조금 낮게 */
.clients-set .is-wordmark img {
  height: 26px;
}

/* 파일 안에 여백이 많거나 2단으로 쌓인 로고는 키워서 시각적 크기를 맞춘다 */
.clients-set img[src*="igc"],
.clients-set img[src*="bossanova"] {
  height: 40px;
}

.clients-set img[src*="cybersky"] {
  height: 44px;
}

/* ═══ STATS ═══ */
.stats {
  padding: 88px 0 96px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg-1) 100%);
}

.stats-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--main-text);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 44px;
}

/* 흰 카드 안에 구분선으로 나뉜 4개 수치 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 16px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(255, 70, 92, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-3);
  line-height: 1.2;
}

.stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--main-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stats-more {
  display: inline-block;
  margin-top: 36px;
  font-size: 16px;
  font-weight: 700;
  color: var(--main);
  text-decoration: none;
}

.stats-more::after {
  content: ' →';
}

.stats-more:hover {
  text-decoration: underline;
}

/* ═══ ABOUT ═══ */
.about {
  padding: 20px 0 80px;
}

.about-inner {
  text-align: center;
  padding-top: 72px;
}

.about-heading {
  font-size: 30px;
  font-weight: 800;
  color: var(--main-text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* 제목이 여러 줄로 접혀도 마지막 글자 바로 뒤에 붙도록 인라인으로 둔다 */
.about-heading img {
  display: inline-block;
  height: 0.87em;
  width: auto;
  margin-left: 4px;
  vertical-align: -0.06em;
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 28px;
  font-weight: 700;
  color: var(--main-text);
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.about-text .muted {
  font-weight: 600;
  color: var(--muted);
}

/* ═══ CARDS ═══ */
.cards {
  padding: 0 0 60px;
}

.cards-grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.card--reversed {
  flex-direction: column-reverse;
}

.card-img {
  width: 100%;
  aspect-ratio: 556 / 205;
  background: var(--bg-1);
  overflow: hidden;
}

.card-img-small {
  aspect-ratio: 363 / 205;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-text {
  flex: 1;
  position: relative;
  padding: 28px 32px 32px;
  min-height: 178px;
}

.card-category {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.card-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-1);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-top: 6px;
}

.card-desc {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-3);
  line-height: 1.5;
  margin-top: 8px;
  /* 우하단 화살표와 겹치지 않게 */
  padding-right: 44px;
}

.card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  transition: transform var(--duration) var(--ease);
}

.card:hover .card-arrow {
  transform: translateX(4px);
}

/* ═══ MOBILE APP SECTION ═══ */
.mobile-app {
  padding: 100px 0;
}

.mobile-app-inner {
  display: flex;
  gap: 96px;
  align-items: center;
  justify-content: center;
}

.mobile-app-phone {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 640 / 1304;
}

.mobile-app-phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  filter: drop-shadow(10px 14px 18px rgba(54, 54, 54, 0.22));
}

.mobile-app-content {
  flex: 0 1 600px;
  min-width: 0;
}

.section-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-label--large {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--main-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.69;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease);
}

.chip:hover {
  background: #F5F5F5;
}

.chip[aria-selected="true"] {
  background: var(--main);
  border-color: var(--main);
  color: #fff;
}

.mobile-app-panel {
  /* 탭마다 문구 길이가 달라도 아래 요소가 출렁이지 않게 */
  min-height: 170px;
}

.mobile-app-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--main-text);
  letter-spacing: -0.02em;
  line-height: 1.39;
  margin-top: 32px;
}

.mobile-app-desc {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-3);
  line-height: 1.7;
  margin-top: 16px;
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: 24px;
  border-radius: 50%;
  transition: transform var(--duration) var(--ease);
}

.arrow-circle img {
  width: 100%;
  height: 100%;
  display: block;
}

a.arrow-circle:hover {
  transform: translateX(4px);
}

/* ═══ INFRASTRUCTURE ═══ */
.infra {
  padding: 100px 0;
}

.infra-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.infra-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--main-text);
  letter-spacing: -0.02em;
  line-height: 1.39;
  margin-top: 8px;
  margin-bottom: 40px;
}

/* 좌측: 키오스크(2행) / 우측: 리더기·POS + 통합 주문 관리 */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "kiosk kiosk reader pos"
    "kiosk kiosk order  order";
  gap: 20px;
}

.tile--kiosk { grid-area: kiosk; }
.tile--reader { grid-area: reader; }
.tile--pos { grid-area: pos; }
.tile--order { grid-area: order; }

.tile {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tile-bg);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══ ENTERPRISE ═══ */
.enterprise {
  padding: 100px 0;
}

.enterprise-inner {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

.enterprise-content {
  flex-shrink: 0;
  width: 340px;
  display: flex;
  flex-direction: column;
}

.enterprise-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--main-text);
  letter-spacing: -0.02em;
  line-height: 1.39;
  margin-top: 12px;
}

.enterprise-desc {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-3);
  line-height: 1.7;
  margin-top: auto;
  padding-top: 32px;
}

.enterprise-badge {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-1);
  line-height: 1.7;
  margin-top: 20px;
}

.enterprise-screenshot {
  position: relative;
  flex: 1;
  min-width: 0;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.enterprise-screenshot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.enterprise-screenshot > img {
  width: 100%;
  display: block;
}

/* ═══ CASES ═══ */
.cases {
  padding: 100px 0;
}

.cases-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.cases-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--main-text);
  letter-spacing: -0.02em;
  line-height: 1.39;
}

.cases-more {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-3);
  text-decoration: none;
  white-space: nowrap;
}

.cases-more::after {
  content: ' →';
}

.cases-more:hover {
  color: var(--main);
}

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

.case-card {
  padding: 32px;
  background: #F6F7F9;
  border-radius: 16px;
}

.case-card-logo {
  height: 25px;
  width: auto;
  display: block;
  margin-bottom: 28px;
}

.case-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-1);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.case-card-desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-3);
  line-height: 1.7;
}

/* ═══ CTA BANNER ═══ */
.cta-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  overflow: hidden;
  background: #333;
}

.cta-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner-title {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 32px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero--home .hero-title {
    font-size: 34px;
  }

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

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

  .mobile-app-inner {
    gap: 56px;
  }

  .mobile-app-phone {
    width: 240px;
  }

  .enterprise-inner {
    flex-direction: column;
    gap: 40px;
  }

  .enterprise-content {
    width: 100%;
  }

  .enterprise-desc {
    margin-top: 0;
    padding-top: 16px;
  }

  .enterprise-desc br {
    display: none;
  }

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

@media (max-width: 768px) {
  .hero--home .hero-title {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero--home .hero-title span + span {
    margin-top: 6px;
  }

  .hero-logo {
    height: 22px;
  }

  .clients {
    height: 60px;
  }

  .clients-set li {
    padding: 0 16px;
    font-size: 13px;
  }

  .clients-set img {
    height: 26px;
  }

  .clients-set .is-wordmark img {
    height: 20px;
  }

  .clients-set img[src*="igc"],
  .clients-set img[src*="bossanova"] {
    height: 32px;
  }

  .clients-set img[src*="cybersky"] {
    height: 36px;
  }

  .stats {
    padding: 56px 0 64px;
  }

  .stats-title {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
    padding: 24px 8px;
    border-radius: 16px;
  }

  .stat-item {
    gap: 4px;
  }

  .stat-item:nth-child(odd) {
    border-left: none;
  }

  .stat-label {
    font-size: 14px;
  }

  .stat-number {
    font-size: 27px;
  }

  .stats-more {
    margin-top: 28px;
    font-size: 15px;
  }

  .about {
    padding: 8px 0 56px;
  }

  .about-inner {
    padding-top: 48px;
  }

  .about-heading {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .about-text {
    font-size: 19px;
  }

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

  .card--reversed {
    flex-direction: column;
  }

  .card-text {
    padding: 24px;
    min-height: 0;
  }

  .card-name {
    font-size: 22px;
  }

  .card-desc {
    font-size: 16px;
  }

  .mobile-app,
  .infra,
  .enterprise,
  .cases {
    padding: 64px 0;
  }

  .mobile-app-inner {
    flex-direction: column-reverse;
    gap: 40px;
    align-items: stretch;
  }

  .mobile-app-content {
    flex: none;
  }

  .mobile-app-phone {
    width: 220px;
    align-self: center;
  }

  .mobile-app-panel {
    min-height: 0;
  }

  .mobile-app-title {
    font-size: 24px;
    margin-top: 24px;
  }

  .mobile-app-desc {
    font-size: 16px;
  }

  .chip {
    padding: 6px 16px;
    font-size: 15px;
  }

  .infra-title,
  .cases-title {
    font-size: 24px;
  }

  .infra-title {
    margin-bottom: 28px;
  }

  .infra-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "kiosk  kiosk"
      "reader pos"
      "order  order";
    gap: 12px;
  }

  .enterprise-title {
    font-size: 26px;
  }

  .enterprise-desc,
  .enterprise-badge {
    font-size: 17px;
  }

  .cases-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
  }

  .case-card {
    padding: 24px;
  }

  .cta-banner {
    min-height: 320px;
  }

  .cta-banner-title {
    font-size: 25px;
    margin-bottom: 24px;
  }
}
