/* NaraAI 디자인 시스템 — Dark Luxury + Champagne Gold */

/* === 변수 === */
:root {
  --bg-page: #121212;
  --bg-dark: #1E1E1E;
  --bg-card: #252525;
  --border: #333333;
  --gold: #D4AF37;
  --gold-tint: rgba(212, 175, 55, 0.1);
  --text-primary: #EDEDED;
  --text-secondary: #A0A0A0;
  --text-tertiary: #757575;
  --text-on-gold: #121212;
  --success: #4ADE80;
  --info: #60A5FA;
}

/* === 리셋 === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* === 헤더 === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text-primary);
}

.btn-gold {
  background: var(--gold);
  color: var(--text-on-gold);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-gold:hover {
  opacity: 0.9;
}

/* === 히어로 === */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 80px 100px;
  gap: 48px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, #1a1500 0%, var(--bg-page) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(201, 169, 98, 0.3);
  background: rgba(201, 169, 98, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  border-radius: 100px;
  box-shadow: 0 0 20px rgba(201, 169, 98, 0.1);
  position: relative;
  z-index: 1;
}

.hero-headlines {
  text-align: center;
}

.hero-headlines h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.hero-headlines h1 span {
  background: linear-gradient(135deg, #fff 0%, #C9A962 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 10px;
}

.hero-sub {
  max-width: 680px;
  text-align: center;
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--text-on-gold);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.2s;
}

.btn-outline:hover {
  border-color: var(--text-tertiary);
}

/* === 분석 입력 영역 (히어로 내 제품 목업 대체) === */
.analyze-box {
  width: 900px;
  max-width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

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

.analyze-box-header span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.analyze-box textarea {
  width: 100%;
  min-height: 260px;
  padding: 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

.analyze-box textarea::placeholder {
  color: var(--text-tertiary);
}

.analyze-box-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
}

.char-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.btn-analyze {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: var(--gold);
  color: var(--text-on-gold);
  border: none;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-analyze:hover {
  opacity: 0.9;
}

.btn-analyze:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === 탭바 === */
.tab-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  width: 900px;
  max-width: 100%;
}

.tab-btn {
  flex: 1;
  padding: 14px 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--gold);
  color: var(--text-on-gold);
  font-weight: 600;
}

.tab-btn:not(.active):hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* === 검색 폼 === */
.search-form {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.search-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-form input[type="text"]:focus {
  border-color: var(--gold);
}

.search-form input[type="text"]::placeholder {
  color: var(--text-tertiary);
}

.search-form select {
  padding: 10px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.search-form select:focus {
  border-color: var(--gold);
}

/* === 공고 리스트 === */
.bid-list {
  max-height: 500px;
  overflow-y: auto;
}

.bid-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

.bid-loading {
  padding: 48px 24px;
  text-align: center;
  color: var(--gold);
  font-size: 14px;
}

.bid-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.bid-item:hover {
  background: var(--gold-tint);
}

.bid-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.bid-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.bid-item-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* — 매칭 점수 뱃지 — */
.bid-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.match-score-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-score-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: -0.02em;
}

.match-score-badge.match-high {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.match-score-badge.match-mid {
  background: rgba(255, 183, 77, 0.15);
  color: #ffa726;
  border: 1px solid rgba(255, 183, 77, 0.3);
}

.match-score-badge.match-low {
  background: rgba(239, 83, 80, 0.12);
  color: #ef5350;
  border: 1px solid rgba(239, 83, 80, 0.25);
}

.match-score-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.match-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.match-tags {
  display: flex;
  gap: 3px;
}

.match-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
}

.bid-item-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bid-item-meta span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.bid-item-meta span strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.bid-item-meta .price {
  color: var(--gold);
  font-weight: 600;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pagination button {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-on-gold);
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.trust-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.trust-logos {
  display: flex;
  gap: 40px;
  align-items: center;
}

.trust-logos span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-tertiary);
}

/* === 피처 카드 === */
.features {
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--text-primary);
}

.section-sub {
  max-width: 540px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.card {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 169, 98, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === How It Works === */
.how-it-works {
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.steps-row {
  display: flex;
  gap: 48px;
  width: 100%;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}

.step-num.filled {
  background: var(--gold);
  color: var(--text-on-gold);
}

.step-num.outlined {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Stats === */
.stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 48px 80px;
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 400;
}

.stat-value.gold {
  color: var(--gold);
}

.stat-value.green {
  color: var(--success);
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* === Pricing === */
.pricing {
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid var(--border);
}

.pricing-row {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 800px;
}

.pricing-card {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.05) 0%, var(--bg-dark) 40%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--text-on-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  letter-spacing: 1px;
}

.pricing-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--text-primary);
}

.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  color: var(--gold);
}

.pricing-price span {
  font-size: 16px;
  color: var(--text-tertiary);
  font-family: 'Manrope', sans-serif;
}

.pricing-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}

.pricing-features li.included {
  color: var(--text-primary);
}

.pricing-features li.excluded {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.pricing-features li.included::before {
  content: "\2713";
  color: var(--gold);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.pricing-features li.excluded::before {
  content: "\2014";
  color: var(--text-tertiary);
  position: absolute;
  left: 0;
}

.pricing-btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 14px 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
  box-sizing: border-box;
}

.pricing-btn.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.pricing-btn.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pricing-btn.btn-gold {
  background: var(--gold);
  color: var(--text-on-gold);
  border: 1px solid var(--gold);
}

.pricing-btn.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}

/* === 업그레이드 모달 === */
.upgrade-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  z-index: 6000;
  align-items: center;
  justify-content: center;
}

.upgrade-overlay.active {
  display: flex;
}

.upgrade-modal {
  background: var(--bg-dark);
  border: 1px solid var(--gold);
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.upgrade-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
}

.upgrade-modal p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.upgrade-modal .usage-badge {
  background: var(--gold-tint);
  border: 1px solid rgba(201, 169, 98, 0.3);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.upgrade-features {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-features li {
  font-size: 14px;
  color: var(--text-primary);
  padding-left: 24px;
  position: relative;
}

.upgrade-features li::before {
  content: "\2713";
  color: var(--gold);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.upgrade-modal .btn-gold {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  text-decoration: none;
  display: block;
}

.upgrade-modal .dismiss {
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  background: none;
  border: none;
}

/* === Final CTA === */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 80px;
  gap: 32px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 400;
  text-align: center;
}

.final-cta p {
  max-width: 580px;
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
}

.final-cta .trust-note {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* === 결과 영역 === */
.result-section {
  display: none;
  padding: 60px 80px;
  border-bottom: 1px solid var(--border);
}

.result-section.active {
  display: block;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.result-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.result-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 24px;
}

.result-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.result-card .field {
  margin-bottom: 10px;
}

.result-card .field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.result-card .field-value {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.result-card .field-value.null {
  color: var(--text-tertiary);
  font-style: italic;
}

.result-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.result-card th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.result-card td {
  font-size: 13px;
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.result-card ul {
  list-style: none;
  padding: 0;
}

.result-card li {
  font-size: 13px;
  color: var(--text-primary);
  padding: 4px 0;
}

.result-card li::before {
  content: "—";
  color: var(--gold);
  margin-right: 8px;
}

.result-json {
  grid-column: 1 / -1;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 24px;
}

.result-json h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 16px;
}

.result-json pre {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-height: 400px;
  overflow-y: auto;
}

/* 로딩 상태 */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text-primary);
}

.loading-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

/* === 푸터 === */
.footer {
  padding: 48px 80px;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand .logo .logo-mark {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.footer-brand .logo .logo-text {
  font-size: 16px;
  letter-spacing: 1px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-secondary);
}

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

.footer-bottom span {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* === 공고 상세 모달 === */
.bid-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.8);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bid-modal-overlay.active {
  display: flex;
}

.bid-modal {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

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

.bid-modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.bid-modal-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.bid-modal-close:hover {
  color: var(--text-primary);
}

.bid-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bid-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bid-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bid-detail-item.full {
  grid-column: 1 / -1;
}

.bid-detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.bid-detail-value {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.bid-detail-value.gold {
  color: var(--gold);
  font-weight: 600;
}

.bid-detail-value.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.bid-detail-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.bid-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
}

.bid-modal-footer .btn-outline {
  padding: 10px 20px;
  font-size: 13px;
}

.bid-modal-footer .btn-gold {
  padding: 10px 20px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 반응형 */
@media (max-width: 900px) {
  .header {
    padding: 16px 24px;
  }

  .hero {
    padding: 60px 24px 48px;
  }

  .hero-headlines h1 {
    font-size: 36px;
  }

  .analyze-box {
    width: 100%;
  }

  .features,
  .how-it-works {
    padding: 48px 24px;
  }

  .card-row,
  .steps-row {
    flex-direction: column;
  }

  .stats {
    padding: 32px 24px;
    flex-wrap: wrap;
    gap: 24px;
  }

  .pricing {
    padding: 48px 24px;
  }

  .pricing-row {
    flex-direction: column;
  }

  .pricing-price {
    font-size: 36px;
  }

  .final-cta {
    padding: 60px 24px;
  }

  .final-cta h2 {
    font-size: 32px;
  }

  .result-section {
    padding: 32px 24px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .bid-modal {
    max-height: 90vh;
  }

  .bid-detail-grid {
    grid-template-columns: 1fr;
  }

  .bid-modal-header h2 {
    font-size: 17px;
  }
}