:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171b25;
  background: #f5f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #637dff; outline-offset: 3px; }

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 76%, rgba(82, 111, 254, .075), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(42, 83, 214, .065), transparent 26%),
    #f5f6f8;
}

.site-header {
  width: min(1216px, calc(100% - 80px));
  height: 100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e3e5e9;
  position: relative;
  z-index: 2;
}
.brand, .header-actions { display: flex; align-items: center; }
.brand { gap: 11px; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #11151d;
  border-radius: 12px;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.055em; }
.brand-name span { color: #727987; font-weight: 500; }
.header-actions { gap: 16px; }
.network-badge, .route-pill, .section-kicker, .eyebrow, .network-panel-heading, .site-footer {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}
.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555e70;
}
.live-dot, .connected-dot, .bottom-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #41bf91;
  box-shadow: 0 0 0 3px #dff4ec;
}
.wallet-button {
  min-height: 42px;
  padding: 0 17px;
  color: #fff;
  background: #141821;
  border: 1px solid #141821;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, transform .18s ease;
}
.wallet-button:hover, .submit-button:hover { background: #343b4c; transform: translateY(-1px); }
.wallet-button:disabled, .submit-button:disabled, .switch-button:disabled { cursor: wait; opacity: .65; transform: none; }

main {
  width: min(1216px, calc(100% - 80px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 536px);
  column-gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: 8px 0 58px;
}
.hero-copy { align-self: center; position: relative; padding-bottom: 105px; }
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 545px;
  height: 545px;
  border: 1px solid rgba(55, 73, 109, .09);
  border-radius: 50%;
  left: -213px;
  top: -129px;
  box-shadow: 0 0 0 72px rgba(55, 73, 109, .025), 0 0 0 144px rgba(55, 73, 109, .018);
  pointer-events: none;
}
.hero-copy > * { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #506ee8; }
.eyebrow-line { display: inline-block; width: 25px; height: 2px; background: #506ee8; }
.hero-copy h1 {
  max-width: 690px;
  margin: 24px 0 20px;
  font-size: clamp(45px, 4.7vw, 69px);
  letter-spacing: -.07em;
  line-height: 1.09;
  font-weight: 760;
}
.hero-copy h1 span { color: #6c7586; }
.hero-copy p { max-width: 430px; margin: 0; color: #697180; font-size: 16px; line-height: 1.7; }

.bridge-card {
  grid-column: 2;
  position: relative;
  padding: 24px 29px;
  border: 1px solid #e7e9ee;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 29px 70px rgba(21, 32, 58, .085), 0 3px 13px rgba(21, 32, 58, .03);
}
.bridge-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c91ff 40%, #11151d 75%, transparent);
  opacity: .45;
}
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.section-kicker { color: #9ba2af; font-size: 10px; }
.card-topline h2 { margin: 3px 0 0; font-size: 25px; letter-spacing: -.05em; }
.route-pill {
  padding: 8px 10px;
  border-radius: 8px;
  color: #5265a5;
  background: #f1f3ff;
  font-size: 10px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.route-stack { position: relative; display: grid; gap: 10px; }
.network-panel { padding: 13px 17px 14px; border: 1px solid #e8eaf0; border-radius: 15px; background: #fbfbfd; }
.network-panel-heading { color: #9aa2af; font-size: 10px; margin-bottom: 12px; }
.network-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.network-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; font-size: 24px; font-weight: 500; }
.network-icon--xrpl { background: #11151d; color: #fff; }
.network-icon--evm { background: #eef0ff; color: #5267df; font-size: 21px; font-weight: 800; }
.network-details { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.network-details strong { font-size: 15px; letter-spacing: -.02em; }
.network-details span { color: #8c94a3; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain-tag { padding: 5px 8px; border-radius: 7px; color: #727b8c; background: #f0f2f6; font-size: 10px; font-weight: 700; }
.switch-holder { height: 0; position: relative; z-index: 1; }
.switch-button {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 5px solid #fff;
  border-radius: 13px;
  color: #374259;
  background: #eef1f9;
  box-shadow: 0 1px 4px rgba(28, 40, 63, .08);
  transition: background .18s ease;
}
.switch-button:hover { background: #e1e7ff; }
.switch-button svg { width: 19px; height: 19px; }

.amount-heading { display: flex; justify-content: space-between; gap: 12px; margin: 22px 1px 10px; align-items: baseline; }
.amount-heading label { font-size: 14px; font-weight: 750; }
.amount-heading span { color: #9ba2ae; font-size: 11px; }
.amount-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 70px;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  padding: 0 16px 0 18px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.amount-field:focus-within { border-color: #8b9bf5; box-shadow: 0 0 0 3px rgba(92, 110, 221, .1); }
.amount-field input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #161b25; font-size: 31px; letter-spacing: -.05em; font-weight: 650; }
.amount-field input::placeholder { color: #c5cbd3; }
.asset-label { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; }
.asset-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #121721; color: #fff; font-size: 13px; font-weight: 500; }
.field-help { margin: 9px 2px 0; color: #9ba2ae; font-size: 11px; line-height: 1.5; }
.flow-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 17px; padding: 13px; color: #586273; background: #f5f7fb; border-radius: 11px; font-size: 12px; line-height: 1.5; }
.flow-note svg { width: 17px; height: 17px; flex: 0 0 17px; color: #687de7; }
.submit-button { display: block; width: 100%; height: 53px; border: 0; border-radius: 12px; background: #141821; color: #fff; font-size: 14px; font-weight: 750; transition: background .18s ease, transform .18s ease; }
.card-bottom { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: #9ba2ad; font-size: 11px; line-height: 1.5; }
.bottom-dot { width: 5px; height: 5px; flex: 0 0 5px; margin-top: 5px; background: #8596ee; box-shadow: none; }
.status { display: grid; gap: 7px; margin-top: 16px; padding: 13px 14px; border-radius: 10px; font-size: 12px; line-height: 1.55; }
.status[hidden], .status a[hidden] { display: none; }
.status--info { color: #425476; background: #edf2ff; }
.status--success { color: #246e55; background: #e8f7ef; }
.status--error { color: #ac4251; background: #fff0f2; }
.status a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.under-card { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 0 3px; color: #8a93a2; font-size: 11px; }
.under-card > span { display: flex; gap: 9px; align-items: center; }
.under-card a { color: #5e6faf; font-weight: 650; white-space: nowrap; }
.connected-dot { width: 5px; height: 5px; flex: 0 0 5px; background: #5cbc91; box-shadow: none; }

.site-footer { width: min(1216px, calc(100% - 80px)); margin: 0 auto; padding: 23px 0; border-top: 1px solid #e2e5e9; display: flex; justify-content: space-between; gap: 16px; color: #9ca4b0; font-size: 10px; }
.footer-divider { color: #ced3da; padding: 0 3px; }

@media (max-width: 980px) {
  main { grid-template-columns: minmax(0, 1fr); width: min(600px, calc(100% - 40px)); padding: 55px 0 65px; }
  .hero-copy { padding: 0 0 40px; }
  .hero-copy::before { left: -170px; top: -160px; }
  .hero-copy h1 { font-size: clamp(43px, 9vw, 64px); }
  .bridge-card, .under-card { grid-column: 1; }
}
@media (max-width: 600px) {
  .site-header, .site-footer { width: calc(100% - 36px); }
  .site-header { height: 76px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .brand-name { font-size: 18px; }
  .network-badge { display: none; }
  .wallet-button { padding: 0 11px; min-height: 38px; font-size: 11px; }
  main { width: calc(100% - 28px); padding-top: 45px; }
  .hero-copy { padding: 0 11px 31px; }
  .hero-copy h1 { margin: 20px 0 13px; font-size: clamp(40px, 11vw, 55px); }
  .hero-copy p { font-size: 14px; }
  .bridge-card { padding: 21px; border-radius: 20px; }
  .card-topline { margin-bottom: 21px; }
  .network-panel { padding: 14px; }
  .network-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .network-details strong { font-size: 14px; }
  .chain-tag { font-size: 9px; }
  .under-card { flex-wrap: wrap; line-height: 1.5; }
  .site-footer { flex-direction: column; gap: 7px; padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
