/* 한국형 랜딩 1 - 센터 정렬 폼 중심 (Stylec 스타일) */

:root {
  --primary: #4361EE;
  --primary-dark: #3651CE;
  --secondary: #00D4FF;
  --text: #1A1A1A;
  --text-light: #666666;
  --bg: #FFFFFF;
  --bg-light: #F8F9FA;
  --border: #E1E4E8;
  --success: #00C896;
  --danger: #FF4757;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.container-narrow {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
}

/* 헤더 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.logo span {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
}

.phone-link:hover {
  color: var(--primary-dark);
}

.btn-chat {
  padding: 10px 20px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-chat:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* 히어로 섹션 - 센터 정렬 */
.hero-center {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%);
}

.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeUp 0.6s ease 0.1s both;
}

.color-primary {
  color: var(--primary);
}

.hero-desc {
  font-size: 20px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease 0.2s both;
}

/* 신뢰 배지 */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  animation: fadeUp 0.6s ease 0.3s both;
}

.trust-item {
  text-align: center;
}

.trust-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.trust-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}

/* 폼 섹션 */
.form-section {
  padding: 60px 0;
  background: #fff;
}

.form-box {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  animation: fadeUp 0.6s ease 0.4s both;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.form-header p {
  font-size: 16px;
  color: var(--text-light);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.required {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-agree {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.link-privacy {
  border: none;
  background: none;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
}

.btn-submit:hover::before {
  opacity: 1;
  animation: shimmer 1.2s;
}

.form-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 12px;
}

/* 가격 섹션 */
.price-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.section-header-center {
  text-align: center;
  margin-bottom: 48px;
}

.section-header-center h2 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 16px;
}

.section-header-center p {
  font-size: 18px;
  color: var(--text-light);
}

.price-card-main {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--primary);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  position: relative;
}

.price-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 14px;
}

.savings-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 32px 0 24px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: 12px;
}

.compare-item {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
}

.compare-item.before {
  background: rgba(255, 71, 87, 0.1);
}

.compare-item.after {
  background: rgba(0, 200, 150, 0.1);
}

.compare-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.compare-rate {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.compare-item.before .compare-rate {
  color: var(--danger);
}

.compare-item.after .compare-rate {
  color: var(--success);
}

.compare-amount {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}

.compare-arrow {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.savings-highlight {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 18px;
}

.highlight-number {
  color: var(--primary);
  font-weight: 900;
  font-size: 24px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin: 32px 0;
  padding: 0;
}

.price-features li {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.price-features li:last-child {
  border-bottom: none;
}

.btn-price-cta {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-price-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
}

/* 비교표 섹션 */
.compare-section {
  padding: 80px 0;
  background: #fff;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.compare-table th,
.compare-table td {
  padding: 20px;
  text-align: center;
  font-size: 16px;
}

.compare-table thead th {
  background: var(--bg-light);
  font-weight: 800;
  border-bottom: 2px solid var(--border);
}

.compare-table thead th.highlight {
  background: var(--primary);
  color: #fff;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 700;
  text-align: left;
}

.compare-table td.bad {
  color: var(--danger);
}

.compare-table td.good {
  color: var(--success);
  font-weight: 700;
}

/* FAQ 섹션 */
.faq-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item summary {
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

/* CTA 섹션 */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.cta-box {
  text-align: center;
  color: #fff;
}

.cta-box h2 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn-cta-large {
  padding: 20px 48px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.btn-cta-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-contact {
  margin-top: 32px;
  font-size: 16px;
  opacity: 0.9;
}

.cta-contact a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

/* 푸터 */
.footer {
  padding: 48px 0 32px;
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
}

.footer-info {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.footer-details p {
  font-size: 14px;
  line-height: 1.8;
  margin: 4px 0;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* 플로팅 버튼 */
.btn-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  padding: 16px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.4);
  transition: all 0.3s;
}

.btn-floating:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(67, 97, 238, 0.5);
}

/* 모달 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  width: min(600px, calc(100% - 40px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
}

.modal-close {
  border: none;
  background: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-light);
}

.modal-body {
  padding: 24px;
}

.modal-body ul {
  list-style: none;
  padding: 0;
}

.modal-body li {
  padding: 12px 0;
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}

.modal-body li:last-child {
  border-bottom: none;
}

.modal-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.btn-modal-ok {
  padding: 12px 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* 토스트 */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 300;
  display: none;
}

.toast[aria-hidden="false"] {
  display: block;
  animation: slideIn 0.3s ease;
}

.toast-content {
  background: #fff;
  border: 2px solid var(--success);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 320px;
}

.toast-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.toast-content p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* 애니메이션 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

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

  .trust-badges {
    flex-direction: column;
    gap: 24px;
  }

  .form-box {
    padding: 32px 24px;
  }

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

  .section-header-center h2 {
    font-size: 32px;
  }

  .savings-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .compare-arrow {
    transform: rotate(90deg);
  }

  .compare-rate {
    font-size: 28px;
  }

  .compare-table {
    font-size: 14px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 8px;
  }

  .footer-info {
    flex-direction: column;
    gap: 24px;
  }

  .btn-floating {
    right: 16px;
    bottom: 16px;
  }

  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .benefit-card {
    padding: 24px !important;
  }

  .benefit-icon {
    font-size: 32px !important;
  }

  .benefit-title {
    font-size: 16px !important;
  }

  .benefit-text {
    font-size: 13px !important;
  }
}

/* Benefits Grid Styles */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 32px;
  border-radius: 16px;
  border: 2px solid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.benefit-red {
  background: #fff5f5;
  border-color: #ff4757;
}

.benefit-orange {
  background: #fef3c7;
  border-color: #f59e0b;
}

.benefit-green {
  background: #f0fdf4;
  border-color: #16a34a;
}

.benefit-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.benefit-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
}

.benefit-red .benefit-title {
  color: #dc2626;
}

.benefit-orange .benefit-title {
  color: #92400e;
}

.benefit-green .benefit-title {
  color: #15803d;
}

.benefit-text {
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}
