:root {
  --bg: #070b12;
  --line: rgba(62, 240, 200, 0.16);
  --mint: #3ef0c8;
  --text: #f3f7f8;
  --muted: #93a3b0;
  --danger: #ff8f8f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 480px at 78% -80px, rgba(62, 240, 200, 0.14), transparent 58%),
    var(--bg);
  color: var(--text);
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.top, main, footer {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 28px 0 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand img { width: 40px; height: auto; }
.brand-name { font-size: 26px; font-weight: 800; letter-spacing: -0.05em; }
.brand-name span { color: #fff; }
.top-tools { display: flex; align-items: center; gap: 14px; }
.top-note {
  margin: 0;
  color: var(--mint);
  font-size: 14px;
  font-weight: 680;
}
.lang-open, .lang-bar button, .pair-jump, .text-link {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  text-decoration: none;
}
.lang-open, .lang-bar button { padding: 6px 12px; font-size: 13px; }

.stage {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px 0 8px;
}
.page-title { margin: 12px 0 8px; font-size: clamp(28px, 6vw, 44px); letter-spacing: -0.045em; font-weight: 760; }
.top-tools .text-link { margin-top: 0; }
.one-line {
  margin: 8px 0 16px;
  font-size: clamp(18px, 4.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 760;
  text-align: center;
  white-space: nowrap;
}

.card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 22px;
  background: rgba(16, 24, 32, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.card-head .card-kicker { margin: 0; }
.mode, .favs, .dock, .addr-tools {
  display: flex;
  gap: 8px;
}
.mode button, .favs button, .dock button, .addr-tools button, .sheet-close, .scan-sheet button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
}
.mode button, .favs button, .dock button {
  padding: 6px 12px;
  font-size: 13px;
}
.mode button[aria-pressed="true"], .favs button[aria-pressed="true"] {
  background: var(--mint);
  color: #06231c;
  border-color: transparent;
}
.favs { margin: 0 0 12px; flex-wrap: wrap; }
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.field, .addr { display: block; min-width: 0; }
.field {
  padding: 14px 14px 12px;
  background: #0b121a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}
.field-label, .addr span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.field-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.field input, .recv {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  font-size: 30px;
  font-weight: 730;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: #3d4c59; }
.recv { color: var(--mint); }
.recv.is-empty { color: #3d4c59; }
.coin-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 52%;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  text-align: right;
  line-height: 1.2;
}
.coin-text { display: grid; justify-items: end; min-width: 0; }
.coin-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent;
}
span.coin-mark { display: block; }
.coin-mark[hidden] { display: none; }
.coin-btn b { font-size: 15px; letter-spacing: -0.03em; }
.coin-btn small {
  color: var(--muted);
  font-size: 12px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coin-btn:hover small, .coin-btn[aria-expanded="true"] small { color: var(--mint); }
.limits, .hint, .net-warn {
  margin: 8px 2px 0;
  color: #6f8292;
  font-size: 12px;
  line-height: 1.45;
}
.limits.is-bad { color: var(--danger); }
.limits:empty, .net-warn:empty { display: none; }
.hint-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.hint { margin: 0; flex: 1; }
.clock {
  flex: 0 0 auto;
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.net-warn { color: var(--mint); }
.flip {
  align-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #102028;
  color: var(--mint);
}
.flip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flip:hover, .go:hover, .coin-btn:hover b { filter: brightness(1.08); }
.addr { margin-top: 14px; }
.addr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.addr-head > span:first-child { margin-bottom: 0; }
.addr-tools button, .sheet-close, .scan-sheet button {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
}
.addr input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #0b121a;
  font-size: 16px;
  outline: none;
}
.addr input:focus, .field:focus-within, .picker input:focus { border-color: rgba(62, 240, 200, 0.55); }
.whisper { margin: 12px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.whisper.quiet { text-align: center; }
.form-error { min-height: 0; margin: 8px 2px 0; color: var(--danger); font-size: 13px; }
.form-error:empty { display: none; }
.refund {
  margin-top: 12px;
}
.refund summary {
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.refund .addr { margin-top: 8px; }
.go {
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--mint);
  color: #06231c;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.03em;
}
.go:disabled { opacity: 0.45; cursor: default; }
.quiet-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--mint);
  font-size: 13px;
}
.dock { display: none; }
.steps, .progress-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.steps li, .progress-list li {
  padding: 10px 8px;
  border-radius: 12px;
  background: #0b121a;
  font-size: 13px;
  text-align: center;
}
.progress-list:empty { display: none; }
.progress-list a { color: var(--mint); text-decoration: none; }
.scan-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 18, 0.92);
}
.scan-sheet[hidden] { display: none; }
.scan-sheet video {
  width: min(420px, calc(100% - 32px));
  border-radius: 16px;
  background: #000;
}
.scan-sheet button { position: absolute; top: 16px; right: 16px; }
.scan-sheet p { position: absolute; bottom: 24px; margin: 0; color: var(--muted); }
.summary { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary div { padding: 12px; border-radius: 14px; background: #0b121a; }
.summary div:last-child { grid-column: 1 / -1; }
.summary dt { color: var(--muted); font-size: 12px; }
.summary dd { margin: 4px 0 0; font-size: 16px; font-weight: 680; overflow-wrap: anywhere; }

.picker {
  position: absolute;
  z-index: 4;
  width: min(440px, calc(100% - 28px));
  padding: 10px;
  background: #0e1720;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.picker-bar { display: flex; gap: 8px; align-items: center; }
.picker-bar input { width: auto; flex: 1; min-width: 0; margin-bottom: 0; }
.sheet-close { display: none; flex: 0 0 auto; white-space: nowrap; }
.picker input {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0b121a;
  font-size: 16px;
  outline: none;
}
.picker ul {
  max-height: 340px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}
.picker li button {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.picker li button:hover, .picker li button[aria-selected="true"] { background: rgba(62, 240, 200, 0.1); }
.picker li b { font-size: 14px; letter-spacing: -0.03em; }
.picker li span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-empty { margin: 8px 8px 12px; color: var(--muted); font-size: 13px; }

.band { margin: 28px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.band h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.04em; font-weight: 720; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards article, .flow li, .faq details, .token {
  padding: 16px;
  border-radius: 16px;
  background: #0d141c;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.cards h3, .flow b, .token h3 { margin: 0 0 6px; font-size: 15px; font-weight: 680; }
.cards p, .flow span, .faq p, .about p, .rwa-tease p, .token p, .note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow li { display: grid; gap: 6px; }
.flow li::before { color: var(--mint); font-size: 12px; font-weight: 700; }
.flow li:nth-child(1)::before { content: "01"; }
.flow li:nth-child(2)::before { content: "02"; }
.flow li:nth-child(3)::before { content: "03"; }
.flow li:nth-child(4)::before { content: "04"; }
.pair-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pair-jump { padding: 8px 14px; color: var(--mint); }
.about { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.about img { width: 48px; height: auto; }
.rwa-tease { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.marks { display: flex; gap: 8px; }
.marks span, .token .badge {
  display: grid; place-items: center;
  min-width: 64px; height: 64px; padding: 0 8px;
  border-radius: 18px;
  background: rgba(62, 240, 200, 0.1);
  color: var(--mint);
  font-size: 12px; font-weight: 750; letter-spacing: -0.03em;
}
.text-link { display: inline-block; margin-top: 12px; padding: 8px 14px; color: var(--mint); }
.faq { display: grid; gap: 8px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin-top: 8px; }
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.token .go-link {
  display: inline-block; margin-top: 12px;
  color: #06231c; background: var(--mint);
  border-radius: 999px; padding: 8px 12px;
  text-decoration: none; font-weight: 700; font-size: 13px;
}
.disc { margin-top: 18px; color: #6f8292; font-size: 13px; line-height: 1.6; }
footer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 0 40px;
  color: #6f8292;
  font-size: 13px;
  line-height: 1.55;
}
footer.site-foot {
  display: block;
  padding-bottom: 48px;
}
footer.site-foot > img { width: 28px; height: auto; margin-bottom: 8px; }
footer img { width: 28px; height: auto; margin-top: 2px; }
footer p { margin: 0; }

.amount-done {
  position: fixed;
  z-index: 40;
  right: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  color: #06231c;
  font-weight: 750;
}
.lang-pop { position: relative; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 70;
  width: min(260px, calc(100vw - 24px));
  max-height: 280px;
  overflow: auto;
  direction: ltr;
  background: #0e1720;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.lang-menu ul { list-style: none; margin: 0; padding: 0; width: auto; }
.lang-menu li button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.lang-menu li button b { color: var(--muted); font-weight: 500; }
.lang-menu li button[aria-current="true"],
.lang-menu li button[aria-current="true"] b { color: var(--mint); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; flex: 1 0 100%; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a[aria-current="page"] { color: var(--mint); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats article, .foot-grid a, .coin-rows a, .calc, .coin-find {
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.stats article {
  padding: 16px;
  border-radius: 16px;
  background: #0d141c;
}
.stats b { display: block; margin-bottom: 4px; color: var(--mint); font-size: 18px; font-weight: 720; }
.stats span, .doc .note { color: var(--muted); line-height: 1.6; }
.doc { padding-bottom: 12px; }
.doc h2 { margin: 22px 0 8px; font-size: 22px; letter-spacing: -0.04em; }
.doc p, .doc li { color: var(--muted); line-height: 1.65; }
.doc a { color: var(--mint); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.foot-grid h2 { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.foot-grid a { display: block; padding: 4px 0; color: var(--text); text-decoration: none; font-size: 14px; }
.coin-find, .calc input {
  width: 100%;
  margin: 8px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b121a;
  font-size: 16px;
}
.coin-rows { display: grid; gap: 8px; }
.coin-rows a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0d141c;
  color: inherit;
  text-decoration: none;
}
.calc { display: grid; gap: 8px; max-width: 520px; }
.calc button, .mini-go {
  border: 0;
  border-radius: 12px;
  background: var(--mint);
  color: #06231c;
  font-weight: 720;
  padding: 12px 14px;
}
.brand-mark { width: 72px; height: auto; margin: 12px 0; }

@media (max-width: 980px) {
  .top, main, footer { width: min(1180px, calc(100% - 32px)); }
  .stage { padding-top: 12px; }
  .pair { grid-template-columns: 1fr; gap: 0; }
  .flip { margin: -8px auto; position: relative; z-index: 1; }
  .cards, .flow, .token-grid, .stats, .foot-grid { grid-template-columns: 1fr; }
  .summary, .steps { grid-template-columns: 1fr 1fr; }
  .summary div:last-child { grid-column: auto; }
  .field input, .recv { font-size: 26px; }
  .rwa-tease, .about { display: grid; }
  .picker {
    position: fixed;
    inset: 0;
    width: auto;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
  }
  .picker[hidden] { display: none; }
  .sheet-close { display: inline-block; }
  .picker ul { max-height: none; flex: 1; }
}
@media (max-width: 420px) {
  .coin-btn small { max-width: 108px; }
  .field input, .recv { font-size: 22px; }
}
