/* Reset & Variables */
:root {
  --primary: #c02428;
  --primary-hover: #9d0013;
  --secondary: #1a1c1e;
  --tertiary: #f8f9fa;
  --text-dark: #0b1c30;
  --text-light: #64748b;
  --bg-light: #f8f9ff;
  --white: #ffffff;
  --border: #e2e8f0;
  
  --font-family: 'Pretendard', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  padding-top: 70px; /* for fixed header */
  word-break: keep-all;      /* 한글을 단어 단위로 줄바꿈 (글자 중간 쪼개짐 방지) */
  overflow-wrap: break-word; /* 아주 긴 영문/URL은 안전하게 줄바꿈 */
}

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 48px; }
.mt-xl { margin-top: 80px; }
.mb-lg { margin-bottom: 48px; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;

  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}
.btn-ghost-light {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-ghost-light:hover {
  background-color: rgba(255,255,255,0.1);
}
.btn-white {
  background-color: var(--white);
  color: var(--primary);
}
.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--secondary);
  color: var(--white);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  height: 24px;
  display: block;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #c6c6c9;
}
.nav-link:hover {
  color: var(--white);
}
.nav-btn {
  background-color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11,28,48,0.9) 0%, rgba(11,28,48,0.4) 100%);
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content {
  max-width: 600px;
}
.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #eaf1ff;
}
.hero-desc {
  font-size: 16px;
  color: #c6c6c9;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
}

/* Value Props Bar */
.value-bar {
  background-color: #213145;
  color: var(--white);
  padding: 20px 0;
}
.value-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}
.value-item i {
  color: #c6c6c9;
}

/* Section Common */
.section {
  padding: 80px 0;
}
.section-light {
  background-color: var(--bg-light);
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 18px;
  color: var(--text-light);
}

/* Intro Section */
.intro-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
}
.quote-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
}
.quote-icon {
  color: var(--border);
  width: 32px;
  height: 32px;
}
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.feature-column {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.feature-col-title {
  font-size: 24px;
  margin-bottom: 32px;
  padding-top: 0;
  display: flex;
  align-items: flex-start;
}
.feature-item {
  display: flex;
  align-items: flex-start; /* 아이콘과 텍스트 영역의 시작점을 상단으로 통일 */
  gap: 16px;
  margin-bottom: 24px;
}
.feature-item:last-child {
  margin-bottom: 0;
}
.feature-icon {
  background: var(--bg-light);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon i {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.feature-text h4 {
  font-size: 18px;
  line-height: 1.2;
  margin-top: -2px; /* 아이콘 박스 상단과 텍스트 시작선을 Y축상으로 정교하게 맞춤 */
  margin-bottom: 6px;
}
.feature-text p {
  font-size: 14px;
  color: var(--text-light);
}

/* 데스크톱 가로선 정렬 규칙 */
@media (min-width: 993px) {
  .feature-col-title {
    min-height: 68px; /* 타이틀 영역의 높이를 맞춰 리스트 시작점을 통일 */
  }
  .feature-item {
    min-height: 92px; /* 각 줄(행)의 최소 높이를 맞춰 수평선(가로) 정렬을 통일 */
  }
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.process-img-wrap {
  width: 100%;
  height: 200px;
  background-color: #ffffff;
  overflow: hidden;
}
.process-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast; /* 개선된 축소 렌더링 */
  image-rendering: high-quality;
}
.process-info {
  padding: 16px;
  background: var(--secondary);
}
.process-label {
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 4px;
}
.process-desc {
  font-size: 13px;
  color: #c6c6c9;
}

/* Procedure Section */
.procedure-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 500;
  color: var(--text-light);
}

.procedure-dark {
  background-color: var(--secondary);
  color: var(--white);
  padding: 60px 0;
}
.procedure-dark-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}
.dark-col-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dark-col-left h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.dark-col-left p {
  color: #c6c6c9;
}
.dark-col-right {
  display: flex;
  gap: 48px;
  justify-content: center;
}
.dark-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dark-icon-item i {
  width: 36px;
  height: 36px;
  color: var(--border);
}
.dark-subtext {
  color: #c6c6c9;
  font-size: 14px;
  margin-top: -24px;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 48px;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.step h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--text-light);
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-top: 20px;
}

/* CTA & Form */
.cta-banner {
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cta-text h2 {
  font-size: 24px;
}
.form-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-dark);
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.file-upload {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
  color: var(--text-light);
  cursor: pointer;
  background: #fdfdfd;
}
.file-upload i {
  margin-bottom: 8px;
}
.form-note {
  font-size: 14px;
  color: var(--text-light);
}

/* FAQ Accordion */
.accordion {
  border-top: 1px solid var(--border);
}
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-family);
  color: var(--text-dark);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-content p {
  padding-bottom: 24px;
  color: var(--text-light);
}
.accordion-item.active .accordion-content {
  max-height: 200px; /* arbitrary max-height for transition */
}
.accordion-item.active .accordion-header i {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 60px 0 20px;
}
.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 20px;
}
.footer-left h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.footer-left p {
  color: #c6c6c9;
  font-size: 14px;
}
.footer-info h4 {
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-right h4 {
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-info p {
  font-size: 14px;
  color: #c6c6c9;
  margin-bottom: 4px;
}
.footer-bottom {
  font-size: 12px;
  color: #64748b;
}
/* JAKA Video Section */
.video-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 비율 유지 */
  height: 0;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* JAKA Lineup Section */
.lineup-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.lineup-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.lineup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.lineup-card.highlight {
  border: 1px solid #f87171;
  background-color: #fff8f8;
}
.lineup-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.lineup-category {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 24px;
}
.lineup-img-wrap {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.lineup-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lumi-img {
  transform: scale(1.3) translateY(20px);
}
.lineup-payload-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
}
.lineup-card.highlight .lineup-payload-badge {
  background: #ffebeb;
}
.badge-icon {
  width: 20px;
  height: 20px;
  color: #64748b;
}
.lineup-card.highlight .badge-icon {
  color: var(--primary);
}
.badge-text-group {
  display: flex;
  flex-direction: column;
}
.badge-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.2;
}
.badge-value {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.3;
}
.badge-value strong {
  color: var(--primary);
}
.lineup-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 24px;
  height: 40px;
}
.lineup-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.lineup-card.highlight .lineup-features {
  border-top: 1px solid #ffd2d2;
}
.lineup-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}
.lineup-feature-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex-shrink: 0;
}
.lineup-card.highlight .lineup-feature-icon {
  color: var(--primary);
}
.lineup-note {
  font-size: 14px;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
  .grid-2-col, .process-grid {
    grid-template-columns: 1fr;
  }
  .lineup-grid {
    grid-template-columns: 1fr 1fr;
  }
  .procedure-dark-container {
    gap: 32px;
  }
  .dark-subtext {
    position: static;
    margin-top: 16px;
  }
  .steps-container {
    flex-direction: column;
    gap: 28px;
  }
  .step {
    flex: none;
    text-align: center;   /* 설명 텍스트까지 확실히 가운데 정렬 */
    max-width: 300px;
    margin: 0 auto;
  }
  .step h4, .step p {
    width: 100%;
  }
  .step-line {
    display: none; /* 모바일에선 떠 있는 연결선 제거 (세로 스택이라 불필요) */
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  /* ── 정렬: 전부 가운데로 통일 ── */
  .hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 340px;
  }
  .intro-header {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    align-items: center;
  }
  .quote-box {
    justify-content: center;
    text-align: center;
    font-size: 20px;
  }
  .feature-col-title {
    justify-content: center;
    text-align: center;
  }

  /* ── 제목 크기 축소 ── */
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .dark-col-left h2 { font-size: 22px; }
  .cta-text h2 { font-size: 20px; }

  /* ── 아이콘/뱃지 줄: 모바일에서 2×2로 감싸기 (글자 쪼개짐 방지) ── */
  .procedure-badges {
    flex-wrap: wrap;
  }
  .dark-col-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  /* ── 기존 규칙 ── */
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .lineup-grid {
    grid-template-columns: 1fr;
  }
  .value-container {
    flex-direction: column;
    gap: 16px;
  }
  .nav {
    display: none; /* simple mobile hide for now */
  }
}

/* ── 좁은 폰 화면 (≤480px): 제목·여백 더 축소 ── */
@media (max-width: 480px) {
  .container, .container-sm { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero-title { font-size: 24px; }
  .section-title { font-size: 21px; }
  .hero-desc, .section-desc { font-size: 15px; }
  .dark-col-left h2 { font-size: 20px; }
  .quote-box { font-size: 18px; }
  .cta-banner { padding: 28px 20px; }
  .cta-text h2 { font-size: 19px; }
  .form-container { padding: 32px 20px; }
  .feature-column { padding: 28px 22px; }
}
