:root {
  --bg: #0b0e13;
  --bg-2: #0f141b;
  --panel: #151b24;
  --panel-2: #1b2330;
  --line: #232c39;
  --text: #e8edf4;
  --muted: #93a1b3;
  --accent: #3b82f6;
  --accent-2: #6366f1;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(59,130,246,.14), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(99,102,241,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* 요소 숨김. 뒤에 오는 display 규칙(.modal-back 등)에 지지 않도록 확정한다. */
.hidden { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------------------------------------------- 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(59,130,246,.28);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(59,130,246,.4); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); border-color: #34435a; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------------------------------------------- 헤더 */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,14,19,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(11,14,19,.9); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand-mark { width: 26px; height: 24px; flex: none; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------------------------------------------- 히어로 */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: 52px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-badges span { color: #b7c4d4; }

/* 히어로 데모(썸네일 월) */
.hero-visual { perspective: 1400px; }
.wall-demo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  transform: rotateY(-14deg) rotateX(6deg);
  transform-style: preserve-3d;
}
.wd-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.wd-bar b { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.wd-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4656; }
.wd-dot:first-child { background: #ff5f57; }
.wd-dot:nth-child(2) { background: #febc2e; }
.wd-dot:nth-child(3) { background: #28c840; }
.wd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.wd-tile { display: flex; flex-direction: column; gap: 6px; }
.wd-tile span { font-size: 11px; color: var(--muted); }
.wd-screen {
  aspect-ratio: 16/10; border-radius: 8px; border: 1px solid var(--line);
  background-size: cover; position: relative; overflow: hidden;
}
.wd-screen::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%);
  animation: sheen 3.4s infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(120%); } }
.s1 { background: linear-gradient(135deg,#1e3a5f,#0e1f38); }
.s2 { background: linear-gradient(135deg,#3a2350,#191033); }
.s3 { background: linear-gradient(135deg,#123a2e,#07231a); }
.s4 { background: linear-gradient(135deg,#3a2a12,#231607); }
.s5 { background: linear-gradient(135deg,#2a2f52,#12162e); }
.s6 { background: linear-gradient(135deg,#123048,#08202f); }

/* ---------------------------------------------- 통계 */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(15,20,27,.5); }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 30px 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------- 섹션 공통 */
.section { padding: 88px 0; }
.section.alt { background: rgba(15,20,27,.4); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* 기능 카드 */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); border-color: #2f3d51; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card .ico { font-size: 28px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* 이용 방법 */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 56px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-no {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* 아키텍처 다이어그램 */
.arch { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.arch-node {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 22px; text-align: center; min-width: 150px;
}
.arch-node.accent { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.arch-node b { display: block; font-size: 15px; }
.arch-node span { color: var(--muted); font-size: 13px; }
.arch-line { position: relative; flex: 0 0 70px; height: 2px; background: linear-gradient(90deg,var(--line),var(--accent),var(--line)); }
.arch-line span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }

/* 요금제 - 계산기 + 가격표 */
.pricing-grid { display: grid; grid-template-columns: 400px 1fr; gap: 22px; align-items: start; }

.calc {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px; position: sticky; top: 84px;
}
.calc h3 { font-size: 18px; margin-bottom: 18px; }
.calc label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 7px; }
.calc select, .calc input[type=number] {
  width: 100%; background: #0d1219; border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 13px; color: var(--text); font: inherit; font-size: 15px;
}
.calc select:focus, .calc input:focus { outline: 2px solid rgba(59,130,246,.45); outline-offset: -1px; }
.field-hint { font-size: 12px; color: var(--muted); margin: 6px 0 16px; }

.calc-result { background: #0d1219; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 6px 0 18px; }
.calc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.calc-total .calc-label { font-size: 13px; color: var(--muted); }
.calc-total b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: #7ab6ff; }
.calc-total.free b { color: var(--ok); }
.calc-break { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.calc-break td { padding: 5px 0; vertical-align: top; }
.calc-break td:first-child { color: var(--muted); width: 92px; }
.calc-break tr.calc-disc td { color: #86efac; }
.calc-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

.rate-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.rate-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.rate-head h3 { font-size: 18px; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
label.inline select { background: #0d1219; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--text); font: inherit; font-size: 14px; }

.rates { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rates th, .rates td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.rates th { color: var(--muted); font-weight: 600; font-size: 13px; }
.rates tbody tr:hover { background: rgba(59,130,246,.06); }
.rates td.mono { font-family: ui-monospace, Consolas, monospace; color: var(--muted); }
.rates td b { color: #7ab6ff; }

.rate-notes { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.rate-notes h4 { font-size: 14px; margin: 18px 0 8px; }
.rate-notes h4:first-child { margin-top: 0; }
.rate-notes p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.rate-notes code { background: #0d1219; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: 13px; color: #9ecbff; font-family: ui-monospace, Consolas, monospace; }
.rate-notes .example { background: rgba(59,130,246,.07); border-left: 2px solid var(--accent); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.disc-list { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.disc-list li { background: #0d1219; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--muted); }
.disc-list li b { color: #86efac; }
.muted-note { font-size: 12.5px; color: var(--muted); }

.free-banner {
  margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(59,130,246,.06));
  border: 1px solid rgba(34,197,94,.28); border-radius: 14px; padding: 18px 22px;
}
.free-banner b { font-size: 17px; color: #86efac; }
.free-banner span { color: var(--muted); font-size: 14.5px; flex: 1; }

/* 다운로드 */
.dl-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.dl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.dl-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(59,130,246,.12); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
.dl-card h3 { font-size: 22px; margin-bottom: 8px; }
.dl-card > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dl-meta { color: var(--muted); font-size: 13px; }
.dl-warn {
  margin-top: 24px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.3);
  color: #f6d497; border-radius: 12px; padding: 14px 18px; font-size: 14px;
}

/* 푸터 */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.footer-cols h4 { font-size: 14px; margin-bottom: 12px; }
.footer-cols a, .footer-cols span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }

/* 토스트 */
.toast-host { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 18px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }

/* ---------------------------------------------- 반응형 */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-visual { display: none; }
  .cards, .steps, .dl-grid, .stats-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .calc { position: static; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3,1fr); }
  .arch { flex-direction: column; }
  .arch-line { width: 2px; height: 40px; flex-basis: auto; }
  .arch-line span { top: 50%; left: 16px; transform: translateY(-50%); }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .hero-copy h1 { font-size: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------------------------------------------- 주문 모달 */
.modal-back {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,9,13,.72); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
}
.order-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px; box-shadow: 0 30px 70px rgba(0,0,0,.5);
  max-height: 92vh; overflow: auto;
}
.order-card h3 { font-size: 20px; margin-bottom: 8px; }
.order-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal-x {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px;
}
.modal-x:hover { color: var(--text); }
.order-card label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 0 7px; }
.order-card input {
  width: 100%; background: #0d1219; border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 13px; color: var(--text); font: inherit; font-size: 15px;
}
.order-card input:focus { outline: 2px solid rgba(59,130,246,.45); outline-offset: -1px; }
.order-card .btn { margin-top: 18px; }

.order-amount {
  display: flex; align-items: baseline; justify-content: space-between;
  background: #0d1219; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 4px;
}
.order-amount span { color: var(--muted); font-size: 14px; }
.order-amount b { font-size: 24px; font-weight: 800; color: #7ab6ff; letter-spacing: -.02em; }

.order-login-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.order-login-note a { color: var(--accent); }

.order-ok {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
  background: rgba(34,197,94,.14); color: #86efac; border: 1px solid rgba(34,197,94,.35);
}
#order-step-done { text-align: center; }
#order-step-done .order-sub { text-align: center; }

.deposit-box {
  text-align: left; background: #0d1219; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 16px; margin: 16px 0 12px;
}
.deposit-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.deposit-row:last-child { border-bottom: none; }
.deposit-row span { color: var(--muted); }
.deposit-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.deposit-notice { font-size: 12.5px; color: var(--muted); text-align: left; margin-bottom: 4px; line-height: 1.6; }

.order-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--muted); font-size: 12.5px; }
.order-divider::before, .order-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ol-tabs { display: flex; flex-direction: column; gap: 8px; }
.ol-tabs .btn { margin-top: 8px; }

/* ---------------------------------------------- 입금 계좌 안내 */
.bank-banner {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(99,102,241,.06));
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 14px;
  padding: 20px 22px;
}
.bank-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.bank-ico { font-size: 22px; line-height: 1.2; }
.bank-head b { display: block; font-size: 15px; margin-bottom: 2px; }
.bank-head span { color: var(--muted); font-size: 13.5px; }
.bank-line {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #0d1219; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px;
}
.bank-name { color: var(--muted); font-size: 14px; }
.bank-no {
  font-size: 20px; font-weight: 800; letter-spacing: .02em; color: #7ab6ff;
  font-variant-numeric: tabular-nums; user-select: all;
}
.bank-holder { color: var(--muted); font-size: 14px; }
.bank-copy { margin-left: auto; padding: 7px 14px; font-size: 13.5px; }
.bank-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.bank-note b { color: #cdd7e4; }

@media (max-width: 560px) {
  .bank-line { gap: 8px; }
  .bank-copy { margin-left: 0; width: 100%; }
}

/* ---------------------------------------------- 사업자 정보 */
.biz-info { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.biz-grid { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.biz-item { display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; }
.biz-item span { color: var(--muted); }
.biz-item b { color: #b7c4d4; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .biz-grid { gap: 6px 16px; } }
