:root {
  --navy: #16324f;
  --navy-dark: #0e2237;
  --gold: #d9a441;
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #22303e;
  --muted: #6b7a89;
  --line: #e3e9ef;
  --ok: #2e7d52;
  --warn: #b3541e;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* Header */
header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 14px; font-size: 0.9rem; margin-left: auto; flex-wrap: wrap; }
.nav-links a { opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.lang-select {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}
.lang-select option { color: var(--text); background: #fff; }
[dir="rtl"] .field label, [dir="rtl"] .card, [dir="rtl"] .notice { text-align: right; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 64px 20px 72px;
  text-align: center;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { margin-top: 14px; opacity: 0.85; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .cta-row { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-navy { background: var(--navy); color: #fff; }

/* Layout */
main { max-width: 1080px; margin: 0 auto; padding: 48px 20px 80px; }
section + section { margin-top: 56px; }
h2.section-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
p.section-sub { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--muted); }
.card .card-cta { margin-top: 16px; display: inline-block; color: var(--navy); font-weight: 700; font-size: 0.9rem; }
.card .card-cta::after { content: ' →'; }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }

/* Pipeline */
.pipeline { display: flex; gap: 0; flex-wrap: wrap; margin-top: 20px; }
.pipeline .step {
  flex: 1;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px 18px;
  position: relative;
}
.pipeline .step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pipeline .step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.pipeline .step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 700;
  margin-bottom: 10px;
}
.pipeline .step h4 { font-size: 0.95rem; margin-bottom: 4px; }
.pipeline .step p { font-size: 0.82rem; color: var(--muted); }

/* Forms */
.form-wrap { max-width: 680px; margin: 0 auto; }
form.reg-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.field label .req { color: var(--warn); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.type-toggle { display: flex; gap: 10px; margin-bottom: 24px; }
.type-toggle label {
  flex: 1;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
}
.type-toggle input { display: none; }
.type-toggle input:checked + span { color: var(--navy); }
.type-toggle label:has(input:checked) { border-color: var(--navy); background: #eef4fa; }

.notice {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: none;
}
.notice.show { display: block; }
.notice-warn { background: #fdf3ec; border: 1px solid #ecd0b8; color: var(--warn); }
.notice-info { background: #edf5f0; border: 1px solid #cfe3d7; color: var(--ok); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 22px 0; }
.consent input { margin-top: 4px; }

.hidden { display: none !important; }

/* Partners page */
.partner-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.partner-table th, .partner-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.partner-table th { background: var(--navy); color: #fff; font-size: 0.85rem; }
.partner-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table-scroll-y { max-height: 460px; overflow-y: auto; }
.table-scroll-y .partner-table th { position: sticky; top: 0; z-index: 1; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 24px; }
.stat {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.stat .n { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.stat .l { font-size: 0.8rem; opacity: 0.8; margin-top: 2px; }

/* Footer */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 40px 20px;
  font-size: 0.85rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer strong { color: #fff; }
footer a { color: var(--gold); }

.badge {
  display: inline-block;
  background: #eef4fa;
  color: var(--navy);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 6px;
  margin-bottom: 6px;
}
