/* Re:Born Medical AI — 랜딩 (디자인 가이드 + B2C) */
:root {
  --brand-primary: #0056d2;
  --brand-bg: #f8fafc;
  --brand-text: #334155;
  --brand-muted: #64748b;
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #0056d2 100%);
  --vision-gradient: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  --reveal-duration: 0.65s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--brand-text);
  overflow-x: hidden;
  background: var(--brand-bg);
}

h1,
h2,
h3,
h4,
.display-5 {
  font-family: 'Noto Sans KR', sans-serif;
}

/* 네비게이션 */
#mainNav {
  background: transparent;
  transition: background-color 0.35s var(--reveal-ease), box-shadow 0.35s ease;
}

#mainNav.navbar-scrolled {
  background-color: rgba(15, 23, 42, 0.94);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

#mainNav .navbar-brand {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

#mainNav .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92) !important;
  transition: color 0.2s ease, opacity 0.2s ease;
  position: relative;
  padding-bottom: 0.25rem !important;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.25s var(--reveal-ease);
  border-radius: 2px;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.nav-link-active::after {
  transform: scaleX(1);
}

#mainNav .nav-link.nav-link-active {
  color: #fff !important;
}

#mainNav .navbar-toggler {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero */
.hero {
  position: relative;
  background-color: #0f172a;
  background-image:
    linear-gradient(
      115deg,
      rgba(15, 23, 42, 0.82) 0%,
      rgba(0, 86, 210, 0.35) 50%,
      rgba(15, 23, 42, 0.55) 100%
    ),
    url('../../images/hero-medical-ai-keyvisual.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  letter-spacing: -0.03em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 6px 32px rgba(0, 0, 0, 0.35);
}

.hero .lead {
  font-weight: 400;
  letter-spacing: -0.02em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero .btn-brand {
  background: var(--brand-primary);
  border: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero .btn-brand:hover {
  background: #0046b0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 86, 210, 0.35);
}

.hero .btn-outline-light {
  border-width: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero .btn-outline-light:hover {
  transform: translateY(-2px);
}

/* 스크롤 등장 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 카드 */
.card-elevated {
  border: 1px solid rgba(0, 86, 210, 0.08);
  transition:
    transform 0.3s var(--reveal-ease),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card-elevated:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(0, 86, 210, 0.2);
}

.icon-round {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

/* 여정 단계 */
.journey-step {
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--reveal-ease);
  text-align: left;
}

.journey-step:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.journey-step-active {
  border-color: var(--brand-primary) !important;
  background: rgba(0, 86, 210, 0.06) !important;
  transform: scale(1.02);
}

.journey-connector {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-primary), #38bdf8);
  opacity: 0.35;
  margin: 0.5rem 0 1.5rem;
}

/* 탭 (나를 위한 기능) */
.nav-pills-brand .nav-link {
  color: var(--brand-text);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-pills-brand .nav-link.active {
  background: var(--brand-primary) !important;
  color: #fff !important;
}

.tab-pane.fade {
  transition: opacity 0.25s ease;
}

/* FAQ */
.accordion-button:not(.collapsed) {
  background: rgba(0, 86, 210, 0.08);
  color: var(--brand-text);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 210, 0.2);
}

.faq-answer {
  line-height: 1.75;
  font-size: 0.95rem;
}

.faq-answer p:last-of-type {
  margin-bottom: 0;
}

/* 데이터 막대 */
.stat-bar {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.stat-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand-primary);
  width: 0;
  transition: width 1s var(--reveal-ease);
}

.reveal-visible .stat-bar > span {
  width: var(--w, 0%);
}

/* 비전 */
.vision-section {
  background: var(--vision-gradient);
}

.vision-quote {
  line-height: 1.65;
  letter-spacing: -0.02em;
}

/* 섹션 제목 */
section .section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

section h2 {
  color: #0f172a;
  letter-spacing: -0.03em;
}

section .section-lead {
  color: var(--brand-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* 푸터 */
footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-sub {
    font-size: 1.35rem !important;
  }
}

@media (max-width: 991.98px) {
  .vision-quote {
    font-size: 1.35rem !important;
  }

  #mainNav .nav-link::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .hero-sub {
    font-size: 1.05rem !important;
  }

  .journey-step-active {
    transform: none;
  }
}
