html {
  scroll-behavior: smooth;
}

body {
  word-break: keep-all;
}

/* 배경 그레인 텍스처 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* CTA 버튼 */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: #c1502e;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  box-shadow: 0 12px 24px -8px rgba(193, 80, 46, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
  background: #a43f22;
  transform: scale(1.02);
}

.cta-button:active {
  transform: scale(0.98);
}

/* 연락 채널: 카카오톡(문의) + 클로즈 베타 테스트 신청 2버튼 */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #faf7f2;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kakao-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fee500;
  color: #3c1e1e;
  flex-shrink: 0;
}

.contact-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.contact-chip:active {
  transform: translateY(0);
}

/* 공감 섹션 카드 */
.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: #211c19;
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pain-card:hover {
  transform: translateY(-4px);
  background: #2a2320;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
}

/* 지원자 사전조사 핵심 지표 */
.survey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.survey-card {
  border: 1px solid rgba(193, 80, 46, 0.2);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 1.75rem;
  box-shadow: 0 18px 36px -28px rgba(26, 23, 20, 0.28);
}

.survey-value {
  display: block;
  margin-bottom: 0.625rem;
  color: #c1502e;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
}

.survey-label {
  color: rgba(26, 23, 20, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
}

.survey-source {
  margin-top: 1.5rem;
  color: rgba(26, 23, 20, 0.5);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 640px) {
  .survey-grid {
    grid-template-columns: 1fr;
  }

  .survey-card {
    padding: 1.5rem;
  }
}

/* 3단계 섹션 */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #c1502e;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.step-visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(250, 247, 242, 0.16);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.step-visual img,
.step-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3단계 섹션 — 흐름도 (박스 + 연결선) */
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(193, 80, 46, 0.3);
  border-radius: 1rem;
  background: #ffffff;
  padding: 28px 24px 30px;
  box-shadow: 0 16px 32px -22px rgba(26, 23, 20, 0.25);
}

.flow-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 16px;
  border-radius: 9999px;
  background: rgba(193, 80, 46, 0.15);
  color: #c1502e;
}

.flow-step-tag {
  display: block;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #c1502e;
  margin: 0 0 10px;
}

.flow-step-name {
  display: block;
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #1a1714;
}

.flow-step-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(26, 23, 20, 0.6);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -34px;
  width: 34px;
  height: 2px;
  background: rgba(193, 80, 46, 0.55);
  transform: translateY(-1px);
}

.flow-caption {
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 46ch;
  margin: 2rem auto 0;
  text-align: center;
  color: rgba(26, 23, 20, 0.65);
}

@media (max-width: 900px) {
  .flow-steps {
    grid-template-columns: 1fr 1fr;
  }
  .flow-step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .flow-step:not(:last-child)::after {
    top: auto;
    bottom: -26px;
    right: auto;
    left: 24px;
    width: 2px;
    height: 26px;
    transform: none;
  }
  .flow-step:nth-child(2)::after {
    display: block;
  }
}

/* Before / After */
.compare-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.compare-before,
.compare-after {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.625rem;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.compare-before {
  color: rgba(250, 247, 242, 0.6);
  background: #211c19;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-before iconify-icon {
  color: rgba(250, 247, 242, 0.35);
}

.compare-after {
  color: #faf7f2;
  background: #2b1811;
  border: 1px solid rgba(193, 80, 46, 0.45);
  font-weight: 500;
}

.compare-after iconify-icon {
  color: #c1502e;
}

@media (max-width: 767px) {
  .compare-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* FAQ */
.faq-row {
  padding: 1.75rem 0;
}

.faq-q {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #1a1714;
}

.faq-a {
  display: block;
  margin-left: 2rem;
  color: rgba(26, 23, 20, 0.65);
  line-height: 1.7;
}

.faq-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5rem;
  border-radius: 9999px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.8em;
  vertical-align: middle;
  background: rgba(193, 80, 46, 0.15);
  color: #c1502e;
}

/* 스크롤 리빌 */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
