* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #0c1017;
  --panel: #141a24;
  --ink: #f4f0e9;
  --muted: #acb1bb;
  --quiet: #979eac;
  --line: #2a303b;
  --coral: #ffa38d;
  --tint: #302822;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 57% 25%, #121923 0%, var(--bg) 65%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
a {
  color: var(--coral);
  text-underline-offset: 3px;
}
svg {
  display: block;
  flex-shrink: 0;
}
.shell {
  width: min(1216px, 100%);
  margin: auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.wordmark,
.top-tools,
.network,
.brand-lock {
  display: flex;
  align-items: center;
}
.wordmark {
  gap: 13px;
}
.wordmark strong {
  font-size: 19px;
  letter-spacing: 0.17em;
  font-weight: 650;
}
.brand-name {
  font-size: 17px;
  color: #cacbd0;
  letter-spacing: -0.035em;
}
.brand-rule {
  height: 18px;
  width: 1px;
  background: #454750;
}
.monogram {
  --size: 32px;
  position: relative;
  width: var(--size);
  height: var(--size);
  display: inline-block;
  transform: skew(-12deg);
  color: var(--coral);
}
.monogram:before,
.monogram:after,
.monogram i {
  content: "";
  position: absolute;
  width: 6px;
  height: 25px;
  background: currentColor;
  top: 3px;
  left: 4px;
}
.monogram:after {
  left: 20px;
}
.monogram i {
  height: 5px;
  width: 19px;
  left: 6px;
  top: 14px;
  transform: rotate(-20deg);
}
.top-tools {
  gap: 16px;
}
.network {
  gap: 8px;
  font-size: 13px;
  color: #e4c7bb;
  border: 1px solid #4e3831;
  background: #27201e;
  border-radius: 30px;
  padding: 6px 12px;
}
.network i {
  width: 6px;
  height: 6px;
  background: #ffab94;
  border-radius: 100%;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}
.icon-btn:hover,
.secondary:hover {
  background: #262d37;
  color: var(--ink);
}
main {
  flex: 1;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--quiet);
  font-size: 13px;
  border-top: 1px solid var(--line);
  min-height: 76px;
  gap: 12px;
}
footer button,
.text-btn {
  font-size: 14px;
  color: #c4cad2;
  padding: 7px 0;
}
.text-btn:hover,
footer button:hover {
  color: var(--coral);
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 44px;
  min-height: 457px;
  background: #101722;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  align-items: center;
}
.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #101722 0%,
    #101722 39%,
    rgba(16, 23, 34, 0.96) 44%,
    rgba(16, 23, 34, 0.48) 53%,
    transparent 67%
  );
}
.hero-copy {
  padding: 51px 0 56px 54px;
  width: 56%;
}
.eyebrow {
  display: block;
  font:
    600 12px/1.4 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coral);
}
.with-rule {
  display: flex;
  align-items: center;
  gap: 11px;
}
.with-rule:before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--coral);
}
h1,
h2,
h3,
p {
  margin: 0;
}
.hero h1 {
  font-size: clamp(49px, 5.35vw, 78px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.99;
  margin: 21px 0;
}
.hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.053em;
  color: #f4dfd2;
}
.hero p {
  color: #b9bec7;
  line-height: 1.6;
  max-width: 365px;
}
.actions,
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero .actions {
  margin-top: 29px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 9px;
  padding: 11px 19px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.primary {
  color: #231815;
  background: var(--coral);
  border: 1px solid var(--coral);
}
.primary:hover {
  background: #ffb6a3;
}
.secondary {
  background: #171e28;
  border: 1px solid #3c434e;
  color: var(--ink);
}
.safeguards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 29px;
  margin: 36px 0 45px;
}
.safeguards article {
  padding-right: 18px;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  align-content: start;
}
.safeguards article + article {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.mark {
  color: var(--coral);
  background: #252226;
  border: 1px solid #383037;
  border-radius: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}
.safeguards h3 {
  font-weight: 550;
  letter-spacing: -0.025em;
  font-size: 17px;
  margin: 0 0 4px;
}
.safeguards p,
.sub,
.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.flow {
  width: min(680px, 100%);
  margin: 37px auto 50px;
}
.flow.wide {
  width: min(890px, 100%);
}
.breadcrumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.back {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #bcc1cb;
  font-size: 14px;
  padding: 4px 0;
}
.back:hover {
  color: var(--coral);
}
.card {
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
}
.card + .card {
  margin-top: 18px;
}
h2,
.flow h1 {
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 520;
  letter-spacing: -0.05em;
  line-height: 1.12;
}
.flow .eyebrow {
  margin-bottom: 12px;
}
.intro {
  margin: 11px 0 24px;
  color: var(--muted);
}
h3 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.025em;
}
.field {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}
.field > span {
  font-size: 14px;
  font-weight: 550;
}
input,
textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid #3a4250;
  border-radius: 8px;
  padding: 12px;
  background: #0e141e;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
.hint {
  margin: 9px 0 16px;
}
.notice,
.error {
  border-radius: 9px;
  padding: 12px 14px;
  background: #292421;
  color: #eacebc;
  font-size: 14px;
  margin: 16px 0;
}
.error {
  background: #352321;
  color: #ffc3b3;
}
.error:empty,
.notice:empty,
.hint:empty {
  display: none;
}
.balance {
  font-size: clamp(34px, 7vw, 65px);
  font-weight: 480;
  letter-spacing: -0.055em;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.balance small {
  color: var(--quiet);
  font-size: 0.32em;
  letter-spacing: 0;
}
.balance-card {
  background: linear-gradient(112deg, #1c212d, #151922 60%, #272122);
}
.balance-card .actions {
  margin: 24px 0 0;
}
.card-head,
.row,
.pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row,
.pair {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child,
.pair:last-child {
  border-bottom: 0;
}
.pair {
  align-items: start;
}
.pair span:first-child {
  color: var(--muted);
}
.pair strong {
  font-weight: 550;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.mono,
.address,
.words {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.address {
  background: #0d131c;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
  color: #e7e4dd;
  font-size: 15px;
}
.qr {
  display: block;
  width: 202px;
  height: 202px;
  max-width: 100%;
  margin: 20px auto;
  border-radius: 10px;
  background: #fff;
}
.words {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 18px 0;
}
.words b {
  font-size: 14px;
  font-weight: 500;
  background: #101620;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
}
.words small {
  color: var(--coral);
  margin-right: 6px;
}
.menu {
  display: flex;
  gap: 12px;
}
.menu button {
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}
.menu button:hover {
  color: var(--coral);
}
.section-gap {
  margin-top: 25px;
}
.link-row {
  margin-top: 15px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.link-row a,
.link-row button {
  font-size: 14px;
}
.details-text {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.loading {
  color: var(--muted);
  padding: 60px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 27px;
  background: #171d27;
  width: min(480px, 92vw);
  border-radius: 15px;
}
dialog::backdrop {
  background: #05080dcc;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
dialog p {
  color: var(--muted);
  margin: 15px 0 0;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 10px 16px;
  background: #efe5dc;
  color: #171a20;
  font-size: 14px;
  z-index: 5;
  max-width: 90%;
  text-align: center;
}
#toast:empty {
  display: none;
}
.history {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}
.history li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.history a {
  font-size: 14px;
}
.check {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
}
.check input {
  width: auto;
  accent-color: var(--coral);
}
@media (max-width: 850px) {
  .shell {
    padding: 0 28px;
  }
  .hero-copy {
    padding-left: 34px;
  }
  .safeguards {
    gap: 15px;
  }
  .safeguards article {
    display: block;
    padding: 0;
  }
  .safeguards article + article {
    padding-left: 18px;
  }
  .mark {
    margin-bottom: 10px;
  }
}
@media (max-width: 600px) {
  .shell {
    padding: 0 18px;
  }
  header {
    height: 70px;
  }
  .wordmark {
    gap: 7px;
  }
  .wordmark strong {
    font-size: 15px;
  }
  .brand-name {
    font-size: 14px;
  }
  .monogram {
    scale: 0.8;
    margin-right: -3px;
  }
  .network {
    font-size: 12px;
    padding: 4px 8px;
  }
  .top-tools {
    gap: 8px;
  }
  .top-tools .icon-btn {
    width: 28px;
    height: 28px;
  }
  .hero {
    margin-top: 21px;
    min-height: 0;
    display: block;
    border-radius: 15px;
  }
  .hero-image {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(160px, 44vw, 240px);
    object-fit: cover;
    object-position: center 48%;
  }
  .hero:after {
    background: linear-gradient(0deg, #101722 0%, transparent 90%);
    height: 54px;
    inset: clamp(108px, calc(44vw - 52px), 188px) 0 auto;
  }
  .hero-copy {
    width: 100%;
    padding: 6px 23px 25px;
  }
  .hero h1 {
    font-size: 49px;
    margin: 14px 0;
  }
  .hero h1 br {
    display: none;
  }
  .hero p {
    font-size: 15px;
  }
  .hero .actions {
    margin-top: 20px;
    gap: 8px;
  }
  .btn {
    padding: 10px 13px;
  }
  .safeguards {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 24px 0;
  }
  .safeguards article,
  .safeguards article + article {
    display: grid;
    grid-template-columns: 35px 1fr;
    align-items: start;
    gap: 12px;
    padding: 0;
    border: 0;
  }
  .mark {
    width: 35px;
    height: 35px;
    margin: 0;
  }
  .safeguards h3 {
    font-size: 16px;
    margin: 0;
  }
  .safeguards p {
    font-size: 13px;
  }
  .card {
    padding: 22px 18px;
  }
  .flow {
    margin: 23px auto 32px;
  }
  .words {
    grid-template-columns: repeat(2, 1fr);
  }
  .pair {
    flex-wrap: wrap;
  }
  .pair strong {
    max-width: 100%;
  }
  footer {
    min-height: 62px;
  }
  .menu {
    gap: 8px;
  }
}
@media (max-width: 365px) {
  .top-tools .icon-btn {
    display: none;
  }
  .brand-rule,
  .brand-name {
    display: none;
  }
  .hero-copy {
    padding: 8px 17px 22px;
  }
  .hero .btn {
    font-size: 14px;
  }
}

h1[tabindex="-1"]:focus {
  outline: none;
}

.qr-scanner h2 {
  font-size: 1.55rem;
}
.camera-preview {
  border-radius: 10px;
  background: #090c11;
  overflow: hidden;
}
.camera-preview video {
  display: block;
  width: 100%;
  height: min(48dvh, 360px);
  object-fit: contain;
}
.qr-scanner .hint {
  margin: 14px 0 18px;
}
