:root {
  --bg: #05070D;
  --panel: rgba(8, 14, 26, 0.85);
  --panel2: rgba(10, 18, 32, 0.75);
  --line: rgba(54, 226, 245, 0.18);
  --line2: rgba(54, 226, 245, 0.35);
  --cyan: #36E2F5;
  --cyan2: #9BF3FC;
  --amber: #FFB547;
  --red: #FF6B6B;
  --text: #E6F1FF;
  --sub: #C9D6E8;
  --muted: #8FA3BF;
  --ink: #04121A;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --body: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  --head: 'Orbit', 'Pretendard Variable', sans-serif;
  --logo: 'Orbitron', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; }
body {
  background-image: linear-gradient(rgba(54,226,245,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(54,226,245,.045) 1px, transparent 1px);
  background-size: 48px 48px; min-height: 100vh;
}
a { color: var(--cyan); }
h1, h2, h3 { margin: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sub { color: var(--sub); }
.amber { color: var(--amber); }
.cyan { color: var(--cyan); }
.red { color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 로딩 / 오브 */
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.orb { position: relative; width: 180px; height: 180px; flex: 0 0 auto; }
.orb.small { width: 90px; height: 90px; }
.orb i, .orb b { position: absolute; border-radius: 50%; }
.orb i:nth-child(1) { inset: 0; border: 1px dashed rgba(54,226,245,.55); animation: spin 22s linear infinite; }
.orb i:nth-child(2) { inset: 16%; border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: rgba(54,226,245,.35); animation: spin 12s linear infinite reverse; }
.orb b { inset: 34%; background: radial-gradient(circle, var(--cyan2) 0%, var(--cyan) 40%, rgba(54,226,245,.1) 75%); box-shadow: 0 0 40px rgba(54,226,245,.7); animation: pulse 3.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .orb i, .orb b { animation: none; } }

/* 로그인 */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-box { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-box .orb { margin: 0 auto 4px; }
.auth-box h1 { font-family: var(--head); font-weight: 400; font-size: 26px; text-align: center; }
.logo { font-family: var(--logo); font-weight: 800; letter-spacing: .3em; }

/* 기본 레이아웃 */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: rgba(5,7,13,.9); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--cyan); box-shadow: 0 0 12px rgba(54,226,245,.6); display: flex; align-items: center; justify-content: center; }
.brand .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.brand .logo { font-size: 19px; }
.top-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border: 1px solid var(--line2); border-radius: 8px; }
.layout { display: flex; flex-wrap: wrap; }
.nav { flex: 1 1 190px; max-width: 220px; padding: 18px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--sub); text-decoration: none; font-size: 14px; }
.nav a:hover { background: rgba(54,226,245,.06); }
.nav a.on { background: rgba(54,226,245,.12); color: var(--cyan); font-weight: 600; }
.nav .badge { float: right; font-family: var(--mono); font-size: 11px; color: var(--amber); }
.main { flex: 999 1 560px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 760px) {
  .nav { max-width: none; flex-basis: 100%; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .nav a { white-space: nowrap; }
  .main { padding: 16px; }
}

.head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.head h1 { font-family: var(--head); font-weight: 400; font-size: 26px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card.amber { border-color: rgba(255,181,71,.45); background: rgba(26,18,6,.55); }
.grid { display: grid; gap: 12px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi .v { font-family: var(--mono); font-size: 28px; font-weight: 600; margin-top: 6px; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 입력 */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--sub); }
input, select, textarea { background: #050A14; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; min-height: 44px; color: var(--text); width: 100%; }
textarea { min-height: 80px; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--cyan); }
label.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
.btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--text); cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover { border-color: var(--cyan); }
.btn.pri { background: var(--cyan); border-color: var(--cyan); color: var(--ink); font-weight: 700; }
.btn.warn { background: var(--amber); border-color: var(--amber); color: #1A1206; font-weight: 700; }
.btn.ghost { border-color: transparent; color: var(--sub); }
.btn.sm { min-height: 34px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.form { display: grid; gap: 14px; }
.form.two { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.err { color: var(--red); font-size: 13px; min-height: 18px; }

/* 표 */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(5,9,16,.9); }
td { padding: 10px 12px; border-bottom: 1px solid rgba(54,226,245,.07); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); }
.empty { padding: 32px; text-align: center; color: var(--muted); }

.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--sub); white-space: nowrap; }
.tag.ok { color: var(--cyan); border-color: rgba(54,226,245,.5); }
.tag.warn { color: var(--amber); border-color: rgba(255,181,71,.5); }
.tag.bad { color: var(--red); border-color: rgba(255,107,107,.5); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--sub); cursor: pointer; font-size: 13px; }
.tabs button.on { background: rgba(54,226,245,.12); border-color: var(--cyan); color: var(--cyan); }

/* 커맨드 센터 */
.core { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.core h1 { font-family: var(--head); font-weight: 400; font-size: 28px; line-height: 1.4; }
.core .cmd { display: flex; gap: 8px; margin-top: 8px; }
.staff { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.staff .card { display: flex; flex-direction: column; gap: 8px; }
.staff .who { display: flex; align-items: center; gap: 10px; }
.staff .av { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--cyan); display: flex; align-items: center; justify-content: center; font-family: var(--logo); color: var(--cyan); font-size: 14px; }

/* 모달 / 토스트 */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; background: #08101E; border: 1px solid var(--line2); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 0 60px rgba(54,226,245,.12); }
.modal h2 { font-size: 18px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
#toast div { background: #0B1628; border: 1px solid var(--line2); border-radius: 10px; padding: 12px 16px; font-size: 14px; max-width: 90vw; }
#toast div.bad { border-color: var(--red); color: #FFD5D5; }

/* AI 직원 */
a.chip { color: var(--text); text-decoration: none; }
a.chip:hover { border-color: var(--cyan); }
.ai-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.ai-staff { display: flex; flex-direction: column; gap: 8px; }
.ai-pick { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); color: var(--text); text-decoration: none; }
.ai-pick b { display: block; font-size: 14px; margin-bottom: 2px; }
.ai-pick .muted { display: block; font-size: 12px; line-height: 1.5; }
.ai-pick.on, .ai-pick:hover { border-color: var(--line2); box-shadow: 0 0 0 1px rgba(54,226,245,.15) inset; }
.ai-orb { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: radial-gradient(circle, var(--cyan) 0%, rgba(54,226,245,.15) 65%); box-shadow: 0 0 14px rgba(54,226,245,.45); }
.ai-pick:not(.on) .ai-orb { opacity: .45; box-shadow: none; }
.ai-chat { display: flex; flex-direction: column; gap: 12px; min-height: 520px; }
.ai-log { flex: 1; min-height: 340px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; line-height: 1.65; font-size: 14px; white-space: normal; word-break: break-word; }
.bubble.user { align-self: flex-end; background: rgba(54,226,245,.14); border: 1px solid var(--line2); }
.bubble.assistant { align-self: flex-start; background: var(--panel2); border: 1px solid var(--line); }
.bubble.wait { color: var(--muted, #8aa); animation: pulse 1.6s ease-in-out infinite; }
.bubble.err { border-color: rgba(255,92,92,.5); color: #ff9c9c; }
.bubble .cost { font-size: 11px; margin-top: 6px; }
.ai-input { display: flex; gap: 8px; align-items: flex-end; }
.ai-input textarea { flex: 1; resize: vertical; min-height: 46px; }
@media (max-width: 860px) {
  .ai-wrap { grid-template-columns: 1fr; }
  .ai-staff { flex-direction: row; overflow-x: auto; }
  .ai-pick { flex: 0 0 200px; }
  .bubble { max-width: 94%; }
}
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--sub, #9fb3c8); }
.agree input { width: auto; margin-top: 4px; }
.agree a { color: var(--cyan); }

/* 랜딩, 약관 */
mark.todo { background: rgba(255,181,71,.18); color: var(--amber); padding: 0 6px; border-radius: 4px; font-size: .9em; }
.doc { max-width: 860px; margin: 0 auto; padding: 40px 22px 80px; line-height: 1.85; color: var(--sub); }
.doc h1 { font-family: var(--head); color: var(--text); font-size: 28px; margin: 0 0 6px; }
.doc h2 { color: var(--text); font-size: 18px; margin: 34px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.doc h3 { color: var(--text); font-size: 15px; margin: 18px 0 4px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 10px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { color: var(--text); background: var(--panel2); }
.doc .meta { color: var(--muted); font-size: 13px; }
.doc a { color: var(--cyan); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--line); background: rgba(5,7,13,.8); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 5; }
.topbar a.home { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; }
.topbar nav { display: flex; gap: 8px; align-items: center; }
.foot { border-top: 1px solid var(--line); padding: 28px 22px 40px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.foot .in { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot a { color: var(--sub); }
.land { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: center; padding: 70px 0 50px; }
.hero h1 { font-family: var(--head); font-size: 44px; line-height: 1.25; margin: 0 0 16px; color: var(--text); letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p { color: var(--sub); font-size: 17px; line-height: 1.8; margin: 0 0 26px; }
.hero .orb { width: 300px; height: 300px; margin: 0 auto; }
.btn.big { padding: 14px 26px; font-size: 16px; }
.sec { padding: 46px 0; border-top: 1px solid var(--line); }
.sec > h2 { font-family: var(--head); font-size: 26px; margin: 0 0 8px; color: var(--text); }
.sec > p.lead { color: var(--muted); margin: 0 0 24px; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.feat .card h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.feat .card p { margin: 0; color: var(--sub); font-size: 14px; line-height: 1.75; }
.feat .card .k { font-family: var(--mono); color: var(--cyan); font-size: 12px; margin-bottom: 8px; }
.price { max-width: 460px; margin: 0 auto; text-align: center; padding: 30px; }
.price .amt { font-family: var(--logo); font-size: 46px; color: var(--cyan); margin: 6px 0; }
.price ul { text-align: left; color: var(--sub); line-height: 2; padding-left: 20px; }
.malls { display: flex; flex-wrap: wrap; gap: 10px; }
.malls span { border: 1px solid var(--line2); border-radius: 999px; padding: 8px 16px; color: var(--text); }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: var(--panel2); }
.faq summary { cursor: pointer; color: var(--text); font-weight: 600; }
.faq p { color: var(--sub); line-height: 1.8; margin: 10px 0 0; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.compare td.y { color: var(--cyan); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero h1 { font-size: 32px; }
  .hero .orb { width: 200px; height: 200px; }
  .topbar { padding: 14px 16px; }
}
