/* Homepage typography scale (index.html only) */
html.page-home {
  font-size: calc(16px * 1.15);
}

html.page-home .header {
  font-size: 16px;
}

/* Grid/flex: allow text to wrap instead of clipping */
html.page-home .stats-bar {
  padding-bottom: 32px;
}

html.page-home #business.section {
  padding-top: 48px;
  padding-bottom: 64px;
}

html.page-home #technology.section {
  padding-top: 80px;
}

/* Soft section break: Business Areas → Competitive Advantage */
html.page-home #areas.section-light {
  position: relative;
  padding-bottom: 70px;
  box-shadow: 0 18px 36px -28px rgba(15, 35, 64, 0.14);
}

html.page-home #areas .section-desc {
  margin-bottom: 0;
}

html.page-home #areas .cards-grid {
  margin-top: 28px;
}

html.page-home #areas.section-light::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(15, 35, 64, 0) 0%,
    rgba(15, 35, 64, 0.04) 55%,
    rgba(15, 35, 64, 0.08) 100%
  );
}

html.page-home #advantage {
  padding-top: 52px;
  box-shadow: inset 0 28px 48px -36px rgba(15, 35, 64, 0.1);
}

html.page-home .stats-bar .container {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html.page-home .cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.page-home .cards-grid-dark {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.page-home .revenue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html.page-home .values-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

html.page-home .solution-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

html.page-home .contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

html.page-home .footer-grid {
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
}

html.page-home :where(
  .stat-item,
  .card,
  .dark-card,
  .revenue-item,
  .value-box,
  .tab-btn,
  .solution-panel > div,
  .feature-list li,
  .philosophy-block,
  .philosophy-block blockquote,
  .philosophy-block .quote-sub,
  .footer-brand,
  .footer-links,
  .footer-bottom,
  .info-item,
  .form-check,
  .form-group label,
  .hero-content,
  .hero-content h1,
  .hero-content p,
  .section-label,
  .section-title,
  .section-desc
) {
  min-width: 0;
  overflow-wrap: normal;
}

/* Tabs & buttons: wrap whole words, never clip single line */
html.page-home .tab-btn {
  white-space: normal;
  text-align: center;
  line-height: 1.45;
  hyphens: none;
}

html.page-home .btn:not(.header-cta .btn):not(.lang-btn) {
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

html.page-home .hero-tag {
  white-space: normal;
}

html.page-home .section-label {
  letter-spacing: 0.1em;
  white-space: normal;
}

html.page-home .hero-content {
  word-break: normal;
}

html.page-home[lang="ko"] .hero-content p {
  word-break: keep-all;
}

html.page-home .hero-content p {
  min-height: 9.5em;
}
html.page-home .hero h1 .sub,
html.page-home .hero.hero--centered .hero-content h1 .sub {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(14px, 2.5vw, 18px);
  letter-spacing: 0.04em;
  line-height: 1.45;
  overflow-wrap: normal;
  font-variant-east-asian: normal;
  white-space: nowrap;
  min-height: 1.45em;
}

html.page-home .stat-item .label {
  line-height: 1.55;
}

html.page-home .value-box {
  padding: 24px 12px;
}

html.page-home .value-box h4 {
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  html.page-home .values-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html.page-home .stats-bar .container,
  html.page-home .cards-grid,
  html.page-home .cards-grid-dark,
  html.page-home .revenue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.page-home .solution-panel,
  html.page-home .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html.page-home .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html.page-home .values-row,
  html.page-home .cards-grid,
  html.page-home .cards-grid-dark,
  html.page-home .revenue-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* stats: one compact row per item (number left, label right) */
  html.page-home .stats-bar .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  html.page-home .stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    text-align: left;
  }
  html.page-home .stat-item .number {
    flex: 0 0 76px;
    font-size: 1.9rem;
    text-align: center;
  }
  html.page-home .stat-item .label {
    margin-top: 0;
    min-width: 0;
  }

  html.page-home .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html.page-home .hero h1 .sub,
  html.page-home .hero.hero--centered .hero-content h1 .sub {
    white-space: normal;
  }
}

/* Footer logo on homepage */
html.page-home .footer-brand img {
  height: var(--logo-height);
  width: auto;
  margin-bottom: 24px;
}
