:root {
  --bg: #f7f5f8;
  --surface: #ffffff;
  --surface-soft: #fbfafc;
  --ink: #161219;
  --muted: #6f6874;
  --faint: #9b94a0;
  --line: rgba(22, 18, 25, 0.1);
  --line-strong: rgba(22, 18, 25, 0.16);
  --accent: #E5169B;
  --accent-soft: rgba(229, 22, 155, 0.1);
  --shadow: 0 28px 70px -38px rgba(22, 18, 25, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -18%, rgba(229, 22, 155, 0.12), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 70%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

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

h1,
p {
  margin: 0;
}

.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 42px);
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  flex: 0 0 auto;
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
}

.nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.spacer {
  flex: 1;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 24px -20px rgba(22, 18, 25, 0.5);
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.stage {
  width: min(100%, 1120px);
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 8px clamp(18px, 4vw, 42px);
  text-align: center;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 15px;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 4.55rem);
  line-height: 1.03;
  font-weight: 850;
  letter-spacing: 0;
}

.sub {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  font-weight: 500;
}

.sub strong {
  color: var(--ink);
  font-weight: 850;
  box-shadow: inset 0 -0.42em 0 var(--accent-soft);
}

.card {
  width: min(590px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.leg {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 15px 16px;
  text-align: left;
}

.label {
  display: block;
  color: var(--faint);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 9px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 850;
}

.coin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px var(--line);
}

.switch {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px -24px rgba(22, 18, 25, 0.6);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.switch span {
  font-size: 1.1rem;
  line-height: 1;
}

.switch:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.primary {
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 850;
  box-shadow: 0 18px 36px -24px rgba(22, 18, 25, 0.72);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 22px 42px -24px rgba(22, 18, 25, 0.78);
}

.foot {
  flex: 0 0 auto;
  padding: 18px 24px 24px;
  color: var(--faint);
  font-size: 0.84rem;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 720px) {
  .topbar {
    gap: 12px;
    padding: 14px 16px;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 0.98rem;
  }

  .ghost {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .stage {
    gap: 22px;
    padding: 6px 16px;
  }

  .hero {
    gap: 12px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .sub {
    max-width: 32ch;
    font-size: 1rem;
  }

  .card {
    padding: 16px;
    border-radius: 20px;
  }

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

  .leg {
    padding: 13px 14px;
  }

  .switch {
    justify-self: center;
    width: 42px;
    height: 42px;
  }

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

  .primary {
    min-height: 54px;
    margin-top: 14px;
  }

  .foot {
    padding: 14px 20px 18px;
  }
}

@media (max-height: 720px) {
  .topbar {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .stage {
    gap: 20px;
  }

  h1 {
    font-size: clamp(2.25rem, 5vw, 3.45rem);
  }

  .card {
    padding: 16px;
  }

  .foot {
    padding-top: 12px;
    padding-bottom: 14px;
  }
}
