/* css/base.css: tokens, type, the floating header, buttons, cards, forms, tables, FAQ and footer.
   Every page loads this first; page files (home.css, app.css, pages.css) only add their own layouts.
   Accent: Greek porcelain. White body, glaze sky, Aegean, cobalt, and a gilt hairline used sparingly. */

@font-face { font-family: 'Epilogue Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/epilogue-var.woff2) format('woff2-variations'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/bvp-400.woff2) format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/bvp-500.woff2) format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/bvp-600.woff2) format('woff2'); }

:root {
  /* porcelain glaze ramp */
  --porcelain: #f5f6f7;
  --bisque: #e9e6df;
  --glaze: #bdd2ec;
  --aegean: #7aa2dc;
  --cobalt: #2e5ebd;
  --deep: #1b3d86;
  --gilt: #c8ab6c;

  --face: linear-gradient(160deg, var(--porcelain) 0%, var(--glaze) 34%, var(--aegean) 64%, var(--cobalt) 100%);
  --face-h: linear-gradient(90deg, #eef3f9, var(--glaze) 35%, var(--aegean) 65%, #4f83de);

  /* night ground */
  --night: #0b0d11;
  --night-2: #101319;
  --night-3: #161a21;
  --panel: #14171d;
  --card: #191d24;
  --abyss: #07080b;
  --ink: #f1f2f4;
  --ink-2: #a6abb4;
  --ink-3: #757b86;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --fill: rgba(255, 255, 255, .04);
  --fill-2: rgba(255, 255, 255, .07);
  --field-bg: rgba(0, 0, 0, .35);
  --accent: #9dbdea;
  --accent-2: #6f9be0;
  --ok: #86d3a4;
  --run: #86d3a4;
  --bad: #f0907f;
  --warn: #e7c27a;
  --focus: var(--accent);
  --panel-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .04) inset;

  --display: 'Epilogue Variable', 'Epilogue', system-ui, sans-serif;
  --text: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r-s: 8px;
  --r-field: 12px;
  --r-card: 16px;
  --r-panel: 22px;
  --r-pill: 999px;
  --gut: clamp(16px, 4vw, 56px);
  --head-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

/* a light ground (the hero sky, light cards) flips the ink */
[data-ground=light], .is-light {
  --ink: #141820;
  --ink-2: #4f5663;
  --ink-3: #6f7683;
  --line: rgba(20, 24, 32, .1);
  --line-2: rgba(20, 24, 32, .18);
  --fill: rgba(20, 24, 32, .04);
  --fill-2: rgba(20, 24, 32, .07);
  --field-bg: rgba(255, 255, 255, .7);
  --panel: rgba(255, 255, 255, .6);
  --accent: #1f4fa8;
  --ok: #1f7a4a;
  --bad: #b3361f;
  --focus: #141820;
  --panel-shadow: 0 30px 70px -44px rgba(30, 50, 90, .45), 0 1px 0 rgba(255, 255, 255, .9) inset;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 15px/1.55 var(--text); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(122, 162, 220, .35); color: #fff; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.wrap-s { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--ink-2); }
.dimmer { color: var(--ink-3); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.num { font-variant-numeric: tabular-nums; }

/* gradient words: <span class="glaze">live,</span> */
.glaze { background: var(--face-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 500 13px/1.3 var(--text); color: var(--ink-3); letter-spacing: .01em; margin-bottom: 14px; display: block; }
.h-xl { font-size: clamp(44px, 7.4vw, 96px); }
.h-l { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; }
.h-m { font-size: clamp(28px, 3.4vw, 40px); }
.h-s { font-size: 22px; letter-spacing: -.01em; }
.lede { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-2); line-height: 1.6; max-width: 620px; }

/* ---------------------------------------------------------------- header */
.head {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(940px, calc(100% - 24px)); height: 56px;
  display: flex; align-items: center; gap: 6px; padding: 0 8px 0 10px;
  background: rgba(24, 27, 34, .78); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--r-pill); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .7);
}
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 4px 8px 4px 2px; border-radius: var(--r-pill); flex: none; }
.brand-tile { width: 30px; height: 30px; border-radius: 9px; background: #07080b url(/brand/mark-64.png) center/100% no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; flex: none; }
.brand-name { font: 600 20px/1 var(--display); letter-spacing: -.02em; color: #fff; }
.nav { display: flex; align-items: center; gap: 0; margin-left: 10px; flex: 1; min-width: 0; }
.nav a {
  position: relative; padding: 8px 9px; border-radius: var(--r-pill);
  font: 500 15px/1 var(--text); color: #9fa5ae; transition: color .2s var(--ease); white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a[aria-current=page] { color: #fff; }
.nav a[aria-current=page]::after {
  content: ''; position: absolute; left: 50%; bottom: -1px; width: 22px; height: 6px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 6'%3E%3Cpath d='M1 1.2C6 2.4 8.6 5 11 5s5-2.6 10-3.8' fill='none' stroke='%23bdd2ec' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.head-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.tchip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px 0 8px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); color: #e6e8ec;
  font: 500 14px/1 var(--text); font-variant-numeric: tabular-nums;
}
.tchip.is-soon { color: var(--ink-3); }
.tchip .copy { opacity: .55; }
.tchip .copy:hover { opacity: 1; }
.coin { width: 18px; height: 18px; border-radius: 50%; flex: none; background: #07080b url(/brand/mark-64.png) center/100% no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; color: #e6e8ec; background: rgba(255, 255, 255, .06); }
.sheet {
  position: fixed; z-index: 49; top: 78px; left: 12px; right: 12px; padding: 10px;
  background: rgba(20, 23, 29, .96); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: none; flex-direction: column; gap: 2px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.sheet.open { display: flex; }
.sheet a { padding: 14px 14px; border-radius: 12px; font: 500 17px/1 var(--text); color: #dfe2e7; }
.sheet a:hover, .sheet a[aria-current=page] { background: var(--fill-2); color: #fff; }
.sheet .tchip { margin: 6px 6px 4px; align-self: flex-start; }
@media (max-width: 1020px) { .head .tchip { display: none; } }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); font: 500 14px/1 var(--text); white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.btn-white { background: #fff; color: #111419; }
.btn-white:hover { background: #e9eef6; }
.btn-ghost { background: var(--fill-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.btn-line:hover { background: var(--fill); }
.btn-s { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-head { height: 38px; padding: 0 14px; }

/* the big pill with a round arrow: <a class="go go-light">Open the app <i class="go-arrow"></i></a> */
.go {
  position: relative; display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 7px 0 24px;
  border-radius: var(--r-pill); font: 500 17px/1 var(--text); white-space: nowrap; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
}
.go:hover { transform: translateY(-1px); }
.go-arrow {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  transition: transform .35s var(--ease);
}
.go:hover .go-arrow { transform: translateX(2px); }
.go-arrow::before {
  content: ''; width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.go-light {
  color: #12161d; background-color: #f4f5f6;
  background-image: radial-gradient(rgba(20, 30, 50, .13) .8px, transparent 1px);
  background-size: 4px 4px;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -18px rgba(20, 40, 80, .55);
}
.go-light .go-arrow { background: #0e1116; color: #fff; }
.go-glass {
  color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.go-glass .go-arrow { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); }
.go-dark { color: #e9ebee; background: #1a1d24; border: 1px solid var(--line); height: 48px; font-size: 15px; padding-left: 18px; gap: 12px; }
.go-dark .go-arrow { width: 32px; height: 32px; background: rgba(255, 255, 255, .08); color: #fff; }
.go-dark:hover { background: #20242c; }

/* ---------------------------------------------------------------- cards, chips, fields */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--panel-shadow);
}
.card-p { padding: 18px 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--panel-shadow); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px;
  font: 500 11px/1 var(--text); color: var(--ink-2); background: var(--fill-2); border: 1px solid var(--line); white-space: nowrap;
}
.chip-ok { color: var(--ok); background: rgba(134, 211, 164, .1); border-color: rgba(134, 211, 164, .25); letter-spacing: .06em; }
.tag { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.field {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-field);
  background: var(--field-bg); border: 1px solid var(--line); color: var(--ink); outline: none;
  transition: border-color .2s;
}
.field:focus { border-color: var(--accent-2); }
textarea.field { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.field { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M2 5l3-3 3 3M2 9l3 3 3-3' fill='none' stroke='%23a6abb4' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 8px 12px; }
.kv { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv:first-child { border-top: 0; }
.kv > span:first-child { color: var(--ink-3); }
.copy-btn { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-3); }
.copy-btn:hover { color: var(--ink); background: var(--fill-2); }
.codebox {
  position: relative; display: block; padding: 12px 40px 12px 14px; border-radius: 12px;
  background: var(--abyss); border: 1px solid var(--line); color: #dfe6f1;
  font: 400 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; overflow-x: auto;
}
.codebox .copy-btn { position: absolute; top: 8px; right: 8px; }

/* tabs (connect snippets) */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--fill); border: 1px solid var(--line); }
.tabs button { flex: 1; height: 32px; border-radius: var(--r-pill); font: 500 13px/1 var(--text); color: var(--ink-3); }
.tabs button[aria-selected=true] { background: rgba(255, 255, 255, .1); color: var(--ink); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--line); font-weight: 400; }
.tbl thead th { border-top: 0; font-weight: 600; color: var(--ink); }
.tbl tbody th { color: var(--ink-2); }
.tbl .is-h { background: rgba(122, 162, 220, .06); color: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px; font: 600 16px/1.35 var(--text); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font: 400 18px/1 var(--text); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 2px 20px; color: var(--ink-2); max-width: 680px; }

/* sections */
.sec { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); position: relative; }
.sec:first-of-type { border-top: 0; }

/* the Greek key (meander) band: a porcelain hairline ornament */
.meander {
  height: 16px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 14.5H16M0 1.5H16M13.5 14.5V4H3V11.5H10.5V7H6.5V9' fill='none' stroke='%23c8ab6c' stroke-width='1.1' stroke-linecap='square'/%3E%3C/svg%3E") left center/16px 16px repeat-x;
}

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* toast */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 16px; border-radius: var(--r-pill); background: #f4f5f6; color: #12161d; font: 500 14px/1.2 var(--text);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); background: var(--night); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand .brand-tile { width: 44px; height: 44px; border-radius: 12px; }
.foot-name { font: 600 16px/1 var(--display); letter-spacing: .16em; color: #fff; margin: 4px 0 10px; }
.foot-brand p { font-size: 13px; color: var(--ink-3); max-width: 330px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: #fff; }
.foot-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot-note a:hover { color: #fff; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* page top spacing under the fixed header */
.page-top { padding-top: calc(var(--head-h) + 64px); }

/* wallet menu */
.wmenu {
  position: fixed; z-index: 60; width: 220px; padding: 8px; border-radius: 16px;
  background: rgba(22, 25, 31, .97); border: 1px solid var(--line); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column; gap: 2px;
}
.wmenu-a { padding: 8px 10px 0; font: 600 14px/1.2 var(--text); color: #fff; }
.wmenu-t { padding: 2px 10px 8px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wmenu a, .wmenu button { text-align: left; padding: 9px 10px; border-radius: 10px; font: 500 14px/1.2 var(--text); color: var(--ink-2); }
.wmenu a:hover, .wmenu button:hover { background: var(--fill-2); color: #fff; }
.ic { flex: none; }
.foot-x { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 12px 7px 10px; border-radius: var(--r-pill); background: var(--fill-2); color: var(--ink-2); font: 500 13px/1 var(--text); transition: color .2s, background .2s; }
.foot-x:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------------- touch and phone */
@media (pointer: coarse), (max-width: 600px) {
  .copy-btn { width: 36px; height: 36px; border-radius: 10px; }
  .codebox { padding-right: 52px; }
  .codebox .copy-btn { top: 4px; right: 4px; }
  .tabs button { height: 40px; }
  .btn-s { height: 38px; }
  .faq summary { padding: 20px 2px; }
}
@media (max-width: 760px) {
  .foot { padding: 48px 0 32px; }
  .foot-col { gap: 0; }
  .foot-col a { padding: 11px 0; }
  .foot-x { padding: 11px 14px 11px 12px; }
  .foot-note { margin-top: 28px; }
  .foot-note a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .sheet a { padding: 16px 14px; }
}
