:root {
  --navy: #0B1F3A;
  --navy-deep: #071526;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --gold: #C9A227;
  --gold-soft: #E8D48B;
  --sand: #F5F7FA;
  --ink: #142033;
  --muted: #5B6B7C;
  --line: #D8E0EA;
  --white: #ffffff;
  --success: #059669;
  --danger: #E11D48;
  --shadow: 0 20px 50px rgba(11, 31, 58, 0.12);
  --radius: 18px;
  --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(216,224,234,.8);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  font-weight: 800; letter-spacing: -.02em; font-size: 1.25rem; color: var(--navy);
}
.brand img {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 8px 20px rgba(11,31,58,.2);
}
.nav-links { display: flex; gap: 1.25rem; align-items: center; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px; padding: .85rem 1.35rem;
  font-weight: 700; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--navy), #12365f); color: #fff; box-shadow: 0 12px 28px rgba(11,31,58,.28); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-teal { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #A88416); color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(145deg, var(--navy-deep), #0E3A4C 55%, #0B5C58);
  min-height: clamp(560px, 88vh, 760px);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: .28; mix-blend-mode: soft-light;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -30% auto; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; padding: 5rem 0 4rem; width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.hero-brand {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.04em;
  margin-bottom: 1.2rem;
}
.hero-brand img { width: 64px; height: 64px; border-radius: 18px; }
.hero h1 {
  margin: 0 0 1rem; max-width: 14ch;
  font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.25; letter-spacing: -.03em; font-weight: 800;
}
.hero p { max-width: 36rem; color: rgba(255,255,255,.86); font-size: 1.08rem; margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .7rem; }
.pill {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: .45rem .9rem; border-radius: 999px; font-size: .9rem; backdrop-filter: blur(8px);
}

.section { padding: 5rem 0; }
.section-muted { background: #fff; }
.section-title { margin: 0 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; color: var(--navy); }
.section-sub { margin: 0 0 2.2rem; color: var(--muted); max-width: 40rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }

.feature-card, .step-card, .value-card, .cat-card, .panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-card { overflow: hidden; }
.feature-card img { width: 100%; height: 180px; object-fit: cover; }
.feature-card .body, .step-card, .value-card { padding: 1.35rem; }
.feature-card h3, .step-card h3, .value-card h3 { margin: 0 0 .45rem; color: var(--navy); font-size: 1.1rem; }
.feature-card p, .step-card p, .value-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.step-card { position: relative; padding-top: 1.6rem; }
.step-num {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; font-weight: 800; margin-bottom: .9rem;
}

.cat-card {
  padding: 1.1rem; text-align: center; transition: .2s ease; font-weight: 700; color: var(--navy);
}
.cat-card:hover { transform: translateY(-3px); border-color: #9AD5CF; }
.cat-icon {
  width: 48px; height: 48px; margin: 0 auto .7rem; border-radius: 14px;
  display: grid; place-items: center; background: #E7F7F5; color: var(--teal-dark); font-size: 1.2rem;
}

.trust-band {
  background: linear-gradient(120deg, var(--navy), #134E5A);
  color: #fff; border-radius: 28px; padding: 2.5rem; box-shadow: var(--shadow);
}
.trust-band h2 { margin-top: 0; letter-spacing: -.03em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stat { background: rgba(255,255,255,.08); border-radius: 16px; padding: 1rem 1.1rem; }
.stat strong { display: block; font-size: 1.5rem; color: var(--gold-soft); }

.review-card {
  background: #fff; border-radius: var(--radius); padding: 1.3rem; border: 1px solid var(--line);
}
.stars { color: var(--gold); letter-spacing: .1em; margin-bottom: .4rem; }

.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 3rem 0 2rem; margin-top: 2rem;
}
.site-footer a { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-meta { margin-top: 1.5rem; font-size: .9rem; color: rgba(255,255,255,.55); }

.panel { padding: 1.5rem; }
.page-hero {
  padding: 2.5rem 0 1rem;
}
.page-hero h1 { margin: 0; color: var(--navy); letter-spacing: -.03em; }

.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; gap: .4rem; }
.form-row label { font-weight: 700; color: var(--navy); font-size: .92rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid rgba(13,148,136,.25); border-color: var(--teal);
}
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .5rem; }
.help { color: var(--muted); font-size: .88rem; }

.alert {
  padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600;
}
.alert-success { background: #ECFDF5; color: #065F46; }
.alert-error { background: #FFF1F2; color: #9F1239; }
.alert-info { background: #EFF6FF; color: #1E3A8A; }

.table-wrap { overflow: auto; }
table.data {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden;
}
table.data th, table.data td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .93rem; }
table.data th { background: #F8FAFC; color: var(--muted); font-weight: 700; }

.badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .65rem;
  font-size: .78rem; font-weight: 800;
}
.badge-slate { background: #E2E8F0; color: #334155; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-sky { background: #E0F2FE; color: #075985; }
.badge-indigo { background: #E0E7FF; color: #3730A3; }
.badge-teal { background: #CCFBF1; color: #0F766E; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-rose { background: #FFE4E6; color: #9F1239; }

.wizard-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.wizard-steps span {
  padding: .45rem .8rem; border-radius: 999px; background: #EEF2F7; color: var(--muted); font-size: .85rem; font-weight: 700;
}
.wizard-steps span.active { background: var(--navy); color: #fff; }

.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side {
  background: linear-gradient(180deg, var(--navy-deep), #0C2C3A); color: #fff; padding: 1.4rem 1rem;
}
.admin-side .brand { color: #fff; margin-bottom: 1.5rem; }
.admin-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem .9rem; border-radius: 12px; color: rgba(255,255,255,.78); margin-bottom: .25rem; font-weight: 600;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 1.5rem; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border-radius: 16px; padding: 1.1rem; border: 1px solid var(--line); }
.stat-card .label { color: var(--muted); font-size: .85rem; font-weight: 700; }
.stat-card .value { font-size: 1.6rem; font-weight: 900; color: var(--navy); margin-top: .2rem; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.2rem; border-left: 2px solid var(--line); }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: .35rem; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.timeline strong { display: block; color: var(--navy); }
.timeline small { color: var(--muted); }

.fade-up { animation: fadeUp .7s ease both; }
.fade-up-delay-1 { animation-delay: .1s; }
.fade-up-delay-2 { animation-delay: .2s; }
.fade-up-delay-3 { animation-delay: .3s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .grid-4, .grid-3, .grid-cats, .stats, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: sticky; top: 0; z-index: 20; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .grid-cats, .stats, .stat-cards { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 3.5rem; }
}
