.loan-demo,
.loan-demo * {
  font-family: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  box-sizing: border-box;
}

:root {
  --loan-bg: #f4f6f8;
  --loan-surface: #ffffff;
  --loan-text: #191f28;
  --loan-muted: #6b7684;
  --loan-line: #e5e8eb;
  --loan-blue: #3182f6;
  --loan-blue-deep: #1b64da;
  --loan-soft-blue: rgba(49, 130, 246, 0.08);
  --loan-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  --loan-soft-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.loan-demo {
  position: relative;
  overflow: hidden;
  padding: 140px 20px 160px;
  background:
    radial-gradient(circle at 15% 20%, rgba(49, 130, 246, 0.08) 0%, rgba(49, 130, 246, 0) 28%),
    radial-gradient(circle at 85% 80%, rgba(49, 130, 246, 0.08) 0%, rgba(49, 130, 246, 0) 30%),
    linear-gradient(180deg, #f6f8fb 0%, #eff3f7 100%);
}

.loan-demo__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 72px;
  align-items: center;
}

.loan-demo__copy {
  max-width: 720px;
}


.loan-demo__title {
  margin: 24px 0 0;
  color: var(--loan-text);
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 800;
  word-break: keep-all;
}

.loan-demo__desc {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--loan-muted);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.8;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

/* compact 설명은 모바일 전용 — PC/태블릿에서는 숨김 */
.loan-demo__desc--compact {
  display: none;
}

.loan-demo__points {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.loan-demo__point {
  max-width: 560px;
}

.loan-demo__point strong {
  display: block;
  margin-bottom: 8px;
  color: var(--loan-text);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.loan-demo__point span {
  display: block;
  color: var(--loan-muted);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.02em;
}

.loan-demo__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loan-demo__device-wrap {
  position: relative;
  width: min(100%, 460px);
}

.loan-demo__glow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 72%;
  height: 10%;
  border-radius: 50%;
  background: rgba(25, 31, 40, 0.14);
  filter: blur(28px);
  transform: translateX(-50%);
  z-index: 0;
}

.loan-demo__device {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 0.58 / 1;
  border-radius: 48px;
  padding: 14px;
  background: linear-gradient(180deg, #fdfefe 0%, #f5f7fa 100%);
  box-shadow:
    0 0 0 1px rgba(20, 24, 32, 0.04),
    0 20px 80px rgba(15, 23, 42, 0.18);
}

.loan-demo__device-frame {
  position: absolute;
  inset: 8px;
  border-radius: 42px;
  border: 1px solid rgba(25, 31, 40, 0.06);
  pointer-events: none;
}

.loan-demo__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fbfcfd;
  box-shadow: inset 0 0 0 1px rgba(25, 31, 40, 0.03);
}

.loan-demo__screen::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 34%;
  height: 26px;
  border-radius: 0 0 18px 18px;
  background: #fafbfd;
  transform: translateX(-50%);
  box-shadow: 0 1px 0 rgba(25, 31, 40, 0.04);
  z-index: 3;
}

.loan-demo__screen-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 22px 0;
}

.loan-demo__back {
  position: relative;
  width: 32px;
  height: 32px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: default;
  flex: 0 0 32px;
}

.loan-demo__back span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-left: 3px solid #2b313b;
  border-bottom: 3px solid #2b313b;
  transform: translate(-35%, -50%) rotate(45deg);
  border-radius: 2px;
}

.loan-demo__screen-brand {
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.loan-demo__screen-menu {
  width: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex: 0 0 24px;
}

.loan-demo__screen-menu span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #2b313b;
}

.loan-demo__screen-body {
  padding: 22px 24px 0;
}

.loan-demo__chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
  padding-bottom: 120px;
}

.loan-demo__chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0.28;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    filter 0.45s ease;
  filter: blur(1.5px);
}

.loan-demo__chat-message.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.loan-demo__chat-message--system .loan-demo__chat-bubble {
  background: #f3f6fb;
  border: 1px solid rgba(49, 130, 246, 0.08);
}

.loan-demo__chat-message--user .loan-demo__chat-bubble {
  background: rgba(49, 130, 246, 0.08);
  border: 1px solid rgba(49, 130, 246, 0.10);
}

.loan-demo__chat-badge {
  flex: 0 0 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #3b82f6 0%, #2f75ee 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 24px rgba(49, 130, 246, 0.22);
}

.loan-demo__chat-bubble {
  flex: 1 1 auto;
  padding: 16px 16px 15px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.loan-demo__chat-bubble strong {
  display: block;
  margin-bottom: 6px;
  color: var(--loan-text);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.loan-demo__chat-bubble p {
  margin: 0;
  color: var(--loan-muted);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.loan-demo__bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px 24px 26px;
  background: linear-gradient(180deg, rgba(251, 252, 253, 0) 0%, rgba(251, 252, 253, 0.94) 24%, #fbfcfd 100%);
}

.loan-demo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #3b82f6 0%, #2f75ee 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(49, 130, 246, 0.28);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    opacity 0.28s ease;
}

.loan-demo__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(49, 130, 246, 0.34);
}

.loan-demo__status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.loan-demo__status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b95a1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.loan-demo__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9d1da;
  transition: background 0.3s ease, transform 0.3s ease;
}

.loan-demo__status-item.is-active {
  color: #191f28;
  transform: translateX(2px);
}

.loan-demo__status-item.is-active .loan-demo__status-dot {
  background: var(--loan-blue);
  transform: scale(1.2);
}

@media (max-width: 1100px) {
  .loan-demo__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .loan-demo__copy {
    max-width: 100%;
  }

  .loan-demo__visual {
    align-items: center;
  }

  .loan-demo__status {
    align-items: center;
  }
}

@media (max-width: 767px) {
  .loan-demo {
    /* 상하 패딩 축소 — 64/76 */
    padding: 64px 16px 76px;
  }

  /* 텍스트 영역과 mockup 사이 간격 축소 (1100px 룰의 56px → 32px) */
  .loan-demo__inner {
    gap: 32px;
  }

  .loan-demo__title {
    font-size: 40px;
    line-height: 1.16;
  }

  /* 제목 중간 줄("디오아시스에서") 제거 → 모바일 2줄 compact */
  .loan-demo__title-mid {
    display: none;
  }

  /* 긴 설명 숨기고 compact 버전만 노출 */
  .loan-demo__desc--full {
    display: none;
  }

  .loan-demo__desc--compact {
    display: block;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
  }

  /* 설명 포인트 블록 전체 제거 — "안내문" 톤 제거, 즉시 행동 흐름 */
  .loan-demo__points {
    display: none;
  }

  .loan-demo__device-wrap {
    width: min(100%, 350px);
  }

  .loan-demo__device {
    border-radius: 38px;
    padding: 12px;
  }

  .loan-demo__device-frame {
    inset: 7px;
    border-radius: 32px;
  }

  .loan-demo__screen {
    border-radius: 30px;
  }

  .loan-demo__screen::before {
    top: 12px;
    height: 22px;
  }

  .loan-demo__screen-top {
    padding: 44px 18px 0;
  }

  .loan-demo__screen-brand {
    font-size: 14px;
  }

  .loan-demo__screen-body {
    padding: 18px 18px 0;
  }

  .loan-demo__chat {
    gap: 10px;
    min-height: 380px;
    padding-bottom: 108px;
  }

  .loan-demo__chat-badge {
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 12px;
  }

  .loan-demo__chat-bubble {
    padding: 13px 13px 12px;
    border-radius: 16px;
  }

  .loan-demo__chat-bubble strong {
    font-size: 14px;
  }

  .loan-demo__chat-bubble p {
    font-size: 13px;
    line-height: 1.58;
  }

  .loan-demo__bottom {
    padding: 18px 18px 20px;
  }

  .loan-demo__cta {
    min-height: 54px;
    font-size: 20px;
  }

  .loan-demo__status {
    gap: 8px;
  }

  .loan-demo__status-item {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loan-demo__chat-message,
  .loan-demo__status-item,
  .loan-demo__status-dot,
  .loan-demo__cta {
    transition: none !important;
  }
}