/* ===== Bitbase-matched home ===== */
:root {
  --bx-bg: #000000;
  --bx-card: #131516;
  --bx-card2: #1f2023;
  --bx-line: #2a2d31;
  --bx-text: #fafafa;
  --bx-muted: #84888c;
  --bx-orange: #f68f15;
  --bx-orange2: #ff9f2e;
  --bx-green: #0ecb81;
  --bx-red: #f6465d;
  --bx-max: 1200px;
}

.bx-home {
  background: var(--bx-bg);
  color: var(--bx-text);
  font-family: "IBM Plex Sans", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
}
.bx-home .site-header {
  background: var(--bx-bg);
  border-bottom: 1px solid transparent;
}

.bx-wrap {
  width: min(100% - 48px, var(--bx-max));
  margin: 0 auto;
}

/* ----- Hero (centered Bitbase style) ----- */
.bx-hero {
  padding: 48px 0 40px;
  text-align: center;
}
.bx-hero-inner h1 {
  margin: 0 0 28px;
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #fafafa;
}
.bx-hero-visual {
  display: flex;
  justify-content: center;
  margin: 0 auto 28px;
}
.bx-hero-visual img {
  width: min(100%, 920px);
  height: auto;
  display: block;
  border-radius: 8px;
}
.bx-hero-sub {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  color: #c5ccd4;
}
.bx-hero-sub em {
  font-style: normal;
  color: var(--bx-orange);
  font-weight: 700;
}
.bx-hero-cta {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  max-width: 480px;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.bx-hero-cta input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: #fff;
  color: #111;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.bx-hero-cta input::placeholder { color: #84888c; }
.bx-btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  background: var(--bx-orange);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.bx-btn-orange:hover { background: var(--bx-orange2); color: #000; }
.bx-hero-cta .bx-btn-orange {
  border-radius: 0;
  padding: 0 28px;
}

/* ----- Sections ----- */
.bx-section { padding: 72px 0; }
.bx-sec-head {
  text-align: center;
  margin-bottom: 36px;
}
.bx-sec-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -.02em;
}
.bx-sec-head p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--bx-muted);
}

/* Market / Popular pairs */
.bx-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 16px;
}
.bx-tabs button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--bx-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
}
.bx-tabs button.on { color: var(--bx-text); }
.bx-pairs-card {
  background: var(--bx-card);
  border-radius: 20px;
  padding: 8px 16px 12px;
}
.bx-thead,
.bx-trow {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr .7fr;
  gap: 12px;
  align-items: center;
  padding: 16px 8px;
}
.bx-thead {
  color: var(--bx-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--bx-line);
}
.bx-trow {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(42, 45, 49, .7);
  font-size: 15px;
  transition: background .15s;
}
.bx-trow:last-child { border-bottom: 0; }
.bx-trow:hover { background: rgba(246, 143, 21, .06); }
.bx-trow .coin {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bx-trow .coin i {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 13px; font-weight: 700;
  position: relative; overflow: hidden; flex: 0 0 28px;
}
/* 실제 거래소 로고(coin-ico.js)를 덮어 씌우고, 못 받아 오면 아래 색 원형이 남는다 */
.bx-trow .coin i > img.ci-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; display: block;
}
.bx-trow .coin i.has-ico { color: transparent; }
.bx-trow .coin i.btc { background: #f7931a; color: #111; }
.bx-trow .coin i.eth { background: #627eea; color: #fff; }
.bx-trow .coin i.sol { background: #9945ff; color: #fff; }
.bx-trow .coin i.xrp { background: #23292f; color: #fff; }
.bx-trow .coin b { font-weight: 600; }
.bx-trow .coin em {
  font-style: normal;
  color: var(--bx-muted);
  font-size: 13px;
}
.bx-trow .price { font-variant-numeric: tabular-nums; }
.bx-trow .chg.up { color: var(--bx-green); }
.bx-trow .chg.down { color: var(--bx-red); }
.bx-trow .vol { color: #c5ccd4; font-variant-numeric: tabular-nums; }
.bx-trow .act { text-align: right; }
.bx-trade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--bx-card2);
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
}

/* Security */
.bx-secure { padding-top: 40px; }
.bx-secure-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.bx-secure-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.bx-secure-copy .lead {
  margin: 0 0 28px;
  color: var(--bx-muted);
  font-size: 16px;
  line-height: 1.55;
}
.bx-secure-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.bx-secure-list li {
  padding-left: 16px;
  border-left: 3px solid var(--bx-orange);
}
.bx-secure-list h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.bx-secure-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bx-muted);
}
.bx-secure-art {
  display: flex;
  justify-content: center;
}
.bx-shield {
  width: min(100%, 320px);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
}
.bx-shield svg { width: 100%; height: auto; display: block; }

/* Stats */
.bx-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.bx-stats-grid b {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--bx-orange);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.bx-stats-grid span {
  color: var(--bx-muted);
  font-size: 14px;
}
.bx-stats-note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 12px;
  color: #5f656b;
}

/* Products */
.bx-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bx-prod {
  background: var(--bx-card);
  border-radius: 16px;
  padding: 24px 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.bx-prod h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.bx-prod p {
  margin: 0 0 16px;
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bx-muted);
}
.bx-prod a {
  color: var(--bx-orange);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.bx-prod a:hover { text-decoration: underline; }

/* CTA */
.bx-cta { padding-bottom: 40px; }
.bx-cta-box {
  text-align: center;
  background: var(--bx-card);
  border-radius: 20px;
  padding: 56px 28px;
}
.bx-cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
}
.bx-cta-box p {
  margin: 0 0 24px;
  color: var(--bx-muted);
}

/* Risk */
.bx-risk {
  padding-top: 24px;
  padding-bottom: 64px;
}
.bx-risk-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
  color: #ff8a98;
  border: 1px solid rgba(246,70,93,.4);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.bx-risk h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
}
.bx-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.bx-risk-grid > div {
  background: var(--bx-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 16px;
}
.bx-risk-grid h4 { margin: 0 0 8px; font-size: 14px; color: #ffc2c9; }
.bx-risk-grid p { margin: 0; font-size: 13px; color: #9a858a; line-height: 1.55; }
.bx-risk-legal {
  margin: 0;
  font-size: 12px;
  color: #6b7580;
  line-height: 1.6;
}
.bx-risk-legal strong { color: #ffb4bc; }

@media (max-width: 1024px) {
  .bx-secure-grid { grid-template-columns: 1fr; }
  .bx-prod-grid { grid-template-columns: 1fr 1fr; }
  .bx-secure-art { order: -1; }
  .bx-thead span:nth-child(4),
  .bx-trow .vol { display: none; }
  .bx-thead,
  .bx-trow { grid-template-columns: 1.6fr 1fr 1fr .7fr; }
}

@media (max-width: 640px) {
  .bx-wrap { width: min(100% - 28px, var(--bx-max)); }
  .bx-hero { padding: 28px 0 32px; }
  .bx-section { padding: 48px 0; }
  .bx-prod-grid,
  .bx-risk-grid,
  .bx-stats-grid { grid-template-columns: 1fr; }
  .bx-hero-cta { flex-direction: column; max-width: 100%; }
  .bx-hero-cta .bx-btn-orange { height: 48px; border-radius: 0 0 8px 8px; }
  .bx-trow .coin em,
  .bx-thead span:nth-child(5),
  .bx-trow .act { display: none; }
  .bx-thead,
  .bx-trow { grid-template-columns: 1.4fr 1fr 1fr; }
  .bx-cta-box { padding: 36px 18px; }
}
