/* =============================================
   RNCON Medical Business Architect - Global Styles
   ============================================= */

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.1); }
}

.animate-fade-in { animation: fadeIn 1s ease forwards; }
.animate-slide-up { animation: slideUp 1s ease forwards; }
.animate-fade-in-delay { animation: fadeIn 1s ease 0.4s both; }
.animate-slide-up-delay { animation: slideUp 1s ease 0.6s both; }

/* ---- Hero ---- */
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(200, 169, 110, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 169, 110, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-glow { animation: glow-pulse 6s ease-in-out infinite; }
.hero-glow2 { animation: glow-pulse 8s ease-in-out 2s infinite; }

/* ---- Gradient Text ---- */
.text-gradient-gold {
  background: linear-gradient(135deg, #c8a96e, #f0d080, #c8a96e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- CTA Buttons ---- */
.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #c8a96e;
  color: #1a1a2e;
  padding: 0.85rem 2.2rem;
  border-radius: 0.375rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.3s;
  border: 2px solid #c8a96e;
  cursor: pointer;
}
.cta-primary-btn:hover {
  background-color: #e8d5a3;
  border-color: #e8d5a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 169, 110, 0.35);
}
.cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #c8a96e;
  padding: 0.85rem 2.2rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(200, 169, 110, 0.5);
  transition: all 0.3s;
  cursor: pointer;
}
.cta-secondary-btn:hover {
  background-color: rgba(200, 169, 110, 0.1);
  border-color: #c8a96e;
  transform: translateY(-2px);
}

/* ---- Ticker ---- */
.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker-content {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

/* ---- Tag Badge ---- */
.tag-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.3);
  color: #e8d5a3;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---- Takeaway Cards ---- */
.takeaway-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.8), rgba(10,10,26,0.9));
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: default;
}
.takeaway-card:hover {
  border-color: rgba(200,169,110,0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.takeaway-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: rgba(200,169,110,0.3);
  flex-shrink: 0;
  line-height: 1;
  min-width: 2.5rem;
}
.stat-badge {
  display: inline-block;
  background: rgba(200,169,110,0.15);
  color: #c8a96e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(200,169,110,0.3);
}

/* ---- Roadmap ---- */
.roadmap-item { margin-bottom: 0; }
.roadmap-card-left, .roadmap-card-right {
  background: linear-gradient(135deg, rgba(22,33,62,0.9), rgba(10,10,26,0.95));
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s;
}
.roadmap-card-left:hover, .roadmap-card-right:hover {
  border-color: rgba(200,169,110,0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.shadow-glow {
  box-shadow: 0 0 20px rgba(200,169,110,0.5), 0 0 40px rgba(200,169,110,0.2);
}
.stage-badge {
  display: inline-block;
  background: rgba(200,169,110,0.2);
  color: #c8a96e;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(200,169,110,0.3);
}
.stage-badge-pre {
  display: inline-block;
  background: rgba(107,114,128,0.2);
  color: #9ca3af;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(107,114,128,0.3);
}
.mini-tag {
  display: inline-block;
  background: rgba(200,169,110,0.1);
  color: #c8a96e;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(200,169,110,0.2);
}

/* ---- Speaker ---- */
.speaker-main-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.9), rgba(10,10,26,0.95));
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
}
.speaker-stat {
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 0.75rem;
}
.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(22,33,62,0.5);
  border: 1px solid rgba(200,169,110,0.1);
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.expertise-item:hover {
  border-color: rgba(200,169,110,0.4);
  background: rgba(22,33,62,0.8);
}
.expertise-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(200,169,110,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vision-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.6), rgba(10,10,26,0.8));
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 1.5rem;
  padding: 3rem;
}

/* ---- Market Stats ---- */
.market-stat-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.8), rgba(10,10,26,0.9));
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}
.market-stat-card:hover {
  border-color: rgba(200,169,110,0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.trend-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.8), rgba(10,10,26,0.9));
  border: 1px solid rgba(200,169,110,0.1);
  border-radius: 1rem;
  padding: 1.75rem;
}
.danger-trend { border-color: rgba(239,68,68,0.2); }
.positive-trend { border-color: rgba(34,197,94,0.2); }

/* ---- Trap Cards ---- */
.trap-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.3s;
}
.trap-card:hover {
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.05);
}

/* ---- Strategy Tabs ---- */
.strategy-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(200,169,110,0.25);
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.strategy-tab:hover {
  border-color: rgba(200,169,110,0.5);
  color: #c8a96e;
}
.strategy-tab.active {
  background: rgba(200,169,110,0.2);
  border-color: #c8a96e;
  color: #c8a96e;
}
.strategy-content {
  background: linear-gradient(135deg, rgba(22,33,62,0.5), rgba(10,10,26,0.7));
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 1.25rem;
  padding: 2rem;
}

/* ---- Cost items ---- */
.cost-item { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.progress-bar {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.progress-fill {
  background: linear-gradient(90deg, #c8a96e, #f0d080);
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1.5s ease-out;
}

/* ---- Tier Cards ---- */
.tier-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.8), rgba(10,10,26,0.9));
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.3s;
}
.tier-card:hover { transform: translateY(-4px); }
.tier-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.tier-feature {
  font-size: 0.78rem;
  color: #9ca3af;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.accent-feature { color: #c8a96e !important; font-weight: 600; }

/* ---- Global Cards ---- */
.global-card { transition: all 0.3s; }
.global-card:hover { transform: translateY(-4px); }

/* ---- Asset Phase Cards ---- */
.asset-phase-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.8), rgba(10,10,26,0.9));
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.3s;
}
.asset-phase-card:hover {
  border-color: rgba(200,169,110,0.5);
  transform: translateY(-4px);
}

/* ---- Target & Benefit cards ---- */
.target-card, .benefit-card {
  background: rgba(22,33,62,0.5);
  border: 1px solid rgba(200,169,110,0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.3s;
}
.target-card:hover, .benefit-card:hover {
  border-color: rgba(200,169,110,0.3);
  background: rgba(22,33,62,0.8);
}

/* ---- Schedule ---- */
.schedule-info-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.8), rgba(10,10,26,0.9));
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s;
}
.schedule-info-card:hover { border-color: rgba(200,169,110,0.4); }

/* ---- Register Card ---- */
.register-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.95), rgba(10,10,26,0.98));
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

/* ---- Form Elements ---- */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s;
  outline: none;
}
.form-input:focus {
  border-color: #c8a96e;
  background: rgba(200,169,110,0.08);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.1);
}
.form-input::placeholder { color: #6b7280; }
.form-input option { background: #1a1a2e; }

.radio-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: #9ca3af;
  transition: all 0.3s;
  text-align: center;
}
.radio-option:hover {
  border-color: rgba(200,169,110,0.5);
  color: #c8a96e;
}
.radio-option.selected {
  background: rgba(200,169,110,0.2);
  border-color: #c8a96e;
  color: #c8a96e;
  font-weight: 600;
}

/* ---- Reveal Animation ---- */
.reveal-hidden { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.revealed { opacity: 1; transform: translateY(0); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: rgba(200,169,110,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c8a96e; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .strategy-content { padding: 1.25rem; }
  .roadmap-card-left, .roadmap-card-right {
    margin-bottom: 0.5rem;
  }
  .speaker-main-card { padding: 1.75rem; }
  .register-card { padding: 1.75rem; }
}

/* ════════════════════════════════════════════════
   READABILITY BOOST — 메인 페이지 가독성 전반 개선
   ════════════════════════════════════════════════ */

/* 인라인 font-size 10~12px 오버라이드 — 최소 13px 보장 */
[style*="font-size:10px"],
[style*="font-size: 10px"] { font-size: 12px !important; }

[style*="font-size:11px"],
[style*="font-size: 11px"] { font-size: 13px !important; }

[style*="font-size:12px"],
[style*="font-size: 12px"] { font-size: 13.5px !important; }

/* 배지·태그류는 약간 작아도 OK — 단 10px 미만은 방지 */
.stat-badge,
.stage-badge,
.stage-badge-pre,
.mini-tag,
.tier-label { font-size: 0.72rem !important; }

/* 섹션 제목 여백 확보 */
h2 { margin-bottom: 0.6rem; }
h3 { margin-bottom: 0.4rem; }

/* 카드 내부 본문 최소 줄간격 */
.takeaway-card p,
.roadmap-card-left p,
.roadmap-card-right p,
.market-stat-card p,
.trend-card p,
.tier-card p,
.expertise-item p {
  line-height: 1.8;
  font-size: 0.95rem;
}

/* 폼 입력 가독성 */
.form-input { font-size: 0.95rem !important; padding: 0.9rem 1.1rem !important; }

/* 메인 컨테이너 최대 너비 여유 — 콘텐츠 숨 쉬는 공간 확보 */
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 66rem; }
.max-w-4xl { max-width: 58rem; }

/* 마켓 통계 카드 숫자 강조 */
.market-stat-card .text-3xl,
.market-stat-card .text-4xl { letter-spacing: -0.02em; }

/* 스피커 섹션 */
.speaker-stat p { font-size: 0.88rem; line-height: 1.7; }

/* 전략 탭 */
.strategy-tab { font-size: 0.88rem !important; padding: 0.65rem 1.3rem !important; }

/* 라디오·체크 옵션 */
.radio-option { font-size: 0.88rem !important; padding: 0.75rem 0.9rem !important; }

/* CTA 버튼 */
.cta-primary-btn,
.cta-secondary-btn { font-size: 1.0rem !important; padding: 0.95rem 2.4rem !important; }

/* 섹션 간격 */
@media (min-width: 1024px) {
  section.py-16 { padding-top: 5rem; padding-bottom: 5rem; }
  section.py-20 { padding-top: 6rem; padding-bottom: 6rem; }
}

/* ════════════════════════════════════════════════
   메인 페이지 — 추가 글자 크기 개선
   ════════════════════════════════════════════════ */

/* 네비게이션 링크 */
.nav-link { font-size: 0.95rem !important; }

/* 공지 바 텍스트 */
#top-notice-bar span { font-size: 0.85rem !important; }

/* 섹션 레이블 (text-sm uppercase) */
p.text-accent { font-size: 0.92rem; }

/* 카드 설명 텍스트 */
p.text-gray-400 { font-size: 0.95rem; line-height: 1.85; }

/* 카드 및 콘텐츠 */
.takeaway-card p { font-size: 1rem !important; line-height: 1.85; }
.takeaway-card h3 { font-size: 1.1rem !important; }

/* 마켓 통계 */
.market-stat-card h3 { font-size: 1.05rem !important; }
.market-stat-card p { font-size: 0.95rem !important; }

/* 전문가 소개 */
.expertise-item p { font-size: 0.95rem !important; }

/* tier feature 텍스트 */
.tier-feature { font-size: 0.88rem !important; }
.tier-label { font-size: 0.75rem !important; }

/* 탭 콘텐츠 */
.strategy-content p { font-size: 0.95rem !important; line-height: 1.85; }

/* 로드맵 카드 텍스트 */
.roadmap-card-left p,
.roadmap-card-right p { font-size: 0.95rem !important; }

/* 스케줄/장소 카드 */
.schedule-info-card p { font-size: 0.95rem !important; }

/* 등록 카드 */
.register-card p { font-size: 0.95rem !important; }

/* ════════════════════════════════════════════════
   진단 페이지 (/diagnosis) — 인라인 작은 폰트 오버라이드
   ════════════════════════════════════════════════ */

/* 진단 페이지 body 기본 폰트 크기 설정 (17px 기준) */
body .section-tip { font-size: 0.92rem !important; }

/* 진단 스텝 내 설명 텍스트 — 최소 0.85rem 보장 */
[style*="font-size:11px;color:#888"],
[style*="font-size:12px;color:#666"],
[style*="font-size:12px;color:#888"],
[style*="font-size:13px;color:#666"],
[style*="font-size:11px;color:#94a3b8"],
[style*="font-size:11px;color:#64748b"] {
  font-size: 0.82rem !important;
}

/* 진단 스텝 핵심 힌트 텍스트 */
[style*="font-size:12px;color:#666;margin-bottom:8px"],
[style*="font-size:12px;color:#666;margin-bottom:6px"] {
  font-size: 0.88rem !important;
}

/* FRB 자가진단 제목 */
[style*="font-size:13px;font-weight:800;color:#1a1a2e"] {
  font-size: 1rem !important;
}

/* 제출 페이지 안내 */
[style*="font-size:13px;color:#666"] {
  font-size: 0.9rem !important;
}

/* 가이드북 안내 텍스트 */
[style*="font-size:12px;color:#6b7280;margin-bottom:12px"] {
  font-size: 0.88rem !important;
}

/* 어드민 테이블 헤더 */
[style*="font-size:11px;color:#64748b;font-weight:600"] {
  font-size: 0.78rem !important;
}

/* 어드민 테이블 셀 */
[style*="font-size:12px;color:#888"],
[style*="font-size:13px;color:#222"],
[style*="font-size:13px;font-weight:700"] {
  font-size: 0.88rem !important;
}
