/* ===== Tokens ===== */
:root {
  --navy: #0b1e33;
  --navy-2: #12304f;
  --blue: #2f6bff;
  --blue-dark: #2453cc;
  --cyan: #2ad3c0;
  --sky: #2aa8e0;
  --ink: #1b2634;
  --muted: #64748c;
  --line: #e5eaf2;
  --bg: #f3f6fb;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(11,30,51,.05), 0 10px 28px rgba(11,30,51,.06);
  --shadow-lg: 0 18px 44px rgba(11,30,51,.14);
  --radius: 16px;
  --side-w: 256px;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --grad: linear-gradient(120deg, var(--cyan), var(--sky) 50%, var(--blue));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Noto Sans KR", system-ui, sans-serif; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(47,107,255,.18); }

.admin { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(185deg, #0d2440 0%, var(--navy) 45%, #081525 100%);
  color: #fff; padding: 22px 16px; z-index: 40; }
.sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 110% -8%, rgba(42,211,192,.18), transparent 65%); }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 24px; position: relative; }
.logo { width: 40px; height: 40px; flex: 0 0 auto; filter: drop-shadow(0 3px 10px rgba(42,211,192,.5)); }
.logo svg, .logo img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.28rem; letter-spacing: .02em; }
.brand-text span { font-size: .66rem; color: #7fd9d0; letter-spacing: .18em; text-transform: uppercase; }

.side-nav { display: flex; flex-direction: column; gap: 5px; flex: 1; position: relative; }
.nav-section { font-size: .64rem; letter-spacing: .22em; color: #5f7fa3; margin: 10px 12px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: transparent; border: 0; color: #b9cadd; font-size: .95rem; font-weight: 500;
  padding: 12px 14px; border-radius: 12px; transition: .18s; position: relative; }
.nav-item .ni { font-size: 1.05rem; width: 20px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.nav-item.active { background: linear-gradient(100deg, rgba(47,107,255,.9), rgba(42,168,224,.35));
  color: #fff; font-weight: 700; box-shadow: 0 6px 18px rgba(47,107,255,.35); }
.nav-item.active::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px;
  width: 4px; background: var(--cyan); border-radius: 0 3px 3px 0; }

.side-foot { margin-top: auto; position: relative; }
.side-cta { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 16px; backdrop-filter: blur(4px); }
.side-cta strong { font-size: .94rem; display: block; margin-bottom: 5px; }
.side-cta p { font-size: .78rem; color: #9db8d2; margin-bottom: 12px; line-height: 1.55; }
.btn-cta { width: 100%; background: var(--grad); color: #06263a; border: 0; font-weight: 700;
  padding: 11px; border-radius: 10px; font-size: .88rem; transition: .18s; }
.btn-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.backdrop { display: none; }

/* ===== Main ===== */
.main { display: flex; flex-direction: column; min-width: 0; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; height: 70px; padding: 0 28px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-left { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--ink); }
.page-meta h1 { font-size: 1.3rem; font-weight: 900; color: var(--navy); letter-spacing: -.02em; }
.breadcrumb { font-size: .78rem; color: var(--muted); }
.top-right { display: flex; align-items: center; gap: 10px; }
.btn-ghost { background: var(--bg); border: 1px solid var(--line); color: var(--navy);
  font-weight: 500; font-size: .84rem; padding: 10px 14px; border-radius: 11px; transition: .15s; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-top { background: var(--navy); color: #fff; font-weight: 700; font-size: .86rem;
  padding: 10px 16px; border-radius: 11px; transition: .15s; }
.btn-top:hover { background: var(--navy-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #06263a; font-weight: 900; }

/* Content */
.content { padding: 28px; flex: 1; max-width: 1240px; width: 100%; margin: 0 auto; }
.view { display: none; animation: fadeUp .35s ease; }
.view.active { display: flex; flex-direction: column; gap: 22px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* card base */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow); }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.card-title em { font-style: normal; font-weight: 400; font-size: .8rem; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* hero card */
.hero-card { position: relative; overflow: hidden; border-radius: 20px;
  background: linear-gradient(130deg, #0d2440, var(--navy-2) 60%, #16436e); color: #fff;
  padding: 44px 40px; display: flex; align-items: center; justify-content: space-between; }
.hero-card::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 280px at 90% -25%, rgba(42,211,192,.4), transparent 62%),
    radial-gradient(420px 260px at 70% 130%, rgba(47,107,255,.35), transparent 60%); }
.hero-card::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(70% 90% at 70% 30%, #000, transparent); }
.hero-copy { position: relative; max-width: 62%; z-index: 1; }
.kicker { color: var(--cyan); letter-spacing: .22em; font-size: .74rem; font-weight: 700; font-family: var(--mono); }
.hero-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 900; line-height: 1.22; margin: 14px 0; letter-spacing: -.02em; }
.hero-copy p { color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-primary { background: var(--grad); color: #06263a; border: 0; font-weight: 700; font-size: .92rem;
  padding: 13px 24px; border-radius: 12px; box-shadow: 0 8px 20px rgba(42,168,224,.4); transition: .18s; }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn-outline { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.4);
  font-weight: 700; font-size: .92rem; padding: 13px 24px; border-radius: 12px; transition: .18s; }
.btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-block { width: 100%; margin-top: 4px; }
.hero-badge { position: relative; z-index: 1; font-family: var(--mono); font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 700; letter-spacing: -.04em;
  background: linear-gradient(120deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* stat cards */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: .22s; position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad); opacity: 0; transition: .22s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-card:hover::before { opacity: 1; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.stat-ic.blue { background: #e8effe; } .stat-ic.cyan { background: #e0f8f5; }
.stat-ic.green { background: #e5f6ec; } .stat-ic.amber { background: #fdf1de; }
.stat-num { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--navy); display: block; line-height: 1; }
.stat-num small { font-size: .9rem; color: var(--sky); }
.stat-label { font-size: .83rem; color: var(--muted); margin-top: 8px; display: block; line-height: 1.5; }

/* mission */
.mission-card { background: linear-gradient(125deg, #0e2c4d, #17548a); color: #fff; border: 0;
  display: flex; flex-direction: column; gap: 14px; justify-content: center; position: relative; overflow: hidden; }
.mission-card::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px 180px at 95% 0%, rgba(42,211,192,.28), transparent 65%); }
.band-tag { align-self: flex-start; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  color: #06263a; background: var(--grad); padding: 5px 11px; border-radius: 7px; font-weight: 700; position: relative; }
.mission-card p { font-size: 1.18rem; font-weight: 700; line-height: 1.65; letter-spacing: -.01em; position: relative; }
.mission-card p strong { color: var(--cyan); }
.mission-sub { font-size: .85rem; color: rgba(255,255,255,.75); position: relative; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-family: var(--mono); font-size: .8rem; color: var(--blue); background: #eef3ff;
  border: 1px solid #d5e2fb; padding: 7px 14px; border-radius: 999px; transition: .15s; }
.chip:hover { background: var(--blue); color: #fff; }

/* info / value cards */
.info-card { display: flex; flex-direction: column; gap: 9px; transition: .22s; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cfe0fb; }
.v-ic { font-size: 1.8rem; }
.info-card h3 { font-size: 1.1rem; color: var(--navy); }
.info-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.info-card h3 em { font-style: normal; font-family: var(--mono); font-size: .7rem;
  color: var(--muted); margin-left: 6px; font-weight: 400; }
.info-card.highlight { background: linear-gradient(135deg, #eefcfa, #eaf2ff); border-color: #bfe9e2; }
.info-card.highlight h3 { color: #0d7a6a; }

/* product cards */
.product-card { display: flex; flex-direction: column; gap: 11px; transition: .22s; position: relative; overflow: hidden; }
.product-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad); opacity: 0; transition: .22s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card:hover::before { opacity: 1; }
.pc-head { display: flex; align-items: center; justify-content: space-between; }
.p-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; }
.p-ic.blue { background: #e8effe; } .p-ic.cyan { background: #e0f8f5; }
.p-ic.green { background: #e5f6ec; } .p-ic.amber { background: #fdf1de; }
.badge { font-family: var(--mono); font-size: .7rem; color: #fff; background: var(--navy);
  padding: 4px 11px; border-radius: 7px; font-weight: 700; letter-spacing: .05em; }
.product-card h3 { font-size: 1.2rem; color: var(--navy); }
.product-card > p { color: var(--muted); font-size: .91rem; line-height: 1.7; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.ticks li { position: relative; padding-left: 24px; font-size: .9rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 17px; height: 17px;
  display: grid; place-items: center; font-size: .68rem; color: #fff; font-weight: 900;
  background: var(--grad); border-radius: 50%; }

/* DX platform diagram */
.dx-card { display: flex; align-items: center; gap: 34px;
  background: linear-gradient(120deg, #f9fbff, #eef4fd); }
.dx-copy { flex: 1; }
.dx-copy .badge { display: inline-block; margin-bottom: 12px; background: var(--blue); }
.dx-copy h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 10px; letter-spacing: -.01em; }
.dx-copy .lead-text { margin-bottom: 0; }
.dx-diagram { position: relative; width: 250px; height: 220px; flex: 0 0 auto; }
.dx-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; line-height: 1.3;
  box-shadow: 0 0 0 10px rgba(47,107,255,.08), 0 0 0 22px rgba(47,107,255,.04), 0 10px 24px rgba(11,30,51,.3); }
.dx-node { position: absolute; padding: 9px 16px; border-radius: 999px; background: #fff;
  border: 1px solid #cfe0fb; font-family: var(--mono); font-size: .78rem; font-weight: 700;
  color: var(--blue); box-shadow: var(--shadow); animation: float 3.2s ease-in-out infinite; }
.dx-node.top { left: 50%; transform: translateX(-50%); top: 0; }
.dx-node.left { left: 0; bottom: 18px; animation-delay: .6s; }
.dx-node.right { right: 0; bottom: 18px; animation-delay: 1.2s; }
@keyframes float { 0%,100% { margin-top: 0; } 50% { margin-top: -7px; } }

/* link cards (support) */
.link-card { display: flex; flex-direction: column; gap: 9px; transition: .22s; }
.link-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cfe0fb; }
.link-card h3 { font-size: 1.15rem; color: var(--navy); }
.link-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; flex: 1; }
.link-go { font-size: .86rem; font-weight: 700; color: var(--blue); }
.link-card:hover .link-go { text-decoration: underline; }

/* contact */
.info-grid th, .info-grid td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: .9rem; }
.info-grid th { background: #f8fafd; color: var(--navy); width: 64px; font-weight: 700; }
.info-grid a { color: var(--blue); }
.info-grid a:hover { text-decoration: underline; }
.map-cell { margin-top: 16px; height: 280px; border: 1px dashed #c9d6e8; border-radius: 12px;
  background: #f8fafd; display: grid; place-items: center; color: var(--muted); font-size: .88rem; text-align: center; padding: 14px; }
.map-cell.live { display: block; padding: 0; border: 1px solid var(--line); overflow: hidden; }
.map-cell.live .map-fallback { display: none; }
.map-fallback { font-weight: 700; color: var(--blue); }
.map-fallback:hover { text-decoration: underline; }
form { display: flex; flex-direction: column; gap: 13px; }
.frow-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.frow { display: flex; flex-direction: column; gap: 6px; }
.frow label { font-size: .82rem; font-weight: 700; color: var(--navy); }
.frow input, .frow textarea, .frow select { border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: inherit; font-size: .92rem; background: #fff; color: var(--ink); transition: .15s; }
.frow input:focus, .frow textarea:focus, .frow select:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,107,255,.15); }
.frow textarea { resize: vertical; }
.form-note { font-size: .84rem; min-height: 1.1em; }
.form-note.ok { color: #138a5e; } .form-note.err { color: #d23b3b; }
.faq-card .faq { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq-card .faq:last-child { border-bottom: 0; }
.faq-q { font-weight: 700; color: var(--navy); font-size: .93rem; display: block; margin-bottom: 5px; }
.faq-a { color: var(--muted); font-size: .88rem; line-height: 1.65; }

/* section heading + misc text */
.section-h { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin: 6px 0 -4px;
  display: flex; align-items: center; gap: 10px; }
.section-h::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--grad); }
.lead-text { color: var(--muted); font-size: .94rem; line-height: 1.75; margin-bottom: 14px; }
.lead-text strong { color: var(--navy); }
.intro-card { background: linear-gradient(120deg, #f9fbff, #eef4fd); }
.intro-card .lead-text { margin-bottom: 0; }

/* full-width CTA card */
.cta-card-full { background: linear-gradient(130deg, var(--navy-2), #17548a); color: #fff; border: 0;
  display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: flex-start;
  position: relative; overflow: hidden; }
.cta-card-full::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px 200px at 92% 10%, rgba(42,211,192,.3), transparent 62%); }
.cta-card-full h3 { font-size: 1.2rem; position: relative; }
.cta-card-full p { color: rgba(255,255,255,.82); font-size: .92rem; position: relative; }
.cta-card-full .btn-primary { margin-top: 6px; position: relative; }

/* note cards */
.foot-note-card { background: #fffaf2; border-color: #f3e6cf; }
.foot-note-card span { font-size: .85rem; color: #9a7b3f; line-height: 1.6; }

/* footer */
.foot { padding: 20px 28px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line);
  background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a:hover { color: var(--blue); text-decoration: underline; }
.foot-link { background: none; border: 0; color: var(--muted); font-size: .82rem; padding: 0; }
.foot-link:hover { color: var(--blue); text-decoration: underline; }

/* ===== 개인정보 취급방침 팝업 ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(8,21,37,.55); backdrop-filter: blur(3px); padding: 20px; animation: fadeUp .2s ease; }
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: min(640px, 100%); max-height: 82vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); }
.modal-close { background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  width: 34px; height: 34px; font-size: .9rem; color: var(--muted); transition: .15s; }
.modal-close:hover { color: var(--navy); border-color: var(--navy); }
.modal-body { padding: 20px 24px 26px; overflow-y: auto; font-size: .9rem; line-height: 1.75; color: var(--ink); }
.modal-body h4 { font-size: .95rem; color: var(--navy); margin: 18px 0 6px; }
.modal-body p { margin-bottom: 6px; color: var(--muted); }
.modal-body a { color: var(--blue); }
.modal-body a:hover { text-decoration: underline; }
.modal-date { margin-top: 18px; font-size: .8rem; }
.policy-intro { font-weight: 700; color: var(--navy) !important; }
.modal-body ul { list-style: none; margin: 6px 0 12px; padding-left: 4px; }
.modal-body ul ul { padding-left: 16px; margin: 4px 0; }
.modal-body li { color: var(--muted); margin-bottom: 4px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-2, .grid-3, .stat-row { grid-template-columns: 1fr 1fr; }
  .dx-card { flex-direction: column; }
}
@media (max-width: 820px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 274px; transform: translateX(-100%); transition: transform .28s ease; }
  .sidebar.open { transform: translateX(0); }
  .backdrop.show { display: block; position: fixed; inset: 0; background: rgba(8,21,37,.55); z-index: 35; }
  .hamburger { display: block; }
  .grid-2, .grid-3, .stat-row { grid-template-columns: 1fr; }
  .hero-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 26px; }
  .hero-copy { max-width: 100%; }
  .hero-badge { display: none; }
  .btn-ghost { display: none; }
  .frow-2 { grid-template-columns: 1fr; }
}
