/* ===== Design tokens ===== */
:root {
  --navy: #0b1160;
  --navy-2: #141a7a;
  --teal: #2457ff;        /* 브랜드 블루 (로고) */
  --teal-dark: #1a3fd1;
  --violet: #8a2bff;      /* 브랜드 바이올렛 (로고) */
  --mint: #eef1ff;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f6f9fb;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(11, 37, 69, 0.08);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; color: var(--navy); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 2.5rem); margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: .2s;
  font-family: inherit; font-size: 1rem;
}
.btn-primary { background: linear-gradient(90deg, var(--teal), var(--violet)); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; background: var(--teal); color: #fff; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 500; color: var(--navy); white-space: nowrap; flex-shrink: 0; }
.logo-img { width: 40px; height: 40px; display: block; }
.logo-mp { background: linear-gradient(90deg, #1e5bff, #8a2bff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--teal); }
.lang-switch { display: flex; gap: .2rem; }
.lang-switch button {
  border: 1px solid var(--line); background: #fff; padding: .25rem .55rem; border-radius: 6px;
  font-size: .78rem; cursor: pointer; color: var(--muted); font-family: inherit;
}
.lang-switch button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px auto; width: 22px; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(138,43,255,.55), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(36,87,255,.45), transparent 50%),
    linear-gradient(135deg, #070b3f 0%, var(--navy) 55%, #1c2a9e 100%);
  color: #fff; padding: 6.5rem 0 5rem;
}
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-block; background: rgba(255,255,255,.12); padding: .3rem .9rem;
  border-radius: 999px; font-size: .85rem; letter-spacing: .04em; margin-bottom: 1.2rem;
}
.lead { font-size: 1.15rem; opacity: .9; max-width: 620px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 3rem; }
.hero-stats {
  list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 2rem;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; font-weight: 900; color: #c9b3ff; }
.hero-stats span { font-size: .85rem; opacity: .8; }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2 { color: #fff; }
.section-label {
  color: var(--teal); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .8rem; margin-bottom: .4rem;
}
.section-desc { color: var(--muted); max-width: 640px; margin-bottom: 2.5rem; }
.section-dark .section-desc, .section-dark p { color: rgba(255,255,255,.85); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }

/* About */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900;
}
.about-card {
  background: var(--mint); border-radius: var(--radius); padding: 2.2rem;
  border-left: 5px solid var(--teal);
}
.about-card h3 { color: var(--teal-dark); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 1.2rem; }
.about-card h3:first-child { margin-top: 0; }
.about-card p { font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags span { background: #fff; border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; font-weight: 500; color: var(--navy); }

/* Grid & cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,37,69,.13); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Fields */
.field {
  background: var(--bg-alt); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center;
  font-weight: 500; color: var(--navy); border: 1px solid var(--line);
}
.field span { display: block; font-size: 1.8rem; margin-bottom: .4rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem; border-top: 4px solid var(--teal); box-shadow: var(--shadow); }
.step-no { display: block; font-weight: 900; color: var(--teal); font-size: 1.4rem; margin-bottom: .4rem; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Why */
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.why-list li { padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--teal); color: var(--muted); }
.why-list strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: .3rem; }

/* Official links */
.hotlines {
  list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.hotlines li {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.3rem;
  display: flex; flex-direction: column; gap: .1rem;
}
.hotlines strong { font-size: 1.6rem; font-weight: 900; color: #c9b3ff; letter-spacing: .02em; }
.hotlines span { font-size: .85rem; opacity: .85; }
.link-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.link-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.link-group h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .2rem; }
.link-group-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.link-card {
  display: grid; gap: .15rem; padding: .9rem 1rem; border-radius: 10px; border: 1px solid var(--line);
  margin-bottom: .6rem; position: relative; transition: .15s; background: var(--bg-alt);
}
.link-card:last-child { margin-bottom: 0; }
.link-card::after { content: "↗"; position: absolute; right: 1rem; top: .9rem; color: var(--teal); font-weight: 700; }
.link-card:hover { border-color: var(--teal); background: var(--mint); }
.link-name { font-weight: 700; color: var(--navy); padding-right: 1.5rem; }
.link-org { font-size: .8rem; color: var(--teal-dark); font-weight: 500; }
.link-desc { font-size: .88rem; color: var(--muted); }
.link-note { margin: 1.5rem 0 0; font-size: .85rem; color: var(--muted); }

/* Contact */
.contact-info { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .95rem; background: #fbfcfd;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.consent { display: flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; }
.consent input { width: auto; }
.consent-detail { font-size: .85rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; }
.consent-detail summary { cursor: pointer; font-weight: 500; color: var(--navy); }
.consent-detail ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.consent-detail li { margin-bottom: .2rem; }
.consent-detail a { color: var(--teal-dark); text-decoration: underline; }
.form-note { margin: 0; font-size: .9rem; color: var(--teal-dark); min-height: 1.2em; }

/* Floating messenger buttons */
.chat-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }
.chat-btn {
  display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem;
  padding: .7rem 1.1rem .7rem .9rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s;
}
.chat-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.chat-btn.whatsapp { background: #25D366; color: #fff; }
.chat-btn.kakao { background: #FEE500; color: #191919; }
@media (max-width: 480px) { .chat-btn span { display: none; } .chat-btn { padding: .8rem; } }

/* Footer */
.site-footer { background: #060a3a; color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.footer-legal { line-height: 1.8; }
.footer-links { display: flex; gap: 1.4rem; align-items: flex-start; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; margin: 2rem 0 0; opacity: .6; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hotlines { grid-template-columns: repeat(2, 1fr); }
  .link-groups { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 1.2rem 1.5rem; gap: 1rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .lang-switch { margin-left: auto; }
  .logo { font-size: 1rem; }
  .header-inner { gap: .8rem; }
  .nav-toggle { display: block; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .section { padding: 3.8rem 0; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hotlines { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lang-switch { display: none; }
  .nav-toggle { margin-left: auto; }
}
