:root {
  --bg: #faf8fb;
  --bg-warm: #f5f1f6;
  --surface: #ffffff;
  --surface-soft: #fcfbfd;
  --ink: #171219;
  --muted: #6f6473;
  --quiet: #948a98;
  --line: rgba(37, 24, 43, 0.1);
  --line-strong: rgba(37, 24, 43, 0.16);
  --accent: #e5169b;
  --accent-deep: #bc0f83;
  --accent-soft: rgba(229, 22, 155, 0.1);
  --accent-wash: rgba(229, 22, 155, 0.055);
  --shadow: 0 22px 55px rgba(37, 24, 43, 0.12);
  --shadow-tight: 0 10px 22px -12px rgba(229, 22, 155, 0.82);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(229, 22, 155, 0.085), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, var(--bg-warm) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
p {
  margin: 0;
}

.topbar {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(229, 22, 155, 0.14), 0 8px 18px rgba(229, 22, 155, 0.12);
}

.spacer {
  flex: 1 1 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  white-space: nowrap;
}

.nav a {
  text-underline-offset: 5px;
  transition: color 170ms ease, text-decoration-color 170ms ease;
}

.nav a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(229, 22, 155, 0.38);
}

.page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.hero-copy {
  min-width: 0;
}

h1 {
  max-width: 10.5ch;
  font-size: clamp(2.75rem, 6.05vw, 4.9rem);
  line-height: 0.96;
  font-weight: 830;
  letter-spacing: 0;
}

.deck {
  max-width: 51ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.6;
}

.deck strong {
  color: var(--ink);
  font-weight: 760;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-chips span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.68);
  color: #4d4351;
  font-size: 13px;
  font-weight: 620;
  box-shadow: 0 8px 18px rgba(37, 24, 43, 0.045);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  background: linear-gradient(180deg, #ea24a5 0%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 640;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(159, 8, 110, 0.2), var(--shadow-tight);
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: saturate(1.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 0 0 1px rgba(159, 8, 110, 0.24), 0 12px 24px -13px rgba(229, 22, 155, 0.9);
}

.button .arrow {
  display: inline-block;
  font-size: 1.2em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 170ms ease;
}

.button:hover .arrow {
  transform: translate(3px, -1px);
}

.button-hero {
  min-height: 50px;
  margin-top: 30px;
  padding: 0 24px;
  font-size: 16px;
}

.button-card {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 20px;
  font-size: 15px;
}

.bridge-card {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(37, 24, 43, 0.11);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.bridge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.selector-pill,
.preview-pill {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(252, 251, 253, 0.88);
  font-size: 12px;
  font-weight: 680;
}

.selector-pill {
  padding: 0 12px;
  color: #4c4350;
}

.preview-pill {
  gap: 7px;
  padding: 0 11px;
  color: var(--accent-deep);
  border-color: rgba(229, 22, 155, 0.18);
  background: var(--accent-wash);
}

.preview-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(229, 22, 155, 0.1);
  animation: previewPulse 2.5s ease-in-out infinite;
}

.route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.route-panel {
  min-width: 0;
  min-height: 130px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, var(--surface-soft));
  box-shadow: 0 10px 24px rgba(37, 24, 43, 0.055);
}

.route-label {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 780;
  letter-spacing: 0;
  white-space: nowrap;
}

.asset-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px var(--line), 0 8px 16px rgba(37, 24, 43, 0.08);
}

.switch {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin: 0 -2px;
  padding: 0;
  border: 1px solid rgba(229, 22, 155, 0.2);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 25px rgba(37, 24, 43, 0.12), 0 0 0 7px rgba(250, 248, 251, 0.95);
  transition: transform 190ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.switch span {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.switch:hover {
  transform: translateY(-1px);
  border-color: rgba(229, 22, 155, 0.42);
  box-shadow: 0 14px 28px rgba(37, 24, 43, 0.14), 0 0 0 7px rgba(250, 248, 251, 0.95);
}

.switch.is-switched span {
  transform: rotate(180deg);
}

.route-detail {
  display: grid;
  grid-template-columns: auto minmax(54px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.hop-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.hop-dots::before,
.hop-dots::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, transparent, rgba(229, 22, 155, 0.28));
}

.hop-dots::after {
  background: linear-gradient(90deg, rgba(229, 22, 155, 0.28), transparent);
}

.hop-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(229, 22, 155, 0.24);
}

.route-note {
  margin-top: 13px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.45;
}

.resources {
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid rgba(37, 24, 43, 0.08);
}

.resources-label {
  margin-bottom: 10px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-rail a {
  min-height: 34px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #5f5663;
  font-size: 12.5px;
  font-weight: 610;
  text-underline-offset: 4px;
  box-shadow: 0 7px 16px rgba(37, 24, 43, 0.035);
  transition: transform 170ms ease, color 170ms ease, border-color 170ms ease, background 170ms ease;
}

.resource-rail a:hover {
  transform: translateY(-1px);
  border-color: rgba(229, 22, 155, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(229, 22, 155, 0.35);
}

.resource-rail img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.resource-rail span {
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding-top: 18px;
  color: var(--quiet);
  font-size: 12.5px;
  font-weight: 560;
}

@keyframes previewPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(229, 22, 155, 0.1);
  }

  50% {
    transform: scale(0.82);
    box-shadow: 0 0 0 8px rgba(229, 22, 155, 0.06);
  }
}

@media (min-width: 901px) {
  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(4rem, 6.05vw, 4.9rem);
  }

  .page {
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);
    display: flex;
    flex-direction: column;
  }

  .hero {
    flex: 1 1 auto;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .topbar {
    padding-top: 14px;
    padding-bottom: 6px;
  }

  .page {
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
  }

  h1 {
    font-size: clamp(4rem, 5.65vw, 4.45rem);
  }

  .deck {
    margin-top: 16px;
    line-height: 1.5;
  }

  .trust-chips {
    margin-top: 18px;
  }

  .button-hero {
    margin-top: 22px;
  }

  .bridge-card {
    padding: 18px;
  }

  .route-panel {
    min-height: 112px;
  }

  .asset-chip {
    margin-top: 20px;
  }

  .resources {
    margin-top: 18px;
    padding-top: 12px;
  }

  .footer {
    padding-top: 12px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 32px;
  }

  .nav {
    gap: 18px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .topbar,
  .page {
    width: calc(100% - 36px);
  }

  .topbar {
    padding-top: 16px;
  }

  .nav {
    display: none;
  }

  .page {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(2.7rem, 13.5vw, 4.15rem);
  }

  .deck {
    max-width: 46ch;
  }

  .bridge-card {
    width: 100%;
  }

  .resources {
    margin-top: 28px;
  }

  .footer {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    background:
      linear-gradient(145deg, rgba(229, 22, 155, 0.08), transparent 36%),
      linear-gradient(180deg, #ffffff 0%, var(--bg) 60%, var(--bg-warm) 100%);
  }

  .topbar,
  .page {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 14px;
  }

  .hero {
    gap: 24px;
  }

  .deck {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .trust-chips {
    margin-top: 18px;
    gap: 8px;
  }

  .trust-chips span {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .button-hero {
    width: 100%;
    margin-top: 22px;
  }

  .bridge-card {
    padding: 15px;
    border-radius: 19px;
  }

  .card-topline {
    margin-bottom: 13px;
  }

  .route {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .route-panel {
    min-height: 104px;
    padding: 15px;
  }

  .asset-chip {
    margin-top: 18px;
    font-size: 21px;
  }

  .switch {
    justify-self: center;
    width: 44px;
    height: 44px;
    margin: -2px 0;
    box-shadow: 0 10px 22px rgba(37, 24, 43, 0.12), 0 0 0 6px rgba(250, 248, 251, 0.96);
  }

  .switch span {
    transform: rotate(90deg);
  }

  .switch.is-switched span {
    transform: rotate(270deg);
  }

  .route-detail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hop-dots {
    justify-content: flex-start;
    max-width: 180px;
  }

  .resource-rail {
    gap: 7px;
  }

  .resource-rail a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12.25px;
  }
}

@media (max-width: 370px) {
  .topbar,
  .page {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 2.55rem;
  }

  .card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
