/* Prototype interne. Tokens : noir, orange et filets repris de la charte Bithumb. */

@font-face {
  font-family: "Bithumb Gothic Original";
  src: url("assets/fonts/BithumbGothic-Original.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Bithumb Gothic Basic";
  src: url("assets/fonts/BithumbGothic-Basic.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("assets/fonts/NotoSans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("assets/fonts/NotoSansKR-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+AC00-D7A3, U+1100-11FF, U+3130-318F;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("assets/fonts/NotoSansKR-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+AC00-D7A3, U+1100-11FF, U+3130-318F;
}

:root {
  --black: #282828;
  --ink: #1b1b1b;
  --orange: #ff6c00;
  --amber: #ff9100;
  --deep: #dc3700;
  --paper: #ffffff;
  --mist: #f7f7f7;
  --line: #e5e5e5;
  --secondary: #444444;
  --sans: "Noto Sans KR", "Noto Sans", Arial, sans-serif;
  --gothic: "Bithumb Gothic Basic", "Noto Sans KR", "Noto Sans", Arial, sans-serif;
  --gothic-slant: "Bithumb Gothic Original", "Noto Sans KR", "Noto Sans", Arial, sans-serif;
  --measure: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus { top: 8px; }

.prototype-banner {
  margin: 0;
  background: var(--black);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.wrap {
  width: min(var(--measure), calc(100% - 32px));
  margin-inline: auto;
}

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo img { width: 112px; height: auto; display: block; }

.logo-slot {
  display: inline-block;
  border: 1px dashed var(--ink);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero { padding: 48px 0 8px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr);
  grid-template-areas:
    "copy video"
    "card video";
  column-gap: 40px;
  row-gap: 28px;
  align-items: center;
}

.hero-copy { grid-area: copy; align-self: end; min-width: 0; }

.hero-video {
  grid-area: video;
  justify-self: end;
  width: min(100%, 420px);
  line-height: 0;
  pointer-events: none;
}

.card { grid-area: card; align-self: start; min-width: 0; }

.hero-video video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  background: transparent;
}

.hero-video video::-webkit-media-controls,
.hero-video video::-webkit-media-controls-enclosure,
.hero-video video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.brand-rule {
  width: 64px;
  height: 4px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--orange) 52%, var(--deep) 100%);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
}

h1 { margin: 0; font-weight: 700; color: var(--ink); }

.swap-line,
.cap-line {
  display: block;
  font-synthesis: none;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.swap-line {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  padding-right: 0.08em;
}

.jusqua {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.cap-line {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  column-gap: 0.16em;
  row-gap: 2px;
  margin-top: 6px;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
}

.cap-line .unit {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  font-size: 0.42em;
  letter-spacing: 0;
  line-height: 1;
  padding-bottom: 0.12em;
}

.cap-line .usdc-mark {
  width: 1.2em;
  height: 1.2em;
  min-width: 32px;
  min-height: 32px;
  flex: 0 0 auto;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 22em;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.card {
  background: var(--black);
  color: #fff;
  border-top: 4px solid var(--orange);
  padding: 28px 24px 22px;
}

.card :focus-visible { outline-color: #fff; }

.earnings-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.earnings-copy {
  margin: 14px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.cap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 14px;
}

.cap-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--gothic);
  font-weight: 700;
  font-synthesis: none;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-align: right;
}

.cap-row .usdc-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: block;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

.card .btn:hover,
.card .btn:active { background: var(--mist); color: var(--ink); }

.quiet {
  margin: 12px 0 0;
  color: #f3f3f3;
  font-size: 13px;
  line-height: 1.45;
}

.facts { margin-top: 36px; border-top: 1px solid var(--line); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact {
  margin: 0;
  padding: 22px 24px 28px 0;
}

.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }

.fact b {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.fact span { color: var(--secondary); font-size: 14px; line-height: 1.4; }

.block { padding: 72px 0; }

.block-mist { background: var(--mist); }

.section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.block h2,
.close h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.step {
  margin: 0;
  padding: 24px 22px 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  background: var(--paper);
}

.step-num {
  margin: 0 0 18px;
  font-family: var(--gothic);
  font-weight: 700;
  font-synthesis: none;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step p { margin: 0; color: var(--secondary); font-size: 16px; line-height: 1.45; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.detail-lead {
  margin: 16px 0 0;
  max-width: 28rem;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.45;
}

.detail-list { margin: 0; padding: 0; list-style: none; }

.detail-list li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.detail-list li:last-child { border-bottom: 1px solid var(--line); }

.detail-list b { font-size: 16px; letter-spacing: -0.02em; }

.detail-list span { color: var(--secondary); font-size: 15px; line-height: 1.45; }

.plain { padding: 8px 0 64px; }

.plain h2 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.plain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.plain-list li.with-mark {
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.plain-list li.with-mark div { display: grid; gap: 4px; min-width: 0; }

.plain-list .usdc-mark { width: 36px; height: 36px; display: block; }

.plain-list b { font-size: 16px; letter-spacing: -0.02em; }

.plain-list span { color: var(--secondary); font-size: 15px; line-height: 1.45; }

.close {
  background: var(--black);
  color: #fff;
  padding: 56px 0;
}

.close :focus-visible { outline-color: #fff; }

.close .eyebrow { color: #fff; }

.close h2 { color: #fff; }

.close-lead {
  margin: 12px 0 0;
  max-width: 28rem;
  color: #f3f3f3;
  font-size: 18px;
  line-height: 1.4;
}

.close-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.close .btn {
  width: auto;
  min-width: 280px;
  margin-top: 0;
  flex: 0 0 auto;
}

.site-footer {
  background: var(--black);
  color: #fff;
  padding: 22px 0;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 20, 20, 0.72);
}

.overlay[hidden] { display: none; }

.dialog {
  width: min(100%, 440px);
  max-height: min(92vh, 640px);
  overflow: auto;
  background: #fff;
  color: var(--ink);
  border-top: 4px solid var(--orange);
  padding: 24px;
}

.dialog h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dialog p { margin: 0; color: var(--secondary); font-size: 16px; line-height: 1.5; }

.dialog .btn {
  width: auto;
  min-width: 140px;
  margin-top: 0;
  background: var(--ink);
  color: #fff;
}

.dialog .btn:hover,
.dialog .btn:active { background: #000; color: #fff; }

.dialog-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

@media (min-width: 768px) {
  .wrap { width: min(var(--measure), calc(100% - 64px)); }
  .logo img { width: 140px; }
  .overlay { align-items: center; }
}

@media (max-width: 720px) {
  .hero { padding: 28px 0 4px; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "video"
      "card";
    row-gap: 8px;
  }
  .hero-copy { align-self: start; }
  .hero-video { width: min(92%, 440px); justify-self: center; margin-top: 8px; }
  .card { margin-top: 16px; }
  .hero-lead { font-size: 18px; }
  .earnings-copy { font-size: 24px; }
  .facts { margin-top: 28px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact,
  .fact + .fact {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .block { padding: 48px 0; }
  .step-grid,
  .detail-grid,
  .close-inner { grid-template-columns: 1fr; display: grid; }
  .close .btn { width: 100%; min-width: 0; }
  .plain { padding-bottom: 40px; }
  .plain-list { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 380px) {
  .cap-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .cap-row strong { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .btn,
  .card,
  .dialog { border: 1px solid ButtonText; }
}
