:root {
  --blue-50: #eef4ff;
  --blue-100: #dbe6ff;
  --blue-500: #2b6cff;
  --blue-600: #1f57e0;
  --blue-700: #1846b8;
  --blue-900: #0c1f4a;
  --ink: #0e1a36;
  --ink-2: #3a4566;
  --muted: #6b7693;
  --line: #e3e8f3;
  --bg: #f6f8fc;
  --white: #ffffff;
  --green: #128a5b;
  --red: #c0394a;
  --amber: #b67410;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14,26,54,.06), 0 8px 24px rgba(14,26,54,.06);
  --shadow-sm: 0 1px 2px rgba(14,26,54,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top nav ---------- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); font-size: 17px;
}
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 15px;
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--blue-600); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn {
  display: none;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 40px; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); margin: auto;
  position: relative;
}
.menu-btn span::before { content: ""; position: absolute; top: -6px; left: 0; }
.menu-btn span::after { content: ""; position: absolute; top: 6px; left: 0; }

@media (max-width: 880px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav.open, .nav-cta.open { display: flex; }
  .nav.open {
    position: absolute; top: 64px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 14px 24px; gap: 14px;
  }
  .nav-cta.open {
    position: absolute; top: 220px; left: 0; right: 0;
    background: white; padding: 0 24px 18px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  font-size: 14.5px; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); text-decoration: none; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--blue-600); text-decoration: none; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(43,108,255,.10), transparent 60%),
    radial-gradient(900px 380px at -10% 0%, rgba(43,108,255,.08), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-50); color: var(--blue-700);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--blue-100);
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--green); border-radius: 999px; }
.h1 { font-size: 44px; line-height: 1.1; margin: 18px 0 14px; letter-spacing: -.02em; }
.h2 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 22px; max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Cards / panels ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; box-shadow: var(--shadow);
}
.tile {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.kicker { color: var(--blue-700); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Mock dashboard preview ---------- */
.preview {
  background: linear-gradient(180deg, #fbfdff, #f0f4fb);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; box-shadow: var(--shadow);
}
.preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 14px;
}
.preview-balance { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.preview-balance small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.assets-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px;
}
.asset {
  background: white; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px;
}
.asset-row { display: flex; justify-content: space-between; align-items: center; }
.asset-sym {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
}
.asset-icon {
  width: 26px; height: 26px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; color: white; font-size: 11px; font-weight: 800;
}
.btc { background: #f7931a; }
.eth { background: #4659a1; }
.usdt { background: #1aab9b; }
.asset-amt { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.asset-usd { color: var(--muted); font-size: 12.5px; }

.tx-mini { margin-top: 14px; }
.tx-mini-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.tx-mini-row:last-child { border-bottom: 0; }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }

/* ---------- Section ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.feature .feature-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--blue-50); color: var(--blue-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 12px;
}

.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step .num {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: #0c1f4a; color: #d6e0f5; padding: 22px 0;
}
.trust-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 880px) { .trust-strip-grid { grid-template-columns: 1fr 1fr; } }
.trust-strip .label { font-size: 12px; color: #9fb1d8; text-transform: uppercase; letter-spacing: .1em; }
.trust-strip .value { font-weight: 600; color: #fff; font-size: 14.5px; }

/* ---------- Footer ---------- */
footer {
  background: #0c1f4a; color: #c8d4ee; padding: 48px 0 24px; margin-top: 60px;
}
footer a { color: #c8d4ee; }
footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid #1d3060; margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #9fb1d8;
}

/* ---------- Forms ---------- */
.auth-wrap {
  max-width: 440px; margin: 60px auto; padding: 0 24px;
}
.auth-card {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 32px; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14.5px; font-family: var(--font);
  background: white; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(43,108,255,.15);
}
.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2);
  margin: 14px 0;
}
.checkbox-row input { margin-top: 3px; }

.notice {
  background: #fff8e8; border: 1px solid #f1d990; color: #6e520d;
  padding: 12px 14px; border-radius: 8px; font-size: 13.5px;
}
.notice-blue {
  background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700);
  padding: 12px 14px; border-radius: 8px; font-size: 13.5px;
}
.notice-red {
  background: #fdecee; border: 1px solid #f3b9c0; color: #872230;
  padding: 12px 14px; border-radius: 8px; font-size: 13.5px;
}

/* ---------- Dashboard layout ---------- */
.dash {
  display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px);
}
@media (max-width: 880px) { .dash { grid-template-columns: 1fr; } }
.side {
  background: white; border-right: 1px solid var(--line); padding: 24px 14px;
}
.side a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--ink-2);
  font-size: 14px; font-weight: 500; margin-bottom: 4px;
}
.side a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.side a.active { background: var(--blue-50); color: var(--blue-700); }
.side .side-title { font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 12px; letter-spacing: .12em; }
.dash-main { padding: 28px 32px; }
@media (max-width: 880px) { .dash-main { padding: 22px 16px; } }

.balance-card {
  background: linear-gradient(135deg, #1846b8, #2b6cff);
  color: white; padding: 26px; border-radius: 14px;
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px;
  box-shadow: var(--shadow);
}
.balance-card .label { color: #cfdcff; font-size: 13px; }
.balance-card .amount { font-size: 38px; font-weight: 700; letter-spacing: -.02em; }
.balance-actions { display: flex; gap: 10px; }
.balance-actions .btn { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); color: white; }
.balance-actions .btn:hover { background: rgba(255,255,255,.22); }

.assets-table, .tx-table {
  width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.assets-table th, .tx-table th, .assets-table td, .tx-table td {
  padding: 13px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line);
}
.assets-table th, .tx-table th {
  background: #f6f8fc; font-size: 12.5px; text-transform: uppercase;
  color: var(--muted); letter-spacing: .08em; font-weight: 600;
}
.assets-table tr:last-child td, .tx-table tr:last-child td { border-bottom: 0; }
.tx-hash { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.badge-success { background: #e6f6ee; color: #0d6e44; }
.badge-pending { background: #fff4dc; color: #8a5e0e; }
.badge-failed { background: #fdecee; color: #872230; }

/* ---------- Page header (subpages) ---------- */
.page-head {
  background: white; border-bottom: 1px solid var(--line);
  padding: 50px 0 40px;
}
.page-head .lead { margin-top: 8px; }

/* ---------- Legal/long-form ---------- */
.legal { background: white; }
.legal-body {
  background: white; border: 1px solid var(--line);
  border-radius: 14px; padding: 36px 40px; margin: 30px auto 60px;
}
.legal-body h2 { margin-top: 28px; font-size: 20px; }
.legal-body h3 { margin-top: 18px; font-size: 16px; }
.legal-body p, .legal-body li { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 12px 0; }
.checklist li {
  padding: 7px 0 7px 28px; position: relative; font-size: 14.5px; color: var(--ink-2);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--blue-600); font-weight: 700;
}

/* ---------- Compliance card ---------- */
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
@media (max-width: 880px) { .reg-grid { grid-template-columns: 1fr; } }
.reg-card { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 16px; }
.reg-card .label { font-size: 11.5px; color: var(--blue-700); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.reg-card .value { font-weight: 600; margin-top: 4px; font-size: 15px; }
.reg-card .num { font-family: var(--mono); margin-top: 2px; font-size: 13px; color: var(--ink-2); }

/* ---------- Modal ---------- */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(14,26,54,.55);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: white; border-radius: 14px; padding: 24px; max-width: 440px; width: 92%;
  box-shadow: 0 20px 60px rgba(14,26,54,.3);
}
.modal h3 { margin: 0 0 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---------- Misc ---------- */
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 600;
}
hr.sep { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
